Share via


IDebugProcess2::GetProcessId

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Gets the GUID for this process.

Syntax

HRESULT GetProcessId(
   GUID* pguidProcessId
);
int GetProcessId(
   out Guid pguidProcessId
);

Parameters

pguidProcessId
[out] Returns the GUID for this process.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

The Globally Unique IDentifier (GUID) identifies this process from all other processes running in the system.

See also