disknum (ULONG) - input

      Logical drive number. Zero means the default drive, 1 means drive A, 2 means drive B, 3 means drive C, and so on. This represents the file system driver (FSD) for the media currently in that drive. A value of 0xFFFF means that pBuf contains the ASCIIZ path name of the FSD.

    infolevel (ULONG) - input

      Level of file information to be set. Only a value of 2 (FSIL_VOLSER) may be specified.

    pBuf (PVOID) - input

      Address of the storage area where the system gets the new file system information.

      Level 2 Information

        Level 2 information is returned in the format of an FSINFO structure.

      cbBuf (ULONG) - input

        The length, in bytes, of pBuf.

      ulrc (APIRET) - returns

        Return Code.

        DosSetFSInfo returns one of the following values:

      • NO_ERROR 15
          ERROR_INVALID_DRIVE
        82
          ERROR_CANNOT_MAKE
        122
          ERROR_INSUFFICIENT_BUFFER
        123
          ERROR_INVALID_NAME
        124
          ERROR_INVALID_LEVEL
        154
          ERROR_LABEL_TOO_LONG
        For a full list of error codes, see Errors.


      [Back] [Next]