2.2.6.1.2.7 BitmaskRestriction Structure
The BitmaskRestriction structure is used to perform a bitwise AND operation on the value of the property.
The BitmaskRestriction structure has the following format.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RestrictionType |
|||||||||||||||||||||||||||||||
RelOp |
|||||||||||||||||||||||||||||||
PropertyType |
PropertyID |
||||||||||||||||||||||||||||||
Mask |
RestrictionType (4 bytes): This field specifies the type of restriction and MUST be set to RES_BITMASK (0x00000006) for the BitmaskRestriction structure.
RelOp (4 bytes): This field specifies the relational operator that is to be used in the search. The value MUST be one of the following.
Relational operator name |
Value |
Meaning |
---|---|---|
BMR_EQZ |
0x00000000 |
Perform a bitwise AND operation between the value of the Mask field and the value of the property identified by the PropertyID and PropertyType fields. The comparison returns TRUE if the result of the operation is zero. |
BMR_NEZ |
0x00000001 |
Perform a bitwise AND operation between the value of the Mask field and the value of the property identified by the PropertyID and PropertyType fields. The comparison returns TRUE if the result of the operation is not zero. |
PropertyType (2 bytes): This field specifies the type of the property. Valid types are specified in section 2.2.6.1.3.
PropertyID (2 bytes): This field specifies the property ID of the property.
Mask (4 bytes): This field specifies the bitmask that the application MUST use in a bitwise AND operation with the value of the property when performing the search.