Directory Services |
The OPENQUERYWINDOW structure is used with the ICommonQuery::OpenQueryWindow method to initialize the directory service query dialog box.
typedef struct {
DWORD cbStruct;
DWORD dwFlags;
CLSID clsidHandler;
LPVOID pHandlerParameters;
CLSID clsidDefaultForm;
IPersistQuery* pPersistQuery;
union {
void* pFormParameters;
IPropertyBag* ppbFormParameters;
}; } OPENQUERYWINDOW,
*LPOPENQUERYWINDOW;
Value | Meaning |
---|---|
OQWF_DEFAULTFORM | Causes the query dialog box to select the form specified by the clsidDefaultForm member on initialization. |
OQWF_HIDEMENUS | Causes the dialog box to hide the menu bar. |
OQWF_HIDESEARCHUI | Causes the query dialog box to be created without the standard search user interface. This includes the Find Now, Stop and Clear All pushbuttons. |
OQWF_ISSUEONOPEN | Causes the query to be executed when the query dialog box is first displayed. |
OQWF_LOADQUERY | Causes the query dialog box to retrieve the query from the IPersistQuery interface in the pPersistQuery member. |
OQWF_OKCANCEL | Causes the query dialog box to display the OK and Cancel pushbuttons, if applicable. The buttons actually displayed in the dialog box will depend on the form used and other specified flags. |
OQWF_PARAMISPROPERTYBAG | Indicates that the ppbFormParameters member contains an IPropertyBag interface. |
OQWF_REMOVEFORMS | Causes the query dialog box to be created without the form chooser label and drop-down list represented by the Find: label. |
OQWF_REMOVESCOPES | Causes the query dialog box to be created without the scope label and drop-down list represented by the In: label. |
OQWF_SAVEQUERYONOK | Causes the query dialog box, when closed, to save the query to the IPersistQuery interface in the pPersistQuery member. |
OQWF_SHOWOPTIONAL | Causes the query dialog box to display optional forms in the form drop-down list. Optional forms are forms that specify the CQFF_ISOPTIONAL flag in the dwFlags member of the CQFORM structure. |
OQWF_SINGLESELECT | Causes the query dialog box to make the query results list single-selection. |
Value | Meaning |
---|---|
CLSID_DsQuery | This is the standard directory service query and currently the only query supported. |
Value | Meaning |
---|---|
CLSID_DsQuery | Contains a pointer to a DSQUERYINITPARAMS structure. |
Value | Meaning |
---|---|
CLSID_DsFindAdvanced | Identifies the Custom Search query form. |
CLSID_DsFindComputer | Identifies the Computers query form. |
CLSID_DsFindContainer | Identifies the Organizational Units query form. |
CLSID_DsFindDomainController | Identifies the Domain Controllers query form. |
CLSID_DsFindFrsMembers | Identifies the FRS Members query form. |
CLSID_DsFindObjects | This query form is not currently supported. |
CLSID_DsFindPeople | Identifies the Users, Contacts, and Groups query form. |
CLSID_DsFindPrinter | Identifies the Printers query form. |
CLSID_DsFindVolume | Identifies the Shared Folders query form. |
Property Name | Description |
---|---|
printName | Contains the initial printer name. |
printLocation | Contains the initial printer location. |
printModel | Contains the initial model name and/or number of the printer. |
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Header: Declared in Cmnquery.h.
ICommonQuery::OpenQueryWindow, IPersistQuery, CQFORM, DSQUERYINITPARAMS, Active Directory Display Structures