84
MPT-7000V User Manual
3.
Exportion from IB_WDT.DLL / IB_WDT.64.DLL
extern "C" __declspec(dllexport) int __stdcall InstallDriver(void);
extern "C" __declspec(dllexport) int __stdcall RemoveDriver(void);
extern "C" __declspec(dllexport) char* __stdcall GetWDTInfo(void);
extern "C" __declspec(dllexport) int __stdcall EnableWDT(int);
extern "C" __declspec(dllexport) int __stdcall DisableWDT(int);
extern "C" __declspec(dllexport) int __stdcall IsDioAvailable(int);
extern "C" __declspec(dllexport) int __stdcall SetDioInputMask(int);
extern "C" __declspec(dllexport) int __stdcall SetDioOutputMask(int);
extern "C" __declspec(dllexport) int __stdcall GetDioInput(int);
extern "C" __declspec(dllexport) int __stdcall SetDioOutput(int);
Note:
1. The
IB_WDT.DLL
is of 32-bit and works on 32-bit and 64-bit Windows
operating system
. The “IB_WDT.64.DLL” is for 64bit Windows only.
2. The routines are not thread-safe. Your software engineers should take the
responsibility to avoid multi-entry condition.
⚫
Driver Initialization & Deinitalization
extern "C" __declspec(dllexport) int __stdcall InstallDriver(void);
Input
: None
Output : Return 1 if device driver loads successfully; otherwise return 0.
Note:
This function should be invoked before Watchdog and Digital I/O
routines.
extern "C" __declspec(dllexport) int __stdcall RemoveDriver(void);
Input
: None
Output : Always return 1.
Note:
This function should be invoked before the program closes and it will
release the device driver and memory for
ib_wdt.dll
. If the program is closed
without calling this routine, resource leak may occur.