microsoft / Windows-driver-samples

This repo contains driver samples prepared for use with Microsoft Visual Studio and the Windows Driver Kit (WDK). It contains both Universal Windows Driver and desktop-only driver samples.
Microsoft Public License
6.79k stars 4.89k forks source link

【SYSVAD】: devcon install TabletAudioSample.inf Root\Sysvad_TabletAudioSample failed #1047

Open hellomanyi opened 8 months ago

hellomanyi commented 8 months ago

I follow step from README.md, Built all related files. then close secureboot and reboot into testmode;

then perfrom " devcon install TabletAudioSample.inf Root\Sysvad_TabletAudioSample" success;

and I find a "!" in "Virtual Audio Device(WDM) - Tablet Sample" item in device manager;

setupapi.dev.log shows: Device not started: Device has problem: 0x27 (CM_PROB_DRIVER_FAILED_LOAD), problem status: 0xc0000263;

I find https://github.com/microsoft/Windows-driver-samples/issues/21 and try "pnputil.exe -a tabletaudiosample.inf", but still failed;

setupapi.dev.log detail:

[Device Install (UpdateDriverForPlugAndPlayDevices) - Root\Sysvad_TabletAudioSample] Section start 2023/11/01 16:40:38.438 cmd: devcon install TabletAudioSample.inf Root\Sysvad_TabletAudioSample ndv: INF path: C:\Users\Admin\Downloads\Debug2\Debug\package\TabletAudioSample.inf ndv: Install flags: 0x00000001 ndv: {Update Device Driver - ROOT\MEDIA\0000} ndv: Search options: 0x00000080 ndv: Searching single INF 'C:\Users\Admin\Downloads\Debug2\Debug\package\TabletAudioSample.inf' dvi: {Build Driver List} 16:40:38.459 dvi: Searching for hardware ID(s): dvi: root\sysvad_tabletaudiosample dvi: Created Driver Node: dvi: HardwareID - Root\sysvad_TabletAudioSample dvi: InfName - c:\users\admin\downloads\debug2\debug\package\tabletaudiosample.inf dvi: DevDesc - Virtual Audio Device (WDM) - Tablet Sample dvi: Section - SYSVAD_SA.NT dvi: Rank - 0x00ff0000 dvi: Signer Score - Authenticode dvi: DrvDate - 10/31/2023 dvi: Version - 15.42.29.362 dvi: {Build Driver List - exit(0x00000000)} 16:40:38.480 dvi: {DIF_SELECTBESTCOMPATDRV} 16:40:38.482 dvi: Default installer: Enter 16:40:38.483 dvi: {Select Best Driver} dvi: Class GUID of device changed to: {4d36e96c-e325-11ce-bfc1-08002be10318}. dvi: Selected Driver: dvi: Description - Virtual Audio Device (WDM) - Tablet Sample dvi: InfFile - c:\users\admin\downloads\debug2\debug\package\tabletaudiosample.inf dvi: Section - SYSVAD_SA dvi: {Select Best Driver - exit(0x00000000)} dvi: Default installer: Exit dvi: {DIF_SELECTBESTCOMPATDRV - exit(0x00000000)} 16:40:38.493 ndv: Force Installing Driver: ndv: Inf Name - tabletaudiosample.inf ndv: Driver Date - 10/31/2023 ndv: Driver Version - 15.42.29.362 ndv: Driver package 'C:\Windows\System32\DriverStore\FileRepository\tabletaudiosample.inf_amd64_ff2e83c77471f6bb\tabletaudiosample.inf' is already imported. sto: {Setup Import Driver Package: c:\users\admin\downloads\debug2\debug\package\tabletaudiosample.inf} 16:40:38.503 sto: Driver package already imported as 'oem1.inf'. sto: {Setup Import Driver Package - exit (0x00000000)} 16:40:38.516 dvi: Searching for hardware ID(s): dvi: root\sysvad_tabletaudiosample dvi: Class GUID of device changed to: {4d36e96c-e325-11ce-bfc1-08002be10318}. ump: {Plug and Play Service: Device Install for ROOT\MEDIA\0000} dvi: {Core Device Install} 16:40:38.557 dvi: {Configure Device - ROOT\MEDIA\0000} 16:40:38.557 dvi: Device Status: 0x01802001 dvi: Parent Device: HTREE\ROOT\0 sto: {Configure Driver Package: C:\Windows\System32\DriverStore\FileRepository\tabletaudiosample.inf_amd64_ff2e83c77471f6bb\tabletaudiosample.inf} sto: Source Filter = root\sysvad_tabletaudiosample inf: Class GUID = {4d36e96c-e325-11ce-bfc1-08002be10318} inf: Class Options = Configurable inf: {Configure Driver: Virtual Audio Device (WDM) - Tablet Sample} inf: Section Name = SYSVAD_SA.NT inf: {Add Service: sysvad_tabletaudiosample} inf: Start Type = 3 inf: Service Type = 1 inf: Error Control = 1 inf: Image Path = \SystemRoot\System32\DriverStore\FileRepository\tabletaudiosample.inf_amd64_ff2e83c77471f6bb\tabletaudiosample.sys inf: Display Name = Virtual Audio Device (WDM) - Tablet Sample Driver inf: Reactivating service 'sysvad_tabletaudiosample' pended for deletion. inf: Updated service 'sysvad_tabletaudiosample'. inf: {Add Service: exit(0x00000000)} inf: Hardware Id = Root\sysvad_TabletAudioSample inf: {Configure Driver Configuration: SYSVAD_SA.NT} inf: Service Name = sysvad_tabletaudiosample inf: Included INFs = ks.inf inf: wdmaudio.inf inf: Include Scope = Services inf: Config Flags = 0x00000000 inf: {Configure Driver Configuration: exit(0x00000000)} inf: {Configure Driver: exit(0x00000000)} flq: {FILE_QUEUE_COMMIT} 16:40:38.668 flq: Hardlinking 'C:\Windows\System32\DriverStore\FileRepository\wdmaudio.inf_amd64_cb639d1f182bc449\drmk.sys' to 'C:\Windows\System32\drivers\drmk.sys'. cpy: Existing file 'C:\Windows\System32\drivers\drmk.sys' remains unchanged. flq: Hardlinking 'C:\Windows\System32\DriverStore\FileRepository\wdmaudio.inf_amd64_cb639d1f182bc449\portcls.sys' to 'C:\Windows\System32\drivers\portcls.sys'. cpy: Existing file 'C:\Windows\System32\drivers\portcls.sys' remains unchanged. flq: Hardlinking 'C:\Windows\System32\DriverStore\FileRepository\wdmaudio.inf_amd64_cb639d1f182bc449\MsApoFxProxy.dll' to 'C:\Windows\System32\MsApoFxProxy.dll'. cpy: Existing file 'C:\Windows\System32\MsApoFxProxy.dll' remains unchanged. flq: {FILE_QUEUE_COMMIT - exit(0x00000000)} 16:40:38.685 sto: {Configure Driver Package: exit(0x00000000)} dvi: Install Device: Configuring device. 16:40:38.687 dvi: Configuration: oem1.inf:root\sysvad_tabletaudiosample,SYSVAD_SA dvi: Install Device: Configuring device completed. 16:40:38.715 dvi: Device Status: 0x01802001 dvi: Install Device: Starting device 'ROOT\MEDIA\0000'. 16:40:38.718 dvi: Install Device: Starting device completed. 16:40:38.728 !!! dvi: Device not started: Device has problem: 0x27 (CM_PROB_DRIVER_FAILED_LOAD), problem status: 0xc0000263. dvi: {Configure Device - exit(0x00000000)} 16:40:38.730 dvi: {Core Device Install - exit(0x00000000)} 16:40:38.732 ump: {Plug and Play Service: Device Install exit(00000000)} ndv: {Update Device Driver - exit(00000000)} ndv: {Install Related Drivers} 16:40:38.738 ndv: {Install Related Drivers: exit(0x00000000)} 16:40:38.739 <<< Section end 2023/11/01 16:40:38.742 <<< [Exit status: SUCCESS]