共用方式為


ICorDebugProcess::GetID 方法

取得進程的作業系統 (OS) 識別碼。

語法

HRESULT GetID([out] DWORD *pdwProcessId);

參數

pdwProcessId [出]進程的唯一識別碼。

需求

平台: 請參閱 .NET 支援的作業系統

標題: CorDebug.idl、CorDebug.h

圖書館: CorGuids.lib

.NET 版本: 自 .NET Framework 1.0 起提供