hFile (HFILE) - input
pflUnlock (PFILELOCK) - input
pflLock (PFILELOCK) - input
timeout (ULONG) - input
flags (ULONG) - input
This parameter has the following bit fields:
Bit
This bit defines a request for atomic locking. If this bit is set to 1 and the lock range is equal to the unlock range, an atomic lock occurs. If this bit is set to 1 and the lock range is not equal to the unlock range, an error is returned.
If this bit is set to 0, then the lock may or may not occur atomically with the unlock.
This bit defines the type of access that other processes may have to the file range that is being locked.
If this bit is set to 0 (the default), other processes have no access to the locked file range. The current process has exclusive access to the locked file range, which must not overlap any other locked file range.
If this bit is set to 1, the current process and other processes have shared read-only access to the locked file range. A file range with shared access may overlap any other file range with shared access, but must not overlap any other file range with exclusive access.
ulrc (APIRET) - returns
DosSetFileLocks returns one of the following values: