[Emergency Call] Questions on Windows 98 INF (for a USB CDC modem)

Hoi,
I’ve developed a USB CDC modem driver (WDM) under Windows 98, and wanna
install it. The PZusb.inf file below can install the driver PZusb.sys in the
System32\Driver directory, but NTKERN couldn’t load it, that’s why the device
in the device manager was labeled a big yellow excalmatory mark. What’s more,
the DriverEntry routine wasn’t called from the debug session(SoftIce).

Could anybody give me a hint, or is there any wrong with the INF file?

--------------Begin----------------------
[Version] ; standard version section
Signature=$CHICAGO$
Class=USB
Provider=%String0%

[SourceDisksNames]
1=“PZusb Installation Disk”,

[SourceDisksFiles]
PZusb.sys = 1

[DestinationDirs]
PZusb.Files.Ext = 10,System32\Drivers

[Manufacturer]
%String0%=Microsoft

[Microsoft] ; device ID match
%MS1%=MSUSB,USB\VID_05C6&PID_6000&MI_00

[MSUSB] ; what todo when you have match
CopyFiles=PZusb.Files.Ext
AddReg=MSUSB.AddReg

[MSUSB.Services]
AddService=PZusb, 0x00000000, LowerFilter_Service_Inst

[LowerFilter_Service_Inst]
DisplayName = %USBFilterString6k%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %10%\System32\Drivers\PZusb.sys

[PZusb.Files.Ext]
PZusb.sys

[MSUSB.AddReg] ; specify devloader and driver stack
HKR,DevLoader,0,*ntkern
HKR,NTMPDriver,PZusb.sys

[MSUSB.HW] ; reference to put ChildID key in hardware devnode
AddReg=MSAddReg.HW

[MSAddReg.HW] ; actually generation of ChildID
HKR,ChildID,2,“USB\MSF9999”

[PreCopySection]
HKR,NoSetupUI,1

;[Models]
;%MS1PNP% = Modem1, USB\MSF9999

;[USB]
;HKR, DeviceType, 1, 01
;HKR,PortDriver,wdmmdmld.vxd
;HKR,Contention,0,

[Strings] ; friendly name strings
String0=“PZ Corporation”
MS1=“PZ 56K USB Modem”
USBFilterString6k = “PZ Proprietary USB Driver”

---------------End----------------------

Another question:
Because the USB CDC Modem driver I want to install in Windows 98 is ported
from a Windows 2000 version of this driver, so I referred to Walter Oney’s
WDMSTUB technique and wrote another INF file, but resulted in the same problem
I mentioned before.

Here’s the PZusb.inf with WDMSTUB technique referred.

-----------------Begin--------------------
[Version]
Signature=$CHICAGO$
Class=Modem
Provider=%Mfg%
CLASSGUID={4D36E96D-E325-11CE-BFC1-08002BE10318}
DriverVer=9/13/2002,1.0.0.10

[SourceDisksNames]
12 = %PZSRCDISK%,

[SourceDisksFiles]
wdmstub.sys = 12
PZusb.sys = 12

[DestinationDirs]
ONEYSTUB.Files.Ext = 10,SYSTEM32\DRIVERS

[Manufacturer]
%Mfg%=Microsoft

[ControlFlags]
ExcludeFromSelect = *

[Microsoft]
%PZ01% = Modem1, USB\VID_05C6&PID_3197&MI_00

[Modem1]
CopyFiles=ONEYSTUB.Files.Ext
AddReg = All, MfgAddReg, Modem1.AddReg, USB

[Modem1.Services]
AddService=PZusb, 0x00000000, LowerFilter_Service_Inst1

[Modem1.HW]
AddReg=LowerFilterAddReg1

[LowerFilterAddReg1]
HKR,ChildID,2,“USB\MSF9999”
HKR,“LowerFilters”,0x00010000,“PZusb”

[LowerFilter_Service_Inst1]
DisplayName = %USBFilterString1%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %10%\System32\Drivers\PZusb.sys

[ONEYSTUB.Files.Ext]
wdmstub.sys
PZusb.sys

[Strings]
Mfg = “PZ Incorporated”
PZSRCDISK = “PZ Multimedia USB Driver Disk”
USBFilterString0 = “PZ USB CDC Driver (PID 3100)”
USBFilterString1 = “PZ USB CDC Driver (PID 3196)”

PZ00 = “PZ USB CDC Modem (PID 3100)”
PZ01 = “PZ USB CDC Modem (PID 3196)”
PZ6K = “PZ Proprietary USB Modem (PID 6000)”

[All]
HKR,FriendlyDriver,0,Unimodem.vxd
HKR,DevLoader,0,*ntkern
HKR,NTMPDriver,“wdmstub.sys,PZusb.sys,ccport.sys”
HKR,ConfigDialog,0,modemui.dll
HKR,EnumPropPages,0,modemui.dll,EnumPropPages
HKR,PortSubClass,1,02
HKR, Init, 1, “AT”
; HKR, Responses, “OK”, 1, 00, 00, 00,00,00,00, 00,00,00,00
; HKR, Responses, “ERROR”, 1, 03, 00, 00,00,00,00,
00,00,00,00

[Modem1.AddReg]
HKR, Properties, 1, 80,01,00,00, FF,00,00,00, FF,00,00,00, 00,00,00,00,
00,00,00,00,00,01,00,00, 00,C2,01,00, 00,C2,01,00
HKR, FClass, 1, c3,00,00,00
HKR, Fax, CL1FCS, “2”
HKR, Fax, HardwareFlowControl, “1”

[USB]
HKR, DeviceType, 1, 01
HKR,PortDriver,wdmmdmld.vxd
HKR,Contention,0,

[MfgAddReg]
HKR, InactivityScale,1, 3c,00,00,00
HKR, Init, 1, “AT”
HKR, Init, 2, “ATE0V1”
HKR, Monitor, 1, “ATS0=0”
HKR, Monitor, 2, “None”
HKR, Answer, 1, “ATA”
HKR, Hangup, 1, “ATH E1”
HKR, Reset, “AT&F”

------------------End--------------------

Please, please, please — help~~~ (the Beatles? -_-!)

http://www.eyou.com
–Îȶ¨¿É¿¿µÄµç×ÓÐÅÏä ÓïÒôÓʼþ Òƶ¯ÊéÇ© ÈÕÀú·þÎñ ÍøÂç´æ´¢…ÒÚÓÊδ¾¡

http://vip.eyou.com
–¿ì¿ìµÇ¼ÒÚÓÊVIPÐÅÏä ×¢²áÄúÖÐÒâµÄÓû§Ãû

I guess ur hardware id i.e. device id vendor id could be wrong. Check for
the same in the registry. even if it is wrong by 1 bit, the O.S. will not
load the driver.

Purvi
----- Original Message -----
From: “Phoenix Chang”
To: “Windows System Software Devs Interest List”
Sent: Wednesday, October 20, 2004 2:36 PM
Subject: [ntdev] [Emergency Call] Questions on Windows 98 INF (for a USB CDC
modem)

> Hoi,
> I’ve developed a USB CDC modem driver (WDM) under Windows 98, and wanna
> install it. The PZusb.inf file below can install the driver PZusb.sys in
the
> System32\Driver directory, but NTKERN couldn’t load it, that’s why the
device
> in the device manager was labeled a big yellow excalmatory mark. What’s
more,
> the DriverEntry routine wasn’t called from the debug session(SoftIce).
>
> Could anybody give me a hint, or is there any wrong with the INF file?
>
> --------------Begin----------------------
> [Version] ; standard version section
> Signature=$CHICAGO$
> Class=USB
> Provider=%String0%
>
>
> [SourceDisksNames]
> 1=“PZusb Installation Disk”,
>
> [SourceDisksFiles]
> PZusb.sys = 1
>
> [DestinationDirs]
> PZusb.Files.Ext = 10,System32\Drivers
>
> [Manufacturer]
> %String0%=Microsoft
>
> [Microsoft] ; device ID match
> %MS1%=MSUSB,USB\VID_05C6&PID_6000&MI_00
>
> [MSUSB] ; what todo when you have match
> CopyFiles=PZusb.Files.Ext
> AddReg=MSUSB.AddReg
>
> [MSUSB.Services]
> AddService=PZusb, 0x00000000, LowerFilter_Service_Inst
>
> [LowerFilter_Service_Inst]
> DisplayName = %USBFilterString6k%
> ServiceType = 1
> StartType = 3
> ErrorControl = 1
> ServiceBinary = %10%\System32\Drivers\PZusb.sys
>
> [PZusb.Files.Ext]
> PZusb.sys
>
> [MSUSB.AddReg] ; specify devloader and driver stack
> HKR,DevLoader,0,*ntkern
> HKR,NTMPDriver,PZusb.sys
>
> [MSUSB.HW] ; reference to put ChildID key in hardware devnode
> AddReg=MSAddReg.HW
>
> [MSAddReg.HW] ; actually generation of ChildID
> HKR,ChildID,2,“USB\MSF9999”
>
> [PreCopySection]
> HKR,NoSetupUI,1
>
> ;[Models]
> ;%MS1PNP% = Modem1, USB\MSF9999
>
> ;[USB]
> ;HKR, DeviceType, 1, 01
> ;HKR,PortDriver,wdmmdmld.vxd
> ;HKR,Contention,0,
>
> [Strings] ; friendly name strings
> String0=“PZ Corporation”
> MS1=“PZ 56K USB Modem”
> USBFilterString6k = “PZ Proprietary USB Driver”
>
> ---------------End----------------------
>
> Another question:
> Because the USB CDC Modem driver I want to install in Windows 98 is ported
> from a Windows 2000 version of this driver, so I referred to Walter Oney’s
> WDMSTUB technique and wrote another INF file, but resulted in the same
problem
> I mentioned before.
>
> Here’s the PZusb.inf with WDMSTUB technique referred.
>
> -----------------Begin--------------------
> [Version]
> Signature=$CHICAGO$
> Class=Modem
> Provider=%Mfg%
> CLASSGUID={4D36E96D-E325-11CE-BFC1-08002BE10318}
> DriverVer=9/13/2002,1.0.0.10
>
> [SourceDisksNames]
> 12 = %PZSRCDISK%,
>
> [SourceDisksFiles]
> wdmstub.sys = 12
> PZusb.sys = 12
>
> [DestinationDirs]
> ONEYSTUB.Files.Ext = 10,SYSTEM32\DRIVERS
>
> [Manufacturer]
> %Mfg%=Microsoft
>
> [ControlFlags]
> ExcludeFromSelect = *
>
> [Microsoft]
> %PZ01% = Modem1, USB\VID_05C6&PID_3197&MI_00
>
> [Modem1]
> CopyFiles=ONEYSTUB.Files.Ext
> AddReg = All, MfgAddReg, Modem1.AddReg, USB
>
> [Modem1.Services]
> AddService=PZusb, 0x00000000, LowerFilter_Service_Inst1
>
>
> [Modem1.HW]
> AddReg=LowerFilterAddReg1
>
> [LowerFilterAddReg1]
> HKR,ChildID,2,“USB\MSF9999”
> HKR,“LowerFilters”,0x00010000,“PZusb”
>
> [LowerFilter_Service_Inst1]
> DisplayName = %USBFilterString1%
> ServiceType = 1
> StartType = 3
> ErrorControl = 1
> ServiceBinary = %10%\System32\Drivers\PZusb.sys
>
>
> [ONEYSTUB.Files.Ext]
> wdmstub.sys
> PZusb.sys
>
> [Strings]
> Mfg = “PZ Incorporated”
> PZSRCDISK = “PZ Multimedia USB Driver Disk”
> USBFilterString0 = “PZ USB CDC Driver (PID 3100)”
> USBFilterString1 = “PZ USB CDC Driver (PID 3196)”
>
> PZ00 = “PZ USB CDC Modem (PID 3100)”
> PZ01 = “PZ USB CDC Modem (PID 3196)”
> PZ6K = “PZ Proprietary USB Modem (PID 6000)”
>
> [All]
> HKR,FriendlyDriver,0,Unimodem.vxd
> HKR,DevLoader,0,ntkern
> HKR,NTMPDriver,“wdmstub.sys,PZusb.sys,ccport.sys”
> HKR,ConfigDialog,0,modemui.dll
> HKR,EnumPropPages,0,modemui.dll,EnumPropPages
> HKR,PortSubClass,1,02
> HKR, Init, 1, “AT”
> ; HKR, Responses, “OK”, 1, 00, 00, 00,00,00,00,
00,00,00,00
> ; HKR, Responses, “ERROR”, 1, 03, 00, 00,00,00,00,
> 00,00,00,00
>
> [Modem1.AddReg]
> HKR, Properties, 1, 80,01,00,00, FF,00,00,00, FF,00,00,00, 00,00,00,00,
> 00,00,00,00,00,01,00,00, 00,C2,01,00, 00,C2,01,00
> HKR, FClass, 1, c3,00,00,00
> HKR, Fax, CL1FCS, “2”
> HKR, Fax, HardwareFlowControl, “1”
>
> [USB]
> HKR, DeviceType, 1, 01
> HKR,PortDriver,wdmmdmld.vxd
> HKR,Contention,0,
>
> [MfgAddReg]
> HKR, InactivityScale,1, 3c,00,00,00
> HKR, Init, 1, “AT”
> HKR, Init, 2, “ATE0V1”
> HKR, Monitor, 1, “ATS0=0”
> HKR, Monitor, 2, “None”
> HKR, Answer, 1, “ATA”
> HKR, Hangup, 1, “ATH E1”
> HKR, Reset, “AT&F”
>
> ------------------End--------------------
>
> Please, please, please — help~~~ (the Beatles? -_-!)
>
>
>
>
>
> –http://www.eyou.com
> --$B%[%M%+%#%=%N%=%=%
%H%*nY%b%%J%^!&(B $B%b!&ˆU%O%7(Bþ $B%a%K%+%C%OrI%%(B $B%M%f%?(B
$By{(Bþ$B%[!&(B $B%XDn6l6!V(B…$B%a%l%b%O%[%(%;!#(B
>
> –http://vip.eyou.com
> --$B%=!&!&%L%D%7%a%l%b%O(BVIP$B%
%J%^!&(B $B%i!V%$bFz<%_%ad7%H%b%F%5%!%F!&(B
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@patni.ecnet.jp
> To unsubscribe send a blank email to xxxxx@lists.osr.com