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.
posted @ 2007-05-29 11:48  ahuo  阅读(615)  评论(0编辑  收藏  举报