-->

ShellExecuteA()与FindWindow()的使用

2020-07-14 16:08发布

ShellExecuteA()

#include <shellapi.h>

ShellExecuteA(0, "open", "notepad++.exe", "index.html", NULL, SW_SHOWNORMAL);

FindWindow()

#include <winuser.h>

HWND winName = FindWindow(NULL, "计算器");
if (winName != NULL)
{
      // 找到窗口
}
else
{
      // 未找到窗口
}
原文: https://www.cnblogs.com/fabric-summoner/p/13299181.html
标签: