Share via


IDebugProgram2::GetProgramId

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 a GUID for this program.

Syntax

HRESULT GetProgramId( 
   GUID* pguidProgramId
);
int GetProgramId( 
   out Guid pguidProgramId
);

Parameters

pguidProgramId
[out] Returns the GUID for this program.

Return Value

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

Remarks

A debug engine (DE) must return the program identifier originally passed to the OnAttach or Attach methods. This allows identification of the program across debugger components.

See also