1 | /* $Id: VBoxUsbMon.h 36968 2011-05-05 08:55:16Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox USB Monitor
|
---|
4 | */
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2011 Oracle Corporation
|
---|
7 | *
|
---|
8 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | * available from http://www.virtualbox.org. This file is free software;
|
---|
10 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | * General Public License (GPL) as published by the Free Software
|
---|
12 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
13 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
14 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | */
|
---|
16 | #ifndef ___VBoxUsbMon_h___
|
---|
17 | #define ___VBoxUsbMon_h___
|
---|
18 |
|
---|
19 | #include <VBox/cdefs.h>
|
---|
20 | #include <VBox/types.h>
|
---|
21 | #include <iprt/assert.h>
|
---|
22 | #include <VBox/sup.h>
|
---|
23 | #include <iprt/asm.h>
|
---|
24 | #include <VBox/log.h>
|
---|
25 |
|
---|
26 | #include "../cmn/VBoxDrvTool.h"
|
---|
27 |
|
---|
28 | #ifdef Log
|
---|
29 | # undef Log
|
---|
30 | # define Log(_m) DbgPrint _m
|
---|
31 | #endif
|
---|
32 |
|
---|
33 | #ifdef LogRel
|
---|
34 | # undef LogRel
|
---|
35 | # define LogRel(_m) DbgPrint _m
|
---|
36 | #endif
|
---|
37 |
|
---|
38 | #ifdef LogFlow
|
---|
39 | # undef LogFlow
|
---|
40 | # define LogFlow(_m) DbgPrint _m
|
---|
41 | #endif
|
---|
42 |
|
---|
43 | #include "../cmn/VBoxUsbTool.h"
|
---|
44 |
|
---|
45 | #include "VBoxUsbHook.h"
|
---|
46 | #include "VBoxUsbFlt.h"
|
---|
47 |
|
---|
48 | PVOID VBoxUsbMonMemAlloc(SIZE_T cbBytes);
|
---|
49 | PVOID VBoxUsbMonMemAllocZ(SIZE_T cbBytes);
|
---|
50 | VOID VBoxUsbMonMemFree(PVOID pvMem);
|
---|
51 |
|
---|
52 | NTSTATUS VBoxUsbMonGetDescriptor(PDEVICE_OBJECT pDevObj, void *buffer, int size, int type, int index, int language_id);
|
---|
53 | NTSTATUS VBoxUsbMonQueryBusRelations(PDEVICE_OBJECT pDevObj, PFILE_OBJECT pFileObj, PDEVICE_RELATIONS *pDevRelations);
|
---|
54 |
|
---|
55 | void vboxUsbDbgPrintUnicodeString(PUNICODE_STRING pUnicodeString);
|
---|
56 |
|
---|
57 | #endif /* #ifndef ___VBoxUsbMon_h___ */
|
---|