QueryExecute()

Executes a named query.

Token ID

AFTKN_QUERY_EXECUTE or 849

Syntax

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

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)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

FullUserID As ANSISTRING

(Optional) ID of a proxy user.

FolderListHandle As DWORD

(Optional)

Remarks

The FullUserID and FolderListHandle parameters are tied together. If you desire to use the FolderListHandle parameter you must also specify the FullUserID, otherwise the query will search all folders and the default library.

The first pair of FullUserIds and FolderListHandles are for the main user. Subsequent pairs are for different proxy individuals.