DACloseFile
Direct access functionality
Description
Closes a file that was originally opened using the DAOpenFile function. Any changes made to the file are lost. If you would like to keep your changes you must use either the DASaveAsFile function or the DAAppendFile function before closing the file.
Syntax
Delphi
function TPDFlib.DACloseFile(FileHandle: Integer): Integer;ActiveX
Function PDFlib::DACloseFile(FileHandle As Long) As LongDLL
int DLDACloseFile(int InstanceID, int FileHandle);Parameters
| FileHandle | A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions |
|---|
Return values
| 0 | The specified FileHandle was not valid, the file may already have been closed |
|---|---|
| 1 | The file was closed successfully |