diff --git a/src/modules/FileLocksmith/FileLocksmithLibInterop/FileLocksmithLibInterop.vcxproj b/src/modules/FileLocksmith/FileLocksmithLibInterop/FileLocksmithLibInterop.vcxproj
index 7f9fc52a4ceb..4f9e6aef63b8 100644
--- a/src/modules/FileLocksmith/FileLocksmithLibInterop/FileLocksmithLibInterop.vcxproj
+++ b/src/modules/FileLocksmith/FileLocksmithLibInterop/FileLocksmithLibInterop.vcxproj
@@ -33,9 +33,6 @@
FileLocksmithLibInterop
10.0.19041.0
net7.0-windows
- $(SolutionDir)$(Platform)\$(Configuration)\modules\FileLocksmith\
- PowerToys.FileLocksmithLib.Interop
- true
@@ -43,7 +40,7 @@
true
v143
Unicode
- false
+ NetCore
DynamicLibrary
@@ -51,21 +48,21 @@
v143
true
Unicode
- false
+ NetCore
DynamicLibrary
true
v143
Unicode
- false
+ NetCore
DynamicLibrary
true
v143
Unicode
- false
+ NetCore
DynamicLibrary
@@ -73,7 +70,7 @@
v143
true
Unicode
- false
+ NetCore
DynamicLibrary
@@ -81,7 +78,7 @@
v143
true
Unicode
- false
+ NetCore
@@ -107,19 +104,41 @@
+
+ $(SolutionDir)$(Platform)\$(Configuration)\modules\FileLocksmith\
+ PowerToys.FileLocksmithLib.Interop
+
+
+ $(SolutionDir)$(Platform)\$(Configuration)\modules\FileLocksmith\
+ PowerToys.FileLocksmithLib.Interop
+
+
+ $(SolutionDir)$(Platform)\$(Configuration)\modules\FileLocksmith\
+ PowerToys.FileLocksmithLib.Interop
+
+
+ $(SolutionDir)$(Platform)\$(Configuration)\modules\FileLocksmith\
+ PowerToys.FileLocksmithLib.Interop
+
+
+ $(SolutionDir)$(Platform)\$(Configuration)\modules\FileLocksmith\
+ PowerToys.FileLocksmithLib.Interop
+
+
+ $(SolutionDir)$(Platform)\$(Configuration)\modules\FileLocksmith\
+ PowerToys.FileLocksmithLib.Interop
+
Level3
true
_DEBUG;FILELOCKSMITHLIBINTEROP_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
true
+ Use
+ NetCore
stdcpp17
MultiThreadedDebugDLL
/Zc:twoPhase-
- ProgramDatabase
- NotUsing
- Async
- Default
Windows
@@ -133,13 +152,11 @@
true
_DEBUG;FILELOCKSMITHLIBINTEROP_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
true
+ Use
+ NetCore
stdcpp17
MultiThreadedDebugDLL
/Zc:twoPhase-
- ProgramDatabase
- NotUsing
- Async
- Default
Windows
@@ -155,11 +172,11 @@
true
NDEBUG;FILELOCKSMITHLIBINTEROP_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
true
+ Use
+ NetCore
stdcpp17
/Zc:twoPhase-
MultiThreadedDLL
- NotUsing
- Async
Windows
@@ -177,11 +194,11 @@
true
NDEBUG;FILELOCKSMITHLIBINTEROP_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
true
+ Use
+ NetCore
stdcpp17
/Zc:twoPhase-
MultiThreadedDLL
- NotUsing
- Async
Windows
@@ -194,7 +211,12 @@
- true
+ Create
+ Create
+ Create
+ Create
+ Create
+ Create
diff --git a/src/modules/FileLocksmith/FileLocksmithLibInterop/NtdllBase.cpp b/src/modules/FileLocksmith/FileLocksmithLibInterop/NtdllBase.cpp
index f41c0759a4fe..571ea153bcc5 100644
--- a/src/modules/FileLocksmith/FileLocksmithLibInterop/NtdllBase.cpp
+++ b/src/modules/FileLocksmith/FileLocksmithLibInterop/NtdllBase.cpp
@@ -2,12 +2,6 @@
#include "NtdllBase.h"
-#include
-#include
-#include
-
-#define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)
-
Ntdll::Ntdll()
{
m_module = GetModuleHandleW(L"ntdll.dll");
diff --git a/src/modules/FileLocksmith/FileLocksmithLibInterop/NtdllExtensions.cpp b/src/modules/FileLocksmith/FileLocksmithLibInterop/NtdllExtensions.cpp
index 1b74fbf3ebda..cf9510bfb402 100644
--- a/src/modules/FileLocksmith/FileLocksmithLibInterop/NtdllExtensions.cpp
+++ b/src/modules/FileLocksmith/FileLocksmithLibInterop/NtdllExtensions.cpp
@@ -1,9 +1,7 @@
#include "pch.h"
#include "NtdllExtensions.h"
-#include
#include
-#include
#include
#define STATUS_INFO_LENGTH_MISMATCH ((LONG)0xC0000004)
@@ -119,7 +117,6 @@ NtdllExtensions::MemoryLoopResult NtdllExtensions::NtQuerySystemInformationMemor
std::wstring NtdllExtensions::file_handle_to_kernel_name(HANDLE file_handle, std::vector& buffer)
{
-
if (GetFileType(file_handle) != FILE_TYPE_DISK)
{
return L"";