Skip to content

Commit 00694b6

Browse files
committed
1
1 parent 63821e8 commit 00694b6

File tree

13 files changed

+31
-14
lines changed

13 files changed

+31
-14
lines changed

Source/KNSoft.Syscall/Arch.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Syscall.inl"
22

3-
#define SYSCALL_NT_VER(Major, Minor, Build) ((ULONG)((((Major) & 0xFF) << 24) | (((Major) & 0xFF) << 16) | ((Build) & 0xFFFF)))
3+
#define SYSCALL_NT_VER(Major, Minor, Build) ((ULONG)((((Major) & 0xFF) << 24) | (((Minor) & 0xFF) << 16) | ((Build) & 0xFFFF)))
44

55
EXTERN_C PVOID Syscall_Proc_Fast;
66
#if defined(_M_X64)
@@ -25,6 +25,7 @@ Syscall_InitArch(VOID)
2525
if (g_Wow64Transition == NULL)
2626
{
2727
Syscall_FastSystemCall = &Syscall_Proc_Fast;
28+
/* Win11 and above, int 2E can be enabled */
2829
#if defined(_M_X64)
2930
if (g_NTVer >= SYSCALL_NT_VER(10, 0, 22000) && SharedUserData->SystemCall)
3031
{

Source/KNSoft.Syscall/KNSoft.Syscall.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,12 +763,12 @@
763763
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
764764
<ImportGroup Label="ExtensionTargets">
765765
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
766-
<Import Project="..\packages\KNSoft.NDK.1.2.37-beta\build\KNSoft.NDK.targets" Condition="Exists('..\packages\KNSoft.NDK.1.2.37-beta\build\KNSoft.NDK.targets')" />
766+
<Import Project="..\packages\KNSoft.NDK.1.2.39-beta\build\KNSoft.NDK.targets" Condition="Exists('..\packages\KNSoft.NDK.1.2.39-beta\build\KNSoft.NDK.targets')" />
767767
</ImportGroup>
768768
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
769769
<PropertyGroup>
770770
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
771771
</PropertyGroup>
772-
<Error Condition="!Exists('..\packages\KNSoft.NDK.1.2.37-beta\build\KNSoft.NDK.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\KNSoft.NDK.1.2.37-beta\build\KNSoft.NDK.targets'))" />
772+
<Error Condition="!Exists('..\packages\KNSoft.NDK.1.2.39-beta\build\KNSoft.NDK.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\KNSoft.NDK.1.2.39-beta\build\KNSoft.NDK.targets'))" />
773773
</Target>
774774
</Project>

Source/KNSoft.Syscall/Syscall.Thunks.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5835,6 +5835,14 @@ ScUserRealChildWindowFromPoint(
58355835
_In_ POINT ptParentClientCoords
58365836
);
58375837

5838+
EXTERN_C
5839+
BOOL
5840+
NTAPI
5841+
ScUserRegisterCloakedNotification(
5842+
_In_ HWND WindowHandle,
5843+
_In_ BOOL Register
5844+
);
5845+
58385846
EXTERN_C
58395847
BOOL
58405848
NTAPI
@@ -5920,7 +5928,7 @@ BOOL
59205928
NTAPI
59215929
ScUserSetWindowPos(
59225930
_In_ HWND WindowHandle,
5923-
_In_ HWND WindowHandleInsertAfter,
5931+
_In_opt_ HWND WindowHandleInsertAfter,
59245932
_In_ LONG X,
59255933
_In_ LONG Y,
59265934
_In_ LONG cx,

Source/KNSoft.Syscall/Syscall.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
INCLUDE KNSoft\NDK\Assembly\Header.inc
22
INCLUDE KNSoft\NDK\Assembly\NDK.inc
33

4+
IFDEF _M_IX86
5+
.MODEL FLAT
6+
ENDIF
7+
48
$STACKFRAME FALSE
59

610
EXTERN $SYMBOLNAME(Syscall_FastSystemCall):SIZE_T

Source/KNSoft.Syscall/Syscall.x64.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ $PUBLIC_LABEL Syscall_Proc_Int2E
1414
int 02Eh
1515
ret
1616

17-
END
17+
END
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
INCLUDE Syscall.inc
2+
3+
$SYSCALL ScUserRegisterCloakedNotification, 1, 2, 176, 81, 201, 77, 65, 82, 116, 195, 193, 44, 81, 40, 61, 66, 70, 36, 48, 84, 36, 243, 128
4+
5+
END
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="KNSoft.NDK" version="1.2.37-beta" targetFramework="native" />
3+
<package id="KNSoft.NDK" version="1.2.39-beta" targetFramework="native" />
44
</packages>

Source/SyscallInfo/SyscallInfo.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@
110110
</ItemGroup>
111111
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
112112
<ImportGroup Label="ExtensionTargets">
113-
<Import Project="..\packages\KNSoft.NDK.1.2.37-beta\build\KNSoft.NDK.targets" Condition="Exists('..\packages\KNSoft.NDK.1.2.37-beta\build\KNSoft.NDK.targets')" />
113+
<Import Project="..\packages\KNSoft.NDK.1.2.39-beta\build\KNSoft.NDK.targets" Condition="Exists('..\packages\KNSoft.NDK.1.2.39-beta\build\KNSoft.NDK.targets')" />
114114
</ImportGroup>
115115
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
116116
<PropertyGroup>
117117
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
118118
</PropertyGroup>
119-
<Error Condition="!Exists('..\packages\KNSoft.NDK.1.2.37-beta\build\KNSoft.NDK.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\KNSoft.NDK.1.2.37-beta\build\KNSoft.NDK.targets'))" />
119+
<Error Condition="!Exists('..\packages\KNSoft.NDK.1.2.39-beta\build\KNSoft.NDK.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\KNSoft.NDK.1.2.39-beta\build\KNSoft.NDK.targets'))" />
120120
</Target>
121121
</Project>

Source/SyscallInfo/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="KNSoft.NDK" version="1.2.37-beta" targetFramework="native" />
3+
<package id="KNSoft.NDK" version="1.2.39-beta" targetFramework="native" />
44
</packages>

Source/ThunkGenerator/ThunkGenerator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="KNSoft.NDK" Version="1.2.37-beta" />
13+
<PackageReference Include="KNSoft.NDK" Version="1.2.39-beta" />
1414
</ItemGroup>
1515

1616
</Project>

0 commit comments

Comments
 (0)