BoxedAppSDK_DetachFromProcess
Description
The function detaches a process from the shared virtual environment. After detachment, the process will no longer have access to the shared virtual file system and virtual registry.
Note: The argument of this function is the process handle, not its process ID.
Detaching is useful when a process no longer needs to participate in the shared virtual environment, or when it must be isolated to prevent further access to virtualized resources.
Syntax
BOOL __stdcall BoxedAppSDK_DetachFromProcess(HANDLE hProcess);function BoxedAppSDK_DetachFromProcess(hProcess: THandle): BOOL; stdcall;Parameters
hProcess
Handle of the process to be detached from the current virtual environment.
The handle must have sufficient access rights to allow thread execution or remote actions.
Remarks
This function is typically used in conjunction with BoxedAppSDK_AttachToProcess to manage the lifecycle of processes participating in a virtual environment.
After detachment, the process behaves as a regular system process, without any access to virtualized resources such as files or registry keys.
See Also
a