SearchPage Event
Fired for every page returned from a search operation.
Syntax
ANSI (Cross Platform) virtual int FireSearchPage(LDAPSearchPageEventParams *e);
typedef struct {
int MessageId;
const char *DN;
int ResultCode;
const char *ResultDescription;
int CancelSearch; int reserved; } LDAPSearchPageEventParams; Unicode (Windows) virtual INT FireSearchPage(LDAPSearchPageEventParams *e);
typedef struct {
INT MessageId;
LPCWSTR DN;
INT ResultCode;
LPCWSTR ResultDescription;
BOOL CancelSearch; INT reserved; } LDAPSearchPageEventParams;
- (void)onSearchPage:(int)messageId :(NSString*)DN :(int)resultCode :(NSString*)resultDescription :(int*)cancelSearch;
#define EID_LDAP_SEARCHPAGE 11 virtual INT IPWORKS_CALL FireSearchPage(INT &iMessageId, LPSTR &lpszDN, INT &iResultCode, LPSTR &lpszResultDescription, BOOL &bCancelSearch);
Remarks
This event is where the client can decide whether to continue with the Search operation or not. The signature is very similar to the SearchComplete event, with the addition of a CancelSearch parameter. If the search should be canceled (no more pages), the CancelSearch parameter should be set to true.