SSubRestriction 

The SSubRestriction structure describes a subobject restriction, which is used to impose a restriction against a message s attachments or recipients.

Quick Info

Header file:

MAPIDEFS.H

 

typedef struct _SSubRestriction

     ULONG          ulSubObject;

     LPSRestriction lpRes;

} SSubRestriction;

 

Members

ulSubObject

Subobject identified in the RES_SUBRESTRICTION restriction type supplied for the rt member of the SRestriction1TRSEKP structure. Possible values are PR_MESSAGE_RECIPIENTS or PR_MESSAGE_ATTACHMENTS.

lpRes

Pointer to an SRestriction1TRSEKP structure.

 

Remarks

The most common objects to support subrestrictions are folder contents tables and search-results folders. These objects may support restricting a search using PR_MESSAGE_ATTACHMENTS4HE.45 or PR_MESSAGE_RECIPIENTS11I0I35 as a restriction to find a message that has an attachment or a recipient that meets the other given restrictions. If an implementation does not support subrestrictions, it returns for a subrestricted search the error value MAPI_E_TOO_COMPLEX.

See Also

SRestriction