VOID
IoUpdateShareAccess(
IN PFILE_OBJECT FileObject,
IN OUT PSHARE_ACCESS ShareAccess
);
IoUpdateShareAccess updates the share access for the given file object, usually when the file is being opened.
Parameters
FileObject
Points to a referenced file object representing the file or associated device object for which to update the share access.
ShareAccess
Specifies the type of share access the caller would like to update. This parameter can be one of the following values:
Value | Meaning |
FILE_SHARE_READ | Other open operations may be performed on the file for read access. |
FILE_SHARE_WRITE | Other open operations may be performed on the file for write access. |
FILE_SHARE_DELETE | Other open operations may be performed on the file for delete access. |
Comments
Callers of IoUpdateShareAccess must be running at IRQL PASSIVE_LEVEL. The caller must have made a successful call to IoCheckShareAccess with Update set to FALSE before it called IoUpdateShareAccess.
See Also