Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
An alternative way of setting Form.Closable to False
Converting twips to pixels and vice versa
Copying strings through the global memory block
GDI+: Drawing a Pie Chart
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
Yet another modal dialog: now HTML-based
Enhanced GetFont dialog
Enumerating sessions established on a server
How to get Special Folders paths
How to retrieve version information for the specified file
How to start the screen saver and how to find whether the screen saver is active
How to test file attributes (key method for FileExists and DirectoryExists routines)
Retrieving long values associated with the class of the VFP window
Using Shell for performing operations on files
Using the MessageBox Win32 function
WAV file recorder
GDI+: reading and writing metadata in JPEG and TIFF files
How to display a Task Dialog (Vista)
How to initiate System shutdown
Retrieving list of supported paper names (for example, Letter or Legal) for a given printer
Returning some basic information for the specified INF file
Using GetNearestColor
Verifying a file using the Authenticode policy provider
Current directory of the application
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: 73  
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 (184.73.74.47)
55.12 min.Example: 'Enumerating ODBC Data Sources available on the local computer'
55.18 min.Function: 'LocalFileTimeToFileTime'
55.23 min.Example: 'Quering a waveform-audio input device'
2.56 hrs.Example: 'Starting a dialog box for connecting to network resources (mapping network drive)'
 Example: 'Using FtpCommand'
9.04 hrs.Example: 'Using MessageBeep'
9.05 hrs.Function: 'IsChild'
Function group: 'Window'
9.73 hrs.Function: 'FindFirstFile'
Function group: 'File Management'
11.24 hrs.Example: 'How to print FoxPro form'
 Example: 'Storing screen shot of a form to enhanced metafile (*.emf)'
Google
Advertise here!