FPC_GetVersionEx
Syntax
DWORD WINAPI FPC_GetVersionEx(HFPC hFPC, SFPCVersion* pVersion);
typedef struct SFPCVersion
{
WORD v[4];
} SFPCVersion;
Description
The FPC_GetVersionEx
function retrieves the version of Flash Player ActiveX associated with the specified HFPC handle.
The version is returned in the SFPCVersion
structure, where each element of the array v[4]
represents a part of the version number:
- v[3] — Major version
- v[2] — Minor version
- v[1] — Revision
- v[0] — Build
This function replaces FPC_GetVersion, which is considered obsolete.
Example
// Get flash version
SFPCVersion FlashVersion;
FPC_GetVersionEx(m_hFPC, &FlashVersion);
// Compare major version
if (FlashVersion.v[3] < 8)
{
TCHAR szMsg[1024];
wsprintf(szMsg,
_T("External API is supported only by Flash 8 and higher\nCurrent version: %d.%d.%d.%d"),
FlashVersion.v[3],
FlashVersion.v[2],
FlashVersion.v[1],
FlashVersion.v[0]);
AfxMessageBox(szMsg);
return FALSE;
}