Platform SDK: Active Directory, ADSI, and Directory Services

IDsDisplaySpecifier::GetFriendlyClassName

The IDsDisplaySpecifier::GetFriendlyClassName method retrieves the friendly (localized) name for an object class.

HRESULT GetFriendlyClassName(
  LPCWSTR pszObjectClass,
  LPWSTR pszBuffer,
  INT cchBuffer
);

Parameters

pszObjectClass
[in] Name of an LDAP object class.
pszBuffer
[in] Pointer to the buffer to receive the friendly name string.
cchBuffer
[in] Length of the friendly name string, in characters.

Return Values

The method returns an HRESULT value.

Remarks

This method searches the cache for a friendly name. If no friendly name is set for the class in the display specifier, the method returns the name that was given.

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