hFile (HFILE) - input

      File handle.

    pType (PULONG) - output

      Address of the value indicating the handle type.

      Possible values are shown in the following list:

      Bit

        Description
      15
        Network bit:

      • The handle refers to a local file, device, or pipe. 1
          The handle refers to a remote file, device, or pipe.
        14
          1 Protected file handle.
        13-8
          Reserved.
        7-0
          HandleClass: Describes the handle class. It may take on the following values in the low byte of pType:

        • Disk file
        • Character device
        • Pipe.

          Values greater than 2 are reserved.

        pAttr (PULONG) - output

          Address of the device-driver attribute word if pType indicates a local character device.

        ulrc (APIRET) - returns

          Return Code.

          DosQueryHType returns one of the following values:

        • NO_ERROR 6
            ERROR_INVALID_HANDLE
          For a full list of error codes, see Errors.


        [Back] [Next]