The GetClassName function retrieves the name of the class to which the specified window belongs.
int GetClassName(
HWND hWnd, |
// handle of window |
LPTSTR lpClassName, |
// address of buffer for class name |
int nMaxCount |
// size of buffer, in characters |
); |
If the function succeeds, the return value is the number of characters copied to the specified buffer.
If the function fails, the return value is zero. To get extended error information, call GetLastError.