Directory Services |
The DsGetFriendlyClassName function retrieves the localized name for an object class. This function is obsolete. New applications should use the IDsDisplaySpecifier::GetFriendlyClassName method to perform this function.
HRESULT DsGetFriendlyClassName( LPWSTR pszObjectClass, LPWSTR pszBuffer, INT cchBuffer );
Return Code | Description |
---|---|
S_OK | The method was successful. |
E_FAIL | An unspecified error occurred. |
E_INVALIDARG | One or more parameters are invalid. |
If no friendly name is set in the display specifiers for the object class, this function returns the name passed in pszObjectClass.
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Dsclient.h.
Library: Use Dsuiext.lib.