Character system
Generic main definition

Opening a file
{Read|Write}File

CopyFile

SetFilePointer
SetFilePointerEx
SetFilePointerEx:

Overlapped Datastrcture for synch i/o

File Size and appending to a file
FileLocking
LockFileEx:
UnlockFileEx:

Overlapped I/O with waiting
Thread continues execution after issuing I/O request.
When the thread requires the result it await until it is ready.
Overlapped I/O with waiting uses the overlapped data structure to implement asyncrhonous functions.
We need to specify FILE_FLAG_OVERLAPPED flag inside CreateFile in fdwAttrsAndFlags,
then we use the file handle or the overlapped event to wait for completion.
ReadFile and WriteFile may block the process if not in overlapped mode.
In overlapped mode, neither the return value from ReadFile/WriteFile nor the returned number of bytes is relevant as to wheter it was successful or not .
