Language:
Русский
English
SetIntVec (procedure) (WinDos unit)
Sets a specified interrupt vector to a specified address.
Declaration
procedure SetIntVec(IntNo: Byte; Vector: Pointer);
Target
Windows
Remarks
IntNo specifies the interrupt vector number (0..255), and Vector specifies the address.
Vector is often constructed with the @ operator to produce the address of an inter-rupt procedure. Assuming Int1BSave is a variable of type Pointer, and Int1BHandler is an interrupt procedure identifier, the following statement sequence installs a new interrupt $1B handler and later restores the original handler:
GetIntVec($1B, Int1BSave);
SetIntVec($1B, @@Int1BHandler);
.
.
.
SetIntVec($1B, Int1BSave);
Restrictions
In DOS protected mode and Windows standard and enhanced modes, SetIntVec
sets the protected mode interrupt vector with the given interrupt vector
number. SetIntVec cannot be used to modify real-mode interrupt vectors or
protected-mode exception vectors.