From: Chr1snv on
Hi,
I am trying to make a driver baised on the vhidmini example driver from the
3790.1830 WinDDK. I am on a windows 7 machine and have built the example with
the windows xp checked build enviroment, then copied the vhidmini.sys file
and testvhid.exe to the same directory as vhidmini.inf.
After running:
devcon install vhidmini.inf
"{D49F883C-6486-400a-8C22-1A9EF48577E4}\HID_DEVICE"
In device manager I see a unknown device.
How can I get vhidmini to install on windows 7?
Thank you,
Christopher
From: Aram Hăvărneanu on
> After running:
> devcon install vhidmini.inf
> "{D49F883C-6486-400a-8C22-1A9EF48577E4}\HID_DEVICE"
> In device manager I see a unknown device.

What do the logs say?

--
Aram Hăvărneanu

From: Chr1snv on
Console command:
C:\WinDDK\3790~1.183\src\wdm\hid\vhidmini>devcon install vhidmini.inf
"{D49F883C-6486-400a-8C22-1A9EF48577E4}\HID_DEVICE"
Device node created. Install is complete when drivers are updated...
Updating drivers for {D49F883C-6486-400a-8C22-1A9EF48577E4}\HID_DEVICE from
C:\WinDDK\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf.
devcon failed.

C:\WinDDK\3790~1.183\src\wdm\hid\vhidmini>

Tail End of setupapi.app.log:

>>> [Device Install (UpdateDriverForPlugAndPlayDevices) - {D49F883C-6486-400a-8C22-1A9EF48577E4}\HID_DEVICE]
>>> Section start 2010/01/05 15:45:52.152
cmd: devcon install vhidmini.inf
"{D49F883C-6486-400a-8C22-1A9EF48577E4}\HID_DEVICE"
dvi: Set selected driver complete.
dvi: {Build Driver List} 15:45:52.163
dvi: Searching for hardware ID(s):
dvi: {d49f883c-6486-400a-8c22-1a9ef48577e4}\hid_device
cpy: Policy is set to make all digital signatures equal.
dvi: Processing a single INF:
'c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf'
inf: Opened INF:
'c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf' ([strings])
sig: {_VERIFY_FILE_SIGNATURE} 15:45:52.167
sig: Key = vhidmini.inf
sig: FilePath =
c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf
sig: Catalog =
c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.cat
! sig: Verifying file against specific (valid) catalog failed!
(0x00000057)
! sig: Error 87: The parameter is incorrect.
sig: {_VERIFY_FILE_SIGNATURE exit(0x00000057)} 15:45:52.192
sig: {_VERIFY_FILE_SIGNATURE} 15:45:52.192
sig: Key = vhidmini.inf
sig: FilePath =
c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf
sig: Catalog =
c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.cat
! sig: Verifying file against specific Authenticode(tm) catalog
failed! (0x80092003)
! sig: Error 0x80092003: An error occurred while reading or
writing to a file.
sig: {_VERIFY_FILE_SIGNATURE exit(0x80092003)} 15:45:52.195
dvi: Created Driver Node:
dvi: HardwareID -
{D49F883C-6486-400a-8C22-1A9EF48577E4}\HID_DEVICE
dvi: InfName -
c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf
dvi: DevDesc - Root Enumerated Hid Device (sample)
dvi: DrvDesc - Root Enumerated Hid Device (sample)
dvi: Provider - Microsoft Corp
dvi: Mfg - Microsoft Corp
dvi: ModelsSec - Vendor.NTx86
dvi: InstallSec - VHidMini.Inst
dvi: ActualSec - VHidMini.Inst.NT
dvi: Rank - 0x80ff0000
dvi: Signer - Not digitally signed
dvi: Signer Score - Not digitally signed
dvi: DrvDate - 12/10/2004
dvi: Version - 2.0.1403.0
dvi: {Build Driver List - exit(0x00000000)} 15:45:52.201
dvi: {DIF_SELECTBESTCOMPATDRV} 15:45:52.202
dvi: No class installer for 'Human Interface Devices'
dvi: No CoInstallers found
dvi: Default installer: Enter 15:45:52.204
dvi: {Select Best Driver}
dvi: Selected driver installs from section
[VHidMini.Inst] in 'c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf'.
dvi: Class GUID of device remains:
{745a17a0-74d3-11d0-b6fe-00a0c90f57da}.
dvi: Set selected driver complete.
dvi: Selected:
dvi: Description - [Root Enumerated Hid Device
(sample)]
dvi: InfFile -
[c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf]
dvi: Section - [VHidMini.Inst]
dvi: Signer - [Not digitally signed]
dvi: Rank - [0x80ff0000]
dvi: {Select Best Driver - exit(0x00000000)}
dvi: Default installer: Exit
dvi: {DIF_SELECTBESTCOMPATDRV - exit(0x00000000)} 15:45:52.207
inf: {SetupCopyOEMInf:
c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf} 15:45:52.208
sto: {Import Driver Package:
c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf} 15:45:52.216
sto: Importing driver package into Driver Store:
sto: Driver Store = C:\Windows\System32\DriverStore
(Online | 6.1.7600)
sto: Driver Package =
c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf
sto: Architecture = x86
sto: Locale Name = neutral
sto: Flags = 0x00000000
sto: Copying driver package files to
'C:\Users\CHRIST~1\AppData\Local\Temp\{50d8f405-f2ea-0c91-7a8c-222a23d4ed0e}'.
inf: Opened INF:
'c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf' ([strings])
! inf: Could not find include INF file "layout.inf". Error =
0x00000002
inf: Opened INF:
'c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf' ([strings])
flq: {FILE_QUEUE_COPY}
flq: CopyStyle - 0x00000000
flq: SourceRootPath -
'c:\winddk\3790~1.183\src\wdm\hid\vhidmini\i386'
flq: SourceFilename - 'vhidmini.sys'
flq: TargetDirectory-
'C:\Users\CHRIST~1\AppData\Local\Temp\{50d8f405-f2ea-0c91-7a8c-222a23d4ed0e}\i386'
flq: {FILE_QUEUE_COPY exit(0x00000000)}
flq: {FILE_QUEUE_COPY}
flq: CopyStyle - 0x00000000
flq: SourceRootPath -
'c:\winddk\3790~1.183\src\wdm\hid\vhidmini'
flq: SourceFilename - 'vhidmini.inf'
flq: TargetDirectory-
'C:\Users\CHRIST~1\AppData\Local\Temp\{50d8f405-f2ea-0c91-7a8c-222a23d4ed0e}'
flq: {FILE_QUEUE_COPY exit(0x00000000)}
flq: {_commit_file_queue}
flq: CommitQ DelNodes=0 RenNodes=0 CopyNodes=2
flq: {_commit_copy_subqueue}
flq: subqueue count=2
flq: source media:
flq: SourcePath -
[c:\winddk\3790~1.183\src\wdm\hid\vhidmini\i386]
flq: SourceFile - [vhidmini.sys]
flq: Flags - 0x00000000
flq: source media:
flq: SourcePath -
[c:\winddk\3790~1.183\src\wdm\hid\vhidmini\i386]
flq: SourceFile - [vhidmini.sys]
flq: Flags - 0x00000000
flq: {_commit_copyfile}
!!! flq: Error installing file (0x00000002)
!!! flq: Error 2: The system cannot find the file
specified.
! flq: SourceFile -
'c:\winddk\3790~1.183\src\wdm\hid\vhidmini\i386\vhidmini.sys'
! flq: TargetFile -
'C:\Users\CHRIST~1\AppData\Local\Temp\{50d8f405-f2ea-0c91-7a8c-222a23d4ed0e}\i386\vhidmini.sys'
flq: {SPFQNOTIFY_COPYERROR}
!!! sto: Failed to copy file
'c:\winddk\3790~1.183\src\wdm\hid\vhidmini\i386\vhidmini.sys' to
'C:\Users\CHRIST~1\AppData\Local\Temp\{50d8f405-f2ea-0c91-7a8c-222a23d4ed0e}\i386\vhidmini.sys'. Error = 0x00000002
flq: {SPFQNOTIFY_COPYERROR - returned
0x00000000}
!!! flq: SPFQNOTIFY_COPYERROR: returned
SPFQOPERATION_ABORT.
!!! flq: Error 995: The I/O operation has been
aborted because of either a thread exit or an application request.
flq: {_commit_copyfile exit(0x000003e3)}
flq: {_commit_copy_subqueue exit(0x000003e3)}
!!! flq: FileQueueCommit aborting!
!!! flq: Error 995: The I/O operation has been aborted
because of either a thread exit or an application request.
flq: {_commit_file_queue exit(0x000003e3)}
!!! sto: Failed to copy driver package to
'C:\Users\CHRIST~1\AppData\Local\Temp\{50d8f405-f2ea-0c91-7a8c-222a23d4ed0e}'. Error = 0x00000002
sto: {Import Driver Package: exit(0x00000002)} 15:45:52.246
inf: Opened INF:
'c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf' ([strings])
! inf: Add to Driver Store unsuccessful
! inf: Error 2: The system cannot find the file specified.
!!! inf: returning failure to SetupCopyOEMInf
inf: {SetupCopyOEMInf exit (0x00000002)} 15:45:52.484
!!! ndv: Driver Package import failed for new device...installing NULL
driver.
!!! ndv: Error 2: The system cannot find the file specified.
dvi: {Plug and Play Service: Device Install for ROOT\HIDCLASS\0001}
ump: Creating Install Process: DrvInst.exe 15:45:52.500
! ndv: Installing NULL driver!
dvi: Set selected driver complete.
dvi: {DIF_ALLOW_INSTALL} 15:45:52.517
dvi: No class installer for 'Human Interface Devices'
dvi: No CoInstallers found
dvi: Default installer: Enter 15:45:52.518
dvi: Default installer: Exit
dvi: {DIF_ALLOW_INSTALL - exit(0xe000020e)} 15:45:52.518
dvi: {DIF_INSTALLDEVICE} 15:45:52.519
dvi: No class installer for 'Human Interface Devices'
dvi: Default installer: Enter 15:45:52.519
! dvi: Installing NULL driver!
! dvi: A NULL driver installation is not allowed for this
type of device!
!!! dvi: Cleaning up failed installation (e0000219)
!!! dvi: Default installer: failed!
!!! dvi: Error 0xe0000219: The installation failed because a
function driver was not specified for this device instance.
dvi: {DIF_INSTALLDEVICE - exit(0xe0000219)} 15:45:52.522
ump: Server install process exited with code 0xe0000219 15:45:52.527
ump: {Plug and Play Service: Device Install exit(e0000219)}
dvi: {Build Driver List} 15:45:52.539
! dvi: Driver list already built
dvi: {Build Driver List - exit(0x00000000)} 15:45:52.540
dvi: {DIF_SELECTBESTCOMPATDRV} 15:45:52.540
dvi: No class installer for 'Root Enumerated Hid Device (sample)'
dvi: Default installer: Enter 15:45:52.541
dvi: {Select Best Driver}
dvi: Selected driver installs from section
[VHidMini.Inst] in 'c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf'.
dvi: Class GUID of device remains:
{745a17a0-74d3-11d0-b6fe-00a0c90f57da}.
dvi: Set selected driver complete.
dvi: Selected:
dvi: Description - [Root Enumerated Hid Device
(sample)]
dvi: InfFile -
[c:\winddk\3790~1.183\src\wdm\hid\vhidmini\vhidmini.inf]
dvi: Section - [VHidMini.Inst]
dvi: Signer - [Not digitally signed]
dvi: Rank - [0x80ff0000]
dvi: {Select Best Driver - exit(0x00000000)}
dvi: Default installer: Exit
dvi: {DIF_SELECTBESTCOMPATDRV - exit(0x00000000)} 15:45:52.544
dvi: {DIF_NEWDEVICEWIZARD_FINISHINSTALL} 15:45:52.545
dvi: No class installer for 'Root Enumerated Hid Device (sample)'
dvi: Default installer: Enter 15:45:52.545
dvi: Default installer: Exit
dvi: {DIF_NEWDEVICEWIZARD_FINISHINSTALL - exit(0xe000020e)} 15:45:52.546
<<< Section end 2010/01/05 15:45:52.547
<<< [Exit status: SUCCESS]

"Aram Hăvărneanu" wrote:

> > After running:
> > devcon install vhidmini.inf
> > "{D49F883C-6486-400a-8C22-1A9EF48577E4}\HID_DEVICE"
> > In device manager I see a unknown device.
>
> What do the logs say?
>
> --
> Aram Hăvărneanu
>
> .
>
From: Chr1snv on
Sorry, that was actually from setupapi.dev.log
From: Aram Hăvărneanu on
Are you sure your inf file and your sys file are in the same directory?


--
Aram Hăvărneanu