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:
Passing data records between VFP applications via the Clipboard
Peer-to-peer LAN messenger built with Mailslot API functions
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Using named pipes for interprocess communication
ReadFile
..msdn    Add comment     W32 Constants      Translate this page
Reads data from a file, starting at the position indicated by the file pointer.
Code examples:
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Peer-to-peer LAN messenger built with Mailslot API functions
Passing data records between VFP applications via the Clipboard
Using named pipes for interprocess communication
Declaration:
BOOL ReadFile(
  HANDLE hFile,                // handle to file
  LPVOID lpBuffer,             // data buffer
  DWORD nNumberOfBytesToRead,  // number of bytes to read
  LPDWORD lpNumberOfBytesRead, // number of bytes read
  LPOVERLAPPED lpOverlapped    // overlapped buffer
);
FoxPro declaration:
DECLARE INTEGER ReadFile IN kernel32;
    INTEGER   hFile,;
    STRING  @ lpBuffer,;
    INTEGER   nNumberOfBytesToRead,;
    INTEGER @ lpNumberOfBytesRead,;
    INTEGER   lpOverlapped

Parameters:
hFile
[in] Handle to the file to be read. The file handle must have been created with GENERIC_READ access to the file.

lpBuffer
[out] Pointer to the buffer that receives the data read from the file.

nNumberOfBytesToRead
[in] Specifies the number of bytes to be read from the file.

lpNumberOfBytesRead
[out] Pointer to the variable that receives the number of bytes read.

lpOverlapped
[in] Pointer to an OVERLAPPED structure. This structure is required if hFile was created with FILE_FLAG_OVERLAPPED.
Return value:
If the function succeeds, the return value is nonzero. If the return value is nonzero and the number of bytes read is zero, the file pointer was beyond the current end of the file at the time of the read operation.
My comment:
The function also can be used to read messages from a mailslot.
Word Index links for the ReadFile :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-11-28 18:54:36
Modified: 2002-01-26 14:43:49
Visited in last 7 days: 14
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.80.198.134)
20 sec.Function: 'GlobalSize'
Function group: 'Memory Management'
1.23 min.Function: 'NetApiBufferFree'
2 day(s)Function: 'CreateWindowEx'
 Example: 'Retrieving the name of the network resource associated with a local device'
Google
Advertise here!