int GetClassName(hWnd,lpClassName,nMaxCount)
This function retrieves the class name of the window specified by the hWnd parameter.
| Parameter | Type/Description |
| hWnd | HWND Identifies the window whose class name is to be retrieved. | |
| lpClassName | LPSTR Points to the buffer that is to receive the class name. | |
| nMaxCount | int Specifies the maximum number of bytes to be stored in the lpClassName parameter. If the actual name is longer, a truncated name is copied to the buffer. |
The return value specifies the number of characters actually copied to lpClassName.
The return value is zero if the specified class name is not valid.