Fortune Telling Collection - Ziwei fortune-telling - How does MFC judge whether a program (such as Thunder) is running?
How does MFC judge whether a program (such as Thunder) is running?
Simply put, you can traverse the processes, then compare the process names, and enumerate the processes using Process32First and Process32Next 32 Next.
Simple, you can directly use HWND hWnd = FindWindow(NULL, _T ("Thunder 7")); Function. If NULL is returned, it is not found. . It is best to use FindWindow combined with Microsoft Spy++ to judge the specific information of the window. .
Spy++ generally comes with tools to install Visual Studio.
- Previous article:Xiu Xiu, Xia Ziwei.
- Next article:Please tell some big communities in Xi 'an (residents 1000 or above).
- Related articles
- There are no stars in the palace of life. How can I find myself?
- When do cherry tomatoes ripen?
- Gui You Wei Zi Husband and Wife Palace
- Tianmen Ziweimen
- Who knew that Wei Wei's The Orient had a brief introduction to the Orient?
- Lagerstroemia indica in the subway
- Nanyang wisteria exhibition
- How to write traditional Chinese characters in God Bless the People?
- Female students tell fortune according to the second constellation in the first day of the winter month of the lunar calendar in 2023.
- Why doesn't Lagerstroemia indica germinate after planting?