;------------------------------------------------------------------------- ; plcsimlwf.INF -- S7-PLCSIM Advanced LightWeight Filter Driver ; ; Copyright (c) Siemens AG, 2016 - 2022 ; ; References ; https://docs.microsoft.com/en-us/windows-hardware/drivers/install/general-guidelines-for-inf-files ; https://docs.microsoft.com/en-us/windows-hardware/drivers/install/general-syntax-rules-for-inf-files ; https://docs.microsoft.com/en-us/windows-hardware/drivers/network/configuring-an-inf-file-for-a-modifying-filter-driver ;------------------------------------------------------------------------- ; https://docs.microsoft.com/en-us/windows-hardware/drivers/network/version-section-in-a-network-inf-file [version] Signature = "$Windows NT$" Class = NetService ClassGUID = {4D36E974-E325-11CE-BFC1-08002BE10318} CatalogFile = %DriverName%.cat PnpLockdown = 1 Provider = %Siemens% ; Date format MM/DD/YYYY DriverVer = 11/17/2022,11.35.43.993 [ControlFlags] ExcludeFromSelect = * [Manufacturer] %Siemens%=Siemens,NTx86,NTia64,NTamd64 [Siemens.NTx86] %FriendlyName%=Install, %ComponentID% [Siemens.NTia64] %FriendlyName%=Install, %ComponentID% [Siemens.NTamd64] %FriendlyName%=Install, %ComponentID% ;------------------------------------------------------------------------- ; Installation Section ; https://docs.microsoft.com/en-us/windows-hardware/drivers/network/ddinstall-section-in-a-network-inf-file ;------------------------------------------------------------------------- [Install] AddReg=Inst_Ndi Characteristics=0x40000 ; NCF_LW_FILTER ; Matches PLCSIMLWF_GUID NetCfgInstanceId="{F3D0DF96-3FA8-46F8-ADB7-3128DD861D24}" Copyfiles = plcsimlwf.copyfiles.sys [SourceDisksNames] 1=%FriendlyName%,"",, [SourceDisksFiles] ; Include any related files that should be installed with your driver plcsimlwf.sys=1 ; These numbers specify standard Windows directories ; https://docs.microsoft.com/en-us/windows-hardware/drivers/install/using-dirids [DestinationDirs] DefaultDestDir=12 plcsimlwf.copyfiles.sys=12 [plcsimlwf.copyfiles.sys] %DriverName%.sys,,,2 ;------------------------------------------------------------------------- ; Ndi installation support ; https://docs.microsoft.com/en-us/windows-hardware/drivers/network/add-registry-sections-in-a-network-inf-file ;------------------------------------------------------------------------- [Inst_Ndi] ; https://docs.microsoft.com/en-us/windows-hardware/drivers/network/adding-service-related-values-to-the-ndi-key HKR, Ndi,Service,,%DriverName% HKR, Ndi,CoServices,0x00010000,%DriverName% ; https://docs.microsoft.com/en-us/windows-hardware/drivers/network/adding-a-helptext-value HKR, Ndi,HelpText,,%DriverDescription% HKR, Ndi,FilterClass,,compression ; https://docs.microsoft.com/en-us/windows-hardware/drivers/network/types-of-filter-drivers HKR, Ndi,FilterType,0x00010001,2 ; modifying ; https://docs.microsoft.com/en-us/windows-hardware/drivers/network/specifying-filter-driver-binding-relationships HKR, Ndi\Interfaces,UpperRange,,"noupper" HKR, Ndi\Interfaces,LowerRange,,"nolower" HKR, Ndi\Interfaces,FilterMediaTypes,,"ethernet" ; https://docs.microsoft.com/en-us/windows-hardware/drivers/network/mandatory-filter-drivers HKR, Ndi,FilterRunType,0x00010001, 2 ; optional ;------------------------------------------------------------------------- ; Service installation support ; https://docs.microsoft.com/en-us/windows-hardware/drivers/network/ddinstall-services-section-in-a-network-inf-file ;------------------------------------------------------------------------- [Install.Services] AddService=%DriverName%,,NdisLwf_Service_Inst,NdisLwf_EventLog_Inst [NdisLwf_Service_Inst] DisplayName = %FriendlyName% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 1 ; SERVICE_SYSTEM_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %12%\%DriverName%.sys LoadOrderGroup = NDIS Description = %DriverDescription% AddReg = ServiceRegistry ; https://social.msdn.microsoft.com/Forums/windows/en-US/583d58a4-3d7d-4450-9e38-00e6afa2b6a8/uninstalling-ndis-lwf-using-netcfg-does-not-remove-the-driver-package-from-system32drivers-folder?forum=wdk [Install.Remove.Services] DelService=%DriverName%,0x200 ; SPSVCINST_STOPSERVICE [ServiceRegistry] HKR, Parameters, Version, %FLG_ADDREG_TYPE_SZ%, %VersionText% HKR, Parameters, PLCSIMAdapter, %FLG_ADDREG_TYPE_SZ%, "" HKR, Parameters, CommAdapter, %FLG_ADDREG_TYPE_SZ%, "" HKR, Parameters, State, %FLG_ADDREG_TYPE_SZ%, "Stopped" HKR, Parameters, Promiscuous, %FLG_ADDREG_TYPE_SZ%, "1" [NdisLwf_EventLog_Inst] AddReg = NdisLwf_EventLog_AddReg [NdisLwf_EventLog_AddReg] HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\%DriverName%.sys" HKR,,TypesSupported,0x00010001,7 [Strings] ; Matches PLCSIM_COMMUNICATION_COMPANY Siemens = "Siemens AG" ; Matches PLCSIMLWF_DRIVER_NAME DriverName = "plcsimlwf" ; Matches PLCSIMLWF_FRIENDLY_NAME FriendlyName = "S7-PLCSIM Advanced Virtual Switch" ; Matches PLCSIMLWF_DESCRIPTION DriverDescription = "Provides access to physical network interfaces for the virtual PLC instances." ; Matches PLCSIMLWF_FULL_VERSION VersionText = "102.00.00.00" ; Matches PLCSIMLWF_COMPONENT_ID ComponentID = "plcsim_ndislwf" FLG_ADDREG_TYPE_SZ = 0x00000000 FLG_ADDREG_TYPE_MULTI_SZ = 0x00010000 FLG_ADDREG_TYPE_DWORD = 0x00010001 FLG_ADDREG_TYPE_EXPAND_SZ = 0x00020000