PECompact CODEC Plug-ins

GetCodecVersion Exposed Function


DWORD WINAPI GetCodecVersion(DWORD *pdwSDKVersion);

Parameters:

pdwSDKVersion
The address of the variable that receives the version of the SDK this codec plug-in was created with. This value is defined as PEC2_CODEC_SDK_VERSION.

Return Value:

The Codec SDK version is returned through the pdwSDKVersion parameter and the return value is the version of the codec, in the format:

//
// codec version 1.21
//
#define CODEC_MAJOR_VERSION 1
#define CODEC_MINOR_VERSION 21
#define CODEC_VERSION ((CODEC_MAJOR_VERSION*100)+CODEC_MINOR_VERSION)

Remarks: