ICspInformation::IsRemovable property

The IsRemovable property retrieves a Boolean value that specifies whether the token that contains the key can be removed.

This property is read-only.

Syntax


HRESULT get_IsRemovable(
  [out] VARIANT_BOOL *pValue
);

Property value

Pointer to a VARIANT_BOOL variable. A value of VARIANT_TRUE indicates that the token can be removed.

Error codes

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following table. For a list of common error codes, see Common HRESULT Values.

Name/valueMeaning
OLE_E_BLANK

The ICspInformation object has not been initialized.

Remarks

Operator cards and smart cards are examples of removable tokens that can contain keys. For example, the following providers return true for this property value:

  • Microsoft Smart Card Key Storage Provider
  • Microsoft Base Smart Card Crypto Provider

The Certificate Enrollment service assumes that a provider is a smart card provider if both the IsHardwareDevice and IsSoftwareDevice properties are set, or if the IsRemovable property is set.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

CertEnroll.h

DLL

CertEnroll.dll

See also

ICspInformation

 

 

Community Additions

ADD
Show: