DAGetInformationA

文件屬性、直接存取功能

描述

結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 DAGetInformation 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀

從文件資訊區取出資訊,可能是 Author、Subject 這類標準資訊,也可能是自訂資訊

語法

Delphi

Function DLDAGetInformationA(InstanceID, FileHandle: Integer; Key: PAnsiChar): PAnsiChar;

DLL

const char * DLDAGetInformationA(int InstanceID, int FileHandle, const char * Key);

參數

FileHandle由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函式傳回的控制代碼 標準資訊請用 "Author"、"Title"、"Subject"、"Keywords"、"Creator" 或 "Producer";自訂資訊可用任何其他字串。
Key