Chapter X: XXXXX
Page 1
ADDENDUM
IRQGEN.VXD and Win32IRQ.DLL
IRQGEN.VXD
Description
IRQGEN.VXD is a Virtual Device Driver, or VxD, for Windows95. Together with
Win32IRQ.DLL, it allows a program to easily respond to hardware interrupt requests, or IRQs.
Installation
To install IRQGEN.VXD, copy it to C:\Windows\System. If your hard drive has a letter other than
C, substitute the appropriate letter. It is not necessary to reboot your system prior to using
IRQGEN.VXD.
Win32IRQ.DLL
Description
Win32IRQ.DLL is a Dynamic Link Library, of DLL, for Windows95. It provides a simple interface
to IRQGEN.VXD, allowing a program to easily respond to hardware interrupts. Three functions are
exported by Win32IRQ.DLL:
InitIRQ,, Detect IRQ,
and
SendEOI.
To use these functions in a
program, they must first be inported. In Pascal, the necessary lines would be:
function InitIRQ (MyIRQ: Byte) : Boolean; stdcall;external 'Win32IRQ.dll'
index 1;
function DetectIRQ: Boolean; stdcall; external "Win32IRQ.dll"index 2;
function SendEOI: Boolean; stdcall; external "Win32IRQ.dll" index 3;
In C, the library file Win32IRQ.lib must first be linked to the program. This is accomplished by
adding it to the project or editing the makefile. The following lines would then create the prototypes
for the DLL functions:
extern "c" _declspec (dllimport) bool pascal InitIRQ (unsigned char MyIRQ);
extern "c" _declspec (dllimport) bool pascal DetectIRQ (void);
extern "c" _declspec (dllimport) bool pascal SendEOI (void) ;
InitIRQ
This function performs the initialization required to detect IRQs. It must be called before
DetectIRQ
and
SendEOI
can be called, although calling those functions first will only cause them to
return a value of FALSE. The function's sole parameter is an unsigned 8-bit value containing the
IRQ number to monitor. The return result is TRUE if initialization was compledted successfully,
FALSE if not.
Addendum: 00650-144-1A
© 1998, ICS Advent, 6260 Sequence Drive, San Diego, CA 92121-4371. All rights reserved.
Summary of Contents for PCI-WDT50 Series
Page 1: ...Model PCI WDT 500 501 Product Manual MANUAL NUMBER 00650 144 1B ...
Page 3: ...Page iv This page intentionally left blank ...
Page 7: ...Page viii This page intentionally left blank ...
Page 19: ...Manual Number 00650 144 1 Page 10 PCI WDT 500 501 Manual This page intentionally left blank ...
Page 23: ...Manual Number 00650 144 1 Page 14 PCI WDT 500 501 Manual This page intentionally left blank ...
Page 31: ...Manual Number 00650 144 1 Page 22 PCI WDT 500 501 Manual This page intentionally left blank ...
Page 35: ...Manual Number 00650 144 1 Page 26 PCI WDT 500 501 Manual This page intentionally left blank ...