Writes the specified number of bytes to the given file.
BOOLEAN WriteFile(
    HANDLE hFile,
    LPCVOID lpBuffer,
    DWORD nNumberOfBytesToWrite,
    LPDWORD lpNumberOfBytesWritten,
    LPOVERLAPPED lpOverlapped
);
hFile 
lpBuffer 
nNumberOfBytesToWrite 
A value of zero specifies a null write operation. A null write operation does not write any bytes but does cause the time stamp to change. WriteFile does not truncate the file.
lpNumberOfBytesWritten 
lpOverlapped 
Accessing the output buffer while a write operation is using the buffer may corrupt the data written from that buffer. Applications must not read from, write to, reallocate, or free the output buffer that a write operation is using until the write operation completes.
0 (zero) 
| Versions | Defined in | Include | Link to | 
|---|---|---|---|
| INtime 3.0 | intime/rt/include/winbase.h | windows.h | iwin32.lib | 
Note
This function operates in the real-time portion of your application.
CreateFile, ReadFile, iwin32 API, iwin32 Overview