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-010-6B
© 1998, Industrial Computer Source, 6260 Sequence Drive, San Diego, CA 92121-2720. All rights reserved.
Содержание RB-24
Страница 1: ...Model RB 24 Product Manual MANUAL NUMBER 00650 130 2B...
Страница 3: ...Page iv This page intentionally left blank...
Страница 7: ...Page viii This page intentionally left blank...
Страница 9: ...Page x This page intentionally left blank...
Страница 11: ...Manual Number 00650 130 2 Page 1 2 RB 24 Manual RB 24 Layout...