GetVirtualFileToStringA

Document loading, Virtual files

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetVirtualFileToString and string arguments are interpreted using the current SetAnsiMode code page

Returns the byte content of a registered in-memory virtual file as an AnsiString

Syntax

Delphi

Function DLGetVirtualFileToStringA(InstanceID: Integer; FileName: PAnsiChar): PAnsiChar;

DLL

const char* DLGetVirtualFileToStringA(int InstanceID, const char* FileName);

Parameters

FileNameVirtual file name; matched case-insensitively

Return values

Registered file bytes, or an empty string when the name is not registered

See also

GetVirtualFileToBytes, GetVirtualFileToStream, RegisterVirtualFile, SetVirtualFileWriteMode