Debenu Quick PDF logo

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 TDebenuPDFLibrary1511.DACloseFile(FileHandle: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::DACloseFile(FileHandle As Long) As Long

DLL

int DPLDACloseFile(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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport