The function attaches the process to the shared virtual environment. Please note that the argument of the function is the handle of the process, and not its id.
BOOL __stdcall BoxedAppSDK_AttachToProcess(HANDLE hProcess);
function BoxedAppSDK_AttachToProcess(hProcess: THandle): BOOL; stdcall;
The handle of the process to attach.