Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

RealDriveType function

[RealDriveType is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Determines the drive type based on the drive number.

Syntax


int RealDriveType(
  _In_        int iDrive,
  _Reserved_  BOOL fOKToHitNet
);

Parameters

iDrive [in]

Type: int

The number of the drive that you want to test. "A:" corresponds to 0, "B:" to 1, and so on.

fOKToHitNet [in]

Type: BOOL

Reserved. Must be set to 0.

Return value

Type: int

Returns one of the following values.

Return codeDescription
DRIVE_UNKNOWN

The drive type cannot be determined.

DRIVE_NO_ROOT_DIR

The root path is invalid. For example, no volume is mounted at the path.

DRIVE_REMOVABLE

The disk can be removed from the drive.

DRIVE_FIXED

The disk cannot be removed from the drive.

DRIVE_REMOTE

The drive is a remote (network) drive.

DRIVE_CDROM

The drive is a CD-ROM drive.

DRIVE_RAMDISK

The drive is a RAM disk.

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows XP with SP2

End of server support

Windows Server 2003

Header

Shlobj.h

Library

Shell32.lib

DLL

Shell32.dll (version 5.0 or later)

See also

GetDriveType
DriveType

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.