GenericOpenCreateCBStruct

Contains information about a generic open/create operation

Service:File System Monitoring
Defined In:nwfshook.h

Structure

   typedef struct {  
      LONG   connection ;  
      LONG   task ;  
      LONG   volume ;  
      LONG   pathComponentCount ;  
      LONG   dirBase ;  
      BYTE  *pathString ;  
      LONG   nameSpace ;  
      LONG   dataStreamNumber ;  
      LONG   openCreateFlags ;  
      LONG   searchAttributes ;  
      LONG   createAttributes ;  
      LONG   requestedAccessRights ;  
      LONG   returnInfoMask ;  
      LONG  *fileHandle ;  
      BYTE  *openCreateAction ;  
   } GenericOpenCreateCBStruct;
   

Fields

connection

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, creating a file, etc.:

  • 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.

createAttributes

Contains the attributes that are to be set when the entry is created.

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 (NetWare 4.x)
  • 9 Leave this file compressed (NetWare 4.x)
  • 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

Contains 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 (NetWare 4.0 only)
  • 0xFF Bad Action