Using Win32 functions in Visual FoxPro Image Gallery
File Management
..msdn
CopyFile
CopyFileTransacted
CreateDirectory
CreateFile
CreateFileTransacted
CreateHardLink
CreateSymbolicLink
DeleteFile
DeleteFileTransacted
FindClose
FindCloseChangeNotification
FindFirstChangeNotification
FindFirstFile
FindNextChangeNotification
FindNextFile
FlushFileBuffers
GetBinaryType
GetCurrentDirectory
GetDriveType
GetFileAttributes
GetFileAttributesEx
GetFileInformationByHandle
GetFileType
GetFullPathName
GetLongPathName
GetShortPathName
GetTempFileName
GetTempPath
LockFile
MoveFile
MoveFileTransacted
OpenFile
QueryDosDevice
ReadDirectoryChangesW
ReadFile
RemoveDirectory
RemoveDirectoryTransacted
ReplaceFile
SearchPath
SetCurrentDirectory
SetEndOfFile
SetFileAttributes
SetFilePointer
SetFilePointerEx
SetSearchPathMode
UnlockFile
WriteFile
_lclose
_lopen
Code examples:
Detecting changes in connections to removable drives (VFP9)
Disconnecting USB Mass Storage Device programmatically
Displaying the drive type value
Mapping and disconnecting network drives
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
Retrieving list of available disk drives
Using the GetLogicalDriveStrings
GetDriveType
    Add comment     W32 Constants      Translate this page
The GetDriveType function determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive
Code examples:
Mapping and disconnecting network drives
Detecting changes in connections to removable drives (VFP9)
Disconnecting USB Mass Storage Device programmatically
Retrieving list of available disk drives
Displaying the drive type value
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
Using the GetLogicalDriveStrings
Declaration:
UINT GetDriveType(
  LPCTSTR lpRootPathName   // root directory
);
FoxPro declaration:
DECLARE INTEGER GetDriveType IN kernel32 STRING nDrive
Parameters:
lpRootPathName
[in] Pointer to a null-terminated string that specifies the root directory of the disk to return information about. A trailing backslash is required. If lpRootPathName is NULL, the function uses the root of the current directory
Return value:
The return value specifies the type of drive
Usage:
? GetDriveType("E:")
My comment:
#DEFINE DRIVE_UNKNOWN 0
#DEFINE DRIVE_NO_ROOT_DIR 1
#DEFINE DRIVE_REMOVABLE 2
#DEFINE DRIVE_FIXED 3
#DEFINE DRIVE_REMOTE 4
#DEFINE DRIVE_CDROM 5
#DEFINE DRIVE_RAMDISK 6

See also: RealDriveType
Word Index links for the GetDriveType :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-12 12:00:00
Modified: 2009-02-04 13:35:34
Visited in last 7 days: 20
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.227.12.4)
1 sec.Example: 'How to obtain Content-Type value for a file type from the System Registry'
4 sec.Function: 'RegCreateKeyEx'
7 sec.Examples
Page 4
Google
Advertise here!