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
♦