GetObjectConnectionNumbers
Returns a list of connection numbers that indicates how many times an object is logged in to the server and the connection number used for each login
#include <nwconn.h>
int GetObjectConnectionNumbers (
char *objectName,
WORD objectType,
WORD *numberOfConnections,
WORD *connectionList,
WORD maxConnections);
The following table lists return values and descriptions.
This function passes the objectName, objectType, and maxConnections parameters and returns the numberOfConnections and connectionList parameters.
When an object is logged in to a server from a workstation, NLM, or other program, the server places the object’s ID number in a table. If an object logs in from three workstations and two NLM applications, its object ID number appears in the table five times.
The position of the workstation or NLM address in the table is a connection number. Each server can have a maximum number of connections. This function call returns a count and a list of the connection numbers under which the object is logged in.
If an NLM is logged in, its address is always the same as that of the server it is running on.