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
_lopen
    Add comment     W32 Constants      Translate this page
Opens an existing file and sets the file pointer to the beginning of the file.
Code examples:
A procedure for setting file times
Declaration:
HFILE _lopen(
    LPCSTR  lpPathName,    // address of name of file to open  
    int  iReadWrite     // file access mode 
);
FoxPro declaration:
DECLARE INTEGER _lopen IN kernel32; 
    STRING  lpFileName, INTEGER iReadWrite
Parameters:
lpPathName
Points to a null-terminated string that names the file to open. The string must consist of characters from the Windows ANSI character set.

iReadWrite
Specifies the modes in which to open the file.
Return value:
If the function succeeds, the return value is a file handle. If the function fails, the return value is HFILE_ERROR
My comment:
This function is provided for compatibility with 16-bit versions of Windows. Win32-based applications should use the CreateFile function.
Word Index links for the _lopen :
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: 2013-10-17 17:01:34
Visited in last 7 days: 20
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 (54.145.117.60)
12 sec.Function: 'midiOutReset'
Function group: 'Windows Multimedia'
32 sec.Function: 'GdipSetImagePalette'
Function group: 'GDI+ Image'
43 sec.Function: 'IsValidURL'
Function group: 'URL Monikers'
52 sec.Examples
1.22 min.Function: 'NetUserAdd'
Function group: 'Network Management'
1.38 min.Function: 'SetLayeredWindowAttributes'
1.57 min.Example: 'How to play AVI file on the _screen'
1.73 min.Function: 'midiOutReset'
Function group: 'Windows Multimedia'
1.9 min.Function: 'SQLInstallerError'
Function group: 'ODBC API'
2.07 min.Function: 'GdipGetPropertyCount'
Function group: 'GDI+ Image'
Google
Advertise here!