Export (0) Print
Expand All

2.12.7.1 BitMaskRestriction Structure

01234567891012345678920123456789301

RestrictType

BitmapRelOp

PropTag

...

Mask

...

RestrictType (1 byte): An unsigned integer. This value indicates the type of restriction (2) and MUST be set to 0x06.

BitmapRelOp (1 byte): An unsigned integer. This value specifies how the server MUST perform the masking operation. The value MUST be one of the values listed in the following table.

Operator name

Value

Meaning

BMR_EQZ

0x00

Perform a bitwise AND operation on the value of the Mask field with the value of the property PropTag field, and test for being equal to 0 (zero).

BMR_NEZ

0x01

Perform a bitwise AND operation on the value of the Mask field with the value of the property PropTag field, and test for not being equal to 0 (zero).

PropTag (4 bytes): An unsigned integer. This value is the property tag of the property to be tested. Its property type MUST be single-valued Int32, as specified in section 2.11.1.

Mask (4 bytes): An unsigned integer. The bitmask to be used for the AND operation.

The BitMaskRestriction structure performs a bitwise AND operation by using the bitmask from the Mask field and the value of the property PropTag field. If the result is 0 (zero), the BMR_EQZ operator is satisfied. If the result is not 0 (zero) — that is, if the property value has at least one of the same bits set as the Mask field — the BMR_NEZ operator is satisfied.

Show:
© 2014 Microsoft