1 | ;
|
---|
2 | ; VirtualBox Bridged Networking Driver
|
---|
3 | ;
|
---|
4 |
|
---|
5 | ;
|
---|
6 | ; Copyright (C) 2008 Sun Microsystems, Inc.
|
---|
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 | ; Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
17 | ; Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
18 | ; additional information or have any questions.
|
---|
19 | ;
|
---|
20 |
|
---|
21 | ;
|
---|
22 | ; Based in part on Microsoft DDK sample code for Ndis Intermediate Miniport passthru driver sample.
|
---|
23 | ; Copyright (c) 1993-1999, Microsoft Corporation
|
---|
24 | ;
|
---|
25 |
|
---|
26 | [Version]
|
---|
27 | Signature = "$Windows NT$"
|
---|
28 | ;cat CatalogFile = VBoxNetFlt.cat
|
---|
29 | Class = NetService
|
---|
30 | ClassGUID = {4D36E974-E325-11CE-BFC1-08002BE10318}
|
---|
31 | Provider = %Provider%
|
---|
32 | ;DriverPackageType=Network
|
---|
33 | ;DriverPackageDisplayName=%VBoxNetFlt_Desc%
|
---|
34 | ;edit-DriverVer=08/13/2008,1.1.0.1
|
---|
35 |
|
---|
36 |
|
---|
37 | [Manufacturer]
|
---|
38 | %Provider% = VBox,NTx86,NTia64,NTamd64
|
---|
39 |
|
---|
40 | [ControlFlags]
|
---|
41 |
|
---|
42 | ;=========================================================================
|
---|
43 | ;
|
---|
44 | ;=========================================================================
|
---|
45 |
|
---|
46 | ; For Win2K
|
---|
47 | [VBox]
|
---|
48 | %VBoxNetFlt_Desc% = VBoxNetFlt.ndi, sun_VBoxNetFlt
|
---|
49 |
|
---|
50 | ; For XP and later
|
---|
51 | [VBox.NTx86]
|
---|
52 | %VBoxNetFlt_Desc% = VBoxNetFlt.ndi, sun_VBoxNetFlt
|
---|
53 |
|
---|
54 | [VBox.NTia64]
|
---|
55 | %VBoxNetFlt_Desc% = VBoxNetFlt.ndi, sun_VBoxNetFlt
|
---|
56 |
|
---|
57 | [VBox.NTamd64]
|
---|
58 | %VBoxNetFlt_Desc% = VBoxNetFlt.ndi, sun_VBoxNetFlt
|
---|
59 |
|
---|
60 | [VBoxNetFlt.ndi]
|
---|
61 | AddReg = VBoxNetFlt.ndi.AddReg, VBoxNetFlt.AddReg
|
---|
62 | Characteristics = 0x4410 ; NCF_FILTER | NCF_NDIS_PROTOCOL !--Filter Specific--!!
|
---|
63 | CopyFiles = VBoxNetFlt.Files.DLL, VBoxNetFlt.Files.Sys
|
---|
64 | CopyInf = VBoxNetFlt_m.inf
|
---|
65 |
|
---|
66 | [VBoxNetFlt.ndi.Remove]
|
---|
67 | DelFiles = VBoxNetFlt.Files.DLL, VBoxNetFlt.Files.Sys
|
---|
68 |
|
---|
69 | [VBoxNetFlt.ndi.Services]
|
---|
70 | AddService = VBoxNetFlt,, VBoxNetFlt.AddService
|
---|
71 |
|
---|
72 | [VBoxNetFlt.AddService]
|
---|
73 | DisplayName = %VBoxNetFltService_Desc%
|
---|
74 | ServiceType = 1 ;SERVICE_KERNEL_DRIVER
|
---|
75 | StartType = 3 ;SERVICE_DEMAND_START
|
---|
76 | ErrorControl = 1 ;SERVICE_ERROR_NORMAL
|
---|
77 | ServiceBinary = %12%\VBoxNetFlt.sys
|
---|
78 | LoadOrderGroup = PNP_TDI
|
---|
79 | AddReg = VBoxNetFlt.AddService.AddReg
|
---|
80 |
|
---|
81 |
|
---|
82 | [VBoxNetFlt.AddService.AddReg]
|
---|
83 | ; ----------------------------------------------------------------------
|
---|
84 | ; Add any miniport-specific parameters here. These are params that your
|
---|
85 | ; filter device is going to use.
|
---|
86 | ;
|
---|
87 | ;HKR, Parameters, ParameterName, 0x10000, "MultiSz", "Parameter", "Value"
|
---|
88 | ;HKR, Parameters, ParameterName2, 0x10001, 4
|
---|
89 |
|
---|
90 |
|
---|
91 | ; ----------------------------------------------------------------------
|
---|
92 | ; File copy
|
---|
93 | ;
|
---|
94 | [SourceDisksNames]
|
---|
95 | 1=%DiskDescription%,"",,
|
---|
96 |
|
---|
97 | [SourceDisksFiles]
|
---|
98 | VBoxNetFlt.sys=1
|
---|
99 | VBoxNetFltNotify.dll=1
|
---|
100 |
|
---|
101 | [DestinationDirs]
|
---|
102 | DefaultDestDir = 12
|
---|
103 | VBoxNetFlt.Files.DLL = 11 ; %windir%\System32
|
---|
104 | VBoxNetFlt.Files.Sys = 12 ; %windir%\System32\drivers
|
---|
105 |
|
---|
106 | [VBoxNetFlt.Files.Sys]
|
---|
107 | VBoxNetFlt.sys,,,2
|
---|
108 |
|
---|
109 | [VBoxNetFlt.Files.DLL]
|
---|
110 | VBoxNetFltNotify.dll,,,2
|
---|
111 |
|
---|
112 | ; ----------------------------------------------------------------------
|
---|
113 | ; Filter Install
|
---|
114 | ;
|
---|
115 |
|
---|
116 | [VBoxNetFlt.ndi.AddReg]
|
---|
117 | HKR, Ndi, HelpText, , %VBoxNetFlt_HELP%
|
---|
118 |
|
---|
119 | ; ----------------------------------------------------------------------
|
---|
120 | ; !!--Filter Specific--!!
|
---|
121 | ;
|
---|
122 | ; Note:
|
---|
123 | ; 1. Other components may also have UpperRange/LowerRange but for filters
|
---|
124 | ; the value of both of them must be noupper/nolower
|
---|
125 | ; 2. The value FilterClass is required.
|
---|
126 | ; 3. The value Service is required
|
---|
127 | ; 4. FilterDeviceInfId is the InfId of the filter device (miniport) that will
|
---|
128 | ; be installed for each filtered adapter.
|
---|
129 | ; In this case this is sun_VBoxNetFltmp (refer to VBoxNetFlt_m.inf)
|
---|
130 | ;
|
---|
131 | HKR, Ndi, ClsID, 0, {c631480a-acbe-4add-bb1d-3ed8aa52b5d9}
|
---|
132 | HKR, Ndi, ComponentDll, , VBoxNetFltNotify.dll
|
---|
133 | HKR, Ndi, FilterClass, , failover
|
---|
134 | HKR, Ndi, FilterDeviceInfId, , sun_VBoxNetFltmp
|
---|
135 | HKR, Ndi, Service, , VBoxNetFlt
|
---|
136 | HKR, Ndi\Interfaces, UpperRange, , noupper
|
---|
137 | HKR, Ndi\Interfaces, LowerRange, , nolower
|
---|
138 | HKR, Ndi\Interfaces, FilterMediaTypes, , "ethernet, nolower"
|
---|
139 |
|
---|
140 | [VBoxNetFlt.AddReg]
|
---|
141 | ; The following key is Required
|
---|
142 | ; The following key is VBoxNetFlt specific
|
---|
143 | HKR, Parameters, Param1, 0, 4
|
---|
144 |
|
---|
145 | ; ----------------------------------------------------------------------
|
---|
146 | [Strings]
|
---|
147 | Provider = "Sun Microsystems, Inc."
|
---|
148 | DiskDescription = "VirtualBox Bridged Networking Driver"
|
---|
149 |
|
---|
150 | VBoxNetFlt_Desc = "VirtualBox Bridged Networking Driver"
|
---|
151 | VBoxNetFlt_HELP = "VBoxNetFlt Driver"
|
---|
152 | VBoxNetFltService_Desc = "VBoxNetFlt Service"
|
---|
153 |
|
---|
154 |
|
---|
155 |
|
---|