// wdm.h
VOID IoRemoveLinkShareAccessEx(
[in] PFILE_OBJECT FileObject,
[in, out] PSHARE_ACCESS ShareAccess,
[in, out, optional] PLINK_SHARE_ACCESS LinkShareAccess,
ULONG IoShareAccessFlags
);
View the official Windows Driver Kit DDI referenceNo description available.
The IoRemoveLinkShareAccessEx routine removes the access and share access information in a file system Share Access structure for a given open instance.
FileObject [in]Pointer to the file object, which usually is being closed by the current thread.
ShareAccess [in, out]A pointer to the common share-access data structure that is associated with FileObject. Drivers should treat this structure as opaque.
LinkShareAccess [in, out, optional]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.
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.