GetVirtualFileSizeA

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 GetVirtualFileSize and string arguments are interpreted using the current SetAnsiMode code page

Returns the byte size of a registered virtual file

Syntax

Delphi

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

DLL

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

Return values

Registered byte count, or -1 when the name is not registered

See also

VirtualFileExists, GetVirtualFileCount, RegisterVirtualFile