SE_instance_get_objectlocks

Returns a list of object locks in use on a specified ArcSDE instance.

Usage syntax

LONG SE_instance_get_objectlocks (const CHAR *server, const CHAR *instance, SE_OBJECTLOCKINFO **lock_list_addr, LONG *lock_count_addr);

Parameters
server The server name
instance The ArcSDE instance name
lock_list_addr Pointer to an array of returned SE_OBJECTLOCKINFO structures
lock_count_addr The number of SE_OBJECTLOCKINFO structures returned
Description

SE_instance_get_objectlocks returns an array of SE_OBJECTLOCKINFO structures, one for each lock currently in place on 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 by calling SE_objectlock_free_list.

Unlike other SE_instance_get_*locks() functions, this function returns an opaque pointer. We can however retrieve the information from the SE_OBJECTLOCKINFO structure using the
SE_objectlockinfo_*() functions.

The following information is returned in the SE_INSTANCE_OBJECT_LOCK structure:

Application ID
Object ID
Object type
Lock mode
Owner

The lock types are:

SE_OBJECTLOCK_NO_LOCK_SET
SE_OBJECTLOCK_SHARED_LOCK
SE_OBJECTLOCK_EXCLUSIVE_AUTOLOCK
Returns

SE_SUCCESS
SE_FAILURE

SE_INSTANCE_NOT_AVAILABLE

SE_INSTANCE_TOO_EARLY

SE_INVALID_POINTER

SE_IOMGR_NOT_AVAILABLE

SE_NET_FAILURE

SE_OUT_OF_CLMEM

SE_OUT_OF_SVMEM

SE_SERVICE_NOT_FOUND