IQueryForm::AddForms method (cmnquery.h)

The IQueryForm::AddForms method is called to allow a query form extension object to add forms to the query dialog box.

Syntax

HRESULT AddForms(
  [in] LPCQADDFORMSPROC pAddFormsProc,
  [in] LPARAM           lParam
);

Parameters

[in] pAddFormsProc

Pointer to a callback function of the form CQAddFormsProc. The query form extension calls this function with the supplied lParam one time for each form to be added.

[in] lParam

Contains a 32-bit value that is defined by the query handler. This value must be passed as the lParam parameter in the CQAddFormsProc call.

Return value

Returns S_OK if successful or a standard HRESULT failure code otherwise.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header cmnquery.h
Library Uuid.lib
DLL Dsquery.dll

See also

CQAddFormsProc

IQueryForm