SE_instance_get_users

Gets the users of the specified ArcSDE instance.

Usage syntax

LONG SE_instance_get_users (const CHAR *server, const CHAR *instance, SE_INSTANCE_USER **user_list_addr, LONG *user_count_addr);

Parameters
server The server name
instance The ArcSDE instance name
user_list_addr Pointer to an array of SE_INSTANCE_USER structures
user_count_addr The number of SE_INSTANCE_USER structures returned
Description

SE_instance_get_users returns an array of SE_INSTANCE_USER structures, one for each user currently connected to the specified ArcSDE instance on the specified node. The default instance name is esri_sde. The application should free the list when it is done with it by a call to 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_INSTANCE_NOT_AVAILABLE

SE_INSTANCE_TOO_EARLY

SE_INVALID_POINTER

SE_INVALID_SERVER

SE_IOMGR_NOT_AVAILABLE

SE_NET_FAILURE

SE_OUT_OF_CLMEM

SE_OUT_OF_SVMEM

SE_SERVICE_NOT_FOUND