ISmimeCapabilities::AddAvailableSmimeCapabilities method (certenroll.h)

The AddAvailableSmimeCapabilities method adds ISmimeCapability objects to the collection by identifying the encryption algorithms supported by the default RSA cryptographic provider.


HRESULT AddAvailableSmimeCapabilities(
  [in] VARIANT_BOOL MachineContext


[in] MachineContext

A VARIANT_BOOL variable that identifies the certificate store context. Specify VARIANT_TRUE for the computer and VARIANT_FALSE for the user.

Return value

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.


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