Gdi::GetMonitorInfo_I
This method retrieves information about a screen.
static BOOL WINAPI GetMonitorInfo_I(
HMONITOR hMonitor,
LPMONITORINFO lpmi
);
Parameters
- hMonitor
[in] Handle to the screen of interest. - lpmi
[out] Pointer to a MONITORINFO or MONITORINFOEX structure that receives information about the specified screen.
Return Values
TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError.
Remarks
This method is an internal version of the GetMonitorInfo function.
The Gdi::GetMonitorInfo_I method can retrieve information about a screen in either a MONOITORINFO or MONITORINFOEX structure. MONITORINFOEX is a superset of MONITORINFO. MONITORINFOEX has one additional member: a string that contains a name for the screen. Most applications do not need to use a screen name and can use fewer bytes by using MONITORINFO.
You must set the cbSize member of either structure to the value that you obtain by calling the sizeof operator for MONITORINFO or MONITORINFOEX before you call GetMonitorInfo. Setting cbSize allows Gdi::GetMonitorInfo_I to determine the type of structure you are passing to Gdi::GetMonitorInfo_I.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Gdi.hpp.
See Also
GetMonitorInfo | MONITORINFO | MONITORINFOEX
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.