// ntddk.h
BOOLEAN IoIsFileObjectIgnoringSharing(
PFILE_OBJECT FileObject
);
View the official Windows Driver Kit DDI referenceNo description available.
The IoIsFileObjectIgnoringSharing routine determines if a file object is set with the option to ignore file sharing access checks.
FileObjectPointer to a file object for the file.
TRUE if file sharing access checks are ignored. Otherwise, FALSE.