; NETIrDA.INF -- IrDA transport
;
; Copyright (c) Microsoft Corporation.  All rights reserved.

[Version]
Signature   = "$Windows NT$"
Class       = NetTrans
ClassGUID   = {4d36e975-e325-11ce-bfc1-08002be10318}
Provider    = %Msft%
DriverVer = 06/21/2006,10.0.22621.1

[ControlFlags]
;-----------------------------------------------------
ExcludeFromSelect = MS_IrDA, MS_IrDA_COMPONENT

[Manufacturer]
;-----------------------------------------------------
%Msft% = Msft,NTx86...1,NTia64...1,NTamd64...1

[Msft.NTx86...1]
;-----------------------------------------------------
%IrDA.DisplayName% = IrDA.Install, MS_IrDA
%IrDA.DisplayName% = IrDA.Install, MS_IrDA_COMPONENT

[Msft.NTia64...1]
;-----------------------------------------------------
%IrDA.DisplayName% = IrDA.Install, MS_IrDA
%IrDA.DisplayName% = IrDA.Install, MS_IrDA_COMPONENT

[Msft.NTamd64...1]
;-----------------------------------------------------
%IrDA.DisplayName% = IrDA.Install, MS_IrDA
%IrDA.DisplayName% = IrDA.Install, MS_IrDA_COMPONENT


[IrDA.Install]
;-----------------------------------------------------
Characteristics = 0x0028    ; NCF_HIDDEN | NCF_NOT_USER_REMOVABLE
AddReg          = IrDA.Reg
;CopyFiles       = Irda.CopyFiles.Drivers, Irda.CopyFiles.Apps, Irda.CopyFiles.Media

;[IrDA.Install.Remove]
;DelReg          = Irda.Reg

[IrDA.Reg]
;-----------------------------------------------------
HKR, Ndi,             HelpText,    0,       %IrDA.HelpText%
;HKR, Ndi,             RequiredAll, 0,       "MS_IrdaMiniport"
HKR, Ndi,             Service,     0,       "IrDA"
HKR, Ndi,             CoServices,  %REG_MULTI_SZ%,   "IrDA","irmon"
HKR, Ndi\Interfaces,  UpperRange,  0,       "noupper"
HKR, Ndi\Interfaces,  LowerRange,  0,       "ndisirda"

[IrDA.Install.Services]
;-----------------------------------------------------
AddService = irda,    0, IrDA.AddService
AddService = Irmon,   0, Irmon.AddService

[IrDA.AddService]
;-----------------------------------------------------
DisplayName     = %IrDA.DisplayName%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 2 ;%SERVICE_AUTO_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\irda.sys
LoadOrderGroup  = "PNP_TDI"
AddReg          = IrDA.RegParams
Description     = %IrDA.DisplayName%

[IrDA.RegParams]
;-----------------------------------------------------
HKR, Parameters,      WindowSize,   %FLG_ADDREG_TYPE_DWORD%, 15 
     ; The maximum receive window is limited to 4 because of
     ; the IrDA protocols window of 7 which prevents the protocol
     ; from detecting invalid frames if there is large delays
     ; in the receive path. Limiting this to 4 has negligible
     ; impact on throughput.
     ; 15 = bit 0 - 3.

[IrDA.Install.Winsock]
;-----------------------------------------------------
AddSock = IrDA.AddWinsockHelper

[IrDA.AddWinsockHelper]
;-----------------------------------------------------
TransportService    = irda
HelperDllName       = "%%SystemRoot%%\System32\wshirda.dll"
MaxSockAddrLength   = 0x32
MinSockAddrLength   = 0x8

[Irmon.AddService]
;-----------------------------------------------------
DisplayName     = "@%%SystemRoot%%\System32\irmon.dll,-2000"
Description     = "@%%SystemRoot%%\System32\irmon.dll,-2001"
ServiceType     = 0x20    ;SERVICE_WIN32_SHARE_PROCESS
StartType       = 2       ;SERVICE_AUTO_START
ErrorControl    = 1       ;SERVICE_ERROR_NORMAL
ServiceBinary   = %11%\svchost.exe -k LocalSystemNetworkRestricted
LoadOrderGroup  = TDI
Dependencies    = irda
AddReg          = Irmon.Reg

[Irmon.Reg]
;-----------------------------------------------------
HKR, , ServiceSidType, %FLG_ADDREG_TYPE_DWORD%, 1
HKR, , RequiredPrivileges, 0x00010008 , "SeAssignPrimaryTokenPrivilege"
HKR, , RequiredPrivileges, 0x00010008 , "SeIncreaseQuotaPrivilege"
HKR, , RequiredPrivileges, 0x00010008 , "SeTcbPrivilege"
HKR, , RequiredPrivileges, 0x00010008 , "SeAuditPrivilege"
HKR, , RequiredPrivileges, 0x00010008 , "SeChangeNotifyPrivilege"
HKR, , RequiredPrivileges, 0x00010008 , "SeImpersonatePrivilege"
HKR, , FailureActions,     0x00000001 , 80, 51, 01, 00, 00, 00, 00, 00, 00, 00, 00, 00, 03, 00, 00, 00, 53, 00, 73, 00, 01, 00, 00, 00, 60, EA, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00

HKR, Parameters, ServiceDll, 0x00020000,  "%%SystemRoot%%\System32\irmon.dll"
HKR, Parameters, TrayEnabled,%FLG_ADDREG_TYPE_DWORD%, 1
HKR, Parameters, ServiceDllUnloadOnStop, %FLG_ADDREG_TYPE_DWORD%, 1

HKLM, SYstem\CurrentControlSet\Services\EventLog\System\irevents, CategoryCount, 0x00010001,  1
HKLM, SYstem\CurrentControlSet\Services\EventLog\System\irevents, TypesSupported, 0x00010001,  7
HKLM, SYstem\CurrentControlSet\Services\EventLog\System\irevents, CategoryMessageFile, "%%SystemRoot%%\System32\irmon.dll"
HKLM, SYstem\CurrentControlSet\Services\EventLog\System\irevents, EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\irmon.dll"

HKLM, System\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\RestrictedServices\Configurable\System,  "IRMON Block In",  0x00000000, "v2.0|Action=Block|Dir=In|App=%%SystemRoot%%\system32\svchost.exe|Svc=irmon|Name=Block irmon from all ports|"
HKLM, System\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\RestrictedServices\Configurable\System,  "IRMON Block Out", 0x00000000, "v2.0|Action=Block|Dir=Out|App=%%SystemRoot%%\system32\svchost.exe|Svc=irmon|Name=Block irmon from all ports|"

;[IrDA.Install.Remove.Services]
;-----------------------------------------------------
;DelService=irda
;DelService=Irmon

;[IrDA.Install.Remove.Winsock]
;-----------------------------------------------------
;DelSock = IrDA.DelWinsockHelper

;[IrDA.DelWinsockHelper]
;-----------------------------------------------------
;TransportService = irda

;[DestinationDirs]
;Irda.CopyFiles.Drivers = 12
;Irda.CopyFiles.Apps = 11
;Irda.CopyFiles.Media = 10, media

;[Irda.CopyFiles.Drivers]
;irda.sys
;rasirda.sys

;[Irda.CopyFiles.Apps]
;irftp.exe
;irmon.dll
;irprops.cpl
;wshirda.dll

;[Irda.CopyFiles.Media]
;Ir_begin.wav
;ir_end.wav
;ir_inter.wav

[Strings]
;-----------------------------------------------------
;Localizable
Msft                    = "Microsoft"
IrDA.DisplayName        = "IrDA Protocol"
IrDA.HelpText           = "Infrared Data Association Protocol. Easy to use self configuring point-to-point connectivity without wires"
Irmon.Description       = "Supports infrared devices installed on the computer and detects other devices that are in range."
Irmon.DisplayName       = "Infrared Monitor"

;Non-localizable
REG_MULTI_SZ            = 0x10000
FLG_ADDREG_TYPE_DWORD   = 0x00010001
