| 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 |
|
|
|
6 |
//===========================================================================
|
|
|
7 |
bool OsFileExists (char* fileName);
|
|
|
8 |
|
|
|
9 |
//===========================================================================
|
|
|
10 |
bool OsDirectoryExists (char* directory);
|
|
|
11 |
|
|
|
12 |
//===========================================================================
|
|
|
13 |
HANDLE OsCreateFile (char* fileName,
|
|
|
14 |
DWORD desiredAccess,
|
|
|
15 |
DWORD shareMode,
|
|
|
16 |
DWORD createDisposition,
|
|
|
17 |
DWORD flagsAndAttributes,
|
|
|
18 |
HANDLE extendedFileType);
|
|
|
19 |
|
|
|
20 |
//===========================================================================
|
|
|
21 |
BOOL OsReadFile (HANDLE hFile, void* buffer, DWORD bytesToRead, DWORD* bytesRead);
|
|
|
22 |
|
|
|
23 |
//===========================================================================
|
|
|
24 |
DWORD OsSetFilePointer (HANDLE hFile, DWORD moveMethod, LONG distanceToMove);
|
|
|
25 |
|
|
|
26 |
//===========================================================================
|
|
|
27 |
BOOL OsWriteFile (HANDLE hFile, void const* buffer, DWORD bytesToWrite, DWORD* bytesWritten);
|
|
|
28 |
|
|
|
29 |
//===========================================================================
|
|
|
30 |
void OsCloseFile (HANDLE hFile);
|
|
|
31 |
|