FindWindow(api)确认程序是否在运行

HWND hWnd =::FindWindow(NULL,"计算器"); //得到窗口句柄
HWND FindWindow(      

    LPCTSTR lpClassName,     LPCTSTR lpWindowName );
 
lpWindowName
[in] Pointer to a null-terminated string that specifies
the window name (the window's title).
If this parameter is NULL, all window names match.

你可能感兴趣的:(window)