CreateAndOpenCallBackStruct

Contains information about a create/open operation

Service:File System Monitoring
Defined In:nwfshook.h

Structure

   typedef struct {  
      LONG   connection ;  
      LONG   task ;  
      LONG   volume ;  
      LONG   dirBase ;  
      BYTE  *pathString ;  
      LONG   pathComponentCount ;  
      LONG   nameSpace ;  
      LONG   createAttributeBits ;  
      LONG   requestedAccessRights ;  
      LONG   createFlagBits ;  
      LONG   dataStreamNumber ;  
   } CreateAndOpenCallBackStruct;
   

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.

dirBase

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

pathString

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

pathComponentCount

Contains the number of components in the path.

nameSpace

Contains the name space of the file or directory:

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

Contains the file attributes that the file is to have when it 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 in the following figure.

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

Contains flags that can be set to allow more flexibility in the create operation. These bits are listed in the following table.

DELETE_FILE_ON_CREATE_BIT

If the file already exists, it is deleted. This allows the file to be created again.

NO_RIGHTS_CHECK_ON_OPEN_BIT

The user’s rights to the file are not checked when the file is opened.

NO_RIGHTS_CHECK_ON_CREATE_BIT

The user’s rights to the file are not checked when the file is created.

FILE_WRITE_THROUGH_BIT

When a file write is performed, the write function does not return until the data is actually written to the disk.

ENABLE_IO_ON_COMPRESSED_DATA_BIT

Any subsequent I/O on this entry is compressed

LEAVE_FILE_COMPRESSED_DATA_BIT

After all I/O has been done, leave this file compressed

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