long _hwrite(hf, hpvBuffer, cbBuffer) | |||||
HFILE hf; | /* file handle | */ | |||
const void _huge* hpvBuffer; | /* address of buffer for write data | */ | |||
long cbBuffer; | /* size of data, */ |
The _hwrite function writes data to the specified file. This function supports huge memory objects (that is, objects larger than 64K, allocated using the GlobalAlloc function).
hf
Identifies the file to be written to.
hpvBuffer
Points to a buffer that contains the data to be written to the file.
cbBuffer
Specifies the number of bytes to be written to the file.
The return value indicates the number of bytes written to the file, if the function is successful. Otherwise, the return value is –1L.
MS-DOS error values are not available when an application calls this function.