c语言怎么查看123.exe进程是否存在,如果存在printf(“存在”);如果不存在printf(“不存在”);

日期:2021-05-24 07:41:41 人气:1

c语言怎么查看123.exe进程是否存在,如果存在printf(“存在”);如果不存在printf(“不存在”);

普通C++没有这种功能,只有操作系统提供类似功能,看看windows上的代码。不会的函数自己取查msdn
#include <windows.h>
#include <tlhelp32.h>
#include <stdio.h>
// Forward declarations:
BOOL GetProcessList( );
BOOL ListProcessModules( DWORD dw
    A+
热门评论