| 3 |
tristanc |
1 |
#pragma once
|
|
|
2 |
#include <Windows.h> /* For file I/O */
|
| 32 |
tristanc |
3 |
#include <cstdio> /* For scanf */
|
| 3 |
tristanc |
4 |
|
| 32 |
tristanc |
5 |
|
| 36 |
tristanc |
6 |
//=============================================================================
|
| 32 |
tristanc |
7 |
bool OsFileExists (char* fileName);
|
|
|
8 |
|
| 36 |
tristanc |
9 |
//=============================================================================
|
| 32 |
tristanc |
10 |
bool OsDirectoryExists (char* directory);
|
|
|
11 |
|
| 36 |
tristanc |
12 |
//=============================================================================
|
| 32 |
tristanc |
13 |
HANDLE OsCreateFile (char* fileName,
|
|
|
14 |
DWORD desiredAccess,
|
|
|
15 |
DWORD shareMode,
|
|
|
16 |
DWORD createDisposition,
|
|
|
17 |
DWORD flagsAndAttributes,
|
|
|
18 |
HANDLE extendedFileType);
|
|
|
19 |
|
| 36 |
tristanc |
20 |
//=============================================================================
|
| 32 |
tristanc |
21 |
BOOL OsReadFile (HANDLE hFile, void* buffer, DWORD bytesToRead, DWORD* bytesRead);
|
|
|
22 |
|
| 36 |
tristanc |
23 |
//=============================================================================
|
| 32 |
tristanc |
24 |
DWORD OsSetFilePointer (HANDLE hFile, DWORD moveMethod, LONG distanceToMove);
|
|
|
25 |
|
| 36 |
tristanc |
26 |
//=============================================================================
|
| 32 |
tristanc |
27 |
BOOL OsWriteFile (HANDLE hFile, void const* buffer, DWORD bytesToWrite, DWORD* bytesWritten);
|
|
|
28 |
|
| 36 |
tristanc |
29 |
//=============================================================================
|
| 32 |
tristanc |
30 |
void OsCloseFile (HANDLE hFile);
|
|
|
31 |
|