Using Win32 functions in Visual FoxPro Image Gallery
File System
..msdn
DeleteVolumeMountPoint
FindFirstVolume
FindFirstVolumeMountPoint
FindNextVolume
FindNextVolumeMountPoint
FindVolumeClose
FindVolumeMountPointClose
GetCompressedFileSize
GetDiskFreeSpace
GetDiskFreeSpaceEx
GetFileSize
GetFileSizeEx
GetLogicalDrives
GetLogicalDriveStrings
GetVolumeInformation
GetVolumeNameForVolumeMountPoint
GetVolumePathNamesForVolumeName
SetVolumeLabel
SetVolumeMountPoint
Code examples:
Disconnecting USB Mass Storage Device programmatically
Retrieving list of available disk drives
Disconnecting USB Mass Storage Device programmatically

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Versions:
click to open
Before you begin:

USB Storage Devices can be disconnected (removed safely) in VFP code. The procedure is the same as the system utility uses.




See also:
  • Enumerating devices installed on the local machine
  • How to detect when a removable drive gets connected or disconnected
  • Retrieving list of available disk drives

  •  
      Members area. Log in to view this example.
     
      User name:
      Password:
     
     
      Forgot your password?
     
      Sign up for
    the Membership
     
     


    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    7477 bytes  
    Created: 2009-02-04 11:57:00  
    Modified: 2011-01-08 15:29:04  
    Visits in 7 days: 159  
    Listed functions:
    CM_Connect_Machine
    CM_Disconnect_Machine
    CM_Get_Child_Ex
    CM_Get_Sibling_Ex
    CM_Locate_DevNode_Ex
    CM_Request_Device_Eject_Ex
    GetDriveType
    GetLogicalDrives
    Printer friendly API declarations
    My comment:
    #DEFINE CLASS_GUID_USBCONTROLLER;
            "{36fc9e60-c465-11cf-8056-444553540000}"

    #DEFINE CLASS_GUID_DISKDRIVE;
            "{4d36e967-e325-11ce-bfc1-08002be10318}"
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian  
    FreeTranslation.com offers instant, free translations of text or web pages.
    User Contributed Notes:
    There are no notes on this subject.


    Copyright 2001-2017 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.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (54.198.2.110)
    14 sec.Function: 'CeSetFilePointer'
    Function group: 'Remote Application Programming (RAPI)'
    40 sec.
    Function group: 'Time'
    54 sec.Function: 'NetWkstaGetInfo'
    Function group: 'Network Management'
    1.08 min.Function: 'StrToIntEx'
    Function group: 'String'
    1.45 min.Example: 'How to load a user profile'
    1.67 min.Articles
    1.87 min.Function: 'waveOutWrite'
    Function group: 'Windows Multimedia'
    2.07 min.Function: 'DeleteFile'
    2.27 min.Function: 'CeGetVersionEx'
    Function group: 'Remote Application Programming (RAPI)'
    2.45 min.Function: 'waveOutGetVolume'
    Function group: 'Windows Multimedia'
    Google
    Advertise here!