User32GetMonitorInfo(IntPtr, MonitorInfoEx) Method
Retrieves information about a display monitor.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll")]
public static bool GetMonitorInfo(
IntPtr hWnd,
ref MonitorInfoEx mi
)
<DllImportAttribute("User32.dll">]
Public Shared Function GetMonitorInfo (
hWnd As IntPtr,
ByRef mi As MonitorInfoEx
) As Boolean
Dim hWnd As IntPtr
Dim mi As MonitorInfoEx
Dim returnValue As Boolean
returnValue = User32.GetMonitorInfo(hWnd,
mi)
public:
[DllImportAttribute(L"User32.dll")]
static bool GetMonitorInfo(
IntPtr hWnd,
MonitorInfoEx% mi
)
[<DllImportAttribute("User32.dll")>]
static member GetMonitorInfo :
hWnd : IntPtr *
mi : MonitorInfoEx byref -> bool
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
A handle to the display monitor of interest.
- mi MonitorInfoEx
-
A pointer to a MonitorInfoEx structure that receives information about the specified display monitor.
You must set the SizeOfStruct member of the structure to Marshal.SizeOf(Of MonitorInfoEx)
before calling the GetMonitorInfo function.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.