Page tree
Skip to end of metadata
Go to start of metadata

Returns whether a user has been granted a permission on a permissions object.

Syntax

Parameters

objectGuid
Type: GUID
The UUID of the instance of the permissions object you want to check. This object must have been previously registered with PermissionsRegisterObject
permission
Type: ePermission

The permission you wish to check

hUser
Type: void *
The user you wish to check the permissions against
dwFlags
Type: DWORD

Optional flags to control the check.

Can be either 0 or PERMISSIONS_CHECK_SUPPRESSLOG to suppress log output of the check. Use PERMISSIONS_CHECK_SUPPRESSLOG in situations where you need to be performant or the generation of check messages would introduce unnecessary noise in the log files.

Return Value

Type: DWORD
A set of bit flags specifying the permissions granted to the user for this object. See Permissions Mask Flags

Remarks

None

Examples

See Also

Permissions Mask Flags

PermissionsAccessCheck