1
0
mirror of https://github.com/UzixLS/KernelEx.git synced 2025-07-19 07:21:20 +03:00

import KernelEx-4.5-Beta1

This commit is contained in:
UzixLS
2018-11-03 16:21:13 +03:00
parent d6aad6c6c5
commit 09929b2b7d
392 changed files with 17832 additions and 2491 deletions

76
apilibs/kexbases/User32/_user32_apilist.c Normal file → Executable file
View File

@ -22,6 +22,7 @@
#include "common.h"
#include "kexcoresdk.h"
#include "_user32_apilist.h"
#include "thuni_layer.h"
IsHungThread_t IsHungThread_pfn;
DrawCaptionTempA_t DrawCaptionTempA_pfn;
@ -34,19 +35,26 @@ BOOL init_user32()
DrawCaptionTempA_pfn = (DrawCaptionTempA_t)GetProcAddress(hUser32, "DrawCaptionTempA");
GetMouseMovePoints_pfn = (GetMouseMovePoints_t)GetProcAddress(hUser32, "GetMouseMovePoints");
return IsHungThread_pfn && DrawCaptionTempA_pfn && GetMouseMovePoints_pfn;
return IsHungThread_pfn && DrawCaptionTempA_pfn && GetMouseMovePoints_pfn && InitUniThunkLayer();
}
/*
* MAKE_EXPORT RealGetWindowClass=RealGetWindowClassA
* MAKE_EXPORT GetAltTabInfo=GetAltTabInfoA
* MAKE_EXPORT PeekMessageA=PeekMessageW
* MAKE_EXPORT DispatchMessageA=DispatchMessageW
* MAKE_EXPORT IsDialogMessageA=IsDialogMessageW
* MAKE_EXPORT TranslateAcceleratorA=TranslateAcceleratorW
/* APIs which don't require Unicode implementations in thuni model
* MAKE_EXPORT CallMsgFilterA=CallMsgFilterW
* MAKE_EXPORT CopyAcceleratorTableA=CopyAcceleratorTableW
* MAKE_EXPORT CreateAcceleratorTableA=CreateAcceleratorTableW
* MAKE_EXPORT CallMsgFilterA=CallMsgFilterW
* MAKE_EXPORT DispatchMessageA=DispatchMessageW
* MAKE_EXPORT IsDialogMessageA=IsDialogMessageW
* MAKE_EXPORT GetAltTabInfo=GetAltTabInfoA
* MAKE_EXPORT RealGetWindowClass=RealGetWindowClassA
* MAKE_EXPORT SetWindowsHookExA=SetWindowsHookExW
* MAKE_EXPORT SetWindowsHookA=SetWindowsHookW
* MAKE_EXPORT TranslateAcceleratorA=TranslateAcceleratorW
*/
/* Shell hook APIs. Can be implemented with shell,
* but would be too sensitive for cruel world.
* MAKE_EXPORT IsWindow=DeregisterShellHookWindow
* MAKE_EXPORT IsWindow=RegisterShellHookWindow
*/
static const apilib_named_api user32_named_apis[] =
@ -55,6 +63,7 @@ static const apilib_named_api user32_named_apis[] =
DECL_API("AllowSetForegroundWindow", AllowSetForegroundWindow_98),
DECL_API("CallMsgFilterW", CallMsgFilterA),
DECL_API("CallWindowProcA", CallWindowProcA_fix),
DECL_API("CallWindowProcW", CallWindowProcW_new),
DECL_API("CharLowerBuffW", CharLowerBuffW_new),
DECL_API("CharLowerW", CharLowerW_new),
DECL_API("CharNextExW", CharNextExW_new),
@ -67,22 +76,44 @@ static const apilib_named_api user32_named_apis[] =
DECL_API("CharUpperW", CharUpperW_new),
DECL_API("CopyAcceleratorTableW", CopyAcceleratorTableA),
DECL_API("CreateAcceleratorTableW", CreateAcceleratorTableA),
DECL_API("CreateDialogIndirectParamW", CreateDialogIndirectParamW_NEW),
DECL_API("CreateDialogParamW", CreateDialogParamW_NEW),
DECL_API("CreateMDIWindowW", CreateMDIWindowW_NEW),
DECL_API("CreateWindowExW", CreateWindowExW_NEW),
DECL_API("CreateWindowW", CreateWindowW_NEW),
DECL_API("DefDlgProcW", DefDlgProcW_NEW),
DECL_API("DefFrameProcW", DefFrameProcW_NEW),
DECL_API("DefMDIChildProcW", DefMDIChildProcW_NEW),
DECL_API("DefWindowProcW", DefWindowProcW_NEW),
DECL_API("DeregisterShellHookWindow", IsWindow),
DECL_API("DialogBoxIndirectParamW", DialogBoxIndirectParamW_NEW),
DECL_API("DialogBoxParamW", DialogBoxParamW_NEW),
DECL_API("DisableProcessWindowsGhosting", DisableProcessWindowsGhosting_new),
DECL_API("DispatchMessageW", DispatchMessageA),
DECL_API("DrawCaptionTempW", DrawCaptionTempW_new),
DECL_API("EnableWindow", EnableWindow_new),
DECL_API("GetAltTabInfoA", GetAltTabInfo),
DECL_API("GetAncestor", GetAncestor_fix),
DECL_API("GetLastInputInfo", GetLastInputInfo_new),
DECL_API("GetMessageW", GetMessageW_new),
DECL_API("GetClassInfoExW", GetClassInfoExW_NEW),
DECL_API("GetClassInfoW", GetClassInfoW_NEW),
DECL_API("GetClassLongW", GetClassLongW_NEW),
DECL_API("GetDlgItemTextW", GetDlgItemTextW_NEW),
DECL_API("GetLastInputInfo", GetLastInputInfo_NEW),
DECL_API("GetMessageA", GetMessageA_NEW),
DECL_API("GetMessageW", GetMessageW_NEW),
DECL_API("GetMouseMovePointsEx", GetMouseMovePointsEx_98),
DECL_API("GetWindowLongA", GetWindowLongA_new),
DECL_API("GetNextDlgTabItem", GetNextDlgTabItem_fix),
DECL_API("GetWindowLongA", GetWindowLongA_NEW),
DECL_API("GetWindowLongW", GetWindowLongW_NEW),
DECL_API("GetWindowTextLengthW", GetWindowTextLengthW_NEW),
DECL_API("GetWindowTextW", GetWindowTextW_NEW),
DECL_API("IsCharAlphaNumericW", IsCharAlphaNumericW_new),
DECL_API("IsCharAlphaW", IsCharAlphaW_new),
DECL_API("IsCharLowerW", IsCharLowerW_new),
DECL_API("IsCharUpperW", IsCharUpperW_new),
DECL_API("IsDialogMessageW", IsDialogMessageA),
DECL_API("IsHungAppWindow", IsHungAppWindow_new),
DECL_API("IsWindowUnicode", IsWindowUnicode_NEW),
DECL_API("LoadStringW", LoadStringW_new),
DECL_API("LockSetForegroundWindow", LockSetForegroundWindow_98),
DECL_API("LockWorkStation", LockWorkStation_new),
@ -90,14 +121,33 @@ static const apilib_named_api user32_named_apis[] =
DECL_API("MapVirtualKeyExA", MapVirtualKeyExA_new),
DECL_API("OemToCharBuffW", OemToCharBuffW_new),
DECL_API("OemToCharW", OemToCharW_new),
DECL_API("PeekMessageW", PeekMessageA),
DECL_API("PeekMessageA", PeekMessageA_NEW),
DECL_API("PeekMessageW", PeekMessageW_NEW),
DECL_API("PostMessageW", PostMessageW_NEW),
DECL_API("PostThreadMessageW", PostThreadMessageW_NEW),
DECL_API("RealGetWindowClassA", RealGetWindowClass),
DECL_API("RealGetWindowClassW", RealGetWindowClassW_new),
DECL_API("RegisterClassExW", RegisterClassExW_NEW),
DECL_API("RegisterClassW", RegisterClassW_NEW),
DECL_API("RegisterShellHookWindow", IsWindow),
DECL_API("SendDlgItemMessageW", SendDlgItemMessageW_NEW),
DECL_API("SendMessageA", SendMessageA_fix),
DECL_API("SendMessageCallbackW", SendMessageCallbackW_NEW),
DECL_API("SendMessageTimeoutW", SendMessageTimeoutW_NEW),
DECL_API("SendMessageW", SendMessageW_NEW),
DECL_API("SendNotifyMessageW", SendNotifyMessageW_NEW),
DECL_API("SetClassLongW", SetClassLongW_NEW),
DECL_API("SetDlgItemTextW", SetDlgItemTextW_NEW),
DECL_API("SetLayeredWindowAttributes", SetLayeredWindowAttributes_stub),
DECL_API("SetWindowLongA", SetWindowLongA_NEW),
DECL_API("SetWindowLongW", SetWindowLongW_NEW),
DECL_API("SetWindowTextW", SetWindowTextW_NEW),
DECL_API("SetWindowsHookExW", SetWindowsHookExA),
DECL_API("SetWindowsHookW", SetWindowsHookA),
DECL_API("ToUnicode", ToUnicode_new),
DECL_API("ToUnicodeEx", ToUnicodeEx_new),
DECL_API("TranslateAcceleratorW", TranslateAcceleratorA),
DECL_API("UnregisterClassW", UnregisterClassW_NEW),
DECL_API("UpdateLayeredWindow", UpdateLayeredWindow_new),
/*** AUTOGENERATED APILIST NAMED EXPORTS END ***/
};