LPDSENUMATTRIBUTES callback function (dsclient.h)

The DSEnumAttributesCallback function is an application-defined callback function that is called once for each attribute enumerated by the IDsDisplaySpecifier::EnumClassAttributes method. A pointer to this function is supplied as the pcbEnum parameter in IDsDisplaySpecifier::EnumClassAttributes. DSEnumAttributesCallback is a placeholder for the application-defined function name.

Syntax

LPDSENUMATTRIBUTES Lpdsenumattributes;

HRESULT Lpdsenumattributes(
  LPARAM lParam,
  LPCWSTR pszAttributeName,
  LPCWSTR pszDisplayName,
  DWORD dwFlags
)
{...}

Parameters

lParam

Contains an application-defined parameter passed as the lParam parameter to the IDsDisplaySpecifier::EnumClassAttributes method.

pszAttributeName

Pointer to a null-terminated Unicode string that contains the LDAP name of the attribute.

pszDisplayName

Pointer to a null-terminated Unicode string that contains the localized name of the attribute.

dwFlags

Contains a set of flags that define the behavior or state of the attribute. This can be zero or the following value:

DSECAF_NOTLISTED

The attribute is hidden in the user interface.

Return value

Returns S_OK to continue the enumeration or any failure code, such as E_FAIL, to terminate the enumeration.

Requirements

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

See also

IDsDisplaySpecifier::EnumClassAttributes