NWGetObjectConnectionNumbers
Returns a list of server connection numbers for clients logged in with the specified object name and type
#include <nwconnec.h>
or
#include <nwcalls.h>
NWCCODE N_API NWGetObjectConnectionNumbers (
NWCONN_HANDLE conn,
const nstr8 N_FAR *pObjName,
nuint16 objType,
pnuint16 numConns,
NWCONN_NUM N_FAR *connList,
nuint16 maxConns);
uses calwin32
Function NWGetObjectConnectionNumbers
(connHandle : NWCONN_HANDLE;
const pObjName : pnstr8;
objType : nuint16;
pNumConns : pnuint16;
pConnHandleList : pNWCONN_NUM;
maxConns : nuint16
) : NWCCODE;
These are common return values; see Return Values (Return Values for C) for more information.
If no client is logged in using the specified object name and object type, the list length returned by the server is set to zero.
The numConns parameter value is used to index the array pointed to by the connList parameter.
If an invalid object name or object type is passed on a 3.x or above server, NWGetObjectConnectionNumbers will return SUCCESS and the numConns parameter will be zero indicating there are no connections with the server.