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 |