导出驱动 - ExportDriver
函数简介
将内置或指定驱动导出到目标路径。
接口名称
ExportDriver
DLL调用
int32_t ExportDriver(int64_t instance, char* driver_path, int32_t type);
参数说明
参数名 | 类型 | 说明 |
---|---|---|
instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
driver_path | 字符串 | 导出驱动保存路径。 |
type | 整数型 | 驱动类型。 |
示例
int64_t instance = CreateCOLAPlugInterFace();
int32_t ok = ExportDriver(instance, "C:/temp/ola_driver.sys", 0);
printf("ExportDriver: %d\n", ok);
DestroyCOLAPlugInterFace(instance);
返回值
1 成功,其他失败。
注意事项
- 目标路径需具备写入权限。