The user mode API comes in one or two forms depending on the platform:
- Windows: As dynamic libraries with import libraries, named cbfsvault20.dll and cbfsvault20.lib, respectively (available for x64 and x86 processor architectures)
- Linux: As dynamic libraries, named libcbfsvault.so.20.0 (available for x64 and x86 processor architectures)
- macOS: As dynamic libraries, named libcbfsvault20.0.dylib (available for x64 and ARM64 processor architectures)
- Windows: As static libraries, which don't require a dynamic library, named cbfsvault20s.lib.
Use the DLL with the import library if incompatibilities occur between the compilation and linkage options set in your project and the options with which the library was compiled.
When linking the static library, no extra user mode API files need to be deployed with the application. When using the DLL, deploy the .dll file to the target system and place it next to the application's .exe file.
Note: When linking the static library, the Windows library version.lib must be included in the linker options.
Windows Only: Remember to deploy the drivers too, as they are an integral part of CBFS Vault.