Export (0) Print
Expand All
Expand Minimize

IoSetFileObjectIgnoreSharing routine

The IoSetFileObjectIgnoreSharing routine sets a file object to ignore file sharing access checks.

Syntax


NTSTATUS IoSetFileObjectIgnoreSharing(
  PFILE_OBJECT FileObject
);

Parameters

FileObject

Pointer to a file object for the file.

Return value

IoSetFileObjectIgnoreSharing returns STATUS_SUCCESS or an appropriate NTSTATUS code such as one of the following:

Return codeDescription
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.

 

Requirements

Version

This routine is available starting with Windows 7.

Header

Ntddk.h (include Ntddk.h, Ntifs.h, or Fltkernel.h)

Library

Ntoskrnl.lib

IRQL

Any

See also

IoIsFileObjectIgnoringSharing

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft