[This is preliminary documentation and subject to change.]
The GetProductionVersion method retrieves the product version.
[VB] String GetProductVersion();
[JAVA] java.lang.String GetProductVersion();
[C++] HRESULT GetProductVersion(
BSTR *pstrProdVersion // out
);
[VB][JAVA] The return value is a String representing the product version.
[C++] The return value is an HRESULT. A value of S_OK indicates success.
The GetProductVersion method is used to retrieve the product version information for the module.
HRESULT hr;
BSTR bstrProdVersion = NULL;
// pIManageModule is previously instantiated ICertManageModule object
hr = pIManageModule->GetProductVersion( &bstrProdVersion );
if ( S_OK == hr )
printf("ProductVersion is: %S\n", bstrProdVersion );
// free resources when done
if ( NULL != bstrProdVersion )
SysFreeString( bstrProdVersion );
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in certmod.h.
Import Library: Use certidl.lib.