VOID
IoRemoveShareAccess(
IN PFILE_OBJECT FileObject,
IN OUT PSHARE_ACCESS ShareAccess
);
IoRemoveShareAccess removes the access and share-access information for a given open instance of a file object.
This routine is a reciprocal to IoUpdateShareAccess.
Callers of IoRemoveShareAccess must be running at IRQL PASSIVE_LEVEL and in the context of the thread that requested a close of the given file object.