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