Virtual Process
If the executable file is virtual, creating a process based on that file (such process is called a virtual process) requires a different approach. To create a virtual process, BoxedApp SDK selects a suitable exe file, which it can use for creating a new process. That exe file is called stub exe. Stub exe is run by CreateProcess with the CREATE_SUSPENDED flag. The actual stub exe file will not be run. BoxedApp expands the code of the virtual exe file in the context of the created process and passes the control to it. A virtual process is always attached to a virtual environment, since it's created from a virtual file. For the stub executable, BoxedApp uses the most suitable exe file from the Windows system folder.