diff --git a/sys/Driver.cpp b/sys/Driver.cpp index 64e0ee3..3042b96 100644 --- a/sys/Driver.cpp +++ b/sys/Driver.cpp @@ -80,8 +80,8 @@ NTSTATUS DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING Registry TraceEvents(TRACE_LEVEL_INFORMATION, TRACE_DRIVER, - "Loading Virtual Gamepad Emulation Bus Driver [built: %s %s]", - __DATE__, __TIME__); + "Loading Virtual Gamepad Emulation Bus Driver" + ); // // Register cleanup callback diff --git a/sys/Driver.h b/sys/Driver.h index 853ab21..5941b16 100644 --- a/sys/Driver.h +++ b/sys/Driver.h @@ -35,7 +35,9 @@ #pragma once -#include +#pragma warning(disable:5040) +#include +#pragma warning(default:5040) #include #include #define NTSTRSAFE_LIB diff --git a/sys/ViGEmBus.vcxproj b/sys/ViGEmBus.vcxproj index d44cd3f..0b713ad 100644 --- a/sys/ViGEmBus.vcxproj +++ b/sys/ViGEmBus.vcxproj @@ -17,181 +17,26 @@ Release x64 + + Debug + ARM + + + Release + ARM + + + Debug + ARM64 + + + Release + ARM64 + - - {040101B0-EE5C-4EF1-99EE-9F81C795C001} - {1bc93793-694f-48fe-9372-81e2b05556fd} - v4.5 - 12.0 - Debug - Win32 - ViGEmBus - $(LatestTargetPlatformVersion) - * - $(APPVEYOR_BUILD_VERSION) - - - - - - true - WindowsKernelModeDriver10.0 - Driver - KMDF - Universal - 1 - 9 - 1 - - - - - false - WindowsKernelModeDriver10.0 - Driver - KMDF - Universal - 1 - 9 - 1 - Off - - - - - true - WindowsKernelModeDriver10.0 - Driver - KMDF - Universal - 1 - 9 - 1 - - - - - false - WindowsKernelModeDriver10.0 - Driver - KMDF - Universal - 1 - 9 - 1 - Off - - - - - - - - - - - DbgengKernelDebugger - $(SolutionDir)include;$(SolutionDir)sdk\include;$(IncludePath) - true - true - - - DbgengKernelDebugger - $(SolutionDir)include;$(SolutionDir)sdk\include;$(IncludePath) - true - $(SolutionDir)bin\$(DDKPlatform)\ - true - - - DbgengKernelDebugger - $(SolutionDir)include;$(SolutionDir)sdk\include;$(IncludePath) - true - true - - - DbgengKernelDebugger - $(SolutionDir)include;$(SolutionDir)sdk\include;$(IncludePath) - true - $(SolutionDir)bin\$(DDKPlatform)\ - true - - - - $(AppVeyorBuildVersion) - - - ..\..\DMF\$(Configuration)\$(Platform)\lib\DmfK\DmfK.lib;$(DDK_LIB_PATH)ntstrsafe.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies) - - - true - true - true - trace.h - stdcpp17 - ..\..\DMF\DMF\Modules.Library;..\..\DMF\DMF\Framework;$(IntDir);%(AdditionalIncludeDirectories) - - - - - $(AppVeyorBuildVersion) - - - ..\..\DMF\$(Configuration)\$(Platform)\lib\DmfK\DmfK.lib;$(DDK_LIB_PATH)ntstrsafe.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies) - - - Speed - - - true - true - true - trace.h - stdcpp17 - ..\..\DMF\DMF\Modules.Library;..\..\DMF\DMF\Framework;$(IntDir);%(AdditionalIncludeDirectories) - - - - - $(AppVeyorBuildVersion) - - - ..\..\DMF\$(Configuration)\$(Platform)\lib\DmfK\DmfK.lib;$(DDK_LIB_PATH)ntstrsafe.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies) - UseLinkTimeCodeGeneration - - - true - true - trace.h - stdcpp17 - ..\..\DMF\DMF\Modules.Library;..\..\DMF\DMF\Framework;$(IntDir);%(AdditionalIncludeDirectories) - - - - - $(AppVeyorBuildVersion) - - - ..\..\DMF\$(Configuration)\$(Platform)\lib\DmfK\DmfK.lib;$(DDK_LIB_PATH)ntstrsafe.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies) - UseLinkTimeCodeGeneration - - - Speed - - - true - true - true - trace.h - stdcpp17 - ..\..\DMF\DMF\Modules.Library;..\..\DMF\DMF\Framework;$(IntDir);%(AdditionalIncludeDirectories) - - - - - @@ -216,6 +61,250 @@ + + {040101B0-EE5C-4EF1-99EE-9F81C795C001} + {8c0e3d8b-df43-455b-815a-4a0e72973bc6} + v4.5 + 12.0 + Debug + Win32 + ViGEmBus + $(LatestTargetPlatformVersion) + * + $(APPVEYOR_BUILD_VERSION) + + + WindowsKernelModeDriver10.0 + Driver + KMDF + Universal + true + + + WindowsKernelModeDriver10.0 + Driver + KMDF + Universal + true + + + WindowsKernelModeDriver10.0 + Driver + KMDF + Universal + true + + + WindowsKernelModeDriver10.0 + Driver + KMDF + Universal + true + + + WindowsKernelModeDriver10.0 + Driver + KMDF + Universal + true + + + WindowsKernelModeDriver10.0 + Driver + KMDF + Universal + true + + + WindowsKernelModeDriver10.0 + Driver + KMDF + Universal + true + + + WindowsKernelModeDriver10.0 + Driver + KMDF + Universal + true + + + + Windows10 + true + + + Windows10 + false + + + Windows10 + true + + + Windows10 + false + + + Windows10 + true + + + Windows10 + false + + + Windows10 + true + + + Windows10 + false + + + + + + + + + + + DbgengKernelDebugger + $(SolutionDir)include;$(IncludePath);$(KMDF_INC_PATH)$(KMDF_VER_PATH) + + + DbgengKernelDebugger + $(SolutionDir)include;$(IncludePath);$(KMDF_INC_PATH)$(KMDF_VER_PATH) + $(SolutionDir)bin\$(DDKPlatform)\ + + + DbgengKernelDebugger + $(SolutionDir)include;$(IncludePath);$(KMDF_INC_PATH)$(KMDF_VER_PATH) + + + DbgengKernelDebugger + $(SolutionDir)include;$(IncludePath);$(KMDF_INC_PATH)$(KMDF_VER_PATH) + $(SolutionDir)bin\$(DDKPlatform)\ + + + DbgengKernelDebugger + + + DbgengKernelDebugger + $(SolutionDir)bin\$(DDKPlatform)\ + + + DbgengKernelDebugger + + + DbgengKernelDebugger + $(SolutionDir)bin\$(DDKPlatform)\ + + + + true + true + trace.h + true + _X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions) + stdcpp17 + ..\..\DMF\DMF\Modules.Library;..\..\DMF\DMF\Framework;$(SolutionDir)include;$(SolutionDir)sdk\include;$(IntDir);%(AdditionalIncludeDirectories) + + + ..\..\DMF\Debug\Win32\lib\DmfK\DmfK.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies);ntstrsafe.lib;usbdex.lib + + + + + true + true + trace.h + true + _X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions) + stdcpp17 + ..\..\DMF\DMF\Modules.Library;..\..\DMF\DMF\Framework;$(SolutionDir)include;$(SolutionDir)sdk\include;$(IntDir);%(AdditionalIncludeDirectories) + + + ..\..\DMF\Release\Win32\lib\DmfK\DmfK.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies);ntstrsafe.lib;usbdex.lib + + + + + true + true + trace.h + true + _WIN64;_AMD64_;AMD64;%(PreprocessorDefinitions) + stdcpp17 + ..\..\DMF\DMF\Modules.Library;..\..\DMF\DMF\Framework;$(SolutionDir)include;$(SolutionDir)sdk\include;$(IntDir);%(AdditionalIncludeDirectories) + + + ..\..\DMF\Debug\x64\lib\DmfK\DmfK.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies);ntstrsafe.lib;usbdex.lib + + + + + true + true + trace.h + true + _WIN64;_AMD64_;AMD64;%(PreprocessorDefinitions) + stdcpp17 + ..\..\DMF\DMF\Modules.Library;..\..\DMF\DMF\Framework;$(SolutionDir)include;$(SolutionDir)sdk\include;$(IntDir);%(AdditionalIncludeDirectories) + + + ..\..\DMF\Release\x64\lib\DmfK\DmfK.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies);ntstrsafe.lib;usbdex.lib + + + + + true + true + trace.h + true + + + %(AdditionalDependencies);ntstrsafe.lib + + + + + true + true + trace.h + true + + + %(AdditionalDependencies);ntstrsafe.lib + + + + + true + true + trace.h + true + + + %(AdditionalDependencies);ntstrsafe.lib + + + + + true + true + trace.h + true + + + %(AdditionalDependencies);ntstrsafe.lib + + + + + diff --git a/sys/XusbPdo.cpp b/sys/XusbPdo.cpp index 4d14eb7..e518cce 100644 --- a/sys/XusbPdo.cpp +++ b/sys/XusbPdo.cpp @@ -39,6 +39,9 @@ #define NTSTRSAFE_LIB #include +#include +#include + #include #include "Debugging.hpp"