Hello,
I know this is pretty old but any help would be appreciated.
I'm trying to build your project from source, but I get errors, on Windows 7 64 bit, Visual Studio 2015.
Log when trying to build the driver:
Error (active) #error directive: "No target architecture defined" HWInterfaceDrv c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\ntddk.h 7927
Error (active) identifier "PDRIVER_EXCPTN_CALLBACK" is undefined HWInterfaceDrv c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\ntddk.h 12385
Error (active) identifier "PCMC_EXCEPTION" is undefined HWInterfaceDrv c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\ntddk.h 12462
Error (active) identifier "PCPE_EXCEPTION" is undefined HWInterfaceDrv c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\ntddk.h 12473
Error (active) identifier "SLIST_HEADER" is undefined HWInterfaceDrv c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h 15387
Error (active) identifier "SLIST_HEADER" is undefined HWInterfaceDrv c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h 15407
Error (active) #error directive: "No target architecture defined" HWInterfaceDrv c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h 19517
Error (active) identifier "PSLIST_HEADER" is undefined HWInterfaceDrv c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h 22239
Error (active) identifier "PSLIST_HEADER" is undefined HWInterfaceDrv c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h 22290
Error (active) identifier "PSLIST_HEADER" is undefined HWInterfaceDrv c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h 22304
Error (active) identifier "PSLIST_HEADER" is undefined HWInterfaceDrv c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h 22391
Error (active) identifier "PSLIST_HEADER" is undefined HWInterfaceDrv c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h 22397
Error (active) identifier "PSLIST_HEADER" is undefined HWInterfaceDrv c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\wdm.h 22404
Error (active) #error directive: "No Target Architecture" HWInterfaceDrv c:\Program Files (x86)\Windows Kits\8.1\Include\shared\ntdef.h 168
Error MSB3073 The command "ddkbuild -WNETA64 free ." exited with code 9009. HWInterfaceDrv C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 41
And log when trying to build the 32bit dll:
Error (active) identifier "_outp" is undefined inpout32drv c:\Users\Milan\Desktop\sourceDLLs\inpout32drv.cpp 92
Error (active) identifier "_inp" is undefined inpout32drv c:\Users\Milan\Desktop\sourceDLLs\inpout32drv.cpp 127
Error (active) identifier "_inp" is undefined inpout32drv c:\Users\Milan\Desktop\sourceDLLs\inpout32drv.cpp 461
Error (active) identifier "_outp" is undefined inpout32drv c:\Users\Milan\Desktop\sourceDLLs\inpout32drv.cpp 495
Error C3861 '_outp': identifier not found inpout32drv c:\users\milan\desktop\sourcedlls\inpout32drv.cpp 92
Error C3861 '_inp': identifier not found inpout32drv c:\users\milan\desktop\sourcedlls\inpout32drv.cpp 127
Error C3861 '_inp': identifier not found inpout32drv c:\users\milan\desktop\sourcedlls\inpout32drv.cpp 461
Error C3861 '_outp': identifier not found inpout32drv c:\users\milan\desktop\sourcedlls\inpout32drv.cpp 495
Error LNK1104 cannot open file 'inpout32.lib' InstallDriver C:\Users\Milan\Desktop\sourceDLLs\InstallDriver\LINK 1
The 64bit dll builds just fine.
Thanks for any help.
Build errors
Re: Build errors
Urm, off the top of my head, I cant think what the problem could be. I presume the DDK you are using is quite new (10.x) and the last time I compiled the driver it was a much older DDK - that could be the source of the problems.
I cant sign the built driver so I haven't built it for some time - I will try and have a look in more detail when I get a bit of time (I've been away this weekend). I didn't write the code (just ported to x64) and my knowledge of the DDK is rather limited - but I will d/l the new DDK and see what I can find.
Thanks,
Phil
I cant sign the built driver so I haven't built it for some time - I will try and have a look in more detail when I get a bit of time (I've been away this weekend). I didn't write the code (just ported to x64) and my knowledge of the DDK is rather limited - but I will d/l the new DDK and see what I can find.
Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
Re: Build errors
Thank you for your help. If you figure something out, please let me know.
Re: Build errors
I Haven't figured out the Win10 DDK yet - I'm unable to build anything with it. Its been years since I last built InpOut32 (bear in mind that I didn't write it, I just ported it to x64) and the DDK is not something that I am overly familiar with.
I haven't even got as far as the build errors you listed
I wonder if the Windows 10 DDK supports building the legacy type drivers such as InpOut32.
The driver seems to build OK with the Windows 7 DDK (v7600.16385.1)
I haven't even got as far as the build errors you listed

The driver seems to build OK with the Windows 7 DDK (v7600.16385.1)
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
Re: Build errors
Hey Mrngg, did you get past these errors on Windows 7?Mrngg wrote: Mon Jul 25, 2016 1:01 pm Thank you for your help. If you figure something out, please let me know.
Last edited by Lammert on Sun Dec 23, 2018 10:01 am, edited 1 time in total.
Re: Build errors
Curious to see if anyone could build with the visual studio 2015 + ddk combination and get the driver to run.
Any luck out there?
I get the following:
MSB3073 The command "ddkbuild -WNETA64 free" exited with code 9009
Anybody make heads or tails of this one...
Any luck out there?
I get the following:
MSB3073 The command "ddkbuild -WNETA64 free" exited with code 9009
Anybody make heads or tails of this one...
Re: Build errors
Seeing the same error with 2019..
Re: Build errors
For the driver, the "No target architecture defined" error usually means you haven't set the target platform in your project settings (like x64 or x86). Make sure that's configured correctly. Also, that "ddkbuild" error suggests your Windows Driver Kit (WDK) might not be set up properly in Visual Studio.
The 32-bit DLL, the "_inp" and "_outp" errors mean you're missing the necessary header file that defines those functions. Try including <conio.h> at the top of your inpout32drv.cpp file.
If it doesn't work idk what else to do.
The 32-bit DLL, the "_inp" and "_outp" errors mean you're missing the necessary header file that defines those functions. Try including <conio.h> at the top of your inpout32drv.cpp file.
If it doesn't work idk what else to do.