..msdn Add comment W32 Constants Translate this page
The WriteFile function writes data to a file and is designed for both synchronous and asynchronous operation. |
HANDLE hFile, // handle to file
LPCVOID lpBuffer, // data buffer
DWORD nNumberOfBytesToWrite, // number of bytes to write
LPDWORD lpNumberOfBytesWritten, // number of bytes written
LPOVERLAPPED lpOverlapped // overlapped buffer
DECLARE INTEGER WriteFile IN kernel32;
INTEGER @ lpBtWritten,;
[in] Handle to the file to be written to. The file handle must have been created with GENERIC_WRITE access to the file.
[in] Pointer to the buffer containing the data to be written to the file.
[in] Specifies the number of bytes to write to the file.
[out] Pointer to the variable that receives the number of bytes written.
[in] Pointer to an OVERLAPPED structure. This structure is required if hFile was opened with FILE_FLAG_OVERLAPPED.
|If the function succeeds, the return value is nonzero.|
|The function also can be used to put a message in a mailslot.|
|Word Index links for the WriteFile :|
|Translate this page:|
Visited in last 7 days: 56
|Created: ||2001-11-05 21:03:22|
|Modified: ||2005-12-02 18:14:10|