GetUsingFlashVersionEx
Syntax
DWORD WINAPI GetUsingFlashVersionEx(SFPCVersion* pVersion);
typedef struct SFPCVersion
{
WORD v[4];
} SFPCVersion;
Description
The GetUsingFlashVersionEx
function retrieves the version of the Flash Player ActiveX control actually in use by the application.
This may differ from the version installed in the system, since applications can load a custom swflash.ocx / flash.ocx from memory or resources.
This allows developers to verify compatibility with specific Flash features at runtime.
Example
// Get flash version
SFPCVersion FlashVersion;
GetUsingFlashVersionEx(&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;
}
⚠️ Note: Since Adobe Flash Player reached End-of-Life (EOL) in December 2020, most systems no longer have Flash installed by default. When using custom-embedded versions, GetUsingFlashVersionEx is the correct way to determine which version your application is running.