mirror of
https://github.com/wuxx/icesugar.git
synced 2026-01-09 15:57:00 +08:00
commit usbser.inf
This commit is contained in:
124
doc/usbser.inf
Normal file
124
doc/usbser.inf
Normal file
@@ -0,0 +1,124 @@
|
||||
;/*++
|
||||
;
|
||||
;Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
;
|
||||
;Module Name:
|
||||
; usbser.inf
|
||||
;
|
||||
;Abstract:
|
||||
; INF file for installing the USB Serial driver
|
||||
;
|
||||
;--*/
|
||||
|
||||
;*****************************************
|
||||
; Version section
|
||||
;*****************************************
|
||||
[Version]
|
||||
Signature = "$WINDOWS NT$"
|
||||
Class = Ports
|
||||
ClassGUID = {4D36E978-E325-11CE-BFC1-08002BE10318}
|
||||
Provider = %MSFT%
|
||||
PnpLockdown = 1
|
||||
DriverVer = 06/21/2006,10.0.18362.1
|
||||
|
||||
[DestinationDirs]
|
||||
DefaultDestDir = 12
|
||||
UsbSerial_CopyFiles = 12
|
||||
|
||||
;[SourceDisksNames]
|
||||
;3426 = windows cd
|
||||
|
||||
;[SourceDisksFiles]
|
||||
;usbser.sys = 3426
|
||||
|
||||
[ControlFlags]
|
||||
ExcludeFromSelect = *
|
||||
|
||||
;*****************************************
|
||||
; Install Section
|
||||
;*****************************************
|
||||
|
||||
[Manufacturer]
|
||||
%MSFT% = Standard, NTamd64
|
||||
|
||||
[Standard.NTamd64]
|
||||
%UsbSerial.DeviceDesc% = UsbSerial_Install, USB\Class_02&SubClass_02&Prot_01
|
||||
%UsbSerial.DeviceDesc% = UsbSerial_Install, USB\Class_02&SubClass_02
|
||||
|
||||
; USB modem filter driver for use with Include/Needs only
|
||||
%UsbSerialModem.DeviceDesc% = UsbSerial_ModemFilter_Install
|
||||
|
||||
[UsbSerial_Install.NT]
|
||||
CopyFiles = UsbSerial_CopyFiles
|
||||
AddReg = UsbSerial_AddReg
|
||||
AddProperty = UsbSerial_AddProperty
|
||||
|
||||
; intentionally blank so that in future if we ever put anything in here
|
||||
; it will get get picked up via Include/Needs
|
||||
[UsbSerial_Install.NT.Hw]
|
||||
|
||||
[UsbSerial_CopyFiles]
|
||||
usbser.sys,,,0x100
|
||||
|
||||
[UsbSerial_AddReg]
|
||||
HKR,,PortSubClass,%REG_BINARY%,02
|
||||
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
|
||||
|
||||
[UsbSerial_AddProperty]
|
||||
GenericDriverInstalled,,,,1
|
||||
|
||||
;*****************************************
|
||||
; Service installation section
|
||||
;*****************************************
|
||||
|
||||
[UsbSerial_Install.NT.Services]
|
||||
AddService = usbser,0x00000002,UsbSerial_Service_Install, UsbSerial_EventLog_Install
|
||||
|
||||
[UsbSerial_Service_Install]
|
||||
DisplayName = %UsbSerial.DriverDesc%
|
||||
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
|
||||
StartType = 3 ; SERVICE_DEMAND_START
|
||||
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
|
||||
ServiceBinary = %12%\usbser.sys
|
||||
|
||||
[UsbSerial_EventLog_Install]
|
||||
AddReg=UsbSerial_EventLog_AddReg
|
||||
|
||||
[UsbSerial_EventLog_AddReg]
|
||||
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\Drivers\usbser.sys"
|
||||
HKR,,TypesSupported,0x00010001,7
|
||||
|
||||
;***********************************************************
|
||||
; Modem install section to install usbser as a lower filter
|
||||
; (Include/Needs from modem INFs)
|
||||
;***********************************************************
|
||||
|
||||
[UsbSerial_ModemFilter_Install]
|
||||
CopyFiles=UsbSerial_CopyFiles
|
||||
|
||||
[UsbSerial_ModemFilter_Install.Hw]
|
||||
AddReg=UsbSerial_ModemFilter_AddReg
|
||||
|
||||
[UsbSerial_ModemFilter_AddReg]
|
||||
HKR,,LowerFilters,%REG_MULTI_SZ%,"usbser"
|
||||
|
||||
[UsbSerial_ModemFilter_Install.Services]
|
||||
AddService=usbser,,UsbSerial_Service_Install,UsbSerial_EventLog_Install
|
||||
|
||||
;*****************************************
|
||||
; Strings section
|
||||
;*****************************************
|
||||
|
||||
[Strings]
|
||||
; localizable
|
||||
MSFT = "Microsoft"
|
||||
UsbSerial.DeviceDesc = "USB Serial Device"
|
||||
UsbSerialModem.DeviceDesc = "USB Serial Modem Device"
|
||||
UsbSerial.DriverDesc = "Microsoft USB Serial Driver"
|
||||
|
||||
; non-localizable
|
||||
REG_BINARY = 0x00000001
|
||||
REG_MULTI_SZ = 0x00010000
|
||||
————————————————
|
||||
版权声明:本文为CSDN博主「半斗米」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
|
||||
原文链接:https://blog.csdn.net/zoomdy/java/article/details/102877153
|
||||
Reference in New Issue
Block a user