, 0x0000000000000001 "ViewListItems", , ( 1). , , "UseClientIntegration" 0x0000001000000000, (0). , Windows - , , , 4611686844973976575 10 400000C072040BFF ( 16).
, . , . , , , , #:
bool CheckMask( long Mask, long TestPermission ) {
return (Mask && TestPermission) > 0;
}
long mask = 4611686844973976575;
const long ViewListItems = 0x0000000000000001;
bool HasPermission_ViewListItems = CheckMask(mask, ViewListItems);
const long UseClientIntegration = 0x0000001000000000;
bool HasPermission_UseClientIntegration = CheckMask(mask, UseClientIntegration);