RealDriveType function (shlobj_core.h)
[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,
[in] BOOL fOKToHitNet
);
Parameters
[in] iDrive
Type: int
The number of the drive that you want to test. "A:" corresponds to 0, "B:" to 1, and so on.
[in] fOKToHitNet
Type: BOOL
Reserved. Must be set to 0.
Return value
Type: int
Returns one of the following values.
Return code | Description |
---|---|
|
The drive type cannot be determined. |
|
The root path is invalid. For example, no volume is mounted at the path. |
|
The disk can be removed from the drive. |
|
The disk cannot be removed from the drive. |
|
The drive is a remote (network) drive. |
|
The drive is a CD-ROM drive. |
|
The drive is a RAM disk. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shlobj_core.h (include Shlobj.h) |
Library | Shell32.lib |
DLL | Shell32.dll (version 5.0 or later) |
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για