SE_instance_get_locks |
Returns a list of layer locks in use on a specified ArcSDE instance.
LONG SE_instance_get_locks (const CHAR *server, const CHAR *instance, SE_INSTANCE_LOCK **lock_list_addr, LONG *lock_count_addr);
server | The name of the server ArcSDE is running on |
instance | The ArcSDE instance name |
lock_list_addr | Pointer to an array of returned SE_INSTANCE_LOCK structures |
lock_count_addr | The number of SE_INSTANCE_LOCK structures returned |
SE_instance_get_locks returns an array of SE_INSTANCE_LOCK structures, one for each layer 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_instance_free_locks.
The following information is returned in the SE_INSTANCE_LOCK structure:
typedef struct {
LONG pid;
SHORT layer_id;
LONG lock_type;
} SE_INSTANCE_LOCK;
The lock types are:
SE_INSTANCE_LAYER_READ_LOCK
SE_INSTANCE_LAYER_WRITE_LOCK
SE_INSTANCE_AREA_READ_LOCK
SE_INSTANCE_AREA_WRITE_LOCK
SE_INSTANCE_AUTO_LOCK
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