The FlushPackage function writes the
contents of the specified package to the disk.
| BOOL FlushPackage( |
|
HPACKAGE hPackage |
|
// handle to package file |
| ); |
Parameters
- hPackage
- [in] Handle to an open package file.
Return Values
If the FlushPackage function succeeds, it
will return a non-zero value.
If the function fails, it will return a value of zero. To
get extended error information, call GetLastError.
Remarks
The FlushPackage function can be used to
explicitly flush the contents of a modified package to disk. Normally, the package
contents are cached in memory and written to disk when the package file is closed.
Requirements
Windows NT/2000/XP: Requires Windows NT 4.0 SP3 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Include apatch.h.
Library: Use apatch32.lib.
See Also
ClosePackage, OpenPackage, UpdatePackage
|