L
linksadi
Guest
Hi I use the "SetWindowDisplayAffinity" and this code too prevent user from capture Screen with C#.
[DllImport("user32.dll")]
private static extern uint SetWindowDisplayAffinity(IntPtr hwnd, uint dwAffinity);
----------------------
const uint WDA_NONE = 0;
const uint WDA_MONITOR = 1;
IntPtr windowHandle = new WindowInteropHelper(Application.Current.MainWindow).Handle;
SetWindowDisplayAffinity(windowHandle, WDA_MONITOR);
This is work. But I need show the message to my user too after they Open Screen recorder and detect that with "SetWindowDisplayAffinity". how can i do it?
Continue reading...
[DllImport("user32.dll")]
private static extern uint SetWindowDisplayAffinity(IntPtr hwnd, uint dwAffinity);
----------------------
const uint WDA_NONE = 0;
const uint WDA_MONITOR = 1;
IntPtr windowHandle = new WindowInteropHelper(Application.Current.MainWindow).Handle;
SetWindowDisplayAffinity(windowHandle, WDA_MONITOR);
This is work. But I need show the message to my user too after they Open Screen recorder and detect that with "SetWindowDisplayAffinity". how can i do it?
Continue reading...