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
| Property | Modifier | Type | Description |
|---|---|---|---|
accountCanElevate | readonly | boolean | true 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. |
brokerInstalled | readonly | boolean | true when the LocalSystem broker service is registered. It makes elevated injection possible regardless of accountCanElevate. |
helperInstalled | readonly | boolean | true when the uiAccess helper binaries are installed. |
reason? | readonly | ElevatedInjectionUnsupportedReason | Set when supported is false. |
supported | readonly | boolean | true only when an elevated game can actually be injected right now. |