Retrieves the handle to the cryptographic service provider associated with this key object. The resultant CSP handle can be used in the appropriate CryptoAPI functions to perform other Cryptographic operations.
HRESULT getCSPHandle (ULONG_Ptr *hCSProv);
ULONG_Ptr hCSProv = objIXMLDSigKeyEx.getCSPHandle();
hCSProv
parameter is NULL.When the key object is created using the IXMLDigitalSignature::createKeyFromCSP
method, you can call this method to get the handle to the underlying cryptographic service provider. You can examine and use other cryptographic information associated with this key by calling the appropriate CryptoAPI functions.
For keys created by IXMLDigitalSignature::createKeyFromHMACSecret
or IXMLDigitalSignatureEx::createKeyfromHMACSecretBinary
, no CSP handles will be created and the resultant hCSProv
parameter will be NULL.
MSXML 5.0 and later
To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button in the upper-left corner of the page.