VirtualFileExists

Document loading, Virtual files

Description

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

Syntax

Delphi

Function VirtualFileExists(Const FileName: WideString): Integer;

ActiveX

Function PDFlib::VirtualFileExists(FileName As String) As Long

DLL

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

Parameters

FileNameVirtual file name, matched case-insensitively like a Windows path

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