DeleteVirtualFileA

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

Removes a name from the virtual file registry

Syntax

Delphi

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

DLL

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

Parameters

FileNameVirtual file name to remove

Return values

1 when the name was registered and is now removed, 0 when it was not found

Remarks

Streams already handed out keep working: every open holds its own byte copy

See also

DeleteAllVirtualFiles, RegisterVirtualFile, VirtualFileExists