Sandboxie/Sandboxie
love-code-yeyixiao bf1eb51a6f rollback 2024-03-24 14:22:38 +08:00
..
SboxHostDll 1.13.0 2024-02-10 17:52:00 +01:00
apps 1.13.4 2024-03-23 12:14:25 +01:00
common 1.13.4 2024-03-16 14:09:32 +01:00
core rollback 2024-03-24 14:22:38 +08:00
install 1.13.2 2024-03-03 22:10:30 +01:00
msgs Updated Turkish translations 2024-03-04 22:48:42 +03:00
COPYING git add --renormalize . 2021-10-17 21:05:50 +02:00
ReadMe.md Add build instructions 2024-01-10 21:21:44 +01:00
Sandbox.sln 1.5.0 2022-10-12 21:13:44 +02:00
Sandbox32.props git add --renormalize . 2021-10-16 17:19:51 +02:00
Sandbox64.props git add --renormalize . 2021-10-16 17:19:51 +02:00
Sandbox64a.props 1.5.0 2022-10-12 21:13:44 +02:00
Sandbox64ec.props 1.5.0 2022-10-12 21:13:44 +02:00
SandboxDll.sln Create SandboxDll.sln 2023-07-12 09:26:40 +02:00
SandboxDrv.sln 1.5.0 2022-10-12 21:13:44 +02:00

ReadMe.md

Sandboxie Classic build instructions

  • Please note: there is another ReadMe.md file in the install folder that explains how to create the Sandboxie Classic installers.
  • Please note: the following instructions may lag behind the CI workflow, so be aware of any version change.

Sandboxie Classic builds under Visual Studio 2019, as it offers the widest compatibility range, allowing us to build a driver which works with Windows 7 up to Windows 11.

  1. Download Visual Studio 2019
  2. In the Visual Studio Installer, tick Desktop development with C++
    • This includes the Windows 10 SDK 10.0.19041
  3. The MFC for latest v142 build tools {architecture} is also needed. Select it from the side panel or from the individual components tab
  4. If you need to build for other platforms, install the corresponding components
    • MSVC v142 - VS 2019 C++ {architecture} build tools (Latest)
    • MFC for latest v142 build tools {architecture}
  5. Install the Windows Driver Kit (WDK) for Windows 10, version 2004 (10.0.19041): https://go.microsoft.com/fwlink/?linkid=2128854
  6. The VS Solution File, Sandbox.sln, is in the source code root. Open this SLN in Visual Studio.
  7. If the WDK Extension doesn't install automatically, install it (can be found in \10\Vsix\VS2019)
  8. If you have a more recent Windows SDK version installed, retarget the solution to 10.0.19041
    • This is for example necessary if VS 2022 is also installed with the default desktop C++ components
  9. To compile for x64, it's necessary to first compile Solution/core/LowLevel for Win32 (x86)

Source projects (in alphabetical order)

Note: the core of Sandboxie are the driver, SbieDrv, the service, SbieSvc, and the injection DLL, SbieDll. Study these projects first.

Common (\apps\common). It builds common.lib, which contains some common GUI objects, and it is used by the Control and Start projects.

KmdUtil (\install\kmdutil). It builds KmdUtil.exe, which is used during the installation process, e.g. to start/stop the Sbie driver (SbieDrv.sys).

LowLevel (\core\low). It creates LowLevel.dll, which is used in code injection. LowLevel.dll is embedded into SbieSvc.exe as a resource (see core\svc\lowlevel.rc for more information).

Parse (\msgs). It creates the Sbie messages files.

SandboxBITS (apps\com\BITS). It creates SandboxieBITS.exe (Background Intelligent Transfer Service).

SandboxCrypto (apps\com\Crypto). It creates SandboxieCrypto.exe.

SandboxieInstall (\install\release). It creates the combined x64/x86 installer SandboxieInstall.exe by combining the x64 & x86 installer binaries into a RC file.

Note: SandboxieInstall is not built during the normal SLN build. It must be built manually after the x64 & x86 installers are completed.

SandboxRpcSs (\apps\com\RpcSs). It creates SandboxieRpcSs.exe, the Sbie's wrapper for the Remote Procedure Call Sub-System.

SandboxWUAU (\apps\com\WUAU). It creates SandboxieWUAU.exe, the Sbie's wrapper for the Windows Automatic Update Service (WUAUSERV).

SbieControl (\apps\control). It builds SbieCtrl.exe, the Sandboxie Control app that displays real-time sandboxed application activity.

SbieIni (\apps\ini). It creates SbieIni.exe, a utility for querying and updating the sandboxie.ini configuration file.

SboxDcomLaunch (\apps\com\DcomLaunch). It creates SandboxieDcomLaunch.exe.

SboxDll (\core\dll). It creates the Sbie injection DLL, which injects into every process running in the sandbox.

SboxDrv (\core\drv). It creates the Sbie kernel-mode driver.

SboxHostDll (\SboxHostDll). It builds the Sbie host injection DLL, which is injected into host processes that must be redirected into the sandbox. Currently, the only app this is used for is MS Office. SboxHostDll.dll is injected into OfficeClickToRun.exe.

SboxMsg (\msgs). It creates SboxMsg.dll, which contains the Sbie user messages in various languages.

SboxSvc (\core\svc). It creates the Sbie service.

Start (\apps\start). It creates start.exe, which is used to start processes in the sandbox.