![]() |
|
|
#1 |
|
Guest
Posts: n/a
|
Driver Unload
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Re: Driver Unload
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" <> wrote in message news:1136339442.561098.183630@g14g2000cwa.googlegr oups.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 > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Re: Driver Unload
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] |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Re: Driver Unload
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. |
|
|
|
#5 |
|
Guest
Posts: n/a
|
Re: Driver Unload
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. > |
|
|
|
#6 |
|
Guest
Posts: n/a
|
Re: Driver Unload
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 |
|
|
|
#7 |
|
Guest
Posts: n/a
|
Re: Driver [Parallel Port ]
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 |
|
|
|
#8 |
|
Guest
Posts: n/a
|
Re: Driver Unload
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. |
|
|
|
#9 |
|
Guest
Posts: n/a
|
Re: Driver Unload
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" <> wrote in message news:1136391352.691967.233500@f14g2000cwb.googlegr oups.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. > |
|
|
|
#10 |
|
Guest
Posts: n/a
|
Re: Driver Unload
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\Servic es\pcell] "Start"=dword:3 "Type"=dword:1 "ErrorControl"=dword:1 "DisplayName"="Parallel port device driver" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Class\{4D56E978-E325-12CE-BFC1-08102BE10314}] "UpperFilters"="pcell" |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |