Microsoft Windows CE 3.0  

GetClassInfo

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This function retrieves information about a window class.

BOOL
GetClassInfo(
HINSTANCE
hInstance
,
LPCTSTR
lpClassName
,
LPWNDCLASS
lpWndClass
);

Parameters

hInstance
Handle to the instance of the application that created the class. To retrieve information about classes defined by the system (such as buttons or list boxes), set this parameter to NULL.
lpClassName
Long pointer to a null-terminated string that contains the class name. The name must be that of a preregistered class or a class registered by a previous call to the RegisterClassfunction. Alternatively, this parameter can be an integer atom. If so, it must be a global atom created by a previous call to the GlobalAddAtomfunction. The atom, a 16-bit value less than 0xC000, must be in the low-order word of lpClassName; the high-order word must be zero.
lpWndClass
Long pointer to a WNDCLASSstructure that receives the information about the class.

Return Values

Nonzero indicates that the function finds a matching class and successfully copies the data. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

If lpClassNameis an atom, it must be an atom returned from RegisterClass.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

GetClassLong, GetClassName, GetLastError, RegisterClass, WNDCLASS