Directory Services

IDsDisplaySpecifier::EnumClassAttributes

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

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

Parameters

pszObjectClass
[in] 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".
pcbEnum
[in] Pointer to an application-supplied DSEnumAttributesCallback function that is called once for each enumerated attribute.
lParam
[in] Contains an application-defined parameter passed as the lParam parameter in the DSEnumAttributesCallback function.

Return Values

Returns a standard HRESULT value including the following.
Return Code Description
S_OK The method was successful.
E_FAIL An unspecified error occurred.
E_INVALIDARG One or more parameters are invalid.

Requirements

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

See Also

DSEnumAttributesCallback, IDsDisplaySpecifier, Active Directory Display Interfaces