ICcServer::EnumerateConnections (Windows CE 5.0)
This method returns an array of connection IDs that represent active connections.
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 Values
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
OS Version: Windows 2000, Windows XP Home, Windows XP Pro, Windows Server 2003, and Windows Server 2003 Service Pack 1.
Header: CcServer.h.
Link Library: none.
See Also
Send Feedback on this topic to the authors