AddAssociatedFileFromString
Bijbehorende bestanden, bijlagen, geheugeninvoer
Beschrijving
Embedt de binaire bytes in Source en registreert één herbruikbaar geassocieerd bestand op documentniveau
Syntaxis
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);Parameters
| Source | Binaire bytes om in te sluiten; mogen niet leeg zijn, en de DLL-overload neemt een expliciete lengte zodat nulbytes behouden blijven |
|---|---|
| DisplayName | Naam die voor het ingesloten bestand wordt getoond; mag niet leeg zijn en mag geen bestaande titel van een ingesloten bestand dupliceren |
| MIMEType | MIME-type opgeslagen in de bestandsspecificatie; mag niet leeg zijn |
| Description | Optionele beschrijving opgeslagen in de associated-file-vermelding; mag leeg zijn |
| Relationship | Relatierol, een van Source, Data, Alternative, Supplement of Unspecified |
Retourwaarden
Geeft bij succes een niet-nul handle naar het ingesloten bestand terug, of 0 bij een mislukking
Opmerkingen
De DLL-lengteparameter behoudt nulbytes en moet groter dan nul zijnGebruik
AddAssociatedFileFromVariant for ActiveX byte arrays