fastergohome
驱动牛犊
驱动牛犊
  • 注册日期2004-08-02
  • 最后登录2004-11-13
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:4187回复:2

无线CDMA拨号上网驱动自动安装程序

楼主#
更多 发布于:2004-08-03 18:22
用ddk得BOOL
InstallRootEnumeratedDriver(IN  LPTSTR HardwareId,
    IN  LPTSTR INFFile,
    OUT PBOOL  RebootRequired  OPTIONAL
    )
这个代码安装测试了一下,是个不能用得设备。
请教版主是否要做一些转换。非常感谢。
以下是inf文件的内容:
[version]
signature="$CHICAGO$"
Class=USB
ClassGuid={36FC9E60-c465-11cf-8056-444553540000}
Provider=%Provider%
DriverVer=11/11/2002, 3.36.0.2700
;CatalogFile=mo_abus.cat

[ControlFlags]
ExcludeFromSelect = *

;-----------------------------------------------------------------------------
; Specify target paths...
;-----------------------------------------------------------------------------
[DestinationDirs]
DefaultDestDir                  = 11                    ; LDID_SYS
MotorolaWdm.W95.CopyFiles       = 11                    ; LDID_SYS
MotorolaWdm.NT.CopyFiles        = 12                    ; system32\drivers
PropPages.CopyFiles             = 11                    ; system

;-----------------------------------------------------------------------------
; Specify the install disks.  A bit unwieldy during development.
;-----------------------------------------------------------------------------
[SourceDisksNames]
; diskid = description[, [tagfile] [, <unused>, subdir]]
1=%DiskString%,"mo_abus.sys",,

[SourceDisksFiles]
; filename = diskid[, [subdir] [, size]]
mo_abus.sys = 1
mo_awh95.sys = 1
mo_awhnt.sys = 1

;-----------------------------------------------------------------------------
; Table of Contents:  manufacturer, then devices.
;-----------------------------------------------------------------------------
[Manufacturer]
%Motorola%=Motorola

;-----------------------------------------------------------------------------
; The devices
;-----------------------------------------------------------------------------
[Motorola]
%Motorola.CdcBus.Desc% = MotorolaWdm.Install, USB\VID_22B8&PID_6631
%Motorola.CdcBus.Desc% = MotorolaWdm.Install, USB\VID_22B8&PID_2842

;-----------------------------------------------------------------------------
; How to install them:  On W9x, the [section] name is used directly.
; On NT, the system first tries [section.NT], then [section].
;-----------------------------------------------------------------------------

;-----------------------------------------------------------------------------
; Diagnostics Files CopyFiles List Section
;-----------------------------------------------------------------------------
[Motorola.CopyFiles]

;-----------------------------------------------------------------------------
; XXX when we have a property page DLL, add it to the following section.
;-----------------------------------------------------------------------------
[PropPages.CopyFiles]

;-----------------------------------------------------------------------------
;       How to install the WDM driver on W95/W98
;-----------------------------------------------------------------------------
[MotorolaWdm.Install]
DriverVer=11/11/2002, 3.36.0.2700
CopyFiles       = MotorolaWdm.W95.CopyFiles, Motorola.CopyFiles, PropPages.CopyFiles
AddReg          = MotorolaWdm.AddReg, MotorolaWdm.W95.AddReg

;-----------------------------------------------------------------------------
;       How to install the WDM driver on NT
;-----------------------------------------------------------------------------
[MotorolaWdm.Install.NT]
DriverVer=11/11/2002, 3.36.0.2700
CopyFiles       = MotorolaWdm.NT.CopyFiles
AddReg          = MotorolaWdm.AddReg, MotorolaWdm.NT.AddReg

;-----------------------------------------------------------------------------
;       How to start the WDM driver on NT
;-----------------------------------------------------------------------------
[MotorolaWdm.Install.NT.Services]
AddService      = mo_abus, 2, MotorolaWdm.AddService

[MotorolaWdm.AddService]
DisplayName             = %Motorola.Service.Desc%
ServiceType             = 1     ; SERVICE_KERNEL_DRIVER
StartType               = 3     ; SERVICE_DEMAND_START
ErrorControl            = 1     ; SERVICE_ERROR_NORMAL
ServiceBinary           = %12%\mo_abus.sys
LoadOrderGroup          = Base

;-----------------------------------------------------------------------------
;       WDM registry entries (all platforms)
;-----------------------------------------------------------------------------
[MotorolaWdm.AddReg]


;-----------------------------------------------------------------------------
;       WDM registry entries (W95/98) (including how to start the driver)
;-----------------------------------------------------------------------------
[MotorolaWdm.W95.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,mo_abus.sys

;-----------------------------------------------------------------------------
;       WDM registry entries (NT only)
;-----------------------------------------------------------------------------
[MotorolaWdm.NT.AddReg]

;-----------------------------------------------------------------------------
;       The WDM copy list for Win95 -- different because things go in
;       different places.  Also, we probably need to rename drivers
;       during the install.
;-----------------------------------------------------------------------------
[MotorolaWdm.W95.CopyFiles]
mo_abus.sys
mo_awh.sys,mo_awh95.sys
mo_awh95.sys
mo_awhnt.sys

;-----------------------------------------------------------------------------
;       The WDM copy list for NT -- different because things go in
;       different places.
;-----------------------------------------------------------------------------
[MotorolaWdm.NT.CopyFiles]
mo_abus.sys
mo_awh.sys,mo_awhnt.sys
mo_awhnt.sys

;****************************************************************************
; Localizable Strings
;****************************************************************************
[strings]

;BEGIN ENG - US English Strings
Provider = "Motorola Korea, Inc."
Motorola = "Motorola Korea, Inc."
DiskString = "Motorola USB Composite Device Installation disk"

Motorola.CdcBus.Desc = "Motorola USB Composite Device"
Motorola.Service.Desc = "Motorola USB Composite Device driver (WDM)"

CustomerDataPath = "Motorola 1xEV-DO Handset"
DriverSet = "Motorola 1xEV-DO Handset Software"
UninstallFile = "MO_AUninstall.exe"
McciOptions = "Uninstallable"

fastergohome
驱动牛犊
驱动牛犊
  • 注册日期2004-08-02
  • 最后登录2004-11-13
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2004-08-10 23:03
搞定了2000下的安装,但是98下还是不行,正在努力中。。。。
fastergohome
驱动牛犊
驱动牛犊
  • 注册日期2004-08-02
  • 最后登录2004-11-13
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2004-08-12 16:40
98下的程序找到了,就是编译环境搭不好!请各位大侠指点一下如何使用msvc1。5编译器。总是提示无法加载mmd.386,我已经在system.ini文件里面加上了device=path\\mmd.386了。但是编译的时候还是提示不对。

[编辑 -  8/12/04 by  fastergohome]
游客

返回顶部