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
DetectIRQand 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-010-6B
© 1998, Industrial Computer Source, 6260 Sequence Drive, San Diego, CA 92121-2720. All rights reserved.
Summary of Contents for AOB8/16
Page 1: ...Model AOB8 16 AOB16 16 Product Manual MANUAL NUMBER 00650 010 6C...
Page 3: ...Page iv This page intentionally left blank...
Page 7: ...Page viii This page intentionally left blank...
Page 15: ...Manual Number 00650 010 6 Page 6 AOB8 16 AOB16 16 Manual Figure 3 1 Option Selection Map...
Page 21: ...Manual Number 00650 010 6 Page 12 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Page 25: ...Manual Number 00650 010 6 Page 16 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Page 27: ...Manual Number 00650 010 6 Page 18 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Page 31: ...Manual Number 00650 010 6 Page 22 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Page 37: ...Manual Number 00650 010 6 Page 28 AOB8 16 AOB16 16 Manual This page intentionally left blank...