设置UAC状态 - SetUAC
函数简介
开启或关闭UAC(用户账户控制)。
接口名称
SetUAC
DLL调用
int SetUAC(long instance, int enable);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| enable | 整数型 | 是否启用UAC |
示例
C++
long instance = CreateCOLAPlugInterFace();
// 关闭UAC
int ret = SetUAC(instance, 0);
// 开启UAC
ret = SetUAC(instance, 1);
Python
# 待补充
返回值
整数型:1 成功,0 失败。
