Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetDesktopWindow
Collapse the table of content
Expand the table of content

GetDesktopWindow function

Retrieves a handle to the desktop window. The desktop window covers the entire screen. The desktop window is the area on top of which other windows are painted.

Syntax


HWND WINAPI GetDesktopWindow(void);

Parameters

This function has no parameters.

Return value

Type:

Type: HWND

The return value is a handle to the desktop window.

Examples

For an example, see Initializing a Dialog Box.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
GetWindow
Conceptual
Windows

 

 

Community Additions

ADD
Show:
© 2015 Microsoft