Sample Code

Windows Driver Samples/ Hyper-V Extensible Switch extension filter driver/ C++/ samples/ forward/ msforwardext.inf/

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
;
; Copyright (c) Microsoft Corporation. All Rights Reserved.
;
 
[version]
Signature   = "$Windows NT$"
Class       = NetService
ClassGUID   = {4D36E974-E325-11CE-BFC1-08002BE10318}
Provider    = %Msft%
CatalogFile = msforwardext.cat
DriverVer   = 07/29/2011,2.0
 
[Manufacturer]
%Msft%=MSFT,NTx86,NTia64,NTamd64
 
[MSFT.NTx86]
%MSForwardExt_Desc%=Install, MS_forwardext
 
[MSFT.NTia64]
%MSForwardExt_Desc%=Install, MS_forwardext
 
[MSFT.NTamd64]
%MSForwardExt_Desc%=Install, MS_forwardext
 
;-------------------------------------------------------------------------
; Installation Section
;-------------------------------------------------------------------------
[Install]
AddReg=Inst_Ndi
Characteristics=0x40000
NetCfgInstanceId="{37d9eae6-5bae-48c5-bff1-63a7cdd7e4f4}"
Copyfiles = MSForwardExt.copyfiles.sys
 
[SourceDisksNames]
1=%MSForwardExt_Desc%,"",,
 
[SourceDisksFiles]
MSForwardExt.sys=1
 
[DestinationDirs]
DefaultDestDir=12
MSForwardExt.copyfiles.sys=12
 
[MSForwardExt.copyfiles.sys]
MSForwardExt.sys,,,2
 
 
;-------------------------------------------------------------------------
; Ndi installation support
;-------------------------------------------------------------------------
[Inst_Ndi]
HKR, Ndi,Service,,"MSForwardExt"
HKR, Ndi,CoServices,0x00010000,"MSForwardExt"
HKR, Ndi,HelpText,,%MSForwardExt_HelpText%
HKR, Ndi,FilterClass,,"ms_switch_forward"
HKR, Ndi,FilterType,0x00010001,0x00000002
HKR, Ndi\Interfaces,UpperRange,,"noupper"
HKR, Ndi\Interfaces,LowerRange,,"nolower"
HKR, Ndi\Interfaces, FilterMediaTypes,,"vmnetextension"
HKR, Ndi,FilterRunType, 0x00010001, 2 ; optional
 
;-------------------------------------------------------------------------
; Service installation support, common.EventLog here is to demonstrate how to
; write an enent log
;-------------------------------------------------------------------------
[Install.Services]
AddService=MSForwardExt,,MSForwardExt_Service_Inst;, common.EventLog
 
[MSForwardExt_Service_Inst]
DisplayName     = %MSForwardExt_Desc%
ServiceType     = 1 ;SERVICE_KERNEL_DRIVER
StartType       = 1 ;SERVICE_SYSTEM_START
ErrorControl    = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary   = %12%\MSForwardExt.sys
LoadOrderGroup  = NDIS
Description     = %MSForwardExt_Desc%
AddReg          = Common.Params.reg
 
[Install.Remove.Services]
DelService=MSForwardExt,0x200
 
[Strings]
Msft = "Microsoft"
MSForwardExt_Desc = "Microsoft Sample Forwarding Extension"
MSForwardExt_HelpText = "Sample for forwarding switch extension"

Our Services

  • What our customers say about us?

© 2011-2025 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS