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 Long

DLL

int DLDACloseFile(int InstanceID, int FileHandle);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions

Return values

0The specified FileHandle was not valid, the file may already have been closed
1The file was closed successfully