@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: Stores the display affinity setting in kernel mode on the hWnd associated with the window. You can use this to help prevent taking screenshots of your application. See https://devblogs.microsoft.com/oldnewthing/?p=4193/03/10422964.aspx !!!!C# Signature: [DllImport("user32.dll")] static extern bool SetWindowDisplayAffinity(IntPtr hwnd, DisplayAffinity affinity); !!!!VB Signature: Declare Function SetWindowDisplayAffinity Lib "user32.dll" (hwnd As IntPtr, affinity As DisplayAffinity) As Boolean !!!!User-Defined Types: enum DisplayAffinity : uint { None = 0x00, Monitor = 0x01, ExcludeFromCapture = 0x11 } !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: Please add some! Documentation: SetWindowDisplayAffinity@msdn on MSDN
Edit user32.SetWindowD...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.