User32GetMonitorInfo(IntPtr, MonitorInfo) 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 MonitorInfo mi
)
<DllImportAttribute("User32.dll">]
Public Shared Function GetMonitorInfo (
hWnd As IntPtr,
ByRef mi As MonitorInfo
) As Boolean
Dim hWnd As IntPtr
Dim mi As MonitorInfo
Dim returnValue As Boolean
returnValue = User32.GetMonitorInfo(hWnd,
mi)
public:
[DllImportAttribute(L"User32.dll")]
static bool GetMonitorInfo(
IntPtr hWnd,
MonitorInfo% mi
)
[<DllImportAttribute("User32.dll")>]
static member GetMonitorInfo :
hWnd : IntPtr *
mi : MonitorInfo 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 MonitorInfo
-
A pointer to a MonitorInfo structure that receives information about the specified display monitor.
You must set the SizeOfStruct member of the structure to Marshal.SizeOf(Of MonitorInfo)
before calling the GetMonitorInfo function.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.