 |
FlushFileBuffers ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Flushes the buffers of a specified file and causes all buffered data to be written to a file. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL FlushFileBuffers(
HANDLE hFile
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER FlushFileBuffers IN kernel32;
INTEGER hFile
|
 |
 |
 |
| Parameters: |
 |
hFile
[in] A handle to an open file. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| My comment: |
 |
Parameter hFile is different from the handle returned by VFP low-level file functions FOPEN() and FCREATE().
Typically the WriteFile and WriteFileEx functions write data to an internal buffer that the OS writes to a disk on a regular basis. The FlushFileBuffers function writes to a disk all the buffered information for a specified file. |
 |
 |
| Word Index links for the FlushFileBuffers : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2007-01-16 17:58:10 | | Modified: | 2007-01-16 18:02:24 | Visited in last 7 days: 15 |