Share via


ICcServer::EnumerateConnections (Windows Embedded CE 6.0)

1/5/2010

This method returns an array of connection IDs that represent active connections.

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

Syntax

HRESULT EnumerateConnections(
  [in] DWORD   dwSizeActual,
  [out] DWORD*  pdwSizeReturned,
  [out,size_is(dwSizeActual), length_is(d*pdwSizeReturned)] BSTR[] Connections,
  [out] VARIANT_BOOL* pfMoreEntries
);

Parameters

  • dwSizeActual
    Size of the array passed in.
  • pdwSizeReturned
    Number of entries returned.
  • Connections
    Array holding all connection IDs.
  • pfMoreEntries
    VARIANT_TRUE if the current number of active connections exceeds dwSizeActual.

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 input arguments are invalid; that is, pdwSizeReturned is NULL, Connections is NULL, or pfMoreEntries is NULL.

Remarks

Clients can get more information about a connection using the method GetConnectionFromId.

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