IX509PrivateKey::Opened property

The Opened property retrieves a Boolean value that specifies whether the private key is open.

This property is read-only.

Syntax


HRESULT get_Opened(
  [out] VARIANT_BOOL *pValue
);

Property value

Pointer to a VARIANT_BOOL variable. A value of VARIANT_TRUE indicates that the key is open.

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
E_POINTER

The pValue parameter cannot be NULL.

Remarks

You can call the Create method to create a private key, and call the Open method to open one.

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

IX509PrivateKey

 

 

Community Additions

ADD
Show: