次の方法で共有


ICcServer::GetConnectionFromId (Compact 2013)

3/26/2014

Deprecated.

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

In Windows Embedded Compact 2013, 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

See Also

Reference

ICcServer
Core Connectivity Interfaces