Getdevicedriverversion getusbdriverversion, Getdevicedriverversion, Getusbdriverversion – Dataman 520 Series User Manual

Page 25

Advertising
background image


Development kit for DATAMAN 520 series

Programmer’s Guide

Public Declare Function GetSDKVersion lib “VBDevKit52X.dll”
(DriverVersion as TDriverVersion) As Long;

Parameters:

Version – Pointer to the DeviceDriverVersion structure


Return Value:

ERROR_OK – Function executed successfully

GetDeviceDriverVersion

Returns the device driver version.

Declaration:

typedef _export _stdcall int (*fGetDeviceDriverVersion)(void *Version);

TGetDeviceDriverVersion

= function (Version: Pointer): Integer; stdcall;

Public Declare Function GetDeviceDriverVersion Lib "VBDevKit52X.dll"

(DriverVersion As TDriverVersion) As Long

Parameters:
Version

-

Pointer to the device driver version

structure


Return Value:

ERROR_OK – Function call successfuly completed
ERROR_DEVELOPMENT_KIT_NOT_ENABLED DK can not be used with

connected device (DK was not purchased)

GetUSBDriverVersion

Return the USB driver (em52X) version.

Declaration:

typedef _export _stdcall int (*fGetUSBDriverVersion)(void *Version);

TGetUSBDriverVersion = function (Version: Pointer): Integer; stdcall;
Public Declare Function GetUSBDriverVersion Lib "VBDevKit52X.dll"

(DriverVersion As TDriverVersion) As Long

Parameters:
Version

-

Pointer to the device driver version

structure


Return Value:

ERROR_OK – Function call successfuly completed
ERROR_DEVELOPMENT_KIT_NOT_ENABLED DK can not be used with

connected device (DK was not purchased)

- 25 -

Advertising