#include <shellapi.h> ShellExecuteA(0, "open", "notepad++.exe", "index.html", NULL, SW_SHOWNORMAL);
#include <winuser.h> HWND winName = FindWindow(NULL, "計算器"); if (winName != NULL) { // 找到窗口 } else { // 未找到窗口 }