移除受保护路径 - ProtectFileRemoveProtectedPath
函数简介
移除受保护路径。(高级版功能,普通版无法使用)
接口名称
ProtectFileRemoveProtectedPath
DLL调用
int32_t ProtectFileRemoveProtectedPath(int64_t instance, string path);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| path | 字符串 | 要移除保护的文件或文件夹路径。 |
示例
int64_t instance = CreateCOLAPlugInterFace();
int32_t ok = ProtectFileRemoveProtectedPath(instance, "C:\\Important\\file.txt");
printf("ProtectFileRemoveProtectedPath: %d\n", ok);
DestroyCOLAPlugInterFace(instance);
返回值
1 成功,其他失败。
注意事项
- 需要驱动支持与管理员权限。
