GenericOpenCreateCBStruct

Contains information about a generic open/create operation.

Service:File System Monitoring
Defined In:fshooks.h

Structure

  typedef struct
  {
     int             slot;
     int             task;
     int             volume;
     int             pathComponentCount;
     int             dirBase;
     char           *pathString;
     int             nameSpace;
     int             dataStreamNumber;
     unsigned long   openCreateFlags;
     unsigned long   searchAttributes;
     unsigned long   createAttributes;
     unsigned long   requestedAccessRights;
     unsigned long   returnInfoMask;
     int            *fileHandle;
     char           *openCreateAction;
  } GenericOpenCreateCBStruct;
  

Fields

slot

Contains the connection number of the entity requesting the operation.

task

Contains the task number of the entity requesting the operation.

volume

Contains the number of the volume that the directory entry is on.

pathComponentCount

Contains the number of components in the path.

dirBase

Contains the directory base (directory number) of the file or directory.

pathString

Contains the NetWare-internal path string of the file or directory.

nameSpace

Contains the name space of the file or directory:

  • 0 DOS
  • 1 MACINTOSH
  • 2 NFS
  • 3 FTAM
  • 4 LONG
  • 5 NT
dataStreamNumber

Contains a number identifying the data stream type of the file or directory:

  • 0 Primary Data Stream (DOS)
  • 1 Macintosh Resource Fork
  • 2 FRAM Extra Data Fork
openCreateFlags

Contains the operation requested, such as opening a file.

  • 0x01 Open
  • 0x02 Truncate
  • 0x08 Create
searchAttributes

Contains a bit mask of the file attributes that are affected by this operation. That is, entries that have file attributes matching this bit mask are affected. For a list of possible values, see Section 30.8.8, Search Attributes for Traditional Volumes.

createAttributes

Contains the attributes that are to be set when the entry is created. For a list of possible values, see Section 30.8.5, NetWare File Attributes.

requestedAccessRights

Indicates how the entry is to be opened, such as Read Only, Read Write, Compatibility mode, and so on. The bits in this mask are defined as follows:

  • 0 Read only mode
  • 1 Write only mode
  • 2 Deny read mode
  • 3 Deny write mode
  • 4 Compatibility mode
  • 6 File write through mode
  • 8 Enable I/O on compressed data
  • 9 Leave this file compressed
  • 12 Always read ahead
  • 13 Never read ahead
returnInfoMask

Contains a bit mask defining the information that is requested for this operation. This bit mask is defined as follows:

  • 0 Entry name
  • 1 Entry size
  • 2 File attributes
  • 3 Data stream information
  • 4 Total data stream size
  • 5 Extended attributes (EA) information
  • 6 Archive information
  • 7 Modify information
  • 8 Creation information
  • 9 Name space information
  • 10 Directory information
  • 11 Rights
  • 12 Data stream size in sectors
  • 13 Data stream logical size
fileHandle

Points to the NetWare file handle of the entry to be created.

openCreateAction

Contains the results of the requested action:

  • 0x01 Open
  • 0x02 Created
  • 0x04 Truncated
  • 0x08 Compressed
  • 0xFF Bad Action