Using Win32 functions in Visual FoxPro Image Gallery
Remote Application Programming (RAPI)
..msdn
CeCloseHandle
CeCopyFile
CeCreateDatabase
CeCreateDirectory
CeCreateFile
CeCreateProcess
CeDeleteDatabase
CeDeleteFile
CeDeleteRecord
CeEnumDBVolumes
CeFindAllFiles
CeFindFirstDatabaseEx
CeFindFirstFile
CeFindNextDatabaseEx
CeGetFileSize
CeGetLastError
CeGetSpecialFolderPath
CeGetStoreInformation
CeGetSystemInfo
CeGetSystemPowerStatusEx
CeGetTempPath
CeGetVersionEx
CeGlobalMemoryStatus
CeMoveFile
CeOidGetInfoEx
CeOpenDatabase
CeRapiFreeBuffer
CeRapiGetError
CeRapiInit
CeRapiInitEx
CeRapiInvoke
CeRapiUninit
CeReadFile
CeReadRecordProps
CeRegCloseKey
CeRegCreateKeyEx
CeRegDeleteKey
CeRegDeleteValue
CeRegEnumKeyEx
CeRegEnumValue
CeRegOpenKeyEx
CeRegQueryInfoKey
CeRegQueryValueEx
CeRegSetValueEx
CeRemoveDirectory
CeSeekDatabase
CeSetFilePointer
CeWriteFile
CeWriteRecordProps
Code examples:
Pocket PC: custom RAPI class for operating with files and folders on mobile device
CeReadFile
..msdn    Add comment     W32 Constants      Translate this page
This function reads data from a file, starting at the position indicated by the file pointer.
Code examples:
Pocket PC: custom RAPI class for operating with files and folders on mobile device
Declaration:
BOOL CeReadFile( 
  HANDLE hFile, 
  LPVOID lpBuffer, 
  DWORD nNumberOfBytesToRead, 
  LPDWORD lpNumberOfBytesRead, 
  LPOVERLAPPED lpOverlapped
);
FoxPro declaration:
DECLARE INTEGER CeReadFile IN rapi;
    INTEGER   hFile,;
    STRING  @ lpBuffer,;
    INTEGER   nBytesToRead,;
    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] Number of bytes to be read from the file.

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

lpOverlapped
[in] Unsupported; set to NULL.
Return value:
Nonzero indicates success. The CeReadFile function returns when one of the following is true: the number of bytes requested has been read or an error occurs.
My comment:
See also CeSetFilePointer, CeWriteFile and CeCloseHandle functions.
Word Index links for the CeReadFile :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-08-21 15:53:55
Modified: 2004-08-21 15:56:13
Visited in last 7 days: 19
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.196.47.128)
4 sec.Function: 'OpenProcess'
Function group: 'Process and Thread'
8 sec.Example: 'How to view icons stored in executable files (Icon Viewer) - II'
12 sec.Example: 'How to prevent users from accessing the Windows Desktop and from switching to other applications'
18 sec.Function: 'waveOutGetErrorText'
Function group: 'Windows Multimedia'
21 sec.
Function group: 'Synchronization'
24 sec.Function: 'FtpFindFirstFile'
Function group: 'Internet Functions (WinInet)'
28 sec.Function: 'capGetDriverDescription'
Function group: 'Windows Multimedia'
36 sec.Function: 'FtpGetFile'
39 sec.Banners
44 sec.Function: 'SCardConnect'
Function group: 'Authentication'
Google
Advertise here!