AddAssociatedFileFromString
연결된 파일, 첨부 파일, 메모리 입력
설명
Source의 바이너리 바이트를 포함하고 재사용 가능한 문서 수준 관련 파일 하나를 등록합니다
구문
Delphi
Function AddAssociatedFileFromString(Const Source: AnsiString; Const DisplayName, MIMEType, Description, Relationship: WideString): Integer;DLL
int DLAddAssociatedFileFromString(int InstanceID, const char* Source, int SourceLength, const wchar_t* DisplayName, const wchar_t* MIMEType, const wchar_t* Description, const wchar_t* Relationship);
int DLAddAssociatedFileFromStringA(int InstanceID, const char* Source, int SourceLength, const char* DisplayName, const char* MIMEType, const char* Description, const char* Relationship);매개변수
| Source | 임베드할 이진 바이트. 비어 있으면 안 되며, DLL 오버로드는 길이를 명시적으로 받으므로 0 바이트도 보존됩니다 |
|---|---|
| DisplayName | 임베디드 파일에 표시되는 이름. 비어 있으면 안 되고 기존 임베디드 파일 제목과 중복되면 안 됩니다 |
| MIMEType | 파일 사양에 저장되는 MIME 타입. 비어 있으면 안 됩니다 |
| Description | 연결 파일 항목에 저장되는 선택적 설명. 비어 있어도 됩니다 |
| Relationship | Source, Data, Alternative, Supplement, Unspecified 중 하나인 관계 역할 |
반환 값
성공하면 0이 아닌 포함 파일 핸들을 반환하고 실패하면 0을 반환합니다
비고
DLL 길이 매개변수는 0 바이트를 보존하며 0보다 커야 합니다
ActiveX 바이트 배열에는 AddAssociatedFileFromVariant를 사용합니다