RunWinMain

Function RunWinMain 

Source
#[unsafe(no_mangle)]
pub unsafe extern "system" fn RunWinMain( _h_instance: HINSTANCE, _lp_cmd_line: *mut u16, _n_cmd_show: i32, sandbox_info: *mut c_void, _version_info: *mut c_void, ) -> i32
Expand description

Windows DLL wrapper sandbox entry point (Phase 3, issue #1374).

bootstrap.exe (renamed agentmux-cef.exe) calls this after:

  1. cef_sandbox_info_create()sandbox_info
  2. LoadLibraryW("agentmux-cef.dll") → this DLL
  3. GetProcAddress(hDll, "RunWinMain") → this function

We forward sandbox_info into run() so CEF’s CefExecuteProcess and CefInitialize receive the pre-initialized sandbox context.