BoxedAppSDK_DeleteFileFromVirtualFileSystem
Description
The function deletes the file from the virtual file system. If the file is real, it is marked as deleted. If the file is virtual, the function completely removes it from the virtual environment. It is important to note the difference between this case and the situation when the virtual file is deleted by the regular winapi function DeleteFile. When deleting the file this way, the virtual file is only marked as deleted but is not actually removed. It is done this way, so that when the virtual file is created all over, its behavior would be determined by the function that the file was originally created with. Suppose, the virtual file was created based on IStream. It is removed with the DeleteFile, which is followed by calling the CreateFile with the name of that virtual file. In this case, the behavior of the newly created file will also be determined by the implementation of IStream. On the other hand, if the virtual file is deleted using BoxedAppSDK_DeleteFileFromVirtualFileSystem, the new file can be created as a real one. Thus, BoxedAppSDK_DeleteFileFromVirtualFileSystem, deletes information on the behavior of the virtual file.
Syntax
C++
BOOL __stdcall BoxedAppSDK_DeleteFileFromVirtualFileSystem(LPCTSTR szPath);
Delphi
function BoxedAppSDK_DeleteFileFromVirtualFileSystem(szPath: PAnsiChar): Boolean; stdcall;
function BoxedAppSDK_DeleteFileFromVirtualFileSystemA(szPath: PAnsiChar): Boolean; stdcall;
function BoxedAppSDK_DeleteFileFromVirtualFileSystemW(szPath: PWideChar): Boolean; stdcall;
Parameters
szPath
The name, relative or full path of the file to be deleted from virtual file system.