IFPCSessionsMonitor::ExecuteQuery method

Applies to: desktop apps only

The ExecuteQuery method starts a new query using the specified filters on all servers in the array.

Syntax


HRESULT ExecuteQuery(
  [in, ref]  FPCFilterExpressions &Filter,
  [in]       IFPCFilterExpressions *pFilter,
  [in]       long nBufferSize
);

Parameters

Filter [in, ref]

Reference to an FPCFilterExpressions collection that represents the filters to be used in the query.

pFilter [in]

Pointer to an IFPCFilterExpressions interface that represents the collection of filters to be used in the query.

nBufferSize [in]

A 32-bit integer value that specifies the buffer size.

Return value

C++

This method returns S_OK if the call is successful; otherwise, it returns an error code.

VB

This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.

Remarks

After this method is called, the EndQuery method must be called to end the query.

Examples

For a VBScript code example that shows how to use this method to run a query for finding and displaying the active sessions on a Forefront TMG computer, see Displaying Active Sessions.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

DLL

Msfpccom.dll

See also

FPCSessionsMonitor

 

 

Build date: 7/12/2010

Show: