Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The IoUpdateLinkShareAccessEx routine updates the access and share access for the given file object.
Syntax
void IoUpdateLinkShareAccessEx(
PFILE_OBJECT FileObject,
PSHARE_ACCESS ShareAccess,
PLINK_SHARE_ACCESS LinkShareAccess,
ULONG IoShareAccessFlags
);
Parameters
FileObject
Pointer to the file object, which usually is being closed by the current thread.
ShareAccess
A pointer to the common share-access data structure that is associated with FileObject. Drivers should treat this structure as opaque.
LinkShareAccess
A pointer to the common link share-access data structure (LINK_SHARE_ACCESS) that is associated with FileObject. Drivers should treat this structure as opaque.
IoShareAccessFlags
A bitmask of these flags:
IO_SHARE_ACCESS_NON_PRIMARY_STREAM (0x00000080) specifies that the stream is neither the primary data stream nor a directory stream.
Return value
None
Remarks
Before calling IoUpdateLinkShareAccessEx, the driver must successfully call IoCheckLinkShareAccess with the Update parameter set to FALSE.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1903 |
Target Platform | Universal |
Header | wdm.h |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | PASSIVE_LEVEL |