ICorDebugManagedCallback2::CreateConnection Method
Notifies the debugger that a new connection has been created.
HRESULT CreateConnection (
[in] ICorDebugProcess *pProcess,
[in] CONNID dwConnectionId,
[in] WCHAR *pConnName
);
Parameters
Parameter | Description |
---|---|
pProcess |
[in] A pointer to an ICorDebugProcess Interface object that represents the process in which the connection was created |
dwConnectionId |
[in] The ID of the new connection. |
pConnName |
[in] A pointer to the name of the new connection. |
Remarks
A CreateConnection callback will be fired in either of the following cases:
When a debugger attaches to a process that contains connections. In this case, the runtime will generate and dispatch a CreateConnection event and a ICorDebugManagedCallback2::ChangeConnection Method event for each connection in the process.
When a host calls ICLRDebugManager::BeginConnection Method in the Hosting (Unmanaged API Reference) API.
Requirements
Platforms: Windows 2000, Windows XP, Windows Server 2003 family
Header: CorDebug.idl
Library: CorGuids.lib
.NET Framework Version: 2.0
See Also
Reference
ICorDebugManagedCallback2 Interface
ICorDebugManagedCallback Interface