win-pvdrivers

view xenhide/xenhide.h @ 567:de0fb547dcf0

have to commit this or it won't let me remove the other files
author James Harper <james.harper@bendigoit.com.au>
date Sun May 10 20:19:51 2009 +1000 (2009-05-10)
parents a6e3f76419c3
children
line source
1 /*PV Drivers for Windows Xen HVM Domains
2 Copyright (C) 2007 James Harper
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
19 #if !defined(_XENHIDE_H_)
20 #define _XENHIDE_H_
22 #include <ntifs.h>
23 #include <ntddk.h>
24 #include <wdf.h>
25 #include <initguid.h>
26 #include <wdmguid.h>
27 #include <errno.h>
29 #define NTSTRSAFE_LIB
30 #include <ntstrsafe.h>
32 #define __DRIVER_NAME "XenHide"
34 #include <xen_windows.h>
35 #include <xen_guids.h>
37 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
39 #define XENHIDE_POOL_TAG (ULONG) 'XHID'
41 //{CD433FE7-954F-4D51-BE29-D8A38DFA1108}
42 //DEFINE_GUID(GUID_XENHIDE_IFACE, 0xCD433FE7, 0x954F, 0x4D51, 0xBE, 0x29, 0xD8, 0xA3, 0x8D, 0xFA, 0x11, 0x08);
44 #if 0
45 typedef struct {
46 //PDEVICE_OBJECT filter_do;
47 //PDEVICE_OBJECT pdo;
48 //PDEVICE_OBJECT lower_do;
49 //IO_REMOVE_LOCK RemoveLock;
50 USHORT hide_type;
51 } XENHIDE_DEVICE_DATA, *PXENHIDE_DEVICE_DATA;
53 WDF_DECLARE_CONTEXT_TYPE_WITH_NAME(XENHIDE_DEVICE_DATA, GetXhdd)
54 #endif
56 #endif