From ca4d971dd5671fa9c1efbdb66a03759b38cf1a56 Mon Sep 17 00:00:00 2001 From: LTRData Date: Fri, 1 Mar 2024 12:32:18 +0100 Subject: [PATCH] Newer VS/SDK/DDK build compatibility --- .gitignore | 1 + Ext2Mgr/Ext2Mgr.vcxproj | 10 ++++---- Ext2Srv/Ext2Srv.vcxproj | 10 ++++---- Ext4Fsd/Ext4Fsd.vcxproj | 41 ++++++++++++++++++++++++++++----- Ext4Fsd/Ext4Fsd.vcxproj.filters | 5 ---- Ext4Fsd/PropertySheet.props | 12 ++++++++++ Ext4Fsd/debug.c | 2 ++ Ext4Fsd/include/linux/module.h | 7 ++++++ Ext4Fsd/linux.c | 4 ++++ 9 files changed, 71 insertions(+), 21 deletions(-) create mode 100644 Ext4Fsd/PropertySheet.props diff --git a/.gitignore b/.gitignore index ecf6884..69a9e7c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ Debug/ Release/ *.vcxproj.user Ext2Fsd-setup.exe +*/cab/ diff --git a/Ext2Mgr/Ext2Mgr.vcxproj b/Ext2Mgr/Ext2Mgr.vcxproj index 38b2ddc..6c46d5a 100644 --- a/Ext2Mgr/Ext2Mgr.vcxproj +++ b/Ext2Mgr/Ext2Mgr.vcxproj @@ -22,20 +22,20 @@ 15.0 {E1AF85D7-0179-4CF0-B0D1-21AE72B6DC2E} Ext2Mgr - 10.0 + 10.0.19041.0 Application true - v143 + v142 MultiByte Dynamic Application false - v143 + v142 true MultiByte Dynamic @@ -43,14 +43,14 @@ Application true - v143 + v142 MultiByte Dynamic Application false - v143 + v142 true MultiByte Dynamic diff --git a/Ext2Srv/Ext2Srv.vcxproj b/Ext2Srv/Ext2Srv.vcxproj index 8c9c070..b58da1d 100644 --- a/Ext2Srv/Ext2Srv.vcxproj +++ b/Ext2Srv/Ext2Srv.vcxproj @@ -22,32 +22,32 @@ 15.0 {6A5A0B13-7E05-4CA9-9A2B-FADF76DBAC20} Ext2Srv - 10.0 + 10.0.19041.0 Application true - v143 + v142 MultiByte Application false - v143 + v142 true MultiByte Application true - v143 + v142 MultiByte Application false - v143 + v142 true MultiByte diff --git a/Ext4Fsd/Ext4Fsd.vcxproj b/Ext4Fsd/Ext4Fsd.vcxproj index 1c7427a..2f6eceb 100644 --- a/Ext4Fsd/Ext4Fsd.vcxproj +++ b/Ext4Fsd/Ext4Fsd.vcxproj @@ -42,26 +42,28 @@ Debug Win32 Ext4Fsd - $(LatestTargetPlatformVersion) + 10.0.19041.0 Windows10 true WindowsKernelModeDriver10.0 - Driver WDM 1 false + Driver + Windows Driver Windows10 false WindowsKernelModeDriver10.0 - Driver WDM 1 false + Driver + Windows Driver Windows10 @@ -71,6 +73,7 @@ WDM 1 false + Windows Driver Windows10 @@ -80,6 +83,7 @@ WDM 1 false + Windows Driver Windows10 @@ -88,6 +92,7 @@ Driver WDM 1 + Windows Driver Windows10 @@ -96,6 +101,7 @@ Driver WDM 1 + Windows Driver Windows10 @@ -104,6 +110,7 @@ Driver WDM 1 + Windows Driver Windows10 @@ -112,6 +119,7 @@ Driver WDM 1 + Windows Driver @@ -119,6 +127,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -359,9 +391,6 @@ - - - diff --git a/Ext4Fsd/Ext4Fsd.vcxproj.filters b/Ext4Fsd/Ext4Fsd.vcxproj.filters index f56846f..1593aa3 100644 --- a/Ext4Fsd/Ext4Fsd.vcxproj.filters +++ b/Ext4Fsd/Ext4Fsd.vcxproj.filters @@ -291,9 +291,4 @@ Resource Files - - - Driver Files - - \ No newline at end of file diff --git a/Ext4Fsd/PropertySheet.props b/Ext4Fsd/PropertySheet.props new file mode 100644 index 0000000..c19d57e --- /dev/null +++ b/Ext4Fsd/PropertySheet.props @@ -0,0 +1,12 @@ + + + + + + + + 4996;4064;4627;4627;4366;%(DisableSpecificWarnings) + + + + \ No newline at end of file diff --git a/Ext4Fsd/debug.c b/Ext4Fsd/debug.c index fa12919..14179ea 100644 --- a/Ext4Fsd/debug.c +++ b/Ext4Fsd/debug.c @@ -12,6 +12,8 @@ #include "stdarg.h" #include "ext2fs.h" +#include + /* GLOBALS ***************************************************************/ #if EXT2_DEBUG diff --git a/Ext4Fsd/include/linux/module.h b/Ext4Fsd/include/linux/module.h index 5274425..15501b2 100644 --- a/Ext4Fsd/include/linux/module.h +++ b/Ext4Fsd/include/linux/module.h @@ -61,18 +61,23 @@ extern "C" { #else +#ifndef RtlUshortByteSwap USHORT FASTCALL RtlUshortByteSwap( IN USHORT Source ); +#endif +#ifndef RtlUlongByteSwap ULONG FASTCALL RtlUlongByteSwap( IN ULONG Source ); +#endif +#ifndef RtlUlonglongByteSwap ULONGLONG FASTCALL RtlUlonglongByteSwap( @@ -80,6 +85,8 @@ RtlUlonglongByteSwap( ); #endif +#endif + #define __swab16(x) RtlUshortByteSwap(x) #define __swab32(x) RtlUlongByteSwap(x) #define __swab64(x) RtlUlonglongByteSwap(x) diff --git a/Ext4Fsd/linux.c b/Ext4Fsd/linux.c index 96e6bdf..5708c39 100644 --- a/Ext4Fsd/linux.c +++ b/Ext4Fsd/linux.c @@ -1006,6 +1006,8 @@ int _strnicmp(const char* str1, const char* str2, size_t count) return (int)c1 - (int)c2; } +#if !defined(_M_ARM64) && !defined(_M_ARM) + int strncmp(const char* str1, const char* str2, size_t count) { unsigned char c1, c2; @@ -1037,6 +1039,8 @@ char* strncpy(char* dest, const char* src, size_t count) #endif +#endif + // // initialzer and destructor //