vbus.inf

来自「WDM的驱动程序实例,可供自学开发WDM者参考,其是在VC和COMPUWARE下」· INF 代码 · 共 67 行

INF
67
字号
;; Vbus.inf


;--------- Version Section ---------------------------------------------------

[Version]
Signature="$Windows 95$"
Provider=%ProviderName%

; If device fits one of the standard classes, use the name and GUID here,
; otherwise create your own device class and GUID as this example shows.

Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}

;--------- SourceDiskNames and SourceDiskFiles Section -----------------------

[SourceDisksNames]
1 = "Install Disk",Disk1,,

;[SourceDisksFiles]
;Vbus.sys = 1,,

;--------- DestinationDirs Section -------------------------------------------

[DestinationDirs]
Vbus_Files_Driver = 12

;--------- Manufacturer and Models Sections ----------------------------------

[Manufacturer]
%MfgName%=Mfg0

[Mfg0]
%DeviceDesc%=Vbus_DDI, root\Vbus

;---------- DDInstall Sections -----------------------------------------------
; --------- Windows NT -----------------

[Vbus_DDI.NT]
CopyFiles=Vbus_Files_Driver

[Vbus_DDI.NT.Services]
Addservice = Vbus, 0x00000002, Vbus_AddService

[Vbus_AddService]
DisplayName    = %SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\Vbus.sys


; --------- Files (common) -------------

[Vbus_Files_Driver]
Vbus.sys

;--------- Strings Section ---------------------------------------------------

[Strings]
ProviderName="Compuware Corporation"
MfgName="Compuware Corporation"
DeviceDesc="Virtual Bus Driver"
SvcDesc="Sample virtual bus enumerator"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?