终止进程 - TerminateProcess
函数简介
终止指定进程。
接口名称
TerminateProcess
DLL调用
int TerminateProcess(long instance, long pid);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| pid | 长整数型 | 进程ID |
示例
C++
long instance = CreateCOLAPlugInterFace();
// 终止指定PID的进程
long pid = 1234;
int ret = TerminateProcess(instance, pid);
Python
# 待补充
返回值
整数型:1 成功,0 失败。
