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