Installs a hardware interrupt handler for the LPT device and unmasks the Irq at hardware level. UnmaskLptIrq allows to handle the
"edge triggered" interrupts.
Language
|
Description
|
C/C++
|
void UnmaskLptIrq ( HANDLE hLpt, TOnHwInterruptHandler InterruptHandler )
|
Delphi
|
procedure UnmaskLptIrq ( hLpt: THandle; InterruptHandler TOnHwInterruptHandler ); stdcall;
|
VB
|
Sub UnmaskLptIrq ( ByVal hlpt As Long, ByVal HWHandler As Long)
|
Parameters:
hLpt - the handle returned by a successful call to OpenRapidLpt ;
InterruptHandler - address of the callback procedure that handles hardware interrupts for this Irq (use AddressOf specification in VB)
Return Value : None.
Comments:
1. The interrupt handler function must be declared as:
typedef void (__stdcall * TOnHwInterruptHandler)(ULONG TimeStampLowPart, ULONG TimeStampHighPart);
2. This function helps to handle "edge triggered" interrupts.
See also: MaskLptIrq GetInterruptCounter
|