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.
HRESULT Verify( [in] X509PrivateKeyVerify VerifyType );
An X509PrivateKeyVerify enumeration value that specifies execution options for the method. This can be one of the following values.
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.
||Properties related to the CSP or KSP could not be found.|
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.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|