RxLockEnumerator is called from a network mini-redirector to enumerate the file locks on an FCB.
BOOLEAN RxLockEnumerator( IN OUT PMRX_SRV_OPEN SrvOpen, IN OUT PVOID *ContinuationHandle, OUT PLARGE_INTEGER FileOffset, OUT PLARGE_INTEGER LockRange, OUT PBOOLEAN IsLockExclusive );
A pointer to the SRV_OPEN structure on the FCB to be enumerated.
A pointer to a handle passed back and forth representing the state of the enumeration. If this parameter is a NULL pointer, then this is the start of an lock enumeration.
A pointer to the file offset of the returned lock.
A pointer to the lock range of the returned lock.
A pointer to a BOOLEAN indicating if the returned lock is an exclusive lock.
RxLockEnumerator returns TRUE on success indicating that the returned lock data is valid. The RxLockEnumerator routine returns or FALSE on failure when no lock data is found or the end of the list of locks has been reached.
RxLockEnumerator is normally called from a network min-redirector to enumerate the file locks on an FCB. RxLockEnumerator gets one lock on each call. so the caller needs to keep the enumeration state internally. As a result, only one enumeration process can be in progress at any time.
The RxLockEnumerator routine needs to allocate non-paged pool memory in order to enumerate locks. Consequently, RxLockEnumerator can fail if the memory allocation fails.
|Header||rxprocs.h (include Rxprocs.h, Mrxfcb.h, Fcb.h)|