Directory Services

ICommonQuery

The ICommonQuery interface is used to programatically display the system-supplied directory service query dialog box. To create an instance of this interface, call CoCreateInstance with the CLSID_CommonQuery class identifier as shown in the following code example.

HRESULT hr;
ICommonQuery *pCommonQuery;
 
hr = CoCreateInstance(CLSID_CommonQuery,
	NULL,
	CLSCTX_INPROC_SERVER,
	IID_ICommonQuery,
	(LPVOID*)&pCommonQuery);

Methods in Vtable Order

The ICommonQuery interface inherits the methods of the standard COM interface IUnknown.

In addition, ICommonQuery defines the following method.

Method Description
OpenQueryWindow Displays the directory service query dialog box.

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

Active Directory Display Interfaces