BoxedAppSDK_RegisterCOMLibraryInVirtualRegistry
Description
This function registers a COM or ActiveX library in the virtual registry, making its COM objects available to all processes attached to the same virtual environment.
It allows applications to use COM objects without registering them in the real Windows registry, which is especially useful for portable or sandboxed applications that cannot modify system-wide settings.
Syntax
DWORD __stdcall BoxedAppSDK_RegisterCOMLibraryInVirtualRegistry(LPCTSTR szPath);function BoxedAppSDK_RegisterCOMLibraryInVirtualRegistry(szVirtualFilePath: PAnsiChar): Longint; stdcall;
function BoxedAppSDK_RegisterCOMLibraryInVirtualRegistryA(szVirtualFilePath: PAnsiChar): Longint; stdcall;
function BoxedAppSDK_RegisterCOMLibraryInVirtualRegistryW(szVirtualFilePath: PWideChar): Longint; stdcall;Parameters
szPath
Specifies the path to the COM/ActiveX DLL file to be registered inside the virtual registry.
The path can refer to a real or virtual file created using Virtual File System functions.
Remarks
After registration, all COM objects defined in the library become available to any process that shares the same virtual environment. This mechanism emulates the effect of regsvr32 without requiring administrative privileges or modifying the actual Windows registry.