Hi there

I already searched all over the web, MSDN and DDK help - without success - for
the following problem:

In my INF file I have the following:

[MyDevice.Services.Install]
DisplayName = %MyDevice.Descr%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\system32\drivers\usbser.sys
LoadOrderGroup = Base

This works fine for Win2k, where I get a new key under
"HKLM/System/CurrentControlSet/Services"
On WinME I don't get such an entry. Also there is no COM port available in the
end, there's no error in the Device Manager and I can't find any error in the
setupapi.log (LogLevel = 0xffffffff, as Walter Oney suggests) except that the
driver is not signed.

Any idea? How bring usbser to work? Should I ask this question at another
newsgroup/site?

What works already is, that usbser.sys and ntkern.vxd get extracted to the
system (where it isn't prior to installation) from the Windows installation CD.

Many thanks for every help!

Robin

P.S.: Other INF file part I use (maybe this could help):

[Version]
Signature = "$CHICAGO$"
Class=Ports
ClassGUID = {4D36E978-E325-11CE-BFC1-08002BE10318}
Provider = %factory%
LayoutFile = Layout.inf,Layout1.inf,Layout2.inf
DriverVer=10/12/2004,0.0.4.1

[DestinationDirs]
DefaultDestDir = 10,system32\drivers; Good for all OSs: "%windir%\system32\drivers"

[ControlFlags]
ExcludeFromSelect = *

[Manufacturer]
%faxtory% = MyFactory


[MyFactory]
; My device shows up with 2 interfaces that usbser requires.
; How shall I handle them?????
;%MyDevice.Descr% = MyDevice,USB\VID_1234&PID_4321&MI_00
;%MyDevice.Descr% = MyDevice,USB\VID_1234&PID_4321&MI_01

%MyDevice.Descr% = MyDevice,USB\VID_1234&PID_4321

; There are other Configurations I register here
; The only difference is another PID


[MyDevice]
AddReg = MyDevice.AddReg
CopyFiles = MyDevice.Copy

[MyDevice.NT]
AddReg = MyDevice.AddReg.NT
CopyFiles = MyDevice.Copy.NT

[MyDevice.Services]
AddService = usbser, 0x00000002, MyDevice.Services.Install

[MyDevice.Services.NT]
AddService = usbser, 0x00000002, MyDevice.Services.Install

[MyDevice.Services.Install]
DisplayName = %MyDevice.Descr%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\system32\drivers\usbser.sys
LoadOrderGroup = Base

[MyDevice.AddReg]
HKR,,DevLoader,0,*ntkern
HKR,,NTMPDriver,,"usbser.sys,ccport.sys"

[MyDevice.AddReg.NT]
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[MyDevice.Copy]
usbser.sys,,,
ntkern.vxd,,,
ccport.sys,,,

[MyDevice.Copy.NT]
usbser.sys

RE: URGENT Help needed: service doesn't load on WinME with INF file by pavel_a

pavel_a
Wed Oct 13 13:49:02 CDT 2004

This service definition style is specific for NT based OS.
It is not relevant for Win9/Me - no NT services there.

--PA

"Robin" wrote:

> Hi there
>
> I already searched all over the web, MSDN and DDK help - without success - for
> the following problem:
>
> In my INF file I have the following:
>
> [MyDevice.Services.Install]
> DisplayName = %MyDevice.Descr%
> ServiceType = 1 ; SERVICE_KERNEL_DRIVER
> StartType = 3 ; SERVICE_DEMAND_START
> ErrorControl = 1 ; SERVICE_ERROR_NORMAL
> ServiceBinary = %10%\system32\drivers\usbser.sys
> LoadOrderGroup = Base
>
> This works fine for Win2k, where I get a new key under
> "HKLM/System/CurrentControlSet/Services"
> On WinME I don't get such an entry. Also there is no COM port available in the
> end, there's no error in the Device Manager and I can't find any error in the
> setupapi.log (LogLevel = 0xffffffff, as Walter Oney suggests) except that the
> driver is not signed.
>
> Any idea? How bring usbser to work? Should I ask this question at another
> newsgroup/site?
>
> What works already is, that usbser.sys and ntkern.vxd get extracted to the
> system (where it isn't prior to installation) from the Windows installation CD.
>
> Many thanks for every help!
>
> Robin
>
> P.S.: Other INF file part I use (maybe this could help):
>
> [Version]
> Signature = "$CHICAGO$"
> Class=Ports
> ClassGUID = {4D36E978-E325-11CE-BFC1-08002BE10318}
> Provider = %factory%
> LayoutFile = Layout.inf,Layout1.inf,Layout2.inf
> DriverVer=10/12/2004,0.0.4.1
>
> [DestinationDirs]
> DefaultDestDir = 10,system32\drivers; Good for all OSs: "%windir%\system32\drivers"
>
> [ControlFlags]
> ExcludeFromSelect = *
>
> [Manufacturer]
> %faxtory% = MyFactory
>
>
> [MyFactory]
> ; My device shows up with 2 interfaces that usbser requires.
> ; How shall I handle them?????
> ;%MyDevice.Descr% = MyDevice,USB\VID_1234&PID_4321&MI_00
> ;%MyDevice.Descr% = MyDevice,USB\VID_1234&PID_4321&MI_01
>
> %MyDevice.Descr% = MyDevice,USB\VID_1234&PID_4321
>
> ; There are other Configurations I register here
> ; The only difference is another PID
>
>
> [MyDevice]
> AddReg = MyDevice.AddReg
> CopyFiles = MyDevice.Copy
>
> [MyDevice.NT]
> AddReg = MyDevice.AddReg.NT
> CopyFiles = MyDevice.Copy.NT
>
> [MyDevice.Services]
> AddService = usbser, 0x00000002, MyDevice.Services.Install
>
> [MyDevice.Services.NT]
> AddService = usbser, 0x00000002, MyDevice.Services.Install
>
> [MyDevice.Services.Install]
> DisplayName = %MyDevice.Descr%
> ServiceType = 1 ; SERVICE_KERNEL_DRIVER
> StartType = 3 ; SERVICE_DEMAND_START
> ErrorControl = 1 ; SERVICE_ERROR_NORMAL
> ServiceBinary = %10%\system32\drivers\usbser.sys
> LoadOrderGroup = Base
>
> [MyDevice.AddReg]
> HKR,,DevLoader,0,*ntkern
> HKR,,NTMPDriver,,"usbser.sys,ccport.sys"
>
> [MyDevice.AddReg.NT]
> HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
>
> [MyDevice.Copy]
> usbser.sys,,,
> ntkern.vxd,,,
> ccport.sys,,,
>
> [MyDevice.Copy.NT]
> usbser.sys
>
>
>
>

Re: URGENT Help needed: service doesn't load on WinME with INF file by Robin

Robin
Thu Oct 14 02:36:31 CDT 2004

Thank you very much. This is a statement I couldn't find so far.

Do you know what to do instead of this? Actually I found this Service-INF-code
in an example for installation of a standard USB modem under Windows 98/ME,
using usbser.sys. I didn't know, that it's wrong.

I appreciate your help!

Robin


Pavel A. wrote:

> This service definition style is specific for NT based OS.
> It is not relevant for Win9/Me - no NT services there.
>
> --PA
>
> "Robin" wrote:
>
>
>>Hi there
>>
>>I already searched all over the web, MSDN and DDK help - without success - for
>>the following problem:
>>
>>In my INF file I have the following:
>>
>>[MyDevice.Services.Install]
>>DisplayName = %MyDevice.Descr%
>>ServiceType = 1 ; SERVICE_KERNEL_DRIVER
>>StartType = 3 ; SERVICE_DEMAND_START
>>ErrorControl = 1 ; SERVICE_ERROR_NORMAL
>>ServiceBinary = %10%\system32\drivers\usbser.sys
>>LoadOrderGroup = Base
>>
>>This works fine for Win2k, where I get a new key under
>> "HKLM/System/CurrentControlSet/Services"
>>On WinME I don't get such an entry. Also there is no COM port available in the
>>end, there's no error in the Device Manager and I can't find any error in the
>>setupapi.log (LogLevel = 0xffffffff, as Walter Oney suggests) except that the
>>driver is not signed.
>>
>>Any idea? How bring usbser to work? Should I ask this question at another
>>newsgroup/site?
>>
>>What works already is, that usbser.sys and ntkern.vxd get extracted to the
>>system (where it isn't prior to installation) from the Windows installation CD.
>>
>>Many thanks for every help!
>>
>>Robin
>>
>>P.S.: Other INF file part I use (maybe this could help):
>>
>>[Version]
>>Signature = "$CHICAGO$"
>>Class=Ports
>>ClassGUID = {4D36E978-E325-11CE-BFC1-08002BE10318}
>>Provider = %factory%
>>LayoutFile = Layout.inf,Layout1.inf,Layout2.inf
>>DriverVer=10/12/2004,0.0.4.1
>>
>>[DestinationDirs]
>>DefaultDestDir = 10,system32\drivers; Good for all OSs: "%windir%\system32\drivers"
>>
>>[ControlFlags]
>>ExcludeFromSelect = *
>>
>>[Manufacturer]
>>%faxtory% = MyFactory
>>
>>
>>[MyFactory]
>>; My device shows up with 2 interfaces that usbser requires.
>>; How shall I handle them?????
>>;%MyDevice.Descr% = MyDevice,USB\VID_1234&PID_4321&MI_00
>>;%MyDevice.Descr% = MyDevice,USB\VID_1234&PID_4321&MI_01
>>
>>%MyDevice.Descr% = MyDevice,USB\VID_1234&PID_4321
>>
>>; There are other Configurations I register here
>>; The only difference is another PID
>>
>>
>>[MyDevice]
>>AddReg = MyDevice.AddReg
>>CopyFiles = MyDevice.Copy
>>
>>[MyDevice.NT]
>>AddReg = MyDevice.AddReg.NT
>>CopyFiles = MyDevice.Copy.NT
>>
>>[MyDevice.Services]
>>AddService = usbser, 0x00000002, MyDevice.Services.Install
>>
>>[MyDevice.Services.NT]
>>AddService = usbser, 0x00000002, MyDevice.Services.Install
>>
>>[MyDevice.Services.Install]
>>DisplayName = %MyDevice.Descr%
>>ServiceType = 1 ; SERVICE_KERNEL_DRIVER
>>StartType = 3 ; SERVICE_DEMAND_START
>>ErrorControl = 1 ; SERVICE_ERROR_NORMAL
>>ServiceBinary = %10%\system32\drivers\usbser.sys
>>LoadOrderGroup = Base
>>
>>[MyDevice.AddReg]
>>HKR,,DevLoader,0,*ntkern
>>HKR,,NTMPDriver,,"usbser.sys,ccport.sys"
>>
>>[MyDevice.AddReg.NT]
>>HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
>>
>>[MyDevice.Copy]
>>usbser.sys,,,
>>ntkern.vxd,,,
>>ccport.sys,,,
>>
>>[MyDevice.Copy.NT]
>>usbser.sys
>>
>>
>>
>>