In your C # application, you can configure a global hook to track keyboard events. Then your application becomes a global handler for print screens. Now, if another screen controlled by the application prints initially, it cannot stop it, but you can get everything that works through windows.
The WM_KEYBOARD_LL hook is one of the few global hooks that can be used in managed code, since DLL insertion is not required for each purpose.
For some code you can visit here:
Adam's Blog
Keep in mind that these are global interceptors, so you want to make sure that nothing else (other applications) are running. I used them in the past when we posted the power point display in the application we were working on. Basically, we didn’t want the user to call up any Powerpoint menu or short keyboard shortcuts, so we used a global hook. We always checked whether users were in a certain area (screen) and in our application, otherwise we will use other functionality of the applications (including our own!)
Microsoft Information:
Click Review
source share