Skip to main content

ElevatedInjectionCapability

Electron APIs / utility / ElevatedInjectionCapability

Reports whether an elevated (HIGH integrity) game can actually be injected under the account the app is running as.

Example​

const capability = await api.canInjectElevated();
if (!capability.supported) {
console.warn("Cannot inject elevated games:", capability.reason);
}

Properties​

PropertyModifierTypeDescription
accountCanElevatereadonlybooleantrue when the account can obtain a HIGH integrity token (administrator). When the check itself cannot run this is reported as true, so an undetermined account is attempted rather than blocked.
brokerInstalledreadonlybooleantrue when the LocalSystem broker service is registered. It makes elevated injection possible regardless of accountCanElevate.
helperInstalledreadonlybooleantrue when the uiAccess helper binaries are installed.
reason?readonlyElevatedInjectionUnsupportedReasonSet when supported is false.
supportedreadonlybooleantrue only when an elevated game can actually be injected right now.