terminal/src/cascadia/WindowsTerminal
Mike Griese c79334ffbb
Add a file for storing elevated-only state (#11222)
## Summary of the Pull Request

This creates an `elevated-state.json` that lives in `%LOCALAPPDATA%` next to `state.json`, that's only writable when elevated. It doesn't _use_ this file for anything, it just puts the framework down for use later.

It's _just like `ApplicationState`_. We'll use it the same way. 

It's readable when unelevated, which is nice, but not writable. If you're dumb and try to write to the file when unelevated, it'll just silently do nothing.

If we try opening the file and find out the permissions are different, we'll _blow the file away entirely_. This is to prevent someone from renaming the original file (which they can do unelevated), then slapping a new file that's writable by them down in it's place. 

## References
* We're going to use this in #11096, but these PRs need to be broken up.

## PR Checklist
* [x] Closes nothing
* [x] I work here
* [x] Tests added/passed
* [ ] Requires documentation to be updated - maybe? not sure we have docs on `state.json` at all yet

## Validation Steps Performed
I've played with this much more in `dev/migrie/f/non-terminal-content-elevation-warning`

###### followed by #11308, #11310
2021-11-13 01:58:43 +01:00
..
AppHost.cpp Add a file for storing elevated-only state (#11222) 2021-11-13 01:58:43 +01:00
AppHost.h Add settings entry into titlebar context menu (#11404) 2021-11-04 16:47:58 +00:00
BaseWindow.h Persist window layout cont. save multiple windows (#11083) 2021-09-27 21:18:39 +00:00
CustomWindowMessages.h Replace TrayIcon with NotificationIcon (#11219) 2021-09-14 16:12:40 +00:00
icon.cpp Add Minimize to Tray and Tray Icon (#10368) 2021-08-12 19:54:39 +00:00
icon.h Add Minimize to Tray and Tray Icon (#10368) 2021-08-12 19:54:39 +00:00
IslandWindow.cpp fix build error at 74d21af (#11691) 2021-11-05 19:26:03 +00:00
IslandWindow.h Fix missing window border when use "win+arrow down" in fullscreen mode in Terminal (#11653) 2021-11-04 23:46:57 +00:00
main.cpp Replace TrayIcon with NotificationIcon (#11219) 2021-09-14 16:12:40 +00:00
NonClientIslandWindow.cpp Don't crash if we fail to BeginBufferedPaint (#11674) 2021-11-05 19:26:59 +00:00
NonClientIslandWindow.h Add an openSystemMenu keybinding (#11086) 2021-09-10 18:25:43 +00:00
NotificationIcon.cpp Replace TrayIcon with NotificationIcon (#11219) 2021-09-14 16:12:40 +00:00
NotificationIcon.h Replace TrayIcon with NotificationIcon (#11219) 2021-09-14 16:12:40 +00:00
packages.config Update to MUX 2.7 (#11240) 2021-09-20 22:08:55 +00:00
pch.cpp Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
pch.h Enable Vintage Opacity (#11180) 2021-09-20 17:08:13 +00:00
resource.h Update WT's icon at runtime to match high-contrast as applicable (#7971) 2020-10-28 00:39:38 +00:00
VirtualDesktopUtils.cpp Add desktop param to globalSummon; set _quake = toCurrent (#9954) 2021-04-28 17:25:48 -05:00
VirtualDesktopUtils.h Add desktop param to globalSummon; set _quake = toCurrent (#9954) 2021-04-28 17:25:48 -05:00
WindowsTerminal.def Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
WindowsTerminal.manifest Restore embedded manifests to say 18362 (#10370) 2021-06-09 16:23:26 +00:00
WindowsTerminal.rc Update WT's icon at runtime to match high-contrast as applicable (#7971) 2020-10-28 00:39:38 +00:00
WindowsTerminal.vcxproj Update to MUX 2.7 (#11240) 2021-09-20 22:08:55 +00:00