SE_connection_get_instance_users

Obtains a list of user information

Usage syntax

LONG SE_connection_get_instance_users (SE_CONNECTION handle, SE_INSTANCE_USER **user_list_addr, LONG *user_count_addr);

Parameters
handle SDE server connection handle
user_list_addr The pointer to the pointer variable to receive the address of the array of user structures
user_count_addr The pointer to the LONG variable to receive the user count
Description

This function returns a pointer to a list of all the users connected to the instance. When no longer required, the list should be freed using SE_instance_free_users().

The following information is returned in the SE_INSTANCE_USER structure for each user:

typedef struct {
LONG svr_id                          /* SDE server SDE-ID */
LONG svr_pid;                        /* SDE Server's OS level PID */
LONG cstime;                         /* Connection start time */
BOOL direct_connect                  /* Direct connection TRUE/FALSE */
BOOL xdr_needed;                     /* Use XDR Boolean */
ACHAR sysname[SE_MAX_OWNER_LEN + 1];  /* Client operating system name */
ACHAR nodename[SE_MAX_OWNER_LEN + 1]; /* Client host node name */
ACHAR username[SE_MAX_OWNER_LEN + 1]; /* User name */
} SE_INSTANCE_USER;

 

Returns

SE_SUCCESS
SE_FAILURE

SE_INVALID_POINTER

SE_IOMGR_NOT_AVAILABLE

SE_NET_FAILURE

SE_OUT_OF_CLMEM

SE_OUT_OF_SVMEM

SE_SERVICE_NOT_FOUND