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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for