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