DACloseFile

直接访问功能

描述

关闭最初由 DAOpenFile 函数打开的文件。对文件所作的任何更改都会丢失。如需保留更改,必须在关闭文件前使用 DASaveAsFile 函数或 DAAppendFile 函数

语法

Delphi

Function TPDFlib.DACloseFile(FileHandle: Integer): Integer;

ActiveX

Function PDFlib::DACloseFile(FileHandle As Long) As Long

DLL

int DLDACloseFile(int InstanceID, int FileHandle);

参数

FileHandle由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数返回的句柄

返回值

0指定的 FileHandle 无效,文件可能已关闭
1文件已成功关闭