IDesktopWallpaper::GetMonitorRECT method (shobjidl_core.h)
Retrieves the display rectangle of the specified monitor.
Syntax
HRESULT GetMonitorRECT(
[in] LPCWSTR monitorID,
[out] RECT *displayRect
);
Parameters
[in] monitorID
The ID of the monitor to query. You can get this value through GetMonitorDevicePathAt.
[out] displayRect
A pointer to a RECT structure that, when this method returns successfully, receives the display rectangle of the monitor specified by monitorID, in screen coordinates.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code, including the following.
Return code | Description |
---|---|
|
The monitor specified by monitorID is not currently attached to the system. |
|
A NULL pointer was provided in displayRect. |
|
The ID supplied in monitorID cannot be found. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για