Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves a handle to the main frame window.
Syntax
HRESULT GetMainWindow(
[out] HWND *phwnd
);
Parameters
[out] phwnd
A pointer to a variable that receives the window handle.
Return value
This method can return one of these values.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Target Platform | Windows |
| Header | mmc.h |
| DLL | Mmcndmgr.dll |