Edit

Share via


IDebugCoreServer3::CreateInstanceInServer

Creates an instance of a debug engine on the server.

Syntax

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