ICertManageModule::GetFileVersion

[This is preliminary documentation and subject to change.]

The GetFileVersion method retrieves the file version information for the module.

[VB] String GetFileVersion();
 
[JAVA] java.lang.String GetFileVersion();
 
[C++] HRESULT GetFileVersion(
  BSTR *pstrFileVersion         // out
);

Parameters

[C++] pstrFileVersion
Pointer to a BSTR type that will contain the file version. The GetFileVersion method fails if pstrFileVersion is NULL. It is the caller's responsibility to call SysFreeString when done with pstrFileVersion.

Return Values

[VB][JAVA] The return value is a String representing the file version information.

[C++] The return value is an HRESULT. A value of S_OK indicates success.

Remarks

The GetFileVersion method is used to retrieve the file version information for the module.

Example

HRESULT   hr;
BSTR      bstrFileVersion = NULL;

// pIManageModule is previously instantiated ICertManageModule object
hr = pIManageModule->GetFileVersion( &bstrFileVersion );
if ( S_OK == hr )
    printf("FileVersion is: %S\n", bstrFileVersion );

// free resources when done
if ( NULL != bstrFileVersion )
    SysFreeString( bstrFileVersion );
 

QuickInfo

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