CreateFileCallBackStruct

Contains information about a create file operation.

Service:File System Monitoring
Defined In:fshooks.h

Structure

  typedef struct{
     int             slot;
     int             task;
     int             volume;
     int             dirBase;
     char           *pathString;
     int             pathComponentCount;
     int             nameSpace;
     unsigned long   createAttributeBits;
     unsigned long   createFlagBits;
     int             dataStreamNumber;
     int            *fileHandle;
  } CreateFileCallBackStruct;
  

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.

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. For a list of possible values, see Section 30.8.5, NetWare File Attributes.

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
fileHandle

Points to the handle of the file.