Just a follow-up to my previous question.
I even looked into passing messages to the Search Plug-in using DDE.
However, to my dismay, there seems to be no way to change the search location with DDE.
They give you the following struct which has a very limited amount of options...
typedef struct _QueryData {
eQLangType qlt;
boolean bOverrideWordOptions;
uns32 nWordOptions;
uns16 nMaxDocs;
uns16 nQueryOffset;
uns16 nNumSorts; //deprecated in Acrobat 6.0
uns16 nSortOffset[QP_MAX_SORT_FIELDS]; //deprecated in Acrobat 6.0
boolean bSortWays[QP_MAX_SORT_FIELDS]; //deprecated in Acrobat 6.0
unsigned char cData[1];
} QueryData;
My conclusion is that it is not possible to use the Search Plug-in to search in the Active Document using IAC...
(the closest you can get is "FindText" from CAcroPDDoc)