VirtualFileExistsA

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

Reports whether a name is currently registered in the virtual file registry

Syntax

Delphi

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

DLL

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

Return values

1 when the name is registered, otherwise 0

Remarks

The library file existence check used by the *FromFile entry points reports registered names, so pre-flight checks agree with the loader

See also

RegisterVirtualFile, GetVirtualFileSize, DeleteVirtualFile