查询进程是否在白名单中 - ProtectFileQueryWhitelist
函数简介
查询进程是否在白名单中。(高级版功能,普通版无法使用)
接口名称
ProtectFileQueryWhitelist
DLL调用
int32_t ProtectFileQueryWhitelist(int64_t instance, int64_t pid);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| pid | 长整数型 | 进程ID。 |
示例
int64_t instance = CreateCOLAPlugInterFace();
int32_t ok = ProtectFileQueryWhitelist(instance, 3456);
if (ok == 1) {
printf("进程在白名单中\n");
} else {
printf("进程不在白名单中或查询失败\n");
}
DestroyCOLAPlugInterFace(instance);
返回值
1-在白名单中, 0-不在白名单中或查询失败。
注意事项
- 需要驱动支持与管理员权限。
