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:
A procedure for setting file times
GetFileAttributesEx
..msdn    Add comment     W32 Constants      Translate this page
Retrieves attributes for a specified file or directory.
Code examples:
A procedure for setting file times
Declaration:
BOOL GetFileAttributesEx(
  LPCTSTR lpFileName,                   // file or directory name
  GET_FILEEX_INFO_LEVELS fInfoLevelId,  // attribute 
  LPVOID lpFileInformation              // attribute information 
);
FoxPro declaration:
DECLARE INTEGER GetFileAttributesEx IN kernel32; 
    STRING    lpFileName,; 
    INTEGER   fInfoLevelId,; 
    STRING  @ lpFileInformation
Parameters:
lpFileName
[in] Pointer to a null-terminated string that specifies a file or directory.

fInfoLevelId
[in] Specifies a GET_FILEEX_INFO_LEVELS enumeration type that gives the set of attribute information to obtain.

lpFileInformation
[out] Pointer to a buffer that receives the attribute information. The type of attribute information stored into this buffer is determined by the value of fInfoLevelId.
Return value:
If the function succeeds, the return value is a nonzero value. If the function fails, the return value is zero.
My comment:
Same as the GetFileAttributes this function is a good basis for DirectoryExists and FileExists algorithms.
Word Index links for the GetFileAttributesEx :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-29 12:00:00
Modified: 2001-12-02 22:58:12
Visited in last 7 days: 40
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 (23.22.136.56)
17 sec.Function: 'mixerGetDevCaps'
34 sec.Function: 'NetUserChangePassword'
51 sec.Function: 'SearchPath'
Function group: 'File Management'
1.13 min.Function: 'PathBuildRoot'
1.43 min.Function: 'CryptEncrypt'
1.72 min.Example: 'GDI+: loading image file, drawing on it, saving the result to another file'
2.03 min.Function: 'LookupPrivilegeDisplayName'
2.32 min.Example: 'Disabling mouse and keyboard input for the main VFP window (with the app still running)'
2.6 min.Example: 'Opening the Page Setup dialog box to specify the attributes of a printed page'
2.92 min.Function: 'MonitorFromWindow'
Google
Advertise here!