Delphi form function GetDesktopWindow

GetDesktopWindow

Function: returns a handle to the desktop window. The desktop window covers the entire screen. The desktop window is the drawing area of ​​all icons and other windows.

The function prototype: HWND GetDesktopWindow (VOID) 
Parameters: None. 
Return value: The function returns a handle to the desktop window. 
Quick: Windows NT: 3.1 or later; Windows: 95 or later:; 
the header file: Winuser.h; library: user32.lib. 

//statement:
GetDesktopWindow: HWND; {no parameters;} return to the desktop window handle
// Example:
where
  h: HWND;
begin
  h := GetDesktopWindow;
  ShowMessage(IntToStr(h));
end;

 

Created: 2020.01.03 Updated:

Source: https: //www.cnblogs.com/guorongtao/p/12143089.html

Guess you like

Origin www.cnblogs.com/guorongtao/p/12143089.html