;***********************************************************************
; WlanGZGV64.INF
;
;   This installation script supports Windows Vista64 for the
;   Wireless LAN Adapters.
;
;   Copyright (c) 2008 ZyXEL, Inc.
;   All Rights Reserved.
;
;***********************************************************************

[Version]
DriverVer		= 07/29/2008,2.2.0.27
Signature		= "$Windows NT$"
Class			= Net
ClassGUID		= {4d36e972-e325-11ce-bfc1-08002be10318}
Provider		= %DRV_PROVIDER_STR%
LoutFiles               = layout.inf
CatalogFile	        = WlanGZGV64.cat


[Manufacturer]
%MANUFACTURER_STR%	= DeviceList, NTAMD64.6.0

;[ControlFlags]
;Exclude all PNP adapters from user selection
;ExcludeFromSelect   = *


[DeviceList.NTAMD64.6.0]
;DisplayName              Section                  Hardware ID
; -----------               -------                 --------
%WLAN_XG762_DESC_STR%      = WLAN_USB1,        USB\Vid_0586&Pid_340F
%WLAN_ZY202_DESC_STR%      = WLAN_USB2,        USB\Vid_0586&Pid_3410
%WLAN_ZY220_DESC_STR%      = WLAN_USB3,        USB\Vid_0586&Pid_3419

;*********************************************************************
;   Microsoft Windows AMD64.Vista section
;*********************************************************************
[WLAN_USB1]
Characteristics 	= 0x84
BusType         	= 15
AddReg			= WLAN_USB1_VS, WLAN_USB.reg, WLAN_USB_VS_Common.reg, hwchipid2.reg
CopyFiles       	= WLAN_USB_DRIVER_COPY_AMD64_VS
*IfType         	= 71		; IF_TYPE_IEEE80211
*MediaType      	= 16		; NdisMediumNative802_11
*PhysicalMediaType 	= 9		; NdisPhysicalMediumNative802_11

[WLAN_USB1_VS]
HKR,,                 VendorDesc,         0, %WLAN_XG762_DESC_STR%

[WLAN_USB1.Services]
AddService = "XG762_VS", 2, WLAN_USB.Service, WLAN_USB.EventLog

;-----------------------------------------------------------------------
[WLAN_USB2]
Characteristics 	= 0x84
BusType         	= 15
AddReg			= WLAN_USB2_VS, WLAN_USB.reg, WLAN_USB_VS_Common.reg, hwchipid2.reg
CopyFiles       	= WLAN_USB_DRIVER_COPY_AMD64_VS
*IfType         	= 71		; IF_TYPE_IEEE80211
*MediaType      	= 16		; NdisMediumNative802_11
*PhysicalMediaType 	= 9		; NdisPhysicalMediumNative802_11

[WLAN_USB2_VS]
HKR,,                 VendorDesc,         0, %WLAN_ZY202_DESC_STR%

[WLAN_USB2.Services]
AddService = "XG762_VS", 2, WLAN_USB.Service, WLAN_USB.EventLog

;-----------------------------------------------------------------------
[WLAN_USB3]
Characteristics 	= 0x84
BusType         	= 15
AddReg			= WLAN_USB3_VS, WLAN_USB.reg, WLAN_USB_VS_Common.reg, hwchipid2.reg
CopyFiles       	= WLAN_USB_DRIVER_COPY_AMD64_VS
*IfType         	= 71		; IF_TYPE_IEEE80211
*MediaType      	= 16		; NdisMediumNative802_11
*PhysicalMediaType 	= 9		; NdisPhysicalMediumNative802_11

[WLAN_USB3_VS]
HKR,,                 VendorDesc,         0, %WLAN_ZY220_DESC_STR%

[WLAN_USB3.Services]
AddService = "XG762_VS", 2, WLAN_USB.Service, WLAN_USB.EventLog

;========================================================================
[WLAN_USB.reg]
; Interfaces Info
HKR,NDI\Interfaces,   UpperRange,         0, "ndis5"
HKR,NDI\Interfaces,   LowerRange,         0, "wlan,ethernet"
HKR,NDI,              Service,            0, "XG762_VS"

[hwchipid2.reg]
HKR, ,                                  chipId,                         0,        "2"

;=========================WinVista common=======================================

[WLAN_USB.Service]
DisplayName     = %WLAN_USB_SERVICE_STR%
ServiceType     = 1                             ; %SERVICE_KERNEL_DRIVER%
StartType       = 3                             ; %SERVICE_DEMAND_START%
ErrorControl    = 1                             ; %SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\WlanGZG.sys		; 
LoadOrderGroup  = NDIS

[WLAN_USB.EventLog]
Addreg = WLAN_USB.AddEventLog.reg

[WLAN_USB.AddEventLog.reg]
HKR,,                               EventMessageFile,  0x00020000, "%%SystemRoot%%\System32\netevent.dll"
HKR,,                               TypesSupported,    0x00010001, 7

;******************************************************************************
[WLAN_USB_VS_Common.reg]

HKR, Ndi\params\*ReceiveBuffers,    ParamDesc,  0, "%ReceiveBuffers%"
HKR, Ndi\params\*ReceiveBuffers,    default,    0, "64"
HKR, Ndi\params\*ReceiveBuffers,    min,        0, "1"
HKR, Ndi\params\*ReceiveBuffers,    max,        0, "00000128"
HKR, Ndi\params\*ReceiveBuffers,    step,       0, "1"
HKR, Ndi\params\*ReceiveBuffers,    Base,       0, "10"
HKR, Ndi\params\*ReceiveBuffers,    type,       0, "int"

HKR, Ndi\params\*TransmitBuffers,   ParamDesc,  0, "%TransmitBuffers%"
HKR, Ndi\params\*TransmitBuffers,   default,    0, "64"
HKR, Ndi\params\*TransmitBuffers,   min,        0, "1"
HKR, Ndi\params\*TransmitBuffers,   max,        0, "00000064"
HKR, Ndi\params\*TransmitBuffers,   step,       0, "1"
HKR, Ndi\params\*TransmitBuffers,   Base,       0, "10"
HKR, Ndi\params\*TransmitBuffers,   type,       0, "int"

HKR, Ndi\params\NetworkAddress,     ParamDesc,  0,  %NetworkAddress%
HKR, Ndi\params\NetworkAddress,     default,    0,  ""
HKR, Ndi\params\NetworkAddress,     LimitText,  0,  "12"
HKR, Ndi\params\NetworkAddress,     UpperCase,  0,  "1"
HKR, Ndi\params\NetworkAddress,     optional,   0,  "1"
HKR, Ndi\params\NetworkAddress,     type,       0,  "edit"

HKR, Ndi\params\shortPreamble,      ParamDesc,  0,  %shortPreamble%
HKR, Ndi\params\shortPreamble,      Base,       0,  "10"
HKR, Ndi\params\shortPreamble,      default,    0,  "1"
HKR, Ndi\params\shortPreamble,      type,       0,  "enum"
HKR, Ndi\params\shortPreamble\enum, "1",        0,  %shortPreambleEnable%
HKR, Ndi\params\shortPreamble\enum, "0",        0,  %shortPreambleDisable%

HKR, Ndi\params\scanTimeValid,      ParamDesc,  0,  %scanTimeValid%
HKR, Ndi\params\scanTimeValid,      default,    0,  "60"
HKR, Ndi\params\scanTimeValid,      min,        0,  "20"
HKR, Ndi\params\scanTimeValid,      max,        0,  "120"
HKR, Ndi\params\scanTimeValid,      step,       0,  "5"
HKR, Ndi\params\scanTimeValid,      base,       0,  "10"
HKR, Ndi\params\scanTimeValid,      type,       0,  "int"


;*********************************************************************
;   Destination Directories
;*********************************************************************
[DestinationDirs]
WLAN_USB_DRIVER_COPY_AMD64_VS	= 12			; system32\drivers subdirectory on Win VS64

[WLAN_USB_DRIVER_COPY_AMD64_VS]
WlanGZG.sys,WlanGZGV64.sys,,2

[SourceDisksNames]
;Source Disk ID         = Disk Name
;--------------           ---------
 1                      = %INSTALL_DISK_STR%,,,

[SourceDisksFiles]      
;File Name              = Source Disk ID
;---------                --------------
WlanGZGV64.sys          = 1

;###############################################################################
[Strings]
DRV_PROVIDER_STR	= "ZyXEL Communications Corp."
MANUFACTURER_STR	= "ZyXEL Communications Corp."

INSTALL_DISK_STR	= "ZyXEL Wireless Adapter Utility"
WLAN_XG762_DESC_STR	= "ZyXEL G-220 v2 Wireless USB Adapter"
WLAN_ZY202_DESC_STR	= "ZyXEL G-202 Wireless USB Adapter"
WLAN_USB_SERVICE_STR 	= "ZyXEL 802.11g XG762 1211 Vista Driver"
WLAN_ZY220_DESC_STR     = "ZyXEL G-220v3 Wireless USB Adapter"

TransmitBuffers              = "Transmit Buffers"
ReceiveBuffers               = "Receive Buffers"
scanTimeValid                = "Scan Valid Interval"
shortPreamble                = "802.11b Preamble"
shortPreambleEnable          = "Long and Short"
shortPreambleDisable         = "Long only"
NetworkAddress               = "Network Address"