CreateAndOpenCallBackStruct

Contains information about a create and open operation.

Service:File System Monitoring
Defined In:fshooks.h

Structure

  {
     int             slot;
     int             task;
     int             volume;
     int             dirBase;
     char           *pathString;
     int             pathComponentCount;
     int             nameSpace;
     unsigned long   createAttributeBits;
     unsigned long   requestedAccessRights;
     unsigned long   createFlagBits;
     int             dataStreamNumber;
     int            *fileHandle;
  } CreateAndOpenCallBackStruct;
  

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.

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 followings:

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

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

Flag

Value

Description

DELETE_FILE_ON_CREATE_BIT

0x00000001

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

NO_RIGHTS_CHECK_ON_ CREATE_BIT

0x00000002

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

FILE_WRITE_THROUGH_BIT

0x00000040

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

0x00000100

Any subsequent I/O on this entry is compressed

LEAVE_FILE_COMPRESSED_ DATA_BIT

0x00000200

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

DELETE_FILE_ON_CLOSE_BIT

0x00000400

The file is deleted when it is closed.

NO_RIGHTS_CHECK_ON_OPEN_BIT

0x00010000

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

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.