IDebugCoreServer3::CreateInstanceInServer

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

Creates an instance of a debug engine on the server.

Syntax

HRESULT CreateInstanceInServer(
   LPCWSTR  szDll,
   WORD     wLangId,
   REFCLSID clsidObject,
   REFIID   riid,
   void**   ppvObject
);
int CreateInstanceInServer(
   string     szDll,
   ushort     wLangID,
   ref Guid   clsidObject,
   ref Guid   riid,
   out IntPtr ppvObject
);

Parameters

szDll
[in] Path to the dll that implements the CLSID specified in the clsidObject parameter. If this is NULL, then COM's CoCreateInstance function is called.

wLangId
[in] Locale of the debug engine. This can be 0 if the SetLocale method should not be called.

clsidObject
[in] CLSID of the debug engine to create.

riid
[in] Interface ID of the specific interface to retrieve from the class object.

ppvObject
[out] IUnknown interface from the instantiated object. Cast or marshal this object to the desired interface.

Return Value

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

See also