ModifyDirEntryCallBackStruct

Contains information about a modify directory 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  attributeMatchBits;
     int            targetNameSpace;
     struct
     {
        char          *MModifyName;
        unsigned long  MFileAttributes;
        unsigned long  MFileAttributesMask;
        uint16_t       MCreateDate;
        uint16_t       MCreateTime;
        uint32_t       MOwnerID;
        uint16_t       MLastArchivedDate;
        uint16_t       MLastArchivedTime;
        uint32_t       MLastArchivedID;
        uint16_t       MLastUpdatedDate;
        uint16_t       MLastUpdatedTime;
        uint32_t       MLastUpdatedID;
        uint16_t       MLastAccessedDate;
        unsigned short MInheritanceGrantMask;
        unsigned short MInheritanceRevokeMask;
        size_t         MMaximumSpace;
        time_t         MLastUpdatedInSeconds;
     } *modifyVector;
     unsigned long  modifyBits;
     int            allowWildCardsFlag;
  } ModifyDirEntryCallBackStruct;
  

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
attributeMatchBits

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.

targetNameSpace

Contains the name space of the entry that is to be changed (see the values for nameSpace, above).

modifyVector

Contains the modify vector used in the operation. See ModifyStructure.

modifyBits

Contains the modify bits used in the operation:

  • 0x0001L MModifyNameBit
  • 0x0002L MFileAtrributesBit
  • 0x0004L MCreateDateBit
  • 0x0008L MCreateTimeBit
  • 0x0010L MOwnerIDBit
  • 0x0020L MLastArchivedDateBit
  • 0x0040L MLastArchivedTimeBit
  • 0x0080L MLastArchivedIDBit
  • 0x0100L MLastUpdatedDateBit
  • 0x0200L MLastUpdatedTimeBit
  • 0x0400L MLastUpdatedIDBit
  • 0x0800L MLastAccessedDateBit
  • 0x1000L MInheritanceRestrictionMaskBit
  • 0x2000L MMaximumSpaceBit
  • 0x4000L MLastUpdatedInSecondsBit
allowWildcardsFlag

Indicates whether wildcards are allowed in the path name:

  • Nonzero = Wildcards allowed
  • 0 = No wildcards allowed.

Remarks

The ModifyStructure contains the information that is used to change a directory entry.

ModifyStructure

Syntax

  struct
     {
        char           *MModifyName;
        unsigned long   MFileAttributes;
        unsigned long   MFileAttributesMask;
        uint16_t        MCreateDate;
        uint16_t        MCreateTime;
        uint32_t        MOwnerID;
        uint16_t        MLastArchivedDate;
        uint16_t        MLastArchivedTime;
        uint32_t        MLastArchivedID;
        uint16_t        MLastUpdatedDate;
        uint16_t        MLastUpdatedTime;
        uint32_t        MLastUpdatedID;
        uint16_t        MLastAccessedDate;
        unsigned short  MInheritanceGrantMask;
        unsigned short  MInheritanceRevokeMask;
        size_t          MMaximumSpace;
        time_t          MLastUpdatedInSeconds;
     }  *modifyVector;
  

Fields

MModifyName

Points to the new directory name.

MFileAttributes

Specifies new file attributes. For a list of possible values, see Section 30.8.5, NetWare File Attributes.

MFileAttributesMask

Specifies a new file attribute mask.

MCreateDate

Specifies new creation date.

MCreateTime

Specifies new creation time.

MOwnerID

Specifies new owner ID.

MLastArchivedDate

Specifies the last archived date.

MLastArchivedTime

Specifies the last archived time.

MLastArchivedID

Specifies the last archived ID.

MLastUpdatedDate

Specifies the last updated date.

MLastUpdatedTime

Specifies the last updated time.

MLastUpdatedID

Specifies the last updated ID.

MLastAccessedDate

Specifies the last accessed date.

MInheritanceGrantMask

Specifies the inheritance grant mask.

MInheritanceRevokeMask

Specifies the inheritance revoke mask.

MMaximumSpace

Specifies the maximum space.

MLastUpdatedInSeconds

Specifies the last update in seconds.