hFile (HFILE) - input

      File handle from DosOpen.

    pBuffer (PVOID) - input

      Address of the buffer that contains the data to write.

    cbWrite (ULONG) - input

      Number of bytes to write.

    pcbActual (PULONG) - output

      Address of the variable to receive the number of bytes actually written.

    ulrc (APIRET) - returns

      Return Code.

      DosWrite returns one of the following values:

    • NO_ERROR 5
        ERROR_ACCESS_DENIED
      6
        ERROR_INVALID_HANDLE
      19
        ERROR_WRITE_PROTECT
      26
        ERROR_NOT_DOS_DISK
      29
        ERROR_WRITE_FAULT
      33
        ERROR_LOCK_VIOLATION
      109
        ERROR_BROKEN_PIPE
      112
        ERROR_DISK_FULL
      157
        ERROR_DISCARDED
      For a full list of error codes, see Errors.


    [Back] [Next]