how to disable “PRINT SCREEN” button while running my Application in WPF?

前端 未结 8 1961
滥情空心
滥情空心 2020-12-19 03:36

How can I disable Print Screen functionality while my WPF application is running?

The use-case is that my client wants to avoid unnecessary replication of valuable p

8条回答
  •  天涯浪人
    2020-12-19 04:15

    The only way I can think of is to use the native Windows API (SetWindowsHookEx) to catch all keystrokes and filter out the PrintScreen key. However this would involve creating a native (i.e. unmanaged) DLL to actually do the keystroke processing.

提交回复
热议问题