summaryrefslogtreecommitdiffstats
path: root/include/win_funcs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/win_funcs.h')
-rw-r--r--include/win_funcs.h13
1 files changed, 13 insertions, 0 deletions
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);