2.3.4.1 AndRestriction_r, OrRestriction_r

The AndRestriction_r, OrRestriction_r restriction types share a single RPC encoding. The AndOrRestriction_r structure is an encoding of the both the AndRestriction data structure and the OrRestriction data structure defined in [MS-OXCDATA]. These two data structures share the same data layout, so a single encoding is included in the NSPI Protocol. The sense of the data structure's use is derived from the context of its inclusion in the RestrictionUnion_r data structure defined in this specification.

The permissible number of Restriction structures in the AndRestriction_r and OrRestriction_r data structures exceeds that of the AndRestriction and OrRestriction structures. The semantic meaning is otherwise unchanged from the AndRestriction and OrRestriction data structures, as context dictates.

 typedef struct _AndOrRestriction_r {
   [range(0,100000)] DWORD cRes;
   [size_is(cRes)] Restriction_r* lpRes;
 } AndRestriction_r,
  OrRestriction_r;

cRes: Encodes the RestrictCount field of the AndRestriction and OrRestriction data structures. This value MUST NOT exceed 100,000.

lpRes: Encodes the Restricts field of the AndRestriction and OrRestriction data structures.

Show: