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:
Changing file attributes
How to test file attributes (key method for FileExists and DirectoryExists routines)
GetFileAttributes
    Add comment     W32 Constants      Translate this page
Retrieves attributes for a specified file or directory.
Code examples:
Changing file attributes
How to test file attributes (key method for FileExists and DirectoryExists routines)
Declaration:
 
DWORD GetFileAttributes(
  LPCTSTR lpFileName   // name of file or directory
);
 
FoxPro declaration:
 
DECLARE INTEGER GetFileAttributes IN kernel32;
    STRING lpFileName
 
Parameters:
lpFileName
[in] Pointer to a null-terminated string that specifies the name of a file or directory.
Return value:
If the function succeeds, the return value contains the attributes of the specified file or directory.
My comment:
This function can be used for testing an access to a directory -- a key-turn DirectoryExists function.
Word Index links for the GetFileAttributes :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-10 12:00:00
Modified: 2001-12-02 22:58:58
Visited in last 7 days: 30
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)
3 sec.Example: 'How to access a file using not its name but an alias (hard link)'
3.6 hrs.Example: 'GDI+: rotating images using matrix transformations'
 Example: 'How to obtain Content-Type value for a file type from the System Registry'
 Example: 'How to enumerate, add and delete shares on the local computer (WinNT/XP)'
5.34 hrs.Example: 'GDI+: Creating thumbnails to preview images in a directory'
 Function: 'CryptDestroyKey'
16.82 hrs.Example: 'Pocket PC: Folder Viewer'
 Example: 'How to retrieve configuration data for a specified printer stored in the registry (PrinterDriverData key)'
22.57 hrs.Example: 'How to print FoxPro form'
 Example: 'Reading VFP settings from the Windows Registry'
Google
Advertise here!