IoCheckDesiredAccess function (ntifs.h)

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

Syntax

NTSTATUS IoCheckDesiredAccess(
  PACCESS_MASK DesiredAccess,
  ACCESS_MASK  GrantedAccess
);

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.

Requirements

Requirement Value
Target Platform Windows
Header ntifs.h (include Ntifs.h)

See also

SeAccessCheck