系统权限启动 - SystemStart
函数简介
以系统用户权限启动进程。
接口名称
SystemStart
DLL调用
int SystemStart(long instance, string applicationName, string commandLine);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| applicationName | 字符串 | 应用程序名称 |
| commandLine | 字符串 | 命令行,如:aabbcc |
示例
C++
long instance = CreateCOLAPlugInterFace();
// 以SYSTEM权限启动cmd
int pid = SystemStart(instance, "C:\\windows\\system32\\cmd.exe", "");
// pid > 0 表示启动成功
Python
# 待补充
返回值
成功返回子进程ID,失败返回0。
