创建子进程 - CreateChildProcess
函数简介
创建子进程。
接口名称
CreateChildProcess
DLL调用
int CreateChildProcess(long instance, string applicationName, string commandLine, string currentDirectory, int showType, int parentProcessId)
参数说明
参数名 | 类型 | 说明 |
---|---|---|
instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
applicationName | 字符串 | 进程路径,如C:\windows\system32\notepad.exe |
commandLine | 字符串 | 命令行 如:aabbcc |
currentDirectory | 字符串 | 启动目录, 可空 |
showType | 整数型 | 显示方式 1隐藏 2普通激活 3最小化激活 4最大化激活 5普通不激活 6最小化不激活,省略默认为普通激活 |
parentProcessId | 整数型 | 父进程ID,支持系统进程ID,只要是调试权限能Open的进程 |
示例
// 示例代码待补充
返回值
成功返回子进程ID,失败返回0