summaryrefslogtreecommitdiff
path: root/vdm.h
diff options
context:
space:
mode:
Diffstat (limited to 'vdm.h')
-rw-r--r--vdm.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/vdm.h b/vdm.h
new file mode 100644
index 0000000..260a05e
--- /dev/null
+++ b/vdm.h
@@ -0,0 +1,72 @@
1/*
2 * Copyright (c) 2004 Security Architects Corporation. All rights reserved.
3 *
4 * Module Name:
5 *
6 * vdm.h
7 *
8 * Abstract:
9 *
10 * This module implements various VDM (Virtual Dos Machine) hooking routines.
11 *
12 * Author:
13 *
14 * Eugene Tsyrklevich 06-Apr-2004
15 *
16 * Revision History:
17 *
18 * None.
19 */
20
21
22#ifndef __VDM_H__
23#define __VDM_H__
24
25
26
27/*
28 * ZwSetLdtEntries sets Local Descriptor Table (LDT) entries for a Virtual DOS Machine (VDM). [NAR]
29 */
30
31typedef NTSTATUS (*fpZwSetLdtEntries) (
32 IN ULONG Selector0,
33 IN ULONG Entry0Low,
34 IN ULONG Entry0Hi,
35 IN ULONG Selector1,
36 IN ULONG Entry1Low,
37 IN ULONG Entry1Hi
38 );
39
40NTSTATUS
41NTAPI
42HookedNtSetLdtEntries(
43 IN ULONG Selector0,
44 IN ULONG Entry0Low,
45 IN ULONG Entry0Hi,
46 IN ULONG Selector1,
47 IN ULONG Entry1Low,
48 IN ULONG Entry1Hi
49 );
50
51
52/*
53 * ZwVdmControl performs a control operation on a VDM. [NAR]
54 */
55
56typedef NTSTATUS (*fpZwVdmControl) (
57 IN ULONG ControlCode,
58 IN PVOID ControlData
59 );
60
61NTSTATUS
62NTAPI
63HookedNtVdmControl(
64 IN ULONG ControlCode,
65 IN PVOID ControlData
66 );
67
68
69BOOLEAN InitVdmHooks();
70
71
72#endif /* __VDM_H__ */