| 3 |
tristanc |
1 |
#pragma once
|
|
|
2 |
#include <Windows.h> /* For file I/O */
|
|
|
3 |
#include <cstdio> /* For scanf */
|
|
|
4 |
|
|
|
5 |
bool OsFileExists(char *fileName);
|
|
|
6 |
bool OsDirectoryExists(char *directory);
|
|
|
7 |
HANDLE OsCreateFile(char *fileName,
|
|
|
8 |
DWORD desiredAccess,
|
|
|
9 |
DWORD shareMode,
|
|
|
10 |
DWORD createDisposition,
|
|
|
11 |
DWORD flagsAndAttributes,
|
|
|
12 |
HANDLE extendedFileType);
|
|
|
13 |
BOOL OsReadFile(HANDLE hFile, void *buffer, DWORD bytesToRead, DWORD *bytesRead);
|
|
|
14 |
DWORD OsSetFilePointer(HANDLE hFile, DWORD moveMethod, LONG distanceToMove);
|
|
|
15 |
BOOL OsWriteFile(HANDLE hFile, const void *buffer, DWORD bytesToWrite, DWORD *bytesWritten);
|
|
|
16 |
void OsCloseFile(HANDLE hFile);
|