Skip to content

Latest commit

 

History

History
148 lines (132 loc) · 5.53 KB

nf-certenroll-ix509privatekey-open.md

File metadata and controls

148 lines (132 loc) · 5.53 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:certenroll.IX509PrivateKey.Open
IX509PrivateKey::Open (certenroll.h)
Opens an existing private key.
IX509PrivateKey interface [Security]
Open method
IX509PrivateKey.Open
IX509PrivateKey::Open
Open
Open method [Security]
Open method [Security]
IX509PrivateKey interface
certenroll/IX509PrivateKey::Open
security.ix509privatekey_open_method
security\ix509privatekey_open_method.htm
security
965e3bf8-22b9-4015-8fb2-102c5f7b1cb5
12/05/2018
IX509PrivateKey interface [Security],Open method, IX509PrivateKey.Open, IX509PrivateKey::Open, Open, Open method [Security], Open method [Security],IX509PrivateKey interface, certenroll/IX509PrivateKey::Open, security.ix509privatekey_open_method
certenroll.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
CertEnroll.dll
Windows
19H1
IX509PrivateKey::Open
certenroll/IX509PrivateKey::Open
c++
APIRef
kbSyntax
COM
CertEnroll.dll
IX509PrivateKey.Open

IX509PrivateKey::Open

-description

The Open method opens an existing private key.

-returns

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.

-remarks

If successful, this method sets the Opened property. You must call either the Open or Create methods before calling the Export method or ExportPublicKey method.

You cannot set the following properties after calling the Open or Create methods. If you wish to specify them, you must do so before calling either of these methods.

The following properties can be set regardless of whether the key is open:

-see-also

IX509PrivateKey