Historical Content Alert

This is a historical content for Windows NT 4.0 product and is presented for informative purposes only. All content in this directory is copyrighted and owned by Microsoft.

enumContainers

The enumContainers method enumerates all the containers for the provider specified in the ProviderName property. If that property has not been changed, then ProviderName's default value 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 thrown 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.


Share this article: