Platform SDK: Active Directory, ADSI, and Directory Services

ADS_SEARCH_COLUMN

The ADS_SEARCH_COLUMN structure specifies the contents of a search column in the query returned from the directory service database.

typedef struct ADS_SEARCH_COLUMN
{
  LPWSTR    pszAttrName;
  ADSTYPE   dwADsType;
  PADSVALUE pADsValues;
  DWORD     dwNumValues;
  HANDLE    hReserved;
} ADS_SEARCH_COLUMN, *PADS_SEARCH_COLUMN;

Members

pszAttrName
Pointer to a string that contains the name of the attribute whose values are contained in the current search column.
dwADsType
Value from the ADSTYPEENUM enumeration that indicates how the attribute values are to be interpreted.
pADsValues
Array of ADSVALUE structures that contain values of the attribute in the current search column for the current row.
dwNumValues
Size of the pADsValues array.
hReserved
Reserved for internal use by providers.

Remarks

The ADS_SEARCH_COLUMN structure only contains a pointer to the array of ADSVALUE structures. Memory for the structure must be allocated separately.

To see how ADS_SEARCH_COLUMN is used, see the IDirectorySearch::GetColumn method.

Requirements

  Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with DSClient).
  Windows 95/98: Requires Windows 95 or later (with DSClient).
  Header: Declared in Iads.h.

See Also

ADSI Structures, ADSTYPEENUM, ADSVALUE, IDirectorySearch::GetColumn