Manuel Pear

System_WinDrives::getDriveType()

System_WinDrives::getDriveType() -- Gets the type of a drive

Synopsis

  1. <?php
  2. require_once 'System/WinDrives.php
  3. ?> 

int System_WinDrives::getDriveType (string $strDrive)

Description

Returns the type of a drive.

Tableau 63-1. Return values

Value Constant Meaning
1 SYSTEM_WINDRIVE_ERROR Non-existent drive or other error
2 SYSTEM_WINDRIVE_REMOVABLE Removable drive (e.g. floppy)
3 SYSTEM_WINDRIVE_FIXED Harddisk
4 SYSTEM_WINDRIVE_REMOTE Network share
5 SYSTEM_WINDRIVE_CDROM CD-Rom or DVD
6 SYSTEM_WINDRIVE_RAMDISK RAM disk

Paramètres

chaîne de caractères $strDrive

The drive that type shall be returned.

Valeur retournée

entier - the type (use the constants for comparison)

Voir aussi

getTypeTitle()


Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique