From 2cf129fbc7e66d73c22ef091d6c603c35769b3e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger?= Date: Tue, 19 Dec 2017 11:08:57 +0100 Subject: [PATCH] Updated version to 1.14.0.0 Removed deprecated bus object name Removed return of bus devices on Add Cmdlet --- Driver.c | 28 ---------------------------- ViGEmBus.rc | 8 ++++---- ViGEmBus.vcxproj | 16 ++++++++-------- 3 files changed, 12 insertions(+), 40 deletions(-) diff --git a/Driver.c b/Driver.c index 1307f25..493522c 100644 --- a/Driver.c +++ b/Driver.c @@ -109,21 +109,6 @@ NTSTATUS Bus_EvtDeviceAdd(IN WDFDRIVER Driver, IN PWDFDEVICE_INIT DeviceInit) #pragma endregion -#pragma region Assign object name - - // - // TODO: this will fail if more than one bus device is present on the system. - // Is this still necessary? If not, remove and work only with GUIDs! - // - - status = WdfDeviceInitAssignName(DeviceInit, &VigemNtDeviceName); - if (!NT_SUCCESS(status)) { - KdPrint((DRIVERNAME "WdfDeviceInitAssignName failed with status 0x%x\n", status)); - return status; - } - -#pragma endregion - #pragma region Create FDO WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE(&fdoAttributes, FDO_DEVICE_DATA); @@ -210,19 +195,6 @@ NTSTATUS Bus_EvtDeviceAdd(IN WDFDRIVER Driver, IN PWDFDEVICE_INIT DeviceInit) return(status); } -#pragma endregion - -#pragma region Create symbolic link - - status = WdfDeviceCreateSymbolicLink( - device, - &VigemDosDeviceName - ); - if (!NT_SUCCESS(status)) { - KdPrint((DRIVERNAME "WdfDeviceCreateSymbolicLink failed with status 0x%x\n", status)); - return status; - } - #pragma endregion #pragma region Create default I/O queue for FDO diff --git a/ViGEmBus.rc b/ViGEmBus.rc index 1600f26..62dc406 100644 --- a/ViGEmBus.rc +++ b/ViGEmBus.rc @@ -51,8 +51,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,13,8,0 - PRODUCTVERSION 1,13,8,0 + FILEVERSION 1,14,0,0 + PRODUCTVERSION 1,14,0,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -69,12 +69,12 @@ BEGIN BEGIN VALUE "CompanyName", "Benjamin Höglinger-Stelzer" VALUE "FileDescription", "Virtual Gamepad Emulation Bus Driver" -VALUE "FileVersion", "1.13.8.0" +VALUE "FileVersion", "1.14.0.0" VALUE "InternalName", "Virtual Gamepad Emulation Bus Driver" VALUE "LegalCopyright", "Copyright (C) Benjamin Höglinger-Stelzer 2016" VALUE "OriginalFilename", "vigembus.sys" VALUE "ProductName", "Virtual Gamepad Emulation Bus Driver" -VALUE "ProductVersion", "1.13.8.0" +VALUE "ProductVersion", "1.14.0.0" END END BLOCK "VarFileInfo" diff --git a/ViGEmBus.vcxproj b/ViGEmBus.vcxproj index 636a217..811e389 100644 --- a/ViGEmBus.vcxproj +++ b/ViGEmBus.vcxproj @@ -182,7 +182,7 @@ - 1.13.8.0 + 1.14.0.0 $(DDK_LIB_PATH)ntstrsafe.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies) @@ -190,7 +190,7 @@ - 1.13.8.0 + 1.14.0.0 $(DDK_LIB_PATH)ntstrsafe.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies) @@ -198,7 +198,7 @@ - 1.13.8.0 + 1.14.0.0 $(DDK_LIB_PATH)ntstrsafe.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies) @@ -206,7 +206,7 @@ - 1.13.8.0 + 1.14.0.0 $(DDK_LIB_PATH)ntstrsafe.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies) @@ -214,7 +214,7 @@ - 1.13.8.0 + 1.14.0.0 $(DDK_LIB_PATH)ntstrsafe.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies) @@ -222,7 +222,7 @@ - 1.13.8.0 + 1.14.0.0 $(DDK_LIB_PATH)ntstrsafe.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies) @@ -230,7 +230,7 @@ - 1.13.8.0 + 1.14.0.0 $(DDK_LIB_PATH)ntstrsafe.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies) @@ -238,7 +238,7 @@ - 1.13.8.0 + 1.14.0.0 $(DDK_LIB_PATH)ntstrsafe.lib;$(DDK_LIB_PATH)wdmsec.lib;%(AdditionalDependencies)