| Debugging Tools for Windows | 
The DebugConnect and DebugConnectWide functions create a new client object and return an interface pointer to it. The client object will be connected to a remote host.
HRESULT
  DebugConnect(
    IN PCSTR  RemoteOptions,
    IN REFIID  InterfaceId,
    OUT PVOID *  Interface
    );
HRESULT
  DebugConnectWide(
    IN PCWSTR  RemoteOptions,
    IN REFIID  InterfaceId,
    OUT PVOID *  Interface
    );
#ifdef UNICODE
#define DebugConnectT DebugConnectWide
#else
#define DebugConnectT DebugConnect
#endif
This method may also return error values. See Return Values for more details.
As with IUnknown::QueryInterface, when the returned interface is no longer needed, its IUnknown::Release method should be called.
Headers: Defined in dbgeng.h. Include dbgeng.h.