SetCustomInformationA
文件屬性
描述
結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 SetCustomInformation 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀
此函式用來在文件中儲存自訂中繼資料。這些值之後可用 GetCustomInformation 函式從文件讀回。資料儲存在 Document Information Dictionary;私有內容或結構資訊則應改用 SetCatalogInformation 函式存進 Document 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 | 鍵的值設定成功 |