Bewerken

Delen via


IoRemoveLinkShareAccessEx function (wdm.h)

The IoRemoveLinkShareAccessEx routine removes the access and share access information in a file system Share Access structure for a given open instance.

Syntax

void IoRemoveLinkShareAccessEx(
  [in]                PFILE_OBJECT       FileObject,
  [in, out]           PSHARE_ACCESS      ShareAccess,
  [in, out, optional] PLINK_SHARE_ACCESS LinkShareAccess,
                      ULONG              IoShareAccessFlags
);

Parameters

[in] FileObject

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

[in, out] ShareAccess

A pointer to the common share-access data structure that is associated with FileObject. Drivers should treat this structure as opaque.

[in, out, optional] 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

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