运行指定程序 - RunApp
函数简介
运行指定的应用程序。
接口名称
RunApp
DLL调用
int RunApp(long instance, string appPath, int mode);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| appPath | 字符串 | 要运行的程序路径 |
| mode | 整数型 | 运行模式:0 普通模式,1 加强模式 |
示例
C++
long instance = CreateCOLAPlugInterFace();
// 普通模式启动记事本
int ret = RunApp(instance, "C:\\windows\\system32\\notepad.exe", 0);
Python
# 待补充
返回值
整数型:1 成功,0 失败。
