Directory Services

DSCOLUMN

The DSCOLUMN structure is used to represent a column in the directory services query dialog box. An array of this structure is contained in the DSQUERYPARAMS structure.

typedef struct {
DWORD dwFlags;
INT fmt;
INT cx;
INT idsName;
LONG offsetProperty;
DWORD dwReserved; } DSCOLUMN,
*LPDSCOLUMN;

Members

dwFlags
Not currently used.
fmt
Contains one of the list view column formatting values that indicates how the column is displayed. The possible values are defined for the fmt member of the LVCOLUMN structure.
cx
Contains the width, in pixels, of the column.
idsName
Contains the string table identifier for the column header string. To retrieve this string, call LoadString with the hInstance member of the DSQUERYPARAMS structure and this member for the string identifier.
offsetProperty
Indicates the name of the attribute displayed in the column. This can be one of the following values.
Value Meaning
DSCOLUMNPROP_ADSPATH The column displays the value of the ADsPath of the object.
DSCOLUMNPROP_OBJECTCLASS The column displays the value of the objectClass of the object.

If this member does not contain one of these values, this member contains the offset, in bytes, from the address of the DSQUERYPARAMS structure to a null-terminated Unicode string that contains the name of the attribute value displayed in this column.

dwReserved
Reserved for future use.

Requirements

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

See Also

DSQUERYPARAMS, LVCOLUMN, LoadString, ICommonQuery::OpenQueryWindow, Active Directory Display Structures