Platform SDK: Active Directory, ADSI, and Directory Services

IDsDisplaySpecifier::GetFriendlyAttributeName

The IDsDisplaySpecifier::GetFriendlyAttributeName method retrieves from the display specifier the localized (friendly) string value of the attributeNames property of a given object class.

HRESULT GetFriendlyAttributeName(
  LPCWSTR pszObjectClass,
  LPCWSTR pszAttributeName,
  LPWSTR pszBuffer,
  UINT cchBuffer
);

Parameters

pszObjectClass
[in] Class name to look up in the cache.
pszAttributeName
[in] Attribute name to look up in the cache.
pszBuffer
[in] Pointer to an buffer to receive the friendly attribute name.
cchBuffer
[in] Size of the string buffer, in characters.

Return Values

The method returns an HRESULT value.

Remarks

This method looks up the display specifier of the class to check the attributeNames property for a property name pair that matches the given attribute name. If the match is not found, the input attribute name is returned instead.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Dsclient.h.
  Library: Included as a resource in Dsuiext.dll.

See Also

Active Directory Display Interfaces, IDsDisplaySpecifier