IDebugQueryEngine2::GetEngineInterface

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 custom debug engine (DE) interface.

Syntax

HRESULT GetEngineInterface( 
   IUnknown** ppUnk
);
int GetEngineInterface( 
   out object ppUnk
);

Parameters

ppUnk
[out] Returns an IUnknown object represents the debug engine (DE), and which can be queried for any other valid interface associated with a DE (for example IDebugEngine2 or IDebugEngineLaunch2).

Return Value

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

Remarks

The resulting interface should be used with care because calling through interfaces retrieved from this method circumvents the session debug manager's processing and may result in the SDM getting into a bad state or generating errors while debugging.

See also