ADLINK PCIe-2602 User Manual

Page 74

Advertising
background image

64

DirectShow Programming Guide

&Version, sizeof(ULONG), &dwReturn);

2. CUSTOM_PROPERTY_GET_FIRMWARE_VERSION

The property allows retrieval of the firmware version with the
formula:

Year = (Version >> 28) + 2000

Month = (Version >> 24) & 0x0F

Day = (Version >> 16) & 0xFF

Hour = (Version >> 8) & 0xFF

Minute = Version & 0xFF

EXAMPLE:

ULONG Version;

DWORD dwReturn;

m_pKsPropertySet->Get( PROPSETID_AVS260X_CUSTOM,

CUSTOM_PROPERTY_GET_FIRMWARE_VERSION,

NULL, 0,

&Version, sizeof(ULONG), &dwReturn);

3. CUSTOM_PROPERTY_GET_DRIVER_VERSION

The property allows retrieval of the driver version with the
formula:

Major = (Version >> 24) & 0xFF

Minor = (Version >> 16) & 0xFF

Release = (Version >> 8) & 0xFF

EXAMPLE:

ULONG Version;

DWORD dwReturn;

Advertising