How can I detect on Windows OS level when any of my application window is screen shared by any screen sharing tool. I am sure any screen sharing tool can not do screen sharing to remote user until there is a support from Windows OS. I want to know what is that "something" which is set/done when any app window is screen shared. I am writing an app and want to behave differently when my app window is screen shared. I am looking for a generic solution and not specific to screen sharing tool. Any pointer or code snippet around this will be of great help. Thank you.