how to disable the "Print Screen" key functionality

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how to disable the "Print Screen" key functionality in
Windows 2000 and in Windows XP so that screen captures cannot be pulled from
video RAM and pasted into another application?

Thanks
 
EK,

I don't think there is a managed way to do this (.NET only way).

Prt Scr uses an interrupt, I believe Int 5. You can trick the computer into
thinking that an interrupt is in progress, and hence ignore all subsequent
requests by the following code ...

void prtsc_allow(int allow) /* 0=disable, nonzero=enable */
{
unsigned char far* flag = (unsigned char far*)0x00400100UL;
*flag = (unsigned char)!allow;
}

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
 
Back
Top