Hi,
Can anyone confirm that the RConnection API to enumerate the number of clients of a connection actually works?
I am using the following code but on experimentation i only ever get a connEnumBuf().iCount of 0, even if i have
several applications open & actively using the same AP. Any help on this would be greatly appreciated.
TConnEnumArgBuf connEnumBuf;
connEnumBuf().iIndex = pIndex;
TInt result = iConnection.Control(KCOLConnection, KCoEnumerateConnectionClients, connEnumBuf);
if (result == KErrNone)
{
result = connEnumBuf().iCount;
TConnGetClientInfoArgBuf connClientBuf;
for (TInt j=0; j<result; j++)
{
connClientBuf().iIndex = j;
if (iConnection.Control(KCOLConnection, KCoGetConnectionClientInfo, connClientBuf) == KErrNone)
{
TInt uid = connClientBuf().iClientInfo.iUid.iUid;
TInt process = connClientBuf().iClientInfo.iProcessId;
TInt thread = connClientBuf().iClientInfo.iThreadId;
}
}
}



