Below search method will be useful when you need to find a window with no caption. FindWindow will not work correctly in such a instance. You can make use of the below method to do that. //get the handle to the top window HWND h = ::GetTopWindow(0); while ( h) { TCHAR buf[100]; ::GetClassName( h,