IoCheckDesiredAccess - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

NTSTATUS IoCheckDesiredAccess(
  PACCESS_MASK DesiredAccess,
  ACCESS_MASK  GrantedAccess
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-iocheckdesiredaccess)

IoCheckDesiredAccess function

Description

The IoCheckDesiredAccess routine determines whether the requested access rights to a file can be granted.

Parameters

DesiredAccess

Pointer to a variable containing a mask that identifies the requested access to the file.

GrantedAccess

Mask value that specifies the access currently granted to the file.

Return value

IoCheckDesiredAccess returns STATUS_SUCCESS if DesiredAccess is allowed given the current GrantedAccess; otherwise, it returns STATUS_ACCESS_DENIED.

See also

SeAccessCheck