Platform SDK: Active Directory, ADSI, and Directory Services |
The OPENQUERYWINDOW structure describes the directory service query to perform and the characteristics of the window to display.
typedef struct { DWORD cbStruct; DWORD dwFlags; CLSID clsidHandler; LPVOID pHandlerParameters; CLSID clsidDefaultForm; IPersistQueryW* pPersistQuery; IPropertyBag* ppbFormParameters; } OPENQUERYWINDOW, * LPOPENQUERYWINDOW;
dwFlags | Description |
---|---|
OQWF_DEFAULTFORM | Indicates that the clsidDefaultForm is valid for selection. |
OQWF_HIDEMENUS | Hides the menu bar. |
OQWF_HIDESEARCHUI | Invokes a window without the core search interface. This is used when you are building a filter dialog. |
OQWF_ISSUEONOPEN | When the query window is opened, initializes and performs a search. |
OQWF_LOADQUERY | When displaying the window, uses the IPersistQuery object to read the parameters back. |
OQWF_OKCANCEL | Places OK and cancel buttons on the bottom right corner. |
OQWF_REMOVEFORMS | Removes the "Find:" label and the drop-down feature from the window. |
OQWF_REMOVESCOPES | Removes the "In:" label and the drop-down feature from the window. |
OQWF_SAVEQUERYONOK | When the window is closed, persists the query using the IPersistQuery object. |
OQWF_SHOWOPTIONAL | Displays optional (admin) forms. |
OQWF_SINGLESELECT | Creates a single selection to view. |
The OPENQUERYWINDOW structure is used in the ICommonQuery::OpenQueryWindow method for hosting the directory Service Find supported in Windows® 2000 and the DSCLIENT packs for Windows NT® 4.0, Windows 95 and Windows 98.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Cmnquery.h.
Unicode: Declared as Unicode and ANSI structures.
Active Directory Display Structures, DSQUERYINITPARAMS, ICommonQuery, IPersistQuery, IPropertyBag