enumContainers

The enumContainers method enumerates all the containers for the provider specified in the ProviderName property. If that property has not been changed, then the default value of ProviderName (Microsoft Base Cryptographic Provider) as set in the registry, is used to do the enumeration.

[VB] BSTR enumContainers(
  DWORD dwIndex
);
 
[C++] HRESULT enumContainers (
  DWORD dwIndex,   // in
  BSTR *pbstr      // in
);
 

Parameters

[VB][C++] dwIndex
Specifying zero for dwIndex gets the first container. Increment dwIndex for successive containers. When there are no more containers, ERROR_NO_MORE_ITEMS is returned for [C++], and it is triggered for [VB].
[C++] pbstr
See "Return Value."

Return Values

Returns a BSTR containing the enumerated container. When there are no more containers, the error ERROR_NO_MORE_ITEMS is returned.