ICspInformation::get_MaxKeyContainerNameLength method (certenroll.h)

The MaxKeyContainerNameLength property retrieves the maximum supported length for the name of the private key container associated with the provider.

This property is read-only.

Syntax

HRESULT get_MaxKeyContainerNameLength(
  LONG *pValue
);

Parameters

pValue

Return value

None

Remarks

The key container name can be specified and retrieved by calling the ContainerName property on the IX509PrivateKey interface. The values associated with the providers distributed by Microsoft are listed in the following table. Some of these providers may not be included on all operating systems and others may be included instead.

Provider MaxKeyContainerNameLength value
Microsoft Software Key Storage Provider 261
Microsoft Smart Card Key Storage Provider 40
Microsoft Base Cryptographic Provider v1.0 261
Microsoft Base DSS and Diffie-Hellman Cryptographic Provider 261
Microsoft Base DSS Cryptographic Provider 261
Microsoft Base Smart Card Crypto Provider 40
Microsoft DH Schannel Cryptographic Provider 261
Microsoft Enhanced Cryptographic Provider v1.0 261
Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider 261
Microsoft Enhanced RSA and AES Cryptographic Provider 261
Microsoft RSA Schannel Cryptographic Provider 261
Microsoft Strong Cryptographic Provider 261

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header certenroll.h
DLL CertEnroll.dll

See also

ICspInformation