views:

119

answers:

2

I need my application to get noticed when another process is trying to do any screen capture. Is that doable ?

+1  A: 

do a windows hook and watch for WM_PRINT

Omu
A: 

You can use RegisterHotKey API to get intercept print screen key presses. Another approach would be to use low level keyboard hooks. Few examples:
http://answers.google.com/answers/threadview/id/133059.html
http://msdn.microsoft.com/hi-in/magazine/cc301431%28en-us%29.aspx
http://stackoverflow.com/questions/1191479/how-do-i-capture-the-print-screen-key

swatkat
You are making the assumption that the only way to capture the screen is with the "Print Screen" key. OneNote uses Windows+S to initiate a screen capture. FastStone Capture allows users to change the screen capture hot keys, and so on.
AMissico
Oops!! I missed that custom keys can be defined for screen capture!! Thanks for pointing it out.
swatkat