What can be the possible reasons if wdm driver calls unload routine
atomatically. Win32 StartService routine returns :
"The service cannot be started, either because it is disabled or
because it has no enabled devices associated with it."

/ali

Re: Driver Unload by Don

Don
Tue Jan 03 20:07:58 CST 2006

You cannot use StartService on a WDM driver!


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply




"Ali" <abdulrazaq@gmail.com> wrote in message
news:1136339442.561098.183630@g14g2000cwa.googlegroups.com...
> What can be the possible reasons if wdm driver calls unload routine
> atomatically. Win32 StartService routine returns :
> "The service cannot be started, either because it is disabled or
> because it has no enabled devices associated with it."
>
> /ali
>



Re: Driver Unload by Ali

Ali
Wed Jan 04 10:15:52 CST 2006

Ok , now i have used registry script but the problem still remains
same. Though with registry script i was unable to even see my
DriverEntry and Unload routines , using scum way to install a driver
did help to see the DriverEntry and Unload trace.


Re: Driver Unload by Don

Don
Wed Jan 04 10:26:43 CST 2006

No, you need an INF file and either "Found New Hardware" or DevCon to
install the driver. You should not be messing with the registry directly
for a PNP driver!


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply




"Ali" <abdulrazaq@gmail.com> wrote in message
news:1136391352.691967.233500@f14g2000cwb.googlegroups.com...
> Ok , now i have used registry script but the problem still remains
> same. Though with registry script i was unable to even see my
> DriverEntry and Unload routines , using scum way to install a driver
> did help to see the DriverEntry and Unload trace.
>



Re: Driver Unload by Ali

Ali
Wed Jan 04 15:12:13 CST 2006

Thanks for pointing DevCon , really quite handy tool.
Well i was trying to do it in simple way don't know why its not
working, any how i'll try inf file.

G:\i386>devcon status *PNP04*
ROOT\*PNP0401\PNPBIOS_10
Name: ECP Printer Port (LPT1)
Device has a problem: 41.
1 matching device(s) found.

This was the following script that i was using to install driver ,
where i shall look for converting it to inf file syntax?

Regards,


REGEDIT4

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\pcell]
"Start"=dword:3
"Type"=dword:1
"ErrorControl"=dword:1
"DisplayName"="Parallel port device driver"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D56E978-E325-12CE-BFC1-08102BE10314}]
"UpperFilters"="pcell"


Re: Driver Unload by Ali

Ali
Thu Jan 05 08:34:28 CST 2006

Where to put IO port adddress in inf file and what is purpose of
following sections in genport.inf
[ WINDDK\3790\src\general\portio\genport.inf ].

[PortIO.LC0]
ConfigPriority=DESIRED
IOConfig=378-37b(3ff::) ; 10 bit decode ranging from 300 - 303

[PortIO.LC1]


Re: Driver Unload by Ali

Ali
Thu Jan 05 08:40:27 CST 2006

Hmm , just read the "parallel port" thread and i think its gonna work
for me
IoConfig=378-37a but do i have to tell inf about interrrupt? which my
driver will use , by default system assigns IRQ 7 to LPT1.

Thanks in advance.


Re: Driver Unload by nwk

nwk
Thu Jan 05 09:11:04 CST 2006


Hi, this is Wolfgang (nwk), who started the "parallel port" thread.

I'm curious whether it will work for you. Which OS (W2k, XP) do you use?

My .INF file includes:

IoConfig=378-37a
IRQConfig=7

btw: thanks for your answer to my FAQ question

Ali wrote:
> Hmm , just read the "parallel port" thread and i think its gonna work
> for me
> IoConfig=378-37a but do i have to tell inf about interrrupt? which my
> driver will use , by default system assigns IRQ 7 to LPT1.
>
> Thanks in advance.
>


Re: Driver Unload by Ali

Ali
Thu Jan 05 10:08:21 CST 2006

I am using Microsoft Windows XP [Version 5.1.2600] on built-in EPC

capablity Intel board.

Well havn't tried inf file so far but just did a little trick and

still observing. I have tried the following steps :

*) Control Panel \ System \ Device manager \ ECP Printer Port(LPT1)

Now i can atleast see success from CreateFile but WriteFile is never
returning back to me;-) waiting for freeze application.

Well i'm still not very sure for inf file. The ddk\portio\genport.inf
sample loos good to me but don't know how to just say that i want 378
to 37A ports with IRQ 7 and Nothing. NO DMA , or extra ports;-)
I'll let you know if it works:


I'm using folowing settings, thanks to Don for DevCon clue , really
handy stuff and smells Unix machine. l0l
**********************************************************
ROOT\*PNP0401\PNPBIOS_10
Name: ECP Printer Port (LPT
Driver is running.
1 matching device(s) found.

***********************************************************
ROOT\*PNP0401\PNPBIOS_10
Name: ECP Printer Port (LPT1)
Device is currently using the following resources:
IO : 0378-037f
IO : 0778-077a
DMA : 3
IRQ : 7


Re: Driver [Parallel Port ] by Ali

Ali
Thu Jan 05 10:21:31 CST 2006

Forget to paste:

Can't see my driver file here but it can be seen in GUI from device
manager

>devcon driverfiles =ports
ROOT\*PNP0401\PNPBIOS_10
Name: ECP Printer Port (LPT1)
Driver installed from c:\windows\inf\msports.inf [EcpPort]. 1
file(s) used b
y driver:
C:\WINDOWS\system32\DRIVERS\parport.sys


I can see me "loopback" driver here

>devcon stack =ports
ROOT\*PNP0401\PNPBIOS_10
Name: ECP Printer Port (LPT1)
Setup Class: {4D36E978-E325-11CE-BFC1-08002BE10318} Ports
Class upper filters:
loopback
Controlling service:
Parport