A filter index function can get a pointer to the filter object from SLAPI_PLUGIN_OBJECT in the parameter block.