msos2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
FIOLOCKREC (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSFILEMGR
 
typedef struct _FIOLOCKREC {    /* flr */
    USHORT  fShare;
    ULONG   cbStart;
    ULONG   cbLength;
} FIOLOCKREC;
 
The FIOLOCKREC structure contains information used by the DosFileIO function
for locking a file. This structure is preceded by a FIOLOCKCMD structure
that specifies the number of FIOLOCKREC structures to be used.
 
Field     Description
────────────────────────────────────────────────────────────────────────────
 
fShare    Specifies whether other processes can read the portion of the file
          that is locked. A value of FIO_SHAREREAD allows other processes to
          read the file; a value of FIO_NOSHARE prevents other processes
          from reading the file.
 
cbStart   Specifies the offset of the lock region. The offset is established
          from the beginning of the file.
 
cbLength  Specifies the length (in bytes) of the region to be locked.
 
See Also
 
DosFileIO, FIOLOCKCMD