ICertManageModule::GetProductVersion

[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
);

Parameters

[C++] pstrProdVersion
Pointer to a BSTR type that will contain the product version of the module. The GetProductVersion method fails if pstrProdVersion is NULL. It is the caller's responsibility to call SysFreeString when done with pstrProdVersion.

Return Values

[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.

Remarks

The GetProductVersion method is used to retrieve the product version information for the module.

Example

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 );
 

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in certmod.h.
  Import Library: Use certidl.lib.