Menu Close

What is GetDesktopWindow?

What is GetDesktopWindow?

GetDesktopWindow returns a handle to the desktop window. The desktop window is the window that makes up the desktop of the computer — that is, the screen. If the function fails, it will return 0 instead of the handle.

How do I get a desktop window handle?

If you want to get a handle to the Explorer desktop window, you need to do some additional work beyond simply calling the GetDesktopWindow function. In particular, you need to traverse the child windows of the actual desktop window to find the one that Explorer uses to display icons.

What does hInstance mean?

handle to an instance
hInstance is something called a “handle to an instance” or “handle to a module.” The operating system uses this value to identify the executable (EXE) when it is loaded in memory. The instance handle is needed for certain Windows functions—for example, to load icons or bitmaps. hPrevInstance has no meaning.

What is hInstance in Win32?

hInstance is something called a “handle to an instance” or “handle to a module.” The operating system uses this value to identify the executable (EXE) when it is loaded in memory. The instance handle is needed for certain Windows functions—for example, to load icons or bitmaps.

What does WinMain mean?

WinMain is the conventional name used for the application entry point.

What is GetProcAddress API?

GetProcAddress verifies that the specified ordinal is in the range 1 through the highest ordinal value exported in the . def file. The function then uses the ordinal as an index to read the function’s address from a function table.

What is a hInstance?

What is WinMain function?

The WinMain function is identical to wWinMain, except the command-line arguments are passed as an ANSI string. The Unicode version is preferred. You can use the ANSI WinMain function even if you compile your program as Unicode. To get a Unicode copy of the command-line arguments, call the GetCommandLine function.