;-------------------------------------------------------------------------
;-------------------------------------------------------------------------
; DLINKVLAN.INF -- Intermediate Driver VLAN
; $Revision: 1.0 $
;
; Copyright (C) 2010 D-Link Corporation
;-------------------------------------------------------------------------

[Version]
Signature   = "$Windows NT$"
Class       = NetTrans
ClassGUID   = {4D36E975-E325-11CE-BFC1-08002BE10318}
Provider    = %DLINK%
DriverVer   = 05/07/2010, 1.00.0507.2010
CatalogFile = DLINKVLAN.cat

[Manufacturer]
%DLINK%     = DLINK,NTx86,NTamd64

[DLINK]
%DLINK_Desc%    = DLINKVLAN.ndi, DLINK_VLAN_PT

[DLINK.NTx86]
%DLINK_Desc%    = DLINKVLAN.ndi, DLINK_VLAN_PT

[DLINK.NTamd64]
%DLINK_Desc%    = DLINKVLAN.ndi, DLINK_VLAN_PT


; Note:
; 1. The NCF_* flags are defined in netcfgx.h
; 2. NCF_HAS_UI (0x80) is required for custom property pages.

[DLINKVLAN.ndi]
AddReg          = DLINKVLAN.ndi.AddReg
Characteristics = 0x00 ; Not NCF_HAS_UI
copyfiles       = DLINKVLAN.CopyFiles.DLL,DLINKVLAN.CopyFiles.sys
CopyInf	        = DLINKVLAN_MP.INF

[SourceDisksNames]
1=%DiskDescription%,"",,

[SourceDisksFiles]
DLINKVLAN.SYS     = 1
DLINKVLAN_NB.DLL     = 1


[DestinationDirs]
DefaultDestDir      = 12
DLINKVLAN.CopyFiles.DLL  = 11   ; %windir%\System32
DLINKVLAN.CopyFiles.sys  = 12   ; %windir%\System32\drivers

[DLINKVLAN.CopyFiles.sys]
DLINKVLAN.SYS,,,2

[DLINKVLAN.CopyFiles.DLL]
DLINKVLAN_NB.DLL,,,2

[InfSourcePathInfo]
; Used by the notify object on Win2k to figure out where the original media is
; located (so it can use SetupCopyOEMInf to install Net INF located
; there). This workaround is to avoid copyinf INF file directly
; by using CopyFiles directive becuase Win2K doesn't support CopyINF directive.

OriginalInfSourcePath = %1%

;-----------------------------------------------------------------------
;  Install parameters
;

[DLINKVLAN.ndi.AddReg]
;HKR, Ndi,            ClsID,         0, {ee6cd6fc-a32b-4a26-8a1c-dbc97988ad7a} ; old
HKR, Ndi,            ClsID,         0, {4e996ff3-564c-49cb-8157-f23a0610913d}
HKR, Ndi,            ComponentDll,   , "DLINKVLAN_NB.DLL"
HKR, Ndi,            HelpText,      0,          "%DLINK_HELP%"
HKR, Ndi,            Service,       0,          "DLINKVLAN"
HKR, Ndi\Interfaces, UpperRange,    0,          "noupper"
HKR, Ndi\Interfaces, LowerRange,    0,          "ndis5"


[DLINKVLAN.ndi.Services]
AddService = DLINKVLAN, , DLINKVLAN.AddService, DLINKVLAN.AddEventLog

[DLINKVLAN.AddService]
DisplayName     = %DLINK_Desc%
ServiceType     = 1 ;SERVICE_KERNEL_DRIVER
StartType       = 3 ;SERVICE_DEMAND_START
ErrorControl    = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary   = %12%\DLINKVLAN.SYS
LoadOrderGroup  = PNP_TDI
Description     = %DLINK_Desc%

[DLINKVLAN.AddEventLog]
AddReg = DLINKVLAN.AddEventLog.AddReg

[DLINKVLAN.AddEventLog.AddReg]
HKR, , EventMessageFile, 0x20000, "%%SystemRoot%%\System32\netevent.dll"
HKR, , TypesSupported,   0x10001, 7

[DLINKVLAN.ndi.Remove.Services]
DelService = DLINKVLAN

[DLINKVLAN.ndi.Remove]
DelFiles = DLINKVLAN.CopyFiles.DLL, DLINKVLAN.CopyFiles.sys

[Strings]
DLINK = "D-Link"
DLINK_Desc = "D-Link VLAN Intermediate Driver"
DLINK_HELP = "D-Link VLAN Intermediate Driver"
DiskDescription = "DLINKVLAN Disk"



