hFile (HFILE) - input

      File handle obtained from DosOpen.

    pBuffer (PVOID) - output

      Address of the buffer to receive the bytes read.

    cbRead (ULONG) - input

      The length, in bytes, of pBuffer.

      This is the number of bytes to be read.

    pcbActual (PULONG) - output

      Pointer to the ULONG in which the number of bytes actually read is returned.

    fhFileHandleLockID (FHLOCK) - input

      The filehandle lockid obtained from DosProtectOpen.

    ulrc (APIRET) - returns

      Return Code.

      DosProtectRead returns one of the following values:

    • NO_ERROR 5
        ERROR_ACCESS_DENIED
      6
        ERROR_INVALID_HANDLE
      26
        ERROR_NOT_DOS_DISK
      33
        ERROR_LOCK_VIOLATION
      109
        ERROR_BROKEN_PIPE
      234
        ERROR_MORE_DATA
      For a full list of error codes, see Errors.


    [Back] [Next]