getStoreHandle Method
[This sample code uses features that were implemented in MSXML 5.0 for Microsoft Office Applications. XML digital signatures are not supported in MXSML 6.0 and later.]
Retrieves a handle to the certificate store from which the certificate can be retrieved and validated. The method is applicable to C/C++ application only.
C/C++ Syntax
HRESULT getStoreHandle (void** hCertStore);
Parameters
hCertStore
Handle to a certificate store created using CryptoAPI functions, such as CertOpenSystemStore
or CertOpenStore
.
Return Values
S_OK
Certificate store handle was obtained without error.
E_FAIL
Failed to obtain the certificate store handle. The hCertStore
parameter returns NULL.
Remarks
When you are done using the certificate store handle, call CertCloseStore
to free the store object.
Applies to
Versioning
MSXML 5.0 for Microsoft Office Applications and later