BigPizzaV3/CodexPlusPlus · error · anyhow::Error
ShellExecuteW returned {code}
Error message
ShellExecuteW returned {code} What it means
Error "ShellExecuteW returned {code}" thrown in BigPizzaV3/CodexPlusPlus.
Source
Thrown at crates/codex-plus-core/src/windows_integration.rs:171
}
#[cfg(windows)]
pub fn open_url(url: &str) -> anyhow::Result<()> {
let operation = wide_null("open");
let file = wide_null(url);
let result = unsafe {
ShellExecuteW(
None,
PCWSTR(operation.as_ptr()),
PCWSTR(file.as_ptr()),
PCWSTR::null(),
PCWSTR::null(),
SW_SHOWMINNOACTIVE,
)
};
let code = result.0 as isize;
if code <= 32 {
anyhow::bail!("ShellExecuteW returned {code}");
}
Ok(())
}
#[cfg(windows)]
pub fn set_current_user_string_value(subkey: &str, name: &str, value: &str) -> anyhow::Result<()> {
with_created_current_user_key(subkey, |key| {
let value = wide_null(value);
let bytes = slice_as_u8(&value);
unsafe {
RegSetValueExW(
key,
PCWSTR(wide_null(name).as_ptr()),
0,
REG_SZ,
Some(bytes),
)
}View on GitHub (pinned to 1f431ae49b)
When it happens
Trigger: Thrown at crates/codex-plus-core/src/windows_integration.rs:171 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BigPizzaV3/CodexPlusPlus@1f431ae49b (2026-08-16).
Data as JSON: /api/errors/2a57c9dbb5dfd769.
Report an issue: GitHub.