IDsDisplaySpecifier::EnumClassAttributes method (dsclient.h)

The IDsDisplaySpecifier::EnumClassAttributes method enumerates the attributes for a given object class. The enumeration provides both the LDAP and localized names of each attribute.

Syntax

HRESULT EnumClassAttributes(
  [in] LPCWSTR            pszObjectClass,
  [in] LPDSENUMATTRIBUTES pcbEnum,
  [in] LPARAM             lParam
);

Parameters

[in] pszObjectClass

Pointer to a null-terminated Unicode string that contains the name of the object class to enumerate the attributes for. Examples of the object class name are "user" and "container".

[in] pcbEnum

Pointer to an application-supplied DSEnumAttributesCallback function that is called once for each enumerated attribute.

[in] lParam

Contains an application-defined parameter passed as the lParam parameter in the DSEnumAttributesCallback function.

Return value

Returns a standard HRESULT value including the following.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header dsclient.h
DLL Dsadmin.dll

See also

DSEnumAttributesCallback

Display Interfaces in Active Directory Domain Services

IDsDisplaySpecifier