mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-19 19:25:56 +00:00
Play failed with ERROR_ELEVATION_REQUIRED (740) for clients whose executable requires administrator rights, because Command::spawn shows no permission prompt. Launch normally first and, only on 740, start the game through ShellExecuteExW with the runas verb, keeping the client folder as the working directory and closing the returned process handle. Other errors, including a declined prompt (1223), are returned unchanged. The Manager itself stays unelevated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>