From 0f0ff9e1b91b64d2fe5d35a8f7f30f427905f66e Mon Sep 17 00:00:00 2001 From: ladevieq Date: Mon, 13 Jul 2026 17:11:20 +0200 Subject: Fix function loader, it used to load function name that partially matches Add checks in open_pdb --- include/win_funcs.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/win_funcs.h') diff --git a/include/win_funcs.h b/include/win_funcs.h index 59f395d..3d053bb 100644 --- a/include/win_funcs.h +++ b/include/win_funcs.h @@ -347,6 +347,18 @@ typedef struct __declspec(align(16)) _CONTEXT { } CONTEXT, *PCONTEXT; typedef PCONTEXT LPCONTEXT; +typedef union _LARGE_INTEGER { + struct { + u32 LowPart; + i32 HighPart; + }; + struct { + u32 LowPart; + i32 HighPart; + } u; + i64 QuadPart; +} LARGE_INTEGER, *PLARGE_INTEGER; + // ======================= // ====== Funcs PFN ====== // ======================= @@ -362,6 +374,7 @@ typedef i32(*PFN_GetThreadContext)(void*, LPCONTEXT); typedef i32(*PFN_SetThreadContext)(void*, const CONTEXT*); typedef void*(*PFN_CreateFileA)(const i8*, u32, u32, LPSECURITY_ATTRIBUTES, u32, u32, void*); +typedef i32(*PFN_GetFileSizeEx)(void*, PLARGE_INTEGER); typedef i32(*PFN_ReadFile)(void*, void*, u32, u32*, LPOVERLAPPED); typedef u32(*PFN_SetFilePointer)(void*, i32, i32*, u32); typedef i32(*PFN_WriteFile)(void*, const void*, u32, u32*, LPOVERLAPPED); -- cgit v1.3