BOOL Chusov::Win32::Security::CheckFileAccess | ( | HANDLE | hFile, |
DWORD | dwAccessMask | ||
) |
Checks if a current user's access to a file handle is allowed by security attributes of the handle.
[in] | hFile | is a handle to a file, which access is checked against. |
dwAccessMask | is a standard access mask specifying a type of the access requested. The value is composed of Windows API constants, and it may file specific access control values, standard access control values, generic access control values or any combination of thereof. |
TRUE
, if the requested access is allowed, or FALSE
otherwise.Chusov::Exceptions::ChsvCodeException | A system-level error occurred. |