Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Converting path to original case
Converting strings between ANSI and OEM
Enhanced GetFont dialog
GDI+: Using Scale and Shear transformations
How to test file attributes (key method for FileExists and DirectoryExists routines)
Testing Transparent Menu Class with top-level form (requires VFP9)
Using the Semaphore object to allow only one instance of VFP application running
Basic Volume information
Enumerating the subkeys of a user-specific key
Retrieving graphic capabilities of default printer
Retrieving various system metrics
Using GetBinaryType (WinNT only) to determine the type of an executable file
Enumerating ODBC drivers available on the local computer
Finding parameters for the region specified
Searching for the specified file using the SearchPath
An alternative way of setting Form.Closable to False
Displaying the main Dial-Up Networking dialog box
One more way to retrieve environment strings
Pocket PC: creating backup for the System Registry
Reading STARTUPINFO structure for the current VFP session
Setting and retrieving the double-click time for the mouse
How to check whether the system is 32-bit or 64-bit
Power capabilities of the system: battery, UPS, sleep and hibernation modes, processor throttling
Retrieving the System Time adjustment
How to test file attributes (key method for FileExists and DirectoryExists routines)

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
 
  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:
  • ~
1814 bytes  
Created: 2001-08-10 12:00:00  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 53  
Listed functions:
GetFileAttributes
GetLastError
Printer friendly API declarations
My comment:
By the way, this routine can very accurately test an access to a directory. Check the DirectoryExists function in your framework.

Not only the directory accessibility, but this function returns ReadOnly status.
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 (50.16.36.153)
18.55 min.Example: 'Displaying hypertext links with the SysLink control (VFP9, Comctl32.dll)'
18.68 min.Example: 'Copying files as a transacted operation (Vista)'
32.23 min.Function: 'WNetGetConnection'
32.28 min.Example: 'Vertical Label control'
2.45 hrs.Example: 'Adding an ODBC data source with the SQLConfigDataSource; use automatic or interactive mode'
 Example: 'Changing system colors'
 
Function group: 'National Language Support'
3.09 hrs.Example: 'Enumerating the subkeys for a given registry key'
 Example: 'Form Magnifier'
3.42 hrs.Example: 'Creating the Open dialog box to specify the drive, directory, and name of a file to open'
Google
Advertise here!