Command Reference

BBPCWDT_Startup

Purpose:

Begin communications with the watchdog timer.

C Syntax:

HANDLE BBPCWDT_Startup(void);

BASIC

Function BBPCWDTStartup () As Long

Syntax:

 

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

Function BBPCWDTShutdown (ByVal hDev

Syntax:

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).

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

Page 17
Image 17
B&B Electronics ATRWDT, ATXWDT manual Command Reference, BBPCWDTStartup, BBPCWDTShutdown