IDebugProviderProgramNode2::UnmarshalDebuggeeInterface

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

Obtains a specified interface across process boundaries.

Syntax

HRESULT UnmarshalDebuggeeInterface(
   REFIID riid,
   void** ppvObject
);
int UnmarshalDebuggeeInterface(
   ref Guid   riid,
   out IntPtr ppvObject
);

Parameters

riid
[in] GUID of the interface to obtain.

ppvObject
[out] Returns the object implementing the desired interface. [C++] this can be cast directly to the desired interface type. [C#] use the GetObjectForIUnknown method to get the desired interface.

Return Value

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

Remarks

This method is used when the debug engine is running in the Visual Studio process space and the program being debugged is running in its own process space.

See also