获取进程ID - GetWindowProcessId
函数简介
获取指定窗口所在的进程ID。
接口名称
GetWindowProcessId
DLL调用
long GetWindowProcessId(long ola, long hwnd);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| hwnd | 长整数型 | 窗口句柄。 |
示例
long pid = GetWindowProcessId(instance, hwnd);
printf("进程ID: %ld\n", pid);
返回值
长整数型:窗口所在的进程ID。
