// ntddk.h
NTSTATUS IoSetFileObjectIgnoreSharing(
PFILE_OBJECT FileObject
);
View the official Windows Driver Kit DDI referenceNo description available.
The IoSetFileObjectIgnoreSharing routine sets a file object to ignore file sharing access checks.
FileObjectPointer to a file object for the file.
IoSetFileObjectIgnoreSharing returns STATUS_SUCCESS or an appropriate NTSTATUS code such as one of the following:
| Return code | Description |
|---|---|
| STATUS_NOT_FOUND | The option information for FileObject was not found. The status of sharing access checking cannot be set. |
| STATUS_INSUFFICIENT_RESOURCES | The option information was not created for FileObject. The status of sharing access checking cannot be set. |