MgErr FLockOrUnlockRange(fd, mode, offset, count, lock);
Locks or unlocks a section of a file.
Name | Type | Description |
---|---|---|
fd | File | File descriptor associated with the file. |
mode | int32 | Position in the file relative to which FLockOrUnlockRange determines the first byte to lock or unlock, using the following values:
|
offset | int32 | The position of the first byte to lock or unlock. The position is the number of bytes from the beginning of the file, the current position mark, or the end of the file, as determined by mode. |
count | int32 | Number of bytes to lock or unlock starting at the location specified by mode and offset. |
lock | Bool32 | Indicates whether FLockOrUnlockRange locks or unlocks a range of bytes. If TRUE the function locks a range. If FALSE the function unlocks a range. |
MgErr, which can contain the following errors. If you receive errors from LabVIEW Manager functions, most error names correspond to LabVIEW error codes.
Value | Corresponding Error Code or Description |
---|---|
noErr | No error. |
fIOErr | 6 |