IMultiMonitorDockingSite::GetMonitor method
Gets the current default monitor.
Syntax
HRESULT GetMonitor(
[in] IUnknown *punkSrc,
[out] HMONITOR *phMon
);
Parameters
-
punkSrc [in]
-
Type: IUnknown*
A pointer to the object implementing the IDockingWindow interface for which the monitor is being requested.
-
phMon [out]
-
Type: HMONITOR*
When the function returns, contains a pointer to the default monitor's handle.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |