阅读:3486回复:3
急问:INF中有多个SERVICE,为什么?
有的INF文件中有多个SERVICE,请问它们的功能各是什么?0x0000,0x0002有什么区别?谢谢!!
[ThSerMux.NT.Services] AddService = ThSerMux, 0x00000000 , ThSerMux_Service_Inst, ThSerMux_EventLog_Inst AddService = ThSerial, 0x00000002 , ThSerial_Service_Inst, ThSerial_EventLog_Inst |
|
驱动小牛
![]() |
沙发#
发布于:2008-02-28 20:13
INF AddService Directive
[DDInstall.Services] AddService=ServiceName,[flags],service-install-section[, event-log-install-section[,[EventLogType][,EventName]]] flags Specifies one or more (ORed) of the following system-defined flags, defined in setupapi.h, expressed as a hexadecimal value: 0x00000002 (SPSVCINST_ASSOCSERVICE) Assign the named service as the PnP function driver (or legacy driver) for the device being installed by this INF file. Do not specify this flag when installing filter drivers or other driver components not directly associated with a device. Set this flag for only one driver for each INF DDIinstall.Services section. |
驱动小牛
![]() |
板凳#
发布于:2008-02-28 20:15
麻烦把[Manufacturer] Section 之后的都贴出来,
要不你自己对MSDN,光这两行要别人无法看啊 |
地板#
发布于:2008-03-14 08:58
;$$$Co_Sermux$$$ ; This tag is needed to trigger the device class
; ; Thesycon Serial Multiplexer ; ; Installation file (.inf) for the Sermux Port Driver ; ; (c) Copyright 2004 Thesycon ; [Version] Signature="$Windows NT$" Provider=%S_Povider% ClassGUID={50906cb8-ba12-11d1-bf5d-0000f805f530} Class=MultiportSerial CatalogFile=thsermux.cat DriverVer=04/29/2005,1.20.0.0 ; ; Driver information ; [Manufacturer] %S_Mfg%=_Devices [_Devices] ; test device %S_Device1%=ThSerMux,"PCMCIA\GENERIC-MODEM:_MD55X-3D3A" %S_Device1%=ThSerMux,"GENERIC-MODEM:_MD55X-015D-4C45" ; ; General installation section ; [ThSerMux.NT] CopyFiles=_CopyFiles_sys AddReg=_AddReg_SW [ThSerMux.NT.HW] AddReg = _AddReg_HW ; ; Service Installation ; [ThSerMux.NT.Services] AddService = ThSerMux, 0x00000000 , ThSerMux_Service_Inst, ThSerMux_EventLog_Inst AddService = ThSerial, 0x00000002 , ThSerial_Service_Inst, ThSerial_EventLog_Inst [ThSerMux_Service_Inst] ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 0x1 ; SERVICE_ERROR_NORMAL ServiceBinary = %12%\thsermux.sys [ThSerMux_EventLog_Inst] AddReg = ThSerMux_EventLog_AddReg [ThSerMux_EventLog_AddReg] HKR,,EventMessageFile,0x00020000,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\thsermux.sys" HKR,,TypesSupported,%REG_DWORD%,7 [ThSerial_Service_Inst] ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 0x1 ; SERVICE_ERROR_NORMAL ServiceBinary = %12%\thserial.sys [ThSerial_EventLog_Inst] AddReg = ThSerMux_EventLog_AddReg [ThSerial_EventLog_AddReg] HKR,,EventMessageFile,0x00020000,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\thserial.sys" HKR,,TypesSupported,%REG_DWORD%,7 [_AddReg_SW] ; is a serial port HKR,,PortSubClass,1,01 ; property page, system default HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" [_AddReg_HW] HKR,,"UpperFilters", REG_MULTI_SZ, thsermux ; parameter of the card ; the frequency of the card oszillator HKR,,ClockRate,%REG_DWORD%,14745600 ; the card is not turned off if the last virtual port is closed ; if this parameter is set to 0 HKR,,EnablePowerManagement,%REG_DWORD%,1 HKR,,PowerPolicyOwner,%REG_DWORD%,0 ; paramters for the modem HKR,,VirtualChannels,%REG_DWORD%,4 HKR,,BaudRate,%REG_DWORD%,230400 HKR,,MaximumFrameSize,%REG_DWORD%,127 ; timeout values HKR,,T1,%REG_DWORD%,50 HKR,,T2,%REG_DWORD%,90 HKR,,T3,%REG_DWORD%,10 HKR,,Retransmissions,%REG_DWORD%,3 HKR,,MSCEnable,%REG_DWORD%,1 HKR,,FlowControlEnable,%REG_DWORD%,1 HKR,,PNEnable,%REG_DWORD%,0 HKR,,PriorityEnable,%REG_DWORD%,0 HKR,,FConoffEnable,%REG_DWORD%,0 HKR,,PowerSaveEnable,%REG_DWORD%,0 HKR,,WakeUpTime,%REG_DWORD%,5000 ; setting for DLC1 HKR,DLC1,MaximumFrameSize,%REG_DWORD%,1500 HKR,DLC1,T1,%REG_DWORD%,50 HKR,DLC1,Retransmissions,%REG_DWORD%,3 HKR,DLC1,Priority,%REG_DWORD%,63 ; setting for DLC2 HKR,DLC2,MaximumFrameSize,%REG_DWORD%,1500 HKR,DLC2,T1,%REG_DWORD%,50 HKR,DLC2,Retransmissions,%REG_DWORD%,3 HKR,DLC2,Priority,%REG_DWORD%,63 [DestinationDirs] DefaultDestDir = 12 _CopyFiles_sys = 12 ; ; Source file information ; [SourceDisksNames.x86] 1 = %DiskId1%,,,"" [SourceDisksFiles] thsermux.sys = 1,, thserial.sys = 1,, [_CopyFiles_sys] thsermux.sys thserial.sys [ThSerMux.NT.LogConfigOverride] LogConfig=ComPortConfigurationOverride [ComPortConfigurationOverride] ConfigPriority=NORMAL IOConfig = 8@0-FFFF%FFF8 IRQConfig = 3,4,5,6,7,9,10,11,12,13,14,15 MemConfig = 1000@0-FFFFFFFF%FFFFF000(RWD) ;Allows access to DIO on VPU16550 PcCardConfig=45(A) [Strings] ; ; Localizable Strings ; S_Device1 = "Serial Multiplexer Driver" DiskId1 = "Thesycon Sermux Driver Disk" S_Mfg = "Thesycon GmbH" S_Povider = "Thesycon GmbH" ; ; Non-Localizable Strings, DO NOT MODIFY! ; REG_SZ = 0x00000000 REG_MULTI_SZ = 0x00010000 REG_EXPAND_SZ = 0x00020000 REG_BINARY = 0x00000001 REG_DWORD = 0x00010001 |
|