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
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
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: 94  
    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-2013 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.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (67.202.5.213)
    58.4 min.Example: 'How to draw custom Window Caption on FoxPro form'
    1.63 hrs.Function: 'EnumPrinterDrivers'
     Function: 'WNetConnectionDialog'
     Example: 'Reading current hardware profile'
    Google
    Advertise here!