Open AndreiHarasemiuc opened 2 years ago
This is because the driver is not official signed. you can deploy it on the VM by enable test sign . There are many documents/links talking about how to test SYSVAD sample. but this is the only one I can remeber.: https://docs.microsoft.com/en-us/windows-hardware/drivers/install/test-signing
The last one tells you everything.
I have the same problem.
My tool and WDK version:
Microsoft Visual Studio 2022 Version 17.3.1
Windows Driver Kit 10.0.22621.311
Issue can reproduce on:
Windows 10 2004 (19041.1110) (Hyper-V virtual machine)
Windows 10 21H2 (19043.1889) (Desktop device)
Windows 10 21H2 (19044.1889) (Desktop device)
Windows 11 21H2 (22000.318) (Hyper-V virtual machine)
Windows 11 21H2 (22000.856) (NB TravelMate P449-M)
Windows 11 21H2 (22000.856) (NB Surface Laptop 4)
Issue can not reproduce on:
Windows 11 22H2 (22621.1) (Hyper-V virtual machine)
After some test, I found that calling ExAllocateFromNPagedLookasideList or ExFreeToNPagedLookasideList would cause this issue. My workaround was to use the old function instead (the "#else" case of (NTDDI_VERSION >= NTDDI_WIN10_NI) in wdm.h).
My workaround code: https://github.com/microsoft/Windows-driver-samples/commit/527741561f6b7e0e115da26ae728a99cafdc89c8
To solve this, try the following. In Solution Explorer, right-click on the TableAudioSample project and select Properties. Expand Driver Settings and click on General. Select _NT_TARGET_VERSION. In the drop down box, select the Windows version running on your target machine, for example Windows 10.0.22621. Set it for both the Debug and Release configurations. Rebuild the solution and reinstall.
You may need to update your version of Visual Studio to get support for the latest _NT_TARGET_VERSION.
I'm following the APO development docs to the letter and I am successfully building sysVAD on my Windows 10 Vers 21H2 (19044.1645) with Virtual Studio 2022.
When trying to deploy on my target machine (same machine) I get the following:
Attempted this on two different machines with the exact same result. Looking at
setup.api.dev.log
, here's a piece of the output for installing ComponetizedAudioSampleExtension.inf:Device not started: Device has problem: 0x27 (CM_PROB_DRIVER_FAILED_LOAD), problem status: 0xc00000263
The only clue I have about this.Here's all the
setup.api.dev.log
output for installing the 3.inf
files (ComponetizedAudioSample.inf, ComponetizedAudioSampleExtension.inf, ComponetizedApoSample.inf):