3.1.4.27 CprepDiskGetFSName (Opnum 36)

The CprepDiskGetFSName method returns the name of the file system on a given partition on a given disk.

HRESULT CprepDiskGetFSName(
  [in] CPREP_DISKID DiskId,
  [in] unsigned long Partition,
  [out] wchar_t FsName[100]
);

DiskId: The identifier of the disk.

Partition: The partition number to query for file system information.

FsName: A null-terminated output string that contains the name of the file system. The value MUST be "NTFS" if the partition has the NTFS file system. The value MUST be "FAT" for the file allocation table (FAT) file system. No file system and unrecognized file systems MUST be "RAW". Other values can be used for file systems not specified here.

Value Meaning

"NTFS"

The partition file system is NTFS.

"FAT"

The partition file system is FAT.

"RAW"

There is no partition file system, or it is unrecognized.

Return Values: A signed 32-bit value that indicates return status. If the method returns a negative value, it has failed. Zero or positive values indicate success, with the lower 16 bits in positive nonzero values containing warnings or flags defined in the method implementation. For more information about Win32 error codes and HRESULT values, see [MS-ERREF] sections 2.2 and 2.1.

Return value/code Description

0x00000000
S_OK

The call was successful.

0x80070022
ERROR_WRONG_DISK

The disk was not found.

For any other condition, this method MUST return a value that is not one of the values listed in the preceding table. The client MUST behave in one consistent, identical manner for all values that are not listed in the preceding table.

Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].

The opnum field value for this method is 36.

When processing this call, the server MUST do the following:

  • Determine the file system on the given disk/partition.

The server returns the following information to the client:

  • Place the name of the file system in the FsName buffer.

Page view tracker