[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr MonitorFromPoint(POINT pt, MonitorOptions dwFlags);
enum MonitorOptions : uint
{
MONITOR_DEFAULTTONULL = 0x00000000,
MONITOR_DEFAULTTOPRIMARY = 0x00000001,
MONITOR_DEFAULTTONEAREST = 0x00000002
}
<DllImport("user32.dll", SetLastError := True)> _
Private Shared Function MonitorFromPoint(pt As POINT, dwFlags As MonitorOptions) As IntPtr
End Function
Private Enum MonitorOptions As UInteger
MONITOR_DEFAULTTONULL = &H0
MONITOR_DEFAULTTOPRIMARY = &H1
MONITOR_DEFAULTTONEAREST = &H2
End Enum
None.
Please add some!
Please add some!
Do you know one? Please contribute it!