I\'m writing a Windows application. How can I tell when a screenshot is being taken of it? I read about how to detect the hotkey being pressed, but I\'m more worried about t
You can (unreliably) do this by using SetWindowsHookEx.
Here is a complete VB.NET example.
However, there are many ways around this. A hook installed after yours will "override" your hook. Users can take pictures of their screen in many ways, as described in this thread. I'd try to consider other options for protection than this.