Compartilhar via


IDebugProcess2::GetProcessId

Gets the GUID for this process.

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

Reference

IDebugProcess2