Sample Code
Windows Driver Samples/ NDIS Virtual Miniport Driver/ C++/ 60/ netvmini60.inf/
;------------------------------------------------------------------------------- ; NETVMINI.INF ; ; Microsoft Virtual Ethernet Adapter ; ; Copyright (c) Microsoft Corporation. All rights reserved. [version] Signature = "$Windows NT$" Class = Net ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318} Provider = %Msft% DriverVer = 12/29/2009,6.1.7065.0 PnpLockDown = 1 CatalogFile = netvmini60.cat [ControlFlags] ExcludeFromSelect={b85b7c50-6a01-11d2-b841-00c04fad5171}\NetVMini60 [Manufacturer] %Msft% = Msft,NTx86.6.0,NTia64.6.0,NTamd64.6.0 ;For Win2k [Msft] ; Empty section to block legacy operating systems that don't understand TargetOSVersion [Msft.NTx86.6.0] %NetVMini.DeviceDesc% = NetVMini.ndi, root\NetVMini60_a ; Root enumerated %NetVMini.DeviceDesc% = NetVMini.ndi, root\NetVMini60_b %NetVMini.DeviceDesc% = NetVMini.ndi, root\NetVMini60_c %NetVMini.DeviceDesc% = NetVMini.ndi, root\NetVMini60_d %NetVMini.DeviceDesc% = NetVMini.ndi, {b85b7c50-6a01-11d2-b841-00c04fad5171}\NetVMini60 ; Toaster Bus enumerated [Msft.NTia64.6.0] %NetVMini.DeviceDesc% = NetVMini.ndi, root\NetVMini60_a ; Root enumerated %NetVMini.DeviceDesc% = NetVMini.ndi, root\NetVMini60_b %NetVMini.DeviceDesc% = NetVMini.ndi, root\NetVMini60_c %NetVMini.DeviceDesc% = NetVMini.ndi, root\NetVMini60_d %NetVMini.DeviceDesc% = NetVMini.ndi, {b85b7c50-6a01-11d2-b841-00c04fad5171}\NetVMini60 ; Toaster Bus enumerated [Msft.NTamd64.6.0] %NetVMini.DeviceDesc% = NetVMini.ndi, root\NetVMini60_a ; Root enumerated %NetVMini.DeviceDesc% = NetVMini.ndi, root\NetVMini60_b %NetVMini.DeviceDesc% = NetVMini.ndi, root\NetVMini60_c %NetVMini.DeviceDesc% = NetVMini.ndi, root\NetVMini60_d %NetVMini.DeviceDesc% = NetVMini.ndi, {b85b7c50-6a01-11d2-b841-00c04fad5171}\NetVMini60 ; Toaster Bus enumerated ;------------------------------------------------------------------------------- ; Microsoft Virtual Ethernet Adapter ; [NetVMini.ndi] Characteristics = 0x1 ; NCF_VIRTUAL *IfType = 0x6 ; IF_TYPE_ETHERNET_CSMACD *MediaType = 0x0 ; NdisMedium802_3 *PhysicalMediaType = 14 ; NdisPhysicalMedium802_3 AddReg = NetVMini.Reg CopyFiles = NetVMini.CopyFiles [NetVMini.ndi.Services] AddService = NetVMini60, 2, NetVMini.Service, NetVMini.EventLog ;----------------------------------------------------------------------------- ; Microsoft Virtual Miniport Common ; [NetVMini.Reg] HKR, , BusNumber, 0, "0" HKR, Ndi, Service, 0, "NetVMini60" HKR, Ndi\Interfaces, UpperRange, 0, "ndis5" HKR, Ndi\Interfaces, LowerRange, 0, "ethernet" ;----------------------------------------------------------------------------- ; Driver and Service Section ; [NetVMini.CopyFiles] NetVMini60.sys,,,2 [NetVMini.Service] DisplayName = %NetVMini.Service.DispName% ServiceType = 1 ;%SERVICE_KERNEL_DRIVER% StartType = 3 ;%SERVICE_DEMAND_START% ErrorControl = 1 ;%SERVICE_ERROR_NORMAL% ServiceBinary = %12%\netvmini60.sys LoadOrderGroup = NDIS AddReg = TextModeFlags.Reg [NetVMini.EventLog] AddReg = NetVMini.AddEventLog.Reg [NetVMini.AddEventLog.Reg] HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\netevent.dll" HKR, , TypesSupported, 0x00010001, 7 [TextModeFlags.Reg] HKR, , TextModeFlags, 0x00010001, 0x0001 [SourceDisksNames] 1 = %DiskId1%,,,"" [SourceDisksFiles] netvmini60.sys = 1,, ;----------------------------------------------------------------------------- ; DestinationDirs ; [DestinationDirs] NetVMini.CopyFiles = 12 ;----------------------------------------------------------------------------- ; Localizable Strings ; [Strings] Msft = "Microsoft" NetVMini.DeviceDesc = "Microsoft Virtual Ethernet Adapter (NDIS 6.0)" NetVMini.Service.DispName = "Microsoft Virtual Miniport (NDIS 6.0)" DiskId1 = "Microsoft Virtual Miniport Device Installation Disk #1"
Our Services
-
What our customers say about us?
Read our customer testimonials to find out why our clients keep returning for their projects.
View Testimonials