SetWindowDisplayAffinity

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
}

Última actualización