BoxedAppSDK_RemoteProcess_LoadLibrary

Description

The function loads the specified DLL into the memory space of another process.
It provides a convenient way to inject a module into a remote process identified by its process ID.

This is often used in conjunction with BoxedApp’s virtual environment to extend the functionality of another process dynamically.

Syntax

HMODULE __stdcall BoxedAppSDK_RemoteProcess_LoadLibrary(DWORD dwProcessId, LPCTSTR szPath);
function BoxedAppSDK_RemoteProcess_LoadLibrary(dwProcessId: DWORD; szPath: PAnsiChar): HMODULE; stdcall;
function BoxedAppSDK_RemoteProcess_LoadLibraryA(dwProcessId: DWORD; szPath: PAnsiChar): HMODULE; stdcall;
function BoxedAppSDK_RemoteProcess_LoadLibraryW(dwProcessId: DWORD; szPath: PWideChar): HMODULE; stdcall;

Parameters

dwProcessId
The process ID of the target process where the DLL should be loaded.

szPath
The full or relative path of the DLL to load into the specified process.

Remarks

This function allows dynamically extending or modifying the behavior of remote processes by loading custom DLLs.
If the target process is attached to a BoxedApp virtual environment, the loaded DLL will have access to the same shared virtual file system and virtual registry.

See Also