BOOL GetClassInfo(hInstance,lpClassName,lpWndClass)
This function retrieves information about a window class. The hInstance parameter identifies the instance of the application that created the class, and the lpClassName parameter identifies the window class. If the function locates the specified window class, it copies the WNDCLASS data used to register the window class to the WNDCLASS data structure pointed to by lpWndClass.
Parameter | Type/Description |
hInstance | HANDLE Identifies the instance of the application that created the class. To retrieve information on classes defined by Windows (such as buttons or list boxes), set hInstance to NULL. | |
lpClassName | LPSTR Points to a null-terminated string that contains the name of the class to find. If the high-order word of this parameter is NULL, the low-order word is assumed to be a value returned by the MAKEINTRESOURCE macro used when the class was created. | |
lpWndClass | LPWNDCLASS Points to the WNDCLASS structure to which the function will copy the class information. |
The return value is TRUE if the function found a matching class and successfully copied the data; the return value is FALSE if the function did not find a matching class.
The lpszClassName, lpszMenuName, and hInstance fields in the WNDCLASS data structure are not returned by this function. The menu name is not stored internally and cannot be returned. The class name is already known since it is passed to this function. The GetClassInfo function returns all other fields with the values used when the class was registered.