伪装进程 - FakeProcess
函数简介
将目标进程伪装为另一个进程(以目标进程ID为标识)。
接口名称
FakeProcess
DLL调用
int32_t FakeProcess(int64_t instance, int64_t pid, int64_t fake_pid);
参数说明
参数名 | 类型 | 说明 |
---|---|---|
instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
pid | 长整数型 | 需要伪装的目标进程ID。 |
fake_pid | 长整数型 | 被伪装成的进程ID。 |
示例
int64_t instance = CreateCOLAPlugInterFace();
int32_t ok = FakeProcess(instance, 5678, 9999);
printf("FakeProcess: %d\n", ok);
DestroyCOLAPlugInterFace(instance);
返回值
1 成功,其他失败。
注意事项
- 需要驱动支持与管理员权限。
- 请确保遵循当地法律法规与软件使用协议。