Directory Services

IQueryForm::AddForms

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

HRESULT AddForms( 
  LPCQADDFORMSPROC pAddFormsProc,
  LPARAM lParam
);

Parameters

pAddFormsProc
[in] 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.
lParam
[in] 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 Values

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

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Header: Declared in Cmnquery.h.

See Also

CQAddFormsProc, IQueryForm