⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 terminateprocess介绍.txt

📁 vc使用技巧汇集
💻 TXT
字号:
结束一个进程所使用的函数为:

BOOL TerminateProcess(
  HANDLE hProcess, // 进程句柄
  UINT uExitCode   // 退出代码
);

退出代码可以在其他进程中通过调用GetExitCodeProcess获得。

BOOL GetExitCodeProcess(
  HANDLE hProcess,     // handle to the process
  LPDWORD lpExitCode   // address to receive termination status
);

如果进程尚未退出,函数将会返回STILL_ACTIVE。

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -