IoRemoveShareAccess

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.

Parameters

FileObject

Points to the file object, which usually is being closed by the current thread.

ShareAccess

Points to the share-access structure that describes how the open file object is currently being accessed.

Comments

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.

See Also

IoCheckShareAccess, IoSetShareAccess, IoUpdateShareAccess