Hi all
I have developed a driver using the sample code from the ddk.When i load the driver it is giving code 31 error.It is asking to restart the system . I restarted the system . but no use.it is showing some yellow mark in the device manager for my driver . Below is my inf file
[Version]
Signature=“$Windows NT$”
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%SS_System%
CatalogFile=WUDF.cat
DriverVer=01/02/2012
[Manufacturer]
%SS_System%=sss,NTx86
[sss.NTx86]
%MyDeviceName%=SSS_Install,HID\VID_xxxx&PID_xxxx
%MyDeviceName%=SSS_Install,HID\VID_xxxx&PID_xxxx&Rev_xx
[SourceDisksNames]
2 = %MediaDescription%
[SSS_Install.NT]
CopyFiles=UMDriverCopy
[SSS_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall
[SSS_Install.NT.CoInstallers]
CopyFiles=CoInstallers_CopyFiles
AddReg=CoInstallers_AddReg
[SSS_Install.NT.Wdf]
UmdfService=ABC,SSS_Install
UmdfServiceOrder=ABC
[SourceDisksFiles]
Mydriver.dll=1
WudfUpdate_01009.dll=1
[SSS_Install]
UmdfLibraryVersion=1.9.0
ServiceBinary=%12%\UMDF\Mydriver.dll
DriverCLSID=“{56BN90ER-089B-1EE2-9581-C0KA3473817E}”
[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys
LoadOrderGroup = base
[CoInstallers_CopyFiles]
WudfUpdate_01009.dll
[CoInstallers_AddReg]
HKR,CoInstallers32,0x00010000,“WUDFUpdate_01009.dll”
[DestinationDirs]
UMDriverCopy=12,UMDF
CoInstallers_CopyFiles=14
[UMDriverCopy]
Mydriver.dll,0x0100
[Strings]
SS_System=“Test Driver”
MediaDescription=“Test Driver”
WudfRdDisplayName=“Windows Driver Foundation”
MyDeviceName=“MYDEVICE”
can anyone pls help me out. I have few queries regarding the inf file . I read MSDN documentation in the following link
http://msdn.microsoft.com/en-us/library/windows/hardware/ff554438(v=vs.85).aspx
where it is mentioned that unique service name should not be specified for reflector driver for operating systems earlier than Window8 preview.I am using Windows 7.does it creates a problem?
And also in the inf file CoInstallers_CopyFiles=14 is given . But 14 is never referenced in inf file anymore.is that correct or am i missing something?
One more thing that i am really confused is with the “LoadOrderGroup”.I could not see any proper documentation for this particular section of inf file . In some inf s it is mentioned that
LoadOrderGroup = base
LoadOrderGroup = extended base
LoadOrderGroup = pointer port
What exact value for LoadOrderGroup should i use in my inf
The driver loads in another system , ie i have two Windows 7 systems with equal configuration.In one system the driver is loading fine without any error.But in another system it is failing . What may be the reason?
I thought it may be the reason related to linking some of the dlls in the non working system . i tried dumpbin command and i got the following messages
Debug Directories
Type Size RVA Pointer
cv A0 000015B8 9B8 Format: RSDS
Section contains the following exports for Mydriver.dll
0 characteristics
4F639D1A time date stamp Sat Mar 17 01:35:46 2012
0.00 version
1 ordinal base
2 number of functions
2 number of names
ordinal hint RVA name
1 0 00001CA0 DllGetClassObject
2 1 0000A000 Microsoft_WDF:UMDF_Version
Section contains the following imports:
msvcrt.dll
10001070 Import Address Table
1000973C Import Name Table
0 time date stamp
0 Index of first forwarder reference
2EB _onexit
242 _lock
8D __dllonexit
3A6 _unlock
159 _except_handler4_common
101 _amsg_exit
1D5 _initterm
6A _XcptFilter
569 wcstombs
4A6 free
4DE malloc
12 ??xxxxx@YAPAXI@Z
4EE memset
4EA memcpy
29 ??xxxxx@YAPAXI@Z
2FC _purecall
14 ??xxxxx@YAXPAX@Z
KERNEL32.dll
1000101C Import Address Table
100096E8 Import Name Table
0 time date stamp
0 Index of first forwarder reference
342 Sleep
336 SetUnhandledExceptionFilter
35B UnhandledExceptionFilter
13B GetCurrentProcess
34A TerminateProcess
1C0 GetSystemTimeAsFileTime
13C GetCurrentProcessId
13E GetCurrentThreadId
1D4 GetTickCount
294 QueryPerformanceCounter
89 DisableThreadLibraryCalls
7F DeleteCriticalSection
299 RaiseException
218 InitializeCriticalSection
220 InterlockedIncrement
21C InterlockedDecrement
96 EnterCriticalSection
243 LeaveCriticalSection
21D InterlockedExchange
21B InterlockedCompareExchange
ADVAPI32.dll
10001000 Import Address Table
100096CC Import Name Table
0 time date stamp
0 Index of first forwarder reference
11B GetTraceEnableLevel
11C GetTraceLoggerHandle
208 RegisterTraceGuidsW
27A UnregisterTraceGuids
271 TraceMessage
11A GetTraceEnableFlags
ole32.dll
100010B8 Import Address Table
10009784 Import Name Table
0 time date stamp
0 Index of first forwarder reference
10 CoCreateInstance