Platform SDK: Active Directory, ADSI, and Directory Services

Messages Communicated through User Interfaces

The following table describes the messages that directory services may send.

Message Value Description
CQPM_CLEARFORM 0x00000006 A message sent to clear a form, wParam = 0 and lParam = 0. Declared in cmnquery.h.
CQPM_ENABLE 0x00000003 A message sent to enable (wParam=TRUE) or disable (wParam = FALSE) a page, (lParam=0), declared in cmnquery.h.
CQPM_GETPARAMETERS 0x00000005 A message sent for retrieving form parameters, wParam=0, lParam receives the data allocated. Declared in cmnquery.h.
CQPM_HANDLERSPECIFIC 0x10000000 A handler specific message, declared in cmnquery.h.
CQPM_HELP 0x00000008 A message for requesting help information, wParam = 0, lParam = LPHELPINFO. Declared in cmnquery.h.
CQPM_INITIALIZE 0x00000001 A message sent to initialize a page, declared in cmnquery.h.
CQPM_PERSIST 0x00000007 A message for persisting a form, wParam = fRead, lParam = IPersistQuery. Declared in cmnquery.h.
CQPM_RELEASE 0x00000002 A message sent to release a page, declared in cmnquery.h.
CQPM_SETDEFAULTPARAMETERS 0x00000009 A message to set default parameters for a form, wParam = 0, lParam = OPENQUERYWINDOW. Declared in cmnquery.h.
DSBM_CHANGEIMAGESTATE 102 A message sent before changing the state of the icon on the tree, such as an expand or collapse of the tree, (lParam = ADsPath), declared in dsclient.h.
DSBM_CONTEXTMENU 104 The dialog receives a WM_CONTEXTMENU message, (lParam = window handle), declared in dsclient.h.
DSBM_HELP 103 A WM_HELP message received by the dialog, (lParam = LPHELPINFO), declared in dsclient.h.
DSBM_QUERYINSERT 100 for Unicode, 101 for ANSI. A message sent to the callback function as each item is inserted into the tree view, (lParam = PDSBITEM) allowing the caller to modify the state, icon, and name of the display, declared in dsclient.h.
DSPROP_ATTRCHANGED_MSG "DsPropAttrChanged" A message sent for synchronizing property pages and the directory service administration tools, declared in dsclient.h.
DSQPM_GETCLASSLIST CQPM_HANDLERSPECIFIC+0 A page message sent to the form pages for retrieving a list of classes for query, used by the field selector and property well to build its list of display classes. wParam = flags and lParam = LPLPDSQUERYCLASSLIST, declared in dsquery.h.
DSQPM_HELPTOPICS (CQPM_HANDLERSPECIFIC+1) A page message sent to the form pages for handling the "Help Topics" request. wParam = 0, lParam = hWndParent, declared in dsquery.h.