The GetClassLong function retrieves the specified 32-bit (long) value from the WNDCLASS structure associated with the specified window.
DWORD GetClassLong(
HWND hWnd, // handle of window int nIndex // offset of value to retrieve );
Return Values
If the function succeeds, the return value is the requested 32-bit value. If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
Reserve extra class memory by specifying a nonzero value in the cbClsExtra member of the WNDCLASS structure used with the RegisterClass function.