Group: Window Class - Library: user32
Listing child windows for the Windows desktop
Simple Window Viewer
Retrieving information about the main VFP window
Retrieving Window Class information for the VFP window
Drawing icons associated with the VFP main window
int GetClassName(
HWND hWnd, // handle to window
LPTSTR lpClassName, // class name
int nMaxCount // size of class name buffer
); DECLARE INTEGER GetClassName IN user32;
INTEGER hWnd,;
STRING @ lpClassName,;
INTEGER nMaxCount hWnd [in] Handle to the window and, indirectly, the class to which the window belongs.
lpClassName [out] Pointer to the buffer that is to receive the class name string.
nMaxCount [in] Specifies the length, in TCHARs, of the buffer pointed to by the lpClassName parameter.
If the function succeeds, the return value is the number of TCHARs copied to the specified buffer. If the function fails, the return value is zero.
Home