IEnroll::enumContainersWStr method (xenroll.h)

[This method is no longer available for use as of Windows Server 2008 and Windows Vista.]

The enumContainersWStr method retrieves the names of containers for the cryptographic service provider (CSP) specified by the ProviderNameWStr property. This method was first defined in the IEnroll interface.

Syntax

HRESULT enumContainersWStr(
  [in]  LONG   dwIndex,
  [out] LPWSTR *pbstr
);

Parameters

[in] dwIndex

Specifies the ordinal position of the container whose name will be retrieved. Specify zero for the first container.

[out] pbstr

A pointer to a LPWSTR variable that receives the name of the container.

Return value

The return value is an HRESULT. A value of S_OK indicates success. The value ERROR_NO_MORE_ITEMS is returned when there are no more items.

Remarks

If the ProviderNameWStr property value has not been set, the default value (usually Microsoft Base Cryptographic Provider) of ProviderNameWStr as set in the registry is used.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header xenroll.h
Library Uuid.lib
DLL Xenroll.dll

See also

IEnroll