启用VT驱动 - EnabletVtDriver
函数简介
启用或禁用VT驱动。
接口名称
EnabletVtDriver
DLL调用
int32_t EnabletVtDriver(int64_t instance, int32_t enable);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| enable | 整数型 | 是否启用VT驱动(1 启用,0 禁用)。 |
示例
int64_t instance = CreateCOLAPlugInterFace();
// 启用VT驱动
int32_t ok = EnabletVtDriver(instance, 1);
printf("EnabletVtDriver: %d\n", ok);
DestroyCOLAPlugInterFace(instance);
返回值
1 成功,0 失败。
注意事项
- 需要驱动已正确加载并具备管理员权限。
- 启用VT驱动后,才可使用VT相关的伪造内存读写接口。
