SetCustomInformationA
文档属性
描述
末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 SetCustomInformation 相同,字符串参数会使用当前 SetAnsiMode 代码页解释
此函数用于在文档中存储自定义元数据。这些值稍后可通过 GetCustomInformation 函数从文档中读取。数据存储在文档信息字典中。私有内容或结构信息应改为使用 SetCatalogInformation 函数存储在文档 Catalog 中
语法
Delphi
Function DLSetCustomInformationA(InstanceID: Integer; Key, NewValue: PAnsiChar): Integer;
DLL
int DLSetCustomInformationA(int InstanceID, const char * Key, const char * NewValue);
参数
| Key | 指定要设置的键 |
|---|---|
| NewValue | 要为键设置的值 |
返回值
| 0 | 无法设置该值,Key 参数不能为 "Producer"、"Creator"、"Subject"、"Title"、"Keywords" 或 "Author",这些键请使用 SetInformation 函数 |
|---|---|
| 1 | 键的值已成功设置 |