1 | /*
|
---|
2 | * TAP-Win32 -- A kernel driver to provide virtual tap device functionality
|
---|
3 | * on Windows. Originally derived from the CIPE-Win32
|
---|
4 | * project by Damion K. Wilson, with extensive modifications by
|
---|
5 | * James Yonan.
|
---|
6 | *
|
---|
7 | * All source code which derives from the CIPE-Win32 project is
|
---|
8 | * Copyright (C) Damion K. Wilson, 2003, and is released under the
|
---|
9 | * GPL version 2 (see below).
|
---|
10 | *
|
---|
11 | * All other source code is Copyright (C) 2002-2005 OpenVPN Solutions LLC,
|
---|
12 | * and is released under the GPL version 2 (see below).
|
---|
13 | *
|
---|
14 | * This program is free software; you can redistribute it and/or modify
|
---|
15 | * it under the terms of the GNU General Public License version 2
|
---|
16 | * as published by the Free Software Foundation.
|
---|
17 | *
|
---|
18 | * This program is distributed in the hope that it will be useful,
|
---|
19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
21 | * GNU General Public License for more details.
|
---|
22 | *
|
---|
23 | * You should have received a copy of the GNU General Public License
|
---|
24 | * along with this program (see the file COPYING included with this
|
---|
25 | * distribution); if not, write to the Free Software Foundation, Inc.,
|
---|
26 | * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
27 | */
|
---|
28 |
|
---|
29 | #include <windows.h>
|
---|
30 | #include <ntverp.h>
|
---|
31 |
|
---|
32 | /* get VERSION */
|
---|
33 | #include "config-win32.h"
|
---|
34 | #include "common.h"
|
---|
35 |
|
---|
36 | #include <VBox/tapwin32.h>
|
---|
37 | #include <VBox/version.h>
|
---|
38 |
|
---|
39 | /* VER_FILETYPE, VER_FILESUBTYPE, VER_FILEDESCRIPTION_STR
|
---|
40 | * and VER_INTERNALNAME_STR must be defined before including COMMON.VER
|
---|
41 | * The strings don't need a '\0', since common.ver has them.
|
---|
42 | */
|
---|
43 |
|
---|
44 | #define VER_FILETYPE VFT_DRV
|
---|
45 | /* possible values: VFT_UNKNOWN
|
---|
46 | VFT_APP
|
---|
47 | VFT_DLL
|
---|
48 | VFT_DRV
|
---|
49 | VFT_FONT
|
---|
50 | VFT_VXD
|
---|
51 | VFT_STATIC_LIB
|
---|
52 | */
|
---|
53 | #define VER_FILESUBTYPE VFT2_DRV_NETWORK
|
---|
54 | /* possible values VFT2_UNKNOWN
|
---|
55 | VFT2_DRV_PRINTER
|
---|
56 | VFT2_DRV_KEYBOARD
|
---|
57 | VFT2_DRV_LANGUAGE
|
---|
58 | VFT2_DRV_DISPLAY
|
---|
59 | VFT2_DRV_MOUSE
|
---|
60 | VFT2_DRV_NETWORK
|
---|
61 | VFT2_DRV_SYSTEM
|
---|
62 | VFT2_DRV_INSTALLABLE
|
---|
63 | VFT2_DRV_SOUND
|
---|
64 | VFT2_DRV_COMM
|
---|
65 | */
|
---|
66 |
|
---|
67 | #define VER_COMPANYNAME_STR VBOX_RC_COMPANY_NAME
|
---|
68 | #define VER_FILEDESCRIPTION_STR "VirtualBox Host Interface Networking Driver"
|
---|
69 | #define VER_ORIGINALFILENAME_STR TAP_COMPONENT_ID ".sys"
|
---|
70 | #define VER_LEGALCOPYRIGHT_YEARS "2008"
|
---|
71 | #define VER_LEGALCOPYRIGHT_STR "Sun Microsystems, Inc. & Others"
|
---|
72 |
|
---|
73 |
|
---|
74 | #define VER_PRODUCTNAME_STR VER_FILEDESCRIPTION_STR
|
---|
75 | #define VER_PRODUCTVERSION TAP_DRIVER_MAJOR_VERSION,00,00,TAP_DRIVER_MINOR_VERSION
|
---|
76 |
|
---|
77 | #define XSTR(s) STR(s)
|
---|
78 | #define STR(s) #s
|
---|
79 |
|
---|
80 | #define VSTRING XSTR(TAP_DRIVER_MAJOR_VERSION) "/" XSTR(TAP_DRIVER_MINOR_VERSION)
|
---|
81 |
|
---|
82 | #ifdef DBG
|
---|
83 | #define VER_PRODUCTVERSION_STR VSTRING " (DEBUG)"
|
---|
84 | #else
|
---|
85 | #define VER_PRODUCTVERSION_STR VSTRING
|
---|
86 | #endif
|
---|
87 |
|
---|
88 | #define VER_INTERNALNAME_STR VER_ORIGINALFILENAME_STR
|
---|
89 |
|
---|
90 | #include "common.ver"
|
---|