QueryExecuteEx()

Execute a query with additional options for each search source.

Token ID

AFTKN_QUERY_EXECUTEEX or 901

Syntax

VOID QueryExecuteEX(
     [ANSISTRING QuickFinderQuery]; 
     [DWORD Filter]; 
     [ENUM WhereToSearch]; 
     [ENUM OfficialVersion]; 
     [ANSISTRING Libraries]; 
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [ANSISTRING FullUserID]; 
     [DWORD SearchOption];
     [DWORD FolderListHandle];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption];
     [ANSISTRING FullUserID]; 
     [DWORD FolderListHandle];
     [DWORD SearchOption])

Parameters

QuickFinderQuery As ANSISTRING

(Optional) Name of the query.

Filter As DWORD

(Optional) Filter associated with the query.

WhereToSearch As ENUM

(Optional) Enumerated values:

  • 2 RemoteMailBox
  • 4 MasterMailBox
  • 8 NNTP
  • 16 IMAP
OfficialVersion As ENUM

(Optional) Enumerated values:

  • 654 OfficialOnly
Libraries As ANSISTRING

(Optional). Separates multiple libraries by a comma. In the form: Library.PostOffice.Domain.

FullUserID As ANSISTRING

(Optional) ID of the main user.

FolderListHandle As DWORD

(Optional)

SearchOption As DWORD

A combination of the following flags:

  • 0x00000000 SEARCH_SOURCE_OPTION_NONE
  • 0x00000001 SEARCH_SOURCE_OPTION_USERDB
  • 0x00000002 SEARCH_SOURCE_OPTION_USER_PERSONAL_ARCHIVE
  • 0x00000004 SEARCH_SOURCE_OPTION_USER_EXTERNAL_ARCHIVE