Share via


ICcServer::GetConnectionFromId (Windows Embedded CE 6.0)

1/5/2010

This method returns an active reference to a connection object, given a ID.

In Windows Embedded CE 6.0, CoreCon HLAPI has been deprecated.

Syntax

HRESULT GetConnectionFromId(
  BSTR bstrConnectionId,
  ICcConnection** ppiConnection
);

Parameters

  • bstrConnectionId
    [in] A connection ID representing an unique connection.
  • ppiConnection
    [out, retval] ICcConnection object represented by bstrConnectionId.

Return Value

If the method fails, it returns an HRESULT error code. Otherwise, the method returns one of the following values.

Value Description

S_OK

Indicates success.

E_INVALIDARG

Indicates invalid input arguments.

Requirements

Header ccserver.h
Windows Windows 2000, Windows Server 2003, Windows Server 2003 Service Pack 1, Windows XP Home, Windows XP Pro

See Also

Reference

ICcServer
Core Connectivity Interfaces