IDebugSystemObjects3::GetCurrentProcessId 方法 (dbgeng.h)

GetCurrentProcessId 方法返回当前进程的引擎进程 ID。

语法

HRESULT GetCurrentProcessId(
  [out] PULONG Id
);

参数

[out] Id

接收当前进程的引擎进程 ID。

返回值

此方法也可能返回错误值。 有关更多详细信息 ,请参阅返回值

返回代码 说明
S_OK
方法成功。

注解

有关进程的详细信息,请参阅 线程和进程

要求

要求
目标平台 桌面
标头 dbgeng.h (包括 Dbgeng.h)