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키 값이 성공적으로 설정되었습니다