fs_getslotinfo

Returns information about the specified slot.

Library:LibC
Classification:Novell
Service:File System Monitoring

Syntax

  #include <fshooks.h> 
   
  int fs_getslotinfo (
     int         slot,
     char       *name,
     uint16_t   *objectType,
     uint32_t   *objectId,
     char       *loginTime );
  

Parameters

slot

(IN) Specifies a slot ID returned in an event structure.

name

(OUT) Points to the name associated with the slot.

objectType

(OUT) Points to the type of object logged in to the slot.

objectId

(OUT) Points to the object ID associated with the slot.

loginTime

(OUT) Points to the date and time when the object logged in.

Return Values

If successful, returns 0. Otherwise, returns a nonzero error code.

Decimal

Constant

Description

79

ENOTSUP

The volume is not mounted or the server does not support file system hooks.

107

EBADCONN

The specified slot does not contain a logged in user.

Remarks

Some event structures return a slotID. The fs_getslotinfo function allows you to obtain information about the user who caused the event.

See Also