mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
24 lines
687 B
C
24 lines
687 B
C
|
|
||
|
#pragma once
|
||
|
|
||
|
void InstallFileSystemHooks();
|
||
|
|
||
|
#define MAX_OPEN_ARCH_FILES 50
|
||
|
|
||
|
typedef struct _ARCH_FILE_RECORD
|
||
|
{
|
||
|
char _gap0[20];
|
||
|
|
||
|
} ARCH_FILE_RECORD;
|
||
|
|
||
|
// File API definitions
|
||
|
typedef DWORD (WINAPI *def_GetFileSize)(HANDLE,PDWORD);
|
||
|
typedef DWORD (WINAPI *def_SetFilePointer)(HANDLE,LONG,PLONG,DWORD);
|
||
|
typedef HANDLE (WINAPI *def_CreateFileA)(LPCTSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE);
|
||
|
typedef HANDLE (WINAPI *def_CreateFileW)(PWORD,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE);
|
||
|
typedef BOOL (WINAPI *def_ReadFile)(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
|
||
|
|
||
|
typedef BOOL (WINAPI *def_CloseHandle)(HANDLE);
|
||
|
typedef DWORD (WINAPI *def_GetFileType)(HANDLE);
|
||
|
|