• Introduction
  • BoxedApp SDK
  • BoxedApp Packer
  • BoxedApp Packer API
Show / Hide Table of Contents
  • Introduction
  • Which Product to Choose
  • System Requirements
  • Basics
    • Virtual Environment
      • Virtual Environment
      • Attached Processes
      • How Attachment Works
      • Virtual Process
      • Shared Memory
    • Virtual File System
    • Virtual Registry
  • BoxedApp SDK
    • Introduction
    • Virtual Files
      • Creating Virtual Files
    • API
      • Functions
        • BoxedAppSDK_Init
        • BoxedAppSDK_EnableDebugLog
        • BoxedAppSDK_SetLogFile
        • BoxedAppSDK_WriteLog
        • BoxedAppSDK_EnableOption
        • BoxedAppSDK_IsOptionEnabled
        • BoxedAppSDK_RemoteProcess_EnableOption
        • BoxedAppSDK_RemoteProcess_IsOptionEnabled
        • BoxedAppSDK_CreateVirtualFile
        • BoxedAppSDK_CreateVirtualFileBasedOnIStream
        • BoxedAppSDK_CreateVirtualFileBasedOnBuffer
        • BoxedAppSDK_CreateVirtualDirectory
        • BoxedAppSDK_DeleteFileFromVirtualFileSystem
        • BoxedAppSDK_CreateVirtualRegKey
        • BoxedAppSDK_EnumVirtualRegKeys
        • BoxedAppSDK_RegisterCOMLibraryInVirtualRegistry
        • BoxedAppSDK_RegisterCOMServerInVirtualRegistry
        • BoxedAppSDK_AttachToProcess
        • BoxedAppSDK_DetachFromProcess
        • BoxedAppSDK_HookFunction
        • BoxedAppSDK_GetOriginalFunction
        • BoxedAppSDK_EnableHook
        • BoxedAppSDK_UnhookFunction
        • BoxedAppSDK_RemoteProcess_LoadLibrary
        • BoxedAppSDK_SharedMem_Alloc
        • BoxedAppSDK_SharedMem_Free
        • BoxedAppSDK_SharedMem_Lock
        • BoxedAppSDK_SharedMem_Unlock
        • BoxedAppSDK_SharedMem_CreateStreamOnSharedMem
      • Options
    • Use Cases
      • Using COM / ActiveX Object without Registering It in the Registry
      • Loading DLL from Memory
      • Starting Application Directly from Memory
      • Intercepting Functions
    • License
  • BoxedApp Packer
    • Introduction
    • Plugins
    • Virtual Files
    • Virtual Registry
    • Command Line Overriding
    • License
  • BoxedApp Packer API
    • Introduction
    • API
      • Functions
        • BxPackerApi_CreateProject
      • Interfaces
        • IBxProject
          • Methods
            • put_InputPath
            • get_InputPath
            • put_OutputPath
            • get_OutputPath
            • put_ShareVirtualEnvironmentWithChildProcesses
            • get_ShareVirtualEnvironmentWithChildProcesses
            • put_EnableDebugLog
            • get_EnableDebugLog
            • put_EnableVirtualRegistry
            • get_EnableVirtualRegistry
            • put_HideVirtualFileFromFileDialog
            • get_HideVirtualFileFromFileDialog
            • put_AllChangesAreVirtual
            • get_AllChangesAreVirtual
            • put_SetIcon
            • get_SetIcon
            • put_IconPath
            • get_IconPath
            • put_EnableSplashScreen
            • get_EnableSplashScreen
            • put_SplashScreenPath
            • get_SplashScreenPath
    • License

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.

See Also

  • Virtual File System
Back to top BoxedApp SDK | BoxedApp Packer | BoxedApp Packer API | Download | Buy | Contact us | Copyright © Softanics | Generated by DocFX