question

javierdemuniategui-6358 avatar image
0 Votes"
javierdemuniategui-6358 asked javierdemuniategui-6358 commented

SDK and WDK for 19042+

Hello, i'm starting on driver development with the latest version of visual studio 2019 (and also right now i'm giving a try to 2022 to see if my issue is solved).

I've just want to try debugging tools for windows - kernel debugger debugging option which allows to deploy on a remote computer the driver and test it using windbg internally (as far as i understood).

The problem is that seeing some posts here i'm having the same issue: https://docs.microsoft.com/en-us/answers/questions/735397/failed-to-install-wdtf-on-configuring-a-target-mac.html

Installing driver test framework is failing and the solution provided is to make use of an WDK that does match the operating system.

My Host and Guest are both windows 10 21H2 (19044.1645), however there is no SDK nor WDK updated to a version above 19041. How i'm supouse to do it? I'm giving a try to visual sutdio 2022 and the preview versions of SDK and WDK but i have little faith since the versions are for Windows 11 which obiousle does not match the SO version i'm using.

How can i solve it?

windows-hardwarewindows-hardware-wdk
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

hidaka avatar image
0 Votes"
hidaka answered javierdemuniategui-6358 commented

You have to use these things to develop all Windows Drivers including Windows 11. Others are not supported.

  • Visual Studio 2019

  • Windows 11 SDK (22000.1)

  • Windows 11 WDK

See below.

https://docs.microsoft.com/windows-hardware/drivers/download-the-wdk

· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

No, like it is said in the documentation the WDK debugging tools for windows does not work properly if the WDK does not match de SO (check the link i provided). So technically there is no WDK for 1042+ valid for this feature.

0 Votes 0 ·

I am having the same issue. Is there a resolution?

0 Votes 0 ·

I solved it, use Visual Studio 2019 with WDK 2004 (https://go.microsoft.com/fwlink/?linkid=2128854) and the SDK 2004 since the API was not updated post 19041 this version is still valid and equivalent for 19041+ (except for Windows 11 obviosulee since it has its own).
Also be aware that all is working except that once I attach to the remote machine the first time works perfecly but after stoping the debug the service that is listening dies and i have to restart the service manually in order to make another debug session. I did not manage to solve this detail it happens using WinDBG or Visual Sutdio 2019 (remote kernel debugging)

0 Votes 0 ·
SmithaChalla-1680 avatar image SmithaChalla-1680 javierdemuniategui-6358 ·

Thank you very much. I appreciate it.

1 Vote 1 ·
Show more comments
SmithaChalla-1680 avatar image SmithaChalla-1680 javierdemuniategui-6358 ·

Hi Joseph, Is that the version you are using? 10.0.19041.685?201029-version.png


0 Votes 0 ·
version.png (90.9 KiB)
Show more comments
SmithaChalla-1680 avatar image
0 Votes"
SmithaChalla-1680 answered

Javier,

Thank you for your help. I can now add a driver package in vs2019. I have both wdk and sdk.
Let me now figure out how to sign it correctly hoping it will work correctly. I appreciate your help.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.