IX509PrivateKey::Verify method (certenroll.h)
The Verify method verifies that a private key exists and can be used by the client but does not open the key.
Syntax
HRESULT Verify(
[in] X509PrivateKeyVerify VerifyType
);
Parameters
[in] VerifyType
An X509PrivateKeyVerify enumeration value that specifies execution options for the method. This can be one of the following values.
Return value
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. Also, this method calls the CryptGetUserKey and CryptAcquireContext CryptoAPI functions and can return errors identified in that documentation. For a list of common error codes, see Common HRESULT Values.
Return code | Description |
---|---|
|
Properties related to the CSP or KSP could not be found. |
Remarks
If VerifySilent or VerifySmartCardSilent values are set and the cryptographic provider specifies that a user interface is necessary, the key will not be opened, but the method returns S_OK.
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 |