Update to latest SDK
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
"components": [
|
||||
"Microsoft.Component.MSBuild",
|
||||
"Microsoft.VisualStudio.Component.Git",
|
||||
"Microsoft.VisualStudio.Component.Vcpkg",
|
||||
"Microsoft.VisualStudio.Component.VC.Redist.14.Latest",
|
||||
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
|
||||
"Microsoft.VisualStudio.Component.VC.Tools.ARM64",
|
||||
|
||||
+1064
-794
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -129,33 +129,6 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg">
|
||||
<VcpkgEnableManifest>true</VcpkgEnableManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
<VcpkgInstalledDir>$(SolutionDir)tools\thirdparty\vcpkg_installed\$(Configuration)$(PlatformArchitecture)\</VcpkgInstalledDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
<VcpkgInstalledDir>$(SolutionDir)tools\thirdparty\vcpkg_installed\$(Configuration)$(PlatformArchitecture)\</VcpkgInstalledDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
<VcpkgInstalledDir>$(SolutionDir)tools\thirdparty\vcpkg_installed\$(Configuration)$(PlatformArchitecture)\</VcpkgInstalledDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
<VcpkgInstalledDir>$(SolutionDir)tools\thirdparty\vcpkg_installed\$(Configuration)$(PlatformArchitecture)\</VcpkgInstalledDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
<VcpkgInstalledDir>$(SolutionDir)tools\thirdparty\vcpkg_installed\$(Configuration)$(PlatformArchitecture)\</VcpkgInstalledDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
<VcpkgInstalledDir>$(SolutionDir)tools\thirdparty\vcpkg_installed\$(Configuration)$(PlatformArchitecture)\</VcpkgInstalledDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
@@ -175,8 +148,10 @@
|
||||
<SupportJustMyCode>false</SupportJustMyCode>
|
||||
<BuildStlModules>false</BuildStlModules>
|
||||
<UseStandardPreprocessor>true</UseStandardPreprocessor>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<EnableEnhancedInstructionSet>AdvancedVectorExtensions</EnableEnhancedInstructionSet>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>setupapi.lib;cfgmgr32.lib;aclui.lib;comctl32.lib;dnsapi.lib;noarg.obj;noenv.obj;ntdll.lib;phlib.lib;userenv.lib;wbemuuid.lib;windowscodecs.lib;winhttp.lib;winsta.lib;kphlib_um.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
@@ -221,9 +196,10 @@
|
||||
<SupportJustMyCode>false</SupportJustMyCode>
|
||||
<BuildStlModules>false</BuildStlModules>
|
||||
<UseStandardPreprocessor>true</UseStandardPreprocessor>
|
||||
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>setupapi.lib;cfgmgr32.lib;aclui.lib;comctl32.lib;dnsapi.lib;noarg.obj;noenv.obj;ntdll.lib;phlib.lib;userenv.lib;wbemuuid.lib;windowscodecs.lib;winhttp.lib;winsta.lib;kphlib_um.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
@@ -268,10 +244,10 @@
|
||||
<SupportJustMyCode>false</SupportJustMyCode>
|
||||
<BuildStlModules>false</BuildStlModules>
|
||||
<UseStandardPreprocessor>true</UseStandardPreprocessor>
|
||||
<OmitFramePointers>false</OmitFramePointers>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>setupapi.lib;cfgmgr32.lib;aclui.lib;comctl32.lib;dnsapi.lib;noarg.obj;noenv.obj;ntdll.lib;phlib.lib;userenv.lib;wbemuuid.lib;windowscodecs.lib;winhttp.lib;winsta.lib;kphlib_um.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
@@ -320,11 +296,12 @@
|
||||
<LanguageStandard_C Condition="'$(MSBuildVersion)' >= '17.11'">stdclatest</LanguageStandard_C>
|
||||
<AdditionalOptions>/utf-8 /d1nodatetime %(AdditionalOptions)</AdditionalOptions>
|
||||
<UseStandardPreprocessor>true</UseStandardPreprocessor>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<BuildStlModules>false</BuildStlModules>
|
||||
<BuildStlModules>false</BuildStlModules>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<EnableEnhancedInstructionSet>AdvancedVectorExtensions</EnableEnhancedInstructionSet>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>setupapi.lib;cfgmgr32.lib;aclui.lib;comctl32.lib;dnsapi.lib;noarg.obj;noenv.obj;ntdll.lib;phlib.lib;userenv.lib;wbemuuid.lib;windowscodecs.lib;winhttp.lib;winsta.lib;kphlib_um.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
@@ -379,9 +356,9 @@
|
||||
<ControlFlowGuard>Guard</ControlFlowGuard>
|
||||
<BuildStlModules>false</BuildStlModules>
|
||||
<UseStandardPreprocessor>true</UseStandardPreprocessor>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
@@ -436,9 +413,10 @@
|
||||
<CallingConvention>StdCall</CallingConvention>
|
||||
<BuildStlModules>false</BuildStlModules>
|
||||
<UseStandardPreprocessor>true</UseStandardPreprocessor>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>setupapi.lib;cfgmgr32.lib;aclui.lib;comctl32.lib;dnsapi.lib;noarg.obj;noenv.obj;ntdll.lib;phlib.lib;userenv.lib;wbemuuid.lib;windowscodecs.lib;winhttp.lib;winsta.lib;kphlib_um.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
|
||||
@@ -45,6 +45,8 @@ EXT BOOLEAN PhEnableLinuxSubsystemSupport;
|
||||
EXT BOOLEAN PhEnableNetworkResolveDoHSupport;
|
||||
EXT BOOLEAN PhEnableVersionShortText;
|
||||
EXT BOOLEAN PhEnableDeferredLayout;
|
||||
EXT BOOLEAN PhEnableKsiWarnings;
|
||||
EXT BOOLEAN PhEnableKsiSupport;
|
||||
|
||||
EXT ULONG PhCsForceNoParent;
|
||||
EXT ULONG PhCsHighlightingDuration;
|
||||
|
||||
@@ -177,6 +177,7 @@ typedef struct _PH_PROCESS_ITEM
|
||||
// Other
|
||||
|
||||
HANDLE ConsoleHostProcessId;
|
||||
ULONGLONG ProcessStartKey;
|
||||
ULONGLONG CreateInterruptTime;
|
||||
ULONGLONG SessionCreateTime;
|
||||
ULONG ImageChecksum;
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <kphcomms.h>
|
||||
#include <kphdyndata.h>
|
||||
#include <settings.h>
|
||||
#include <phsettings.h>
|
||||
#include <json.h>
|
||||
#include <phappres.h>
|
||||
#include <sistatus.h>
|
||||
@@ -81,7 +82,7 @@ VOID PhShowKsiStatus(
|
||||
{
|
||||
KPH_PROCESS_STATE processState;
|
||||
|
||||
if (!PhGetIntegerSetting(L"KsiEnableWarnings") || PhStartupParameters.PhSvc)
|
||||
if (!PhEnableKsiWarnings || PhStartupParameters.PhSvc)
|
||||
return;
|
||||
|
||||
processState = KphGetCurrentProcessState();
|
||||
@@ -134,6 +135,7 @@ VOID PhShowKsiStatus(
|
||||
PhGetString(infoString)
|
||||
))
|
||||
{
|
||||
PhEnableKsiWarnings = FALSE;
|
||||
PhSetIntegerSetting(L"KsiEnableWarnings", FALSE);
|
||||
}
|
||||
|
||||
@@ -158,7 +160,7 @@ VOID PhpShowKsiMessage(
|
||||
PPH_STRING messageString;
|
||||
ULONG processState;
|
||||
|
||||
if (!Force && !PhGetIntegerSetting(L"KsiEnableWarnings") || PhStartupParameters.PhSvc)
|
||||
if (!Force && !PhEnableKsiWarnings || PhStartupParameters.PhSvc)
|
||||
return;
|
||||
|
||||
versionString = PhGetApplicationVersionString(FALSE);
|
||||
@@ -230,7 +232,7 @@ VOID PhpShowKsiMessage(
|
||||
PhAppendStringBuilder2(&stringBuilder, L"\r\n");
|
||||
}
|
||||
|
||||
if (Force && !PhGetIntegerSetting(L"KsiEnableWarnings"))
|
||||
if (Force && !PhEnableKsiWarnings)
|
||||
{
|
||||
PhAppendStringBuilder2(&stringBuilder, L"Driver warnings are disabled.");
|
||||
PhAppendStringBuilder2(&stringBuilder, L"\r\n");
|
||||
@@ -261,6 +263,7 @@ VOID PhpShowKsiMessage(
|
||||
PhGetString(messageString)
|
||||
))
|
||||
{
|
||||
PhEnableKsiWarnings = FALSE;
|
||||
PhSetIntegerSetting(L"KsiEnableWarnings", FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
+10
-6
@@ -756,7 +756,7 @@ ULONG CALLBACK PhpUnhandledExceptionCallback(
|
||||
config.pszExpandedInformation = PhGetString(PhGetStacktraceAsString());
|
||||
#endif
|
||||
|
||||
if (SUCCEEDED(TaskDialogIndirect(&config, &result, NULL, NULL)))
|
||||
if (PhShowTaskDialog(&config, &result, NULL, NULL))
|
||||
{
|
||||
switch (result)
|
||||
{
|
||||
@@ -1107,11 +1107,11 @@ VOID PhpInitializeSettings(
|
||||
// 3. The default location.
|
||||
|
||||
// 1. File specified in command line
|
||||
//if (PhStartupParameters.SettingsFileName)
|
||||
//{
|
||||
// // Get an absolute path now.
|
||||
// PhGetFullPath(PhStartupParameters.SettingsFileName->Buffer, &PhSettingsFileName, NULL);
|
||||
//}
|
||||
if (PhStartupParameters.SettingsFileName)
|
||||
{
|
||||
// Get an absolute path now.
|
||||
PhGetFullPath(PhStartupParameters.SettingsFileName->Buffer, &PhSettingsFileName, NULL);
|
||||
}
|
||||
|
||||
// 2. File in program directory
|
||||
if (PhIsNullOrEmptyString(PhSettingsFileName))
|
||||
@@ -1240,6 +1240,7 @@ VOID PhpInitializeSettings(
|
||||
typedef enum _PH_COMMAND_ARG
|
||||
{
|
||||
PH_ARG_NONE,
|
||||
PH_ARG_SETTINGS,
|
||||
PH_ARG_NOSETTINGS,
|
||||
PH_ARG_SHOWVISIBLE,
|
||||
PH_ARG_SHOWHIDDEN,
|
||||
@@ -1277,6 +1278,9 @@ BOOLEAN NTAPI PhpCommandLineOptionCallback(
|
||||
{
|
||||
switch (Option->Id)
|
||||
{
|
||||
case PH_ARG_SETTINGS:
|
||||
PhSwapReference(&PhStartupParameters.SettingsFileName, Value);
|
||||
break;
|
||||
case PH_ARG_NOSETTINGS:
|
||||
PhStartupParameters.NoSettings = TRUE;
|
||||
break;
|
||||
|
||||
@@ -1414,7 +1414,9 @@ VOID PhpFillProcessItem(
|
||||
SIZE_T CommandLineLength = telemetryInfoLength - telemetryInfo->CommandLineOffset;
|
||||
PWSTR CommandLineBuffer = PTR_ADD_OFFSET(telemetryInfo, telemetryInfo->CommandLineOffset);
|
||||
|
||||
ProcessItem->ProcessStartKey = telemetryInfo->ProcessStartKey;
|
||||
ProcessItem->CreateInterruptTime = telemetryInfo->CreateInterruptTime;
|
||||
ProcessItem->ProcessSequenceNumber = telemetryInfo->ProcessSequenceNumber;
|
||||
ProcessItem->SessionCreateTime = telemetryInfo->SessionCreateTime;
|
||||
ProcessItem->ImageChecksum = telemetryInfo->ImageChecksum;
|
||||
ProcessItem->ImageTimeStamp = telemetryInfo->ImageTimeDateStamp;
|
||||
|
||||
@@ -48,8 +48,6 @@ VOID PhAddDefaultSettings(
|
||||
PhpAddIntegerSetting(L"EnableInstantTooltips", L"0");
|
||||
PhpAddIntegerSetting(L"EnableHeapReflection", L"0");
|
||||
PhpAddIntegerSetting(L"EnableHeapMemoryTagging", L"0");
|
||||
PhpAddIntegerSetting(L"KsiEnable", L"0");
|
||||
PhpAddIntegerSetting(L"KsiEnableWarnings", L"1");
|
||||
PhpAddIntegerSetting(L"EnableLastProcessShutdown", L"0");
|
||||
PhpAddIntegerSetting(L"EnableLinuxSubsystemSupport", L"0");
|
||||
PhpAddIntegerSetting(L"EnableHandleSnapshot", L"1");
|
||||
@@ -115,10 +113,6 @@ VOID PhAddDefaultSettings(
|
||||
PhpAddStringSetting(L"HandleStatisticsListViewColumns", L"");
|
||||
PhpAddStringSetting(L"HandleStatisticsListViewSort", L"0,1");
|
||||
PhpAddScalableIntegerPairSetting(L"HandleStatisticsWindowSize", L"@96|0,0");
|
||||
PhpAddIntegerSetting(L"HiddenProcessesMenuEnabled", L"0");
|
||||
PhpAddStringSetting(L"HiddenProcessesListViewColumns", L"");
|
||||
PhpAddIntegerPairSetting(L"HiddenProcessesWindowPosition", L"400,400");
|
||||
PhpAddScalableIntegerPairSetting(L"HiddenProcessesWindowSize", L"@96|520,400");
|
||||
PhpAddIntegerSetting(L"HideDefaultServices", L"0");
|
||||
PhpAddIntegerSetting(L"HideDriverServices", L"0");
|
||||
PhpAddIntegerSetting(L"HideFreeRegions", L"1");
|
||||
@@ -147,6 +141,8 @@ VOID PhAddDefaultSettings(
|
||||
PhpAddScalableIntegerPairSetting(L"InformationWindowSize", L"@96|140,190");
|
||||
PhpAddIntegerSetting(L"ImageCoherencyScanLevel", L"1");
|
||||
PhpAddStringSetting(L"JobListViewColumns", L"");
|
||||
PhpAddIntegerSetting(L"KsiEnable", L"0");
|
||||
PhpAddIntegerSetting(L"KsiEnableWarnings", L"1");
|
||||
PhpAddIntegerSetting(L"LogEntries", L"200"); // 512
|
||||
PhpAddStringSetting(L"LogListViewColumns", L"");
|
||||
PhpAddIntegerPairSetting(L"LogWindowPosition", L"0,0");
|
||||
@@ -276,7 +272,6 @@ VOID PhAddDefaultSettings(
|
||||
PhpAddStringSetting(L"WmiProviderTreeListSort", L"0,0"); // 0, NoSortOrder
|
||||
PhpAddIntegerSetting(L"WmiProviderTreeListFlags", L"0");
|
||||
PhpAddStringSetting(L"VdmHostListViewColumns", L"");
|
||||
PhpAddIntegerSetting(L"ZombieProcessesMenuEnabled", L"0");
|
||||
PhpAddStringSetting(L"ZombieProcessesListViewColumns", L"");
|
||||
PhpAddIntegerPairSetting(L"ZombieProcessesWindowPosition", L"400,400");
|
||||
PhpAddScalableIntegerPairSetting(L"ZombieProcessesWindowSize", L"@96|520,400");
|
||||
@@ -328,6 +323,8 @@ VOID PhAddDefaultSettings(
|
||||
PhpAddIntegerSetting(L"ColorProtectedProcess", L"ff8080");
|
||||
PhpAddIntegerSetting(L"UseColorInheritHandles", L"1");
|
||||
PhpAddIntegerSetting(L"ColorInheritHandles", L"ffff77");
|
||||
PhpAddIntegerSetting(L"UseColorEfficiencyMode", L"1");
|
||||
PhpAddIntegerSetting(L"ColorEfficiencyMode", L"80ff00");
|
||||
PhpAddIntegerSetting(L"UseColorServiceDisabled", L"1");
|
||||
PhpAddIntegerSetting(L"ColorServiceDisabled", L"6d6d6d"); // Dark grey
|
||||
PhpAddIntegerSetting(L"UseColorServiceStop", L"1");
|
||||
@@ -432,6 +429,8 @@ VOID PhUpdateCachedSettings(
|
||||
PH_UPDATE_SETTING(UseColorInheritHandles);
|
||||
PH_UPDATE_SETTING(ColorProtectedProcess);
|
||||
PH_UPDATE_SETTING(UseColorProtectedProcess);
|
||||
PH_UPDATE_SETTING(ColorEfficiencyMode);
|
||||
PH_UPDATE_SETTING(UseColorEfficiencyMode);
|
||||
PH_UPDATE_SETTING(ColorInheritHandles);
|
||||
PH_UPDATE_SETTING(UseColorServiceDisabled);
|
||||
PH_UPDATE_SETTING(ColorServiceDisabled);
|
||||
|
||||
@@ -0,0 +1,169 @@
|
||||
#
|
||||
# Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
|
||||
#
|
||||
# This file is part of System Informer.
|
||||
#
|
||||
# Authors:
|
||||
#
|
||||
# dmex 2024
|
||||
#
|
||||
#
|
||||
|
||||
$Export_Header = @"
|
||||
/*
|
||||
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
|
||||
*
|
||||
* This file is part of System Informer.
|
||||
*
|
||||
* Authors:
|
||||
*
|
||||
* wj32 2008-2016
|
||||
* dmex 2017-2024
|
||||
*
|
||||
*
|
||||
* This file was automatically generated.
|
||||
*
|
||||
* Do not link at runtime. Use the SystemInformer.def.h header file instead.
|
||||
*
|
||||
*/
|
||||
"@;
|
||||
|
||||
function UpdateExportDefs()
|
||||
{
|
||||
$ordinal = 1000
|
||||
$content = New-Object System.Text.StringBuilder
|
||||
$exports = Get-Content -Path "SystemInformer\SystemInformer.def"
|
||||
|
||||
foreach ($line in $exports)
|
||||
{
|
||||
$span = $line.Trim();
|
||||
|
||||
if (
|
||||
[string]::IsNullOrWhiteSpace($span) -or
|
||||
$span.StartsWith("EXPORTS", [StringComparison]::OrdinalIgnoreCase) -or
|
||||
$span.StartsWith(";", [StringComparison]::OrdinalIgnoreCase)
|
||||
)
|
||||
{
|
||||
[void]$content.AppendLine($span);
|
||||
}
|
||||
else
|
||||
{
|
||||
$length = $span.IndexOf("@", [StringComparison]::OrdinalIgnoreCase);
|
||||
|
||||
if ($length -ne -1)
|
||||
{
|
||||
$export = (" " + $span.Substring(0, $length).Trim());
|
||||
$offset = (" @" + (++$ordinal));
|
||||
|
||||
if ($span.EndsWith("DATA", [StringComparison]::OrdinalIgnoreCase))
|
||||
{
|
||||
$format = "{0,-80} {1,-10} NONAME DATA" -f $export, $offset
|
||||
[void]$content.AppendLine($format.TrimEnd());
|
||||
}
|
||||
else
|
||||
{
|
||||
$format = "{0,-80} {1,-10} NONAME" -f $export, $offset
|
||||
[void]$content.AppendLine($format.TrimEnd());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$firstWord = $span.Split(" ")[0]; # Extract the first word
|
||||
$export = (" " + $firstWord.Trim());
|
||||
$offset = (" @" + (++$ordinal));
|
||||
|
||||
if ($span.EndsWith("DATA", [StringComparison]::OrdinalIgnoreCase))
|
||||
{
|
||||
$format = "{0,-80} {1,-10} NONAME DATA" -f $export, $offset
|
||||
[void]$content.AppendLine($format.TrimEnd());
|
||||
}
|
||||
else
|
||||
{
|
||||
$format = "{0,-80} {1,-10} NONAME" -f $export, $offset,
|
||||
[void]$content.AppendLine($format.TrimEnd());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$export_content = $content.ToString().TrimEnd()
|
||||
|
||||
$export_content | Out-File -FilePath "SystemInformer\SystemInformer.def" -Force
|
||||
}
|
||||
|
||||
function UpdateExportHeader()
|
||||
{
|
||||
$content = New-Object System.Text.StringBuilder
|
||||
$exports = Get-Content -Path "SystemInformer\SystemInformer.def"
|
||||
|
||||
[void]$content.AppendLine($Export_Header);
|
||||
[void]$content.AppendLine("`r`n#pragma once`r`n");
|
||||
[void]$content.AppendLine("#ifndef _PH_EXPORT_DEF_H");
|
||||
[void]$content.AppendLine("#define _PH_EXPORT_DEF_H`r`n");
|
||||
|
||||
foreach ($line in $exports)
|
||||
{
|
||||
$span = $line.Trim();
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($span) -eq $false)
|
||||
{
|
||||
$ordinal = $null
|
||||
$reader = [System.IO.StringReader]::new($span)
|
||||
$line = $reader.ReadLine()
|
||||
|
||||
while (![string]::IsNullOrWhiteSpace($line))
|
||||
{
|
||||
$line = $line.Trim()
|
||||
|
||||
if (![string]::IsNullOrWhiteSpace($line))
|
||||
{
|
||||
$offset = $line.IndexOf("@", [StringComparison]::OrdinalIgnoreCase)
|
||||
|
||||
if ($offset -ne -1)
|
||||
{
|
||||
$ordinal = $line.Substring($offset + 1)
|
||||
$length = $ordinal.IndexOf(" NONAME", [StringComparison]::OrdinalIgnoreCase)
|
||||
|
||||
[void]$content.Append('#define EXPORT_');
|
||||
[void]$content.Append($line.Substring(0, $offset).ToUpper());
|
||||
[void]$content.Append(' ');
|
||||
[void]$content.Append($ordinal.Substring(0, $length));
|
||||
[void]$content.AppendLine();
|
||||
}
|
||||
}
|
||||
|
||||
$line = $reader.ReadLine()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[void]$content.AppendLine("`r`n#endif _PH_EXPORT_DEF_H`r`n");
|
||||
|
||||
$export_content = $content.ToString().TrimEnd();
|
||||
|
||||
$export_content | Out-File -FilePath "SystemInformer\SystemInformer.def.h" -Force
|
||||
}
|
||||
|
||||
# Get script start time
|
||||
$global:TimeStart = (Get-Date);
|
||||
# Stop script execution after any errors.
|
||||
$global:ErrorActionPreference = "Stop";
|
||||
|
||||
# Check if the current directory contains the main solution
|
||||
if (!(Test-Path "SystemInformer.sln"))
|
||||
{
|
||||
# Change root directory to the \build\internal\ directory (where this script is located).
|
||||
Set-Location $PSScriptRoot;
|
||||
# Set the current location to the base repository directory.
|
||||
Set-Location "..\";
|
||||
# Re-check if the current directory
|
||||
if (!(Test-Path "SystemInformer.sln"))
|
||||
{
|
||||
Write-Host "Unable to find project directory... Exiting." -ForegroundColor Red
|
||||
exit 5
|
||||
}
|
||||
}
|
||||
|
||||
# Update the solution exports
|
||||
UpdateExportDefs;
|
||||
UpdateExportHeader;
|
||||
@@ -17,22 +17,22 @@ if exist "%VSINSTALLPATH%\VC\Auxiliary\Build\vcvarsall.bat" (
|
||||
goto end
|
||||
)
|
||||
|
||||
msbuild /m SystemInformer.sln -property:Configuration=Debug -property:Platform=Win32 -verbosity:normal /p:VcpkgEnableManifest=true
|
||||
msbuild /m SystemInformer.sln -property:Configuration=Debug -property:Platform=Win32 -verbosity:normal
|
||||
if %ERRORLEVEL% neq 0 goto end
|
||||
|
||||
msbuild /m SystemInformer.sln -property:Configuration=Debug -property:Platform=x64 -verbosity:normal /p:VcpkgEnableManifest=true
|
||||
msbuild /m SystemInformer.sln -property:Configuration=Debug -property:Platform=x64 -verbosity:normal
|
||||
if %ERRORLEVEL% neq 0 goto end
|
||||
|
||||
msbuild /m SystemInformer.sln -property:Configuration=Debug -property:Platform=ARM64 -verbosity:normal /p:VcpkgEnableManifest=true
|
||||
msbuild /m SystemInformer.sln -property:Configuration=Debug -property:Platform=ARM64 -verbosity:normal
|
||||
if %ERRORLEVEL% neq 0 goto end
|
||||
|
||||
msbuild /m Plugins\Plugins.sln -property:Configuration=Debug -property:Platform=Win32 -verbosity:normal /p:VcpkgEnableManifest=true
|
||||
msbuild /m Plugins\Plugins.sln -property:Configuration=Debug -property:Platform=Win32 -verbosity:normal
|
||||
if %ERRORLEVEL% neq 0 goto end
|
||||
|
||||
msbuild /m Plugins\Plugins.sln -property:Configuration=Debug -property:Platform=x64 -verbosity:normal /p:VcpkgEnableManifest=true
|
||||
msbuild /m Plugins\Plugins.sln -property:Configuration=Debug -property:Platform=x64 -verbosity:normal
|
||||
if %ERRORLEVEL% neq 0 goto end
|
||||
|
||||
msbuild /m Plugins\Plugins.sln -property:Configuration=Debug -property:Platform=ARM64 -verbosity:normal /p:VcpkgEnableManifest=true
|
||||
msbuild /m Plugins\Plugins.sln -property:Configuration=Debug -property:Platform=ARM64 -verbosity:normal
|
||||
if %ERRORLEVEL% neq 0 goto end
|
||||
|
||||
:end
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
|
||||
function InitializeScriptEnvironment()
|
||||
{
|
||||
# Get script start time
|
||||
$global:TimeStart = (Get-Date);
|
||||
# Stop script execution after any errors.
|
||||
$global:ErrorActionPreference = "Stop";
|
||||
}
|
||||
|
||||
function CheckSolutionDirectory()
|
||||
{
|
||||
# Check if the current directory contains the main solution
|
||||
if (!(Test-Path "SystemInformer.sln"))
|
||||
{
|
||||
# Change root directory to the \build\internal\ directory (where this script is located).
|
||||
Set-Location $PSScriptRoot;
|
||||
|
||||
# Set the current location to the base repository directory.
|
||||
Set-Location "..\..\";
|
||||
|
||||
# Re-check if the current directory
|
||||
if (!(Test-Path "SystemInformer.sln"))
|
||||
{
|
||||
Write-Host "Unable to find project directory... Exiting." -ForegroundColor Red
|
||||
exit 5
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function GenerateZw()
|
||||
{
|
||||
$BaseDirectory = "phnt\include"
|
||||
$OutputFile = "ntzwapi.h"
|
||||
$Header = "#ifndef _NTZWAPI_H`r`n#define _NTZWAPI_H`r`n`r`n// This file was automatically generated. Do not edit.`r`n`r`n"
|
||||
$Footer = "#endif`r`n"
|
||||
|
||||
$directoryInfo = Get-Item -Path ".."
|
||||
while ($null -ne $directoryInfo.Parent -and $null -ne $directoryInfo.Parent.Parent) {
|
||||
$directoryInfo = $directoryInfo.Parent
|
||||
if (Test-Path -Path "$($directoryInfo.FullName)\$BaseDirectory") {
|
||||
Set-Location -Path $directoryInfo.FullName
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
$regex = New-Object System.Text.RegularExpressions.RegEx("NTSYSCALLAPI[\w\s_]*NTAPI\s*(Nt(\w)*)\(.*?\);", [System.Text.RegularExpressions.RegexOptions]::Singleline)
|
||||
$definitions = @()
|
||||
|
||||
$files = Get-ChildItem -Path $BaseDirectory -Filter "*.h" -Recurse
|
||||
foreach ($file in $files) {
|
||||
$text = Get-Content -Path $file.FullName -Raw
|
||||
|
||||
if ([String]::IsNullOrEmpty($text)) {
|
||||
continue
|
||||
}
|
||||
|
||||
$textmatches = $regex.Matches($text)
|
||||
|
||||
foreach ($match in $textmatches)
|
||||
{
|
||||
$definitions += [PSCustomObject]@{
|
||||
Name = $match.Groups[1].Value
|
||||
Text = $match.Value
|
||||
NameIndex = $match.Groups[1].Index - $match.Index
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$defs = $definitions | Sort-Object -Property Name -CaseSensitive -Unique
|
||||
|
||||
$fileName = New-Item -Name ($BaseDirectory + '\\' + $OutputFile) -ItemType File -Force
|
||||
$fileStream = $fileName.OpenWrite()
|
||||
$sw = [System.IO.StreamWriter]::new($fileStream)
|
||||
$sw.Write($Header)
|
||||
|
||||
Write-Host "Updating $($fileName)"
|
||||
|
||||
foreach ($d in $defs)
|
||||
{
|
||||
Write-Host "System service: $($d.Name)"
|
||||
|
||||
$sw.Write($d.Text.Substring(0, $d.NameIndex) + "Zw" + $d.Text.Substring($d.NameIndex + 2) + "`r`n`r`n")
|
||||
}
|
||||
|
||||
$sw.Write($Footer)
|
||||
$sw.Dispose()
|
||||
$fileStream.Dispose();
|
||||
}
|
||||
|
||||
# Entry point
|
||||
InitializeScriptEnvironment;
|
||||
|
||||
# Check the current directory
|
||||
CheckSolutionDirectory;
|
||||
|
||||
# Update the ntzwapi.h exports
|
||||
GenerateZw;
|
||||
@@ -13,16 +13,16 @@
|
||||
|
||||
#define PCRE2_CODE_UNIT_WIDTH 16
|
||||
|
||||
#if __has_include(<pcre2.h>)
|
||||
#include <pcre2.h>
|
||||
#if __has_include("../../tools/thirdparty/pcre/pcre2.h")
|
||||
#include "../../tools/thirdparty/pcre/pcre2.h"
|
||||
#else
|
||||
#error "vcpkg is mssing"
|
||||
#error "ThirdParty.lib is mssing"
|
||||
#endif
|
||||
|
||||
#if __has_include(<json-c/json.h>)
|
||||
#include <json-c/json.h>
|
||||
#if __has_include("../../tools/thirdparty/jsonc/json.h")
|
||||
#include "../../tools/thirdparty/jsonc/json.h"
|
||||
#else
|
||||
#error "vcpkg is mssing"
|
||||
#error "ThirdParty.lib is mssing"
|
||||
#endif
|
||||
|
||||
#if __has_include("../../tools/thirdparty/mxml/mxml.h")
|
||||
|
||||
@@ -38,31 +38,37 @@
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="PropertySheets">
|
||||
@@ -127,7 +133,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="DotNetTools.rc">
|
||||
<Filter>Resource Files</Filter>
|
||||
<Filter>Resource Files</Filter>
|
||||
</ResourceCompile>
|
||||
<ResourceCompile Include="version.rc">
|
||||
<Filter>Resource Files</Filter>
|
||||
|
||||
@@ -38,31 +38,37 @@
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="PropertySheets">
|
||||
|
||||
@@ -38,31 +38,37 @@
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="PropertySheets">
|
||||
|
||||
@@ -38,31 +38,37 @@
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="PropertySheets">
|
||||
|
||||
@@ -38,31 +38,37 @@
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="PropertySheets">
|
||||
@@ -139,7 +145,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="HardwareDevices.rc">
|
||||
<Filter>Resource Files</Filter>
|
||||
<Filter>Resource Files</Filter>
|
||||
</ResourceCompile>
|
||||
<ResourceCompile Include="version.rc">
|
||||
<Filter>Resource Files</Filter>
|
||||
|
||||
@@ -38,31 +38,37 @@
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="Shared" />
|
||||
|
||||
@@ -38,31 +38,37 @@
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="Shared" />
|
||||
|
||||
@@ -28,16 +28,13 @@ PH_CALLBACK_REGISTRATION ModulesTreeNewInitializingCallbackRegistration;
|
||||
PH_CALLBACK_REGISTRATION ServiceTreeNewInitializingCallbackRegistration;
|
||||
|
||||
BOOLEAN VirusTotalScanningEnabled = FALSE;
|
||||
ULONG ProcessesUpdatedCount = 0;
|
||||
|
||||
VOID ProcessesUpdatedCallback(
|
||||
_In_opt_ PVOID Parameter,
|
||||
_In_ PVOID Parameter,
|
||||
_In_opt_ PVOID Context
|
||||
)
|
||||
{
|
||||
if (ProcessesUpdatedCount != 3)
|
||||
{
|
||||
ProcessesUpdatedCount++;
|
||||
if (PtrToUlong(Parameter) < 3)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
<SupportJustMyCode>false</SupportJustMyCode>
|
||||
<CallingConvention>StdCall</CallingConvention>
|
||||
<BuildStlModules>false</BuildStlModules>
|
||||
<UseStandardPreprocessor>true</UseStandardPreprocessor>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>SystemInformer.lib;thirdparty.lib;ntdll.lib;noenv.obj;noarg.obj;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
@@ -102,7 +104,7 @@
|
||||
<ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
|
||||
<ClCompile>
|
||||
<CallingConvention>StdCall</CallingConvention>
|
||||
<EnableEnhancedInstructionSet>StreamingSIMDExtensions</EnableEnhancedInstructionSet>
|
||||
<EnableEnhancedInstructionSet>AdvancedVectorExtensions</EnableEnhancedInstructionSet>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalLibraryDirectories>$(SolutionDir)..\sdk\lib\i386;$(SolutionDir)..\tools\thirdparty\bin\$(Configuration)$(PlatformArchitecture);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
@@ -115,6 +117,7 @@
|
||||
<ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
|
||||
<ClCompile>
|
||||
<CallingConvention>StdCall</CallingConvention>
|
||||
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalLibraryDirectories>$(SolutionDir)..\sdk\lib\amd64;$(SolutionDir)..\tools\thirdparty\bin\$(Configuration)$(PlatformArchitecture);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
|
||||
@@ -38,31 +38,37 @@
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="PropertySheets">
|
||||
|
||||
@@ -38,31 +38,37 @@
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="Shared" />
|
||||
|
||||
@@ -38,31 +38,37 @@
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="PropertySheets">
|
||||
|
||||
@@ -38,31 +38,37 @@
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="PropertySheets">
|
||||
|
||||
@@ -116,33 +116,6 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg">
|
||||
<VcpkgEnableManifest>true</VcpkgEnableManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
|
||||
<VcpkgInstalledDir>$(SolutionDir)tools\thirdparty\vcpkg_installed\$(Configuration)$(PlatformArchitecture)\</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
|
||||
<VcpkgInstalledDir>$(SolutionDir)tools\thirdparty\vcpkg_installed\$(Configuration)$(PlatformArchitecture)\</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<VcpkgInstalledDir>$(SolutionDir)tools\thirdparty\vcpkg_installed\$(Configuration)$(PlatformArchitecture)\</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<VcpkgInstalledDir>$(SolutionDir)tools\thirdparty\vcpkg_installed\$(Configuration)$(PlatformArchitecture)\</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<VcpkgInstalledDir>$(SolutionDir)tools\thirdparty\vcpkg_installed\$(Configuration)$(PlatformArchitecture)\</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<VcpkgInstalledDir>$(SolutionDir)tools\thirdparty\vcpkg_installed\$(Configuration)$(PlatformArchitecture)\</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>true</VcpkgUseStatic>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
|
||||
Reference in New Issue
Block a user