FilterSetSource()

Filters items according to their source. You must specify a source if ItemCreate created an empty filter.

Token ID

AFTKN_FILTER_SET_SOURCE or 730

Syntax

VOID FilterSetSource(ENUM FilterHandleType; 
                      ENUM BoxType; 
                      ENUM BitOn)

Parameters

FilterHandleType As ENUM

Unique filter identifier, returned by FilterCreate():

  • 315 Default
BoxType As ENUM

Specifies the box type, as follows:

6

Inbox

7

Outbox

198

Personal

BitOn As ENUM

Specifies how to filter the item type, as follows:

147

DontCare

0

No

Filters out the specified item type.

1

Yes

Passes the specified item type through the filter, but no others.