Window SDK 中的函数原型为: HWND FindWindow( LPCTSTR lpClassName, // pointer to class name LPCTSTR lpWindowName // pointer to window name ); 窗口的类名 调用 FindWindow函数 返回值是0; 这是调试的结果
试试用 FindWindowEx
FindWindow 有这样的说明 The FindWindow function retrieves a handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows.