Yep, use GetClassName to get the class name from the window handle, GetWindowLong(hWnd, GWL_HINSTANCE) to get the instance from the window handle, then call GetClassInfoEx to get the class from the instance and class name.