Funktionreferenz


_WinAPI_QueryDosDevice


Retrieves the current mapping for a particular MS-DOS device name

#include <WinAPIFiles.au3>
_WinAPI_QueryDosDevice ( $sDevice )

Parameter

$sDevice The name of the MS-DOS device.

Rückgabewert

Success: The current mapping for the specified device. If the $sDevice parameter is empty string, return array
of all existing MS-DOS device names (for example, "\Device\HarddiskVolume1" or "\Device\Floppy0").
The zeroth array element contains the number of names.
Failure: Sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information.

Bemerkungen

None.

Siehe auch

Suche nach QueryDosDevice in der MSDN Bibliothek.

Beispiel

#include <WinAPIFiles.au3>

Local $aDrive = DriveGetDrive('ALL')

If IsArray($aDrive) Then
    For $i = 1 To $aDrive[0]
        ConsoleWrite(StringUpper($aDrive[$i]) & ' => ' & _WinAPI_QueryDosDevice($aDrive[$i]) & @CRLF)
    Next
EndIf