SetWindowDisplayAffinity function user32
Specifies where the content of the window can be displayed.
BOOL SetWindowDisplayAffinity(
HWND hWnd,
DWORD dwAffinity
);
Implementation
int SetWindowDisplayAffinity(int hWnd, int dwAffinity) =>
_SetWindowDisplayAffinity(hWnd, dwAffinity);