2019-01-04 19:23:46 -08:00
|
|
|
#define bool unsigned char
|
|
|
|
|
2019-01-05 11:09:27 -08:00
|
|
|
#define FILE_BEGIN 0
|
|
|
|
#define FILE_CURRENT 1
|
|
|
|
#define FILE_END 2
|
|
|
|
|
2019-01-03 19:38:41 -08:00
|
|
|
#define SFILE_INVALID_SIZE 0xffffffff
|
|
|
|
|
|
|
|
bool WINAPI SFileOpenArchive(const TCHAR * szMpqName, DWORD dwPriority, DWORD dwFlags, HANDLE * phMpq);
|
|
|
|
bool WINAPI SFileCloseArchive(HANDLE hMpq);
|
|
|
|
bool WINAPI SFileOpenFileEx(HANDLE hMpq, const char * szFileName, DWORD dwSearchScope, HANDLE * phFile);
|
|
|
|
DWORD WINAPI SFileSetFilePointer(HANDLE hFile, LONG lFilePos, LONG * plFilePosHigh, DWORD dwMoveMethod);
|
|
|
|
bool WINAPI SFileReadFile(HANDLE hFile, void * lpBuffer, DWORD dwToRead, LPDWORD pdwRead, LPOVERLAPPED lpOverlapped);
|
|
|
|
bool WINAPI SFileCloseFile(HANDLE hFile);
|