[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
);
[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.
The GetFileVersion method is used to retrieve the file version information for the module.
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 );
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in certmod.h.
Import Library: Use certidl.lib.