DSCOLUMN structure (dsquery.h)

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

Syntax

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

Members

dwFlags

Reserved.

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.

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.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header dsquery.h

See also

DSQUERYPARAMS

Display Structures in Active Directory Domain Services

ICommonQuery::OpenQueryWindow

LVCOLUMN

LoadString