:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / apps / utils / pice / module / hooks.h
1 /*++
2
3 Copyright (c) 1998-2001 Klaus P. Gerlicher
4
5 Module Name:
6
7     hooks.h
8
9 Abstract:
10
11     HEADER for hooks.c
12
13 Environment:
14
15     LINUX 2.2.X
16     Kernel mode only
17
18 Author: 
19
20     Klaus P. Gerlicher
21
22 Revision History:
23
24     15-Nov-2000:    general cleanup of source files
25
26 Copyright notice:
27
28   This file may be distributed under the terms of the GNU Public License.
29
30 --*/
31 void DeinstallHooks(void);      
32 //ULONG HookInt(ULONG dwInt,ULONG NewIntHandler);
33 //void UnhookInt(ULONG dwInt);
34 void MaskIrqs(void);
35 void UnmaskIrqs(void);
36 ULONG SetGlobalInt(ULONG dwInt,ULONG NewIntHandler);
37 ULONG GetIRQVector(ULONG dwInt);
38 void TakeIdtSnapshot(void);
39 void RestoreIdt(void);
40
41 // structure of an IDT entry
42 typedef struct IdtEntry
43 {
44         USHORT LoOffset;
45         USHORT SegSel;
46         USHORT Flags;
47         USHORT HiOffset;
48 }IDTENTRY,*PIDTENTRY;
49