// wdm.h
VOID IoUpdateLinkShareAccessEx(
PFILE_OBJECT FileObject,
PSHARE_ACCESS ShareAccess,
PLINK_SHARE_ACCESS LinkShareAccess,
ULONG IoShareAccessFlags
);
View the official Windows Driver Kit DDI referenceNo description available.
The IoUpdateLinkShareAccessEx routine updates the access and share access for the given file object.
FileObjectPointer to the file object, which usually is being closed by the current thread.
ShareAccessA pointer to the common share-access data structure that is associated with FileObject. Drivers should treat this structure as opaque.
LinkShareAccessA pointer to the common link share-access data structure (LINK_SHARE_ACCESS) that is associated with FileObject. Drivers should treat this structure as opaque.
IoShareAccessFlagsA 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.
Before calling IoUpdateLinkShareAccessEx, the driver must successfully call IoCheckLinkShareAccess with the Update parameter set to FALSE.