0
点赞
收藏
分享

微信扫一扫

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

您好 2022-05-19 阅读 56

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.




举报

相关推荐

0 条评论