Writes a specified number of bytes from a buffer to the specified file.

Groups: DOSFILEMGR

UNI declaration:

function DosWrite(in hFile: HFILE; in pBuffer: PVOID; in cbWrite: ULONG; out cbActual: ULONG): APIRET;

  • hFile (HFILE) input - File handle from DosOpen or 0-StdIn, 1-StdOut
  • pBuffer (PVOID) input - Address of the buffer that contains the data to write.
  • cbWrite (ULONG) input - Number of bytes to write.
  • cbActual (ULONG) output - Address of the variable to receive the number of bytes actually written.