Hi
I wrote a PnP driver and inf file to test it. First I used devcon and then I installed driver and it worked , DebugView showed my DbgPrints…
But something wrong.
This is my inf file:
****************************
[Version]
Signature=“$WINDOWS NT$”
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%Serimc%
[SourcesDisksNames]
1=%INSTDISK%
[SourceDisksFiles]
Deneme.sys=1,objchk_wlh_x86\i386
[DestinationDirs]
DefaultDestDir=12
[Manufacturer]
%Mfg%=Serimc_Company
[Serimc_company]
%DESCRIPTION%=DenemeInstall, root\SerimcDeneme
[DenemeInstall]
CopyFiles=SYS.CopyList
[SYS.CopyList]
Deneme.sys
[DenemeInstall.Services]
AddService=Deneme,%SPSVCINST_ASSOCSERVICE%,Driver_Service
[Driver_Service]
DisplayName=%SerViceName%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\Deneme.sys
[Strings]
Mfg=“Serimc Company Ltd”
Serimc=“Serimc Soft”
INSTDISK=“Serimc Soft Driver CD”
DESCRIPTION=“Deneme Bus Enumarator”
SPSVCINST_ASSOCSERVICE=0x00000002
SerViceName=“Serimc Driver Service”
*************************************
I have 2 questions.
1-) Device Manager shows :
“This device cannot start. (Code 10)”
Also i updated driver. Then It started to show Error Code 9. Why device man. shows these?
2-) In inf file, StartType is 3 (Demand start) but Windows loads it while starting. I can see the device object in WinObj.exe. Is something wrong in my inf file? I don’t understand why it is so.
In fact , i don’t know how i can load/unload Pnp Drivers on demand by command tool or etc. I want to load and unload Pnp Drivers (like OsrLoader), how can i do this?