User Guide

16 Documentation Number ATxWDT-1303
B&B Electronics Mfg Co 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104
B&B Electronics Ltd Westlink Comm. Pk Oranmore, Galway, Ireland Ph +353 91-792444 Fax +353 91-792445
Command Reference
BBPCWDT_Startup
Purpose: Begin communications with the watchdog timer.
C Syntax:
HANDLE BBPCWDT_Startup(void);
BASIC
Syntax:
Function BBPCWDTStartup () As Long
Remarks: This function reads the watchdog timer’s I/O port
value that the setup program stored in the registry
for Windows 95 / NT or in the file, PCWDT.INI, for
Windows 3.11. The Windows NT version of this
function establishes communications with the
PCWDT device driver. The Windows 3.11 / 95
version of this function just returns a handle that is
used with the other functions in this section to
communicate with the watchdog timer.
Return Value: On error, INVALID_HANDLE_VALUE is returned
otherwise a handle to the watchdog timer is
returned.
BBPCWDT_Shutdown
Purpose: Terminate communications with the watchdog
timer.
C Syntax:
BOOL BBPCWDT_Shutdown(HANDLE hDev);
BASIC
Syntax:
Function BBPCWDTShutdown (ByVal hDev
As Long) As Byte
Remarks:
hDev
is the handle to the watchdog timer that was
returned by BBPCWDT_Startup. The Windows NT
version of this function closes the communications
to the PCWDT device driver.
Return Value: TRUE (non-zero) if successful, otherwise FALSE
(zero).