Skip to content

Commit

Permalink
0.0.0.2 milestone
Browse files Browse the repository at this point in the history
  • Loading branch information
vxiiduu authored Apr 8, 2022
1 parent 1df37f4 commit 27a488d
Show file tree
Hide file tree
Showing 22 changed files with 4,475 additions and 97 deletions.
Binary file added KexCfg/KexCfg.rc
Binary file not shown.
15 changes: 15 additions & 0 deletions KexCfg/KexCfg.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@
<AdditionalLibraryDirectories>$(TargetDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;shlwapi.lib;KexComm.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<ResourceCompile>
<AdditionalIncludeDirectories>$(SolutionDir)</AdditionalIncludeDirectories>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
Expand All @@ -105,6 +108,9 @@
<AdditionalLibraryDirectories>$(TargetDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;shlwapi.lib;KexComm.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<ResourceCompile>
<AdditionalIncludeDirectories>$(SolutionDir)</AdditionalIncludeDirectories>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
Expand All @@ -125,6 +131,9 @@
<AdditionalLibraryDirectories>$(TargetDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;shlwapi.lib;KexComm.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<ResourceCompile>
<AdditionalIncludeDirectories>$(SolutionDir)</AdditionalIncludeDirectories>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
Expand All @@ -145,10 +154,16 @@
<AdditionalLibraryDirectories>$(TargetDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;shlwapi.lib;KexComm.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<ResourceCompile>
<AdditionalIncludeDirectories>$(SolutionDir)</AdditionalIncludeDirectories>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="KexCfg.c" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="KexCfg.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
5 changes: 5 additions & 0 deletions KexCfg/KexCfg.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="KexCfg.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion KexComm/Memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ LPVOID __AutoStackAllocHelper(
return (LPVOID) (lpb + 1);
}

VOID AutoFree(
VOID __AutoFreeHelper(
IN LPVOID lpv)
{
LPBYTE lpb = ((LPBYTE) lpv) - 1;
Expand Down
60 changes: 1 addition & 59 deletions KexSetup/KexSetup.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,65 +556,7 @@ BOOL KexInstall(
ADD_UNINSTALL_VALUE(RegWriteDw, L"NoRepair", 1);
}

ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-com-l1-1-0.dll", L"ole33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-com-l1-1-1.dll", L"ole33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-rtlsupport-l1-2-0.dll", L"ntdll.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-psapi-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-sidebyside-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-console-l2-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-datetime-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-errorhandling-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-fibers-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-file-l1-2-2.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-file-l2-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-heap-obsolete-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-heap-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-heap-l2-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-io-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-kernel32-legacy-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-kernel32-legacy-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-largeinteger-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-libraryloader-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-libraryloader-l1-2-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-localization-l1-2-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-localization-obsolete-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-path-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-processthreads-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-processthreads-l1-1-2.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-processthreads-l1-1-3.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-processtopology-obsolete-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-downlevel-kernel32-l2-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-synch-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-synch-l1-2-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-sysinfo-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-sysinfo-l1-2-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-systemtopology-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-threadpool-legacy-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-threadpool-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-versionansi-l1-1-0.dll", L"version.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-version-l1-1-0.dll", L"version.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-winrt-error-l1-1-0.dll", L"combase.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-winrt-error-l1-1-1.dll", L"combase.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-winrt-l1-1-0.dll", L"combase.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-winrt-string-l1-1-0.dll", L"combase.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-registry-l1-1-0.dll", L"advapi32.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-registry-l2-1-0.dll", L"advapi32.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-eventing-classicprovider-l1-1-0.dll", L"advapi32.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-eventing-provider-l1-1-0.dll", L"advapi32.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-security-systemfunctions-l1-1-0.dll", L"advapi32.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-mm-time-l1-1-0.dll", L"winmm.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-ntuser-sysparams-l1-1-0.dll", L"user33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-shell-namespace-l1-1-0.dll", L"shell32.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-shcore-obsolete-l1-1-0.dll", L"shcore.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-shcore-scaling-l1-1-0.dll", L"shcore.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-shcore-scaling-l1-1-1.dll", L"shcore.dll");
ADD_DLL_REWRITE_ENTRY(L"ext-ms-win-uiacore-l1-1-0.dll", L"uiautomationcore.dll");
ADD_DLL_REWRITE_ENTRY(L"ext-ms-win-uiacore-l1-1-1.dll", L"uiautomationcore.dll");
ADD_DLL_REWRITE_ENTRY(L"dxgi.dll", L"dxg1.dll");
ADD_DLL_REWRITE_ENTRY(L"kernel32.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"ole32.dll", L"ole33.dll");
ADD_DLL_REWRITE_ENTRY(L"user32.dll", L"user33.dll");
ADD_DLL_REWRITE_ENTRY(L"xinput1_4.dll", L"xinput1_3.dll");
#include "dllrewrt.h"

// create KexDir and subdirectories if it doesn't exist, and copy self-EXE to it
{
Expand Down
Binary file modified KexSetup/KexSetup.rc
Binary file not shown.
1 change: 1 addition & 0 deletions KexSetup/KexSetup.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
<ClCompile Include="KexSetup.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="dllrewrt.h" />
<ClInclude Include="resource.h" />
</ItemGroup>
<ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions KexSetup/KexSetup.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<ClInclude Include="resource.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="dllrewrt.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="KexSetup.rc">
Expand Down
78 changes: 78 additions & 0 deletions KexSetup/dllrewrt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
// shut up spurious intellisense warnings
#ifdef __INTELLISENSE__
# undef ADD_DLL_REWRITE_ENTRY
# define ADD_DLL_REWRITE_ENTRY(...)
#endif

ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-apiquery-l1-1-0.dll", L"ntd33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-com-l1-1-0.dll", L"ole33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-com-l1-1-1.dll", L"ole33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-rtlsupport-l1-2-0.dll", L"ntdll.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-appmodel-runtime-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-psapi-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-sidebyside-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-console-l2-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-datetime-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-delayload-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-errorhandling-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-fibers-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-file-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-file-l1-2-2.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-file-l2-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-heap-obsolete-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-heap-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-heap-l2-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-io-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-kernel32-legacy-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-kernel32-legacy-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-largeinteger-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-libraryloader-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-libraryloader-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-libraryloader-l1-2-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-localization-l1-2-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-localization-obsolete-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-memory-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-path-l1-1-0.dll", L"kernelba33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-privateprofile-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-processenvironment-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-processthreads-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-processthreads-l1-1-2.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-processthreads-l1-1-3.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-processtopology-obsolete-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-downlevel-kernel32-l2-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-string-obsolete-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-synch-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-synch-l1-2-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-sysinfo-l1-1-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-sysinfo-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-sysinfo-l1-2-1.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-systemtopology-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-threadpool-legacy-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-threadpool-l1-2-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-versionansi-l1-1-0.dll", L"version.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-version-l1-1-0.dll", L"version.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-winrt-error-l1-1-0.dll", L"combase.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-winrt-error-l1-1-1.dll", L"combase.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-winrt-l1-1-0.dll", L"combase.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-winrt-string-l1-1-0.dll", L"combase.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-registry-l1-1-0.dll", L"advapi32.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-core-registry-l2-1-0.dll", L"advapi32.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-eventing-classicprovider-l1-1-0.dll", L"advapi32.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-eventing-provider-l1-1-0.dll", L"advapi32.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-security-systemfunctions-l1-1-0.dll", L"advapi32.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-mm-time-l1-1-0.dll", L"winmm.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-ntuser-sysparams-l1-1-0.dll", L"user33.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-shell-namespace-l1-1-0.dll", L"shell32.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-shcore-obsolete-l1-1-0.dll", L"shcore.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-shcore-scaling-l1-1-0.dll", L"shcore.dll");
ADD_DLL_REWRITE_ENTRY(L"api-ms-win-shcore-scaling-l1-1-1.dll", L"shcore.dll");
ADD_DLL_REWRITE_ENTRY(L"ext-ms-win-kernel32-package-current-l1-1-0.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"ext-ms-win-uiacore-l1-1-0.dll", L"uiautomationcore.dll");
ADD_DLL_REWRITE_ENTRY(L"ext-ms-win-uiacore-l1-1-1.dll", L"uiautomationcore.dll");
ADD_DLL_REWRITE_ENTRY(L"dxgi.dll", L"dxg1.dll");
ADD_DLL_REWRITE_ENTRY(L"kernel32.dll", L"kernel33.dll");
ADD_DLL_REWRITE_ENTRY(L"kernelbase.dll", L"kernelba33.dll");
ADD_DLL_REWRITE_ENTRY(L"ole32.dll", L"ole33.dll");
ADD_DLL_REWRITE_ENTRY(L"user32.dll", L"user33.dll");
ADD_DLL_REWRITE_ENTRY(L"ntdll.dll", L"ntd33.dll");
ADD_DLL_REWRITE_ENTRY(L"xinput1_4.dll", L"xinput1_3.dll");
2 changes: 1 addition & 1 deletion KexShlEx/KexShlEx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ STDAPI DllInstall(
CHECKED(RegWriteSz(HKEY_CLASSES_ROOT, L"exefile\\shell\\open_vxkex", L"Extended", L""));
CHECKED(RegReadSz(HKEY_LOCAL_MACHINE, L"SOFTWARE\\VXsoft\\VxKexLdr", L"KexDir", szVxKexLdr, ARRAYSIZE(szVxKexLdr)));
CHECKED(!wcscat_s(szVxKexLdr, ARRAYSIZE(szVxKexLdr), L"\\VxKexLdr.exe"));
CHECKED(swprintf_s(szOpenVxKexCommand, ARRAYSIZE(szOpenVxKexCommand), L"\"%s\" /FORCE \"%%1\" \"%%*\"", szVxKexLdr) != -1);
CHECKED(swprintf_s(szOpenVxKexCommand, ARRAYSIZE(szOpenVxKexCommand), L"\"%s\" /FORCE \"%%1\"", szVxKexLdr) != -1);
CHECKED(RegWriteSz(HKEY_CLASSES_ROOT, L"exefile\\shell\\open_vxkex\\command", NULL, szOpenVxKexCommand));
} else {
// Important note: You cannot "goto Error" from this section, so no CHECKED(x)
Expand Down
Binary file modified KexShlEx/KexShlEx.rc
Binary file not shown.
12 changes: 12 additions & 0 deletions KexShlEx/KexShlEx.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@
<ModuleDefinitionFile>KexShlEx.def</ModuleDefinitionFile>
<AdditionalLibraryDirectories>$(SolutionDir);$(TargetDir)</AdditionalLibraryDirectories>
</Link>
<ResourceCompile>
<AdditionalIncludeDirectories>$(SolutionDir)</AdditionalIncludeDirectories>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
Expand All @@ -107,6 +110,9 @@
<ModuleDefinitionFile>KexShlEx.def</ModuleDefinitionFile>
<AdditionalLibraryDirectories>$(SolutionDir);$(TargetDir)</AdditionalLibraryDirectories>
</Link>
<ResourceCompile>
<AdditionalIncludeDirectories>$(SolutionDir)</AdditionalIncludeDirectories>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
Expand All @@ -128,6 +134,9 @@
<ModuleDefinitionFile>KexShlEx.def</ModuleDefinitionFile>
<AdditionalLibraryDirectories>$(SolutionDir);$(TargetDir)</AdditionalLibraryDirectories>
</Link>
<ResourceCompile>
<AdditionalIncludeDirectories>$(SolutionDir)</AdditionalIncludeDirectories>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
Expand All @@ -149,6 +158,9 @@
<ModuleDefinitionFile>KexShlEx.def</ModuleDefinitionFile>
<AdditionalLibraryDirectories>$(SolutionDir);$(TargetDir)</AdditionalLibraryDirectories>
</Link>
<ResourceCompile>
<AdditionalIncludeDirectories>$(SolutionDir)</AdditionalIncludeDirectories>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="KexShlEx.cpp" />
Expand Down
Loading

0 comments on commit 27a488d

Please sign in to comment.