terminal/src/types/inc
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
..
CodepointWidthDetector.hpp Replace std::map with std::unordered_map (#6640) 2020-06-23 20:49:07 +00:00
colorTable.hpp Standardize the color table order (#11602) 2021-11-04 22:13:22 +00:00
convert.hpp Move CharToKeyEvents (and friends) into InteractivityBase (#9106) 2021-02-10 17:10:56 -08:00
Environment.hpp Always create a new environment block before we spawn a process (#7243) 2020-08-11 23:58:45 +00:00
GlyphWidth.hpp C26447,C26440 - is noexcept but can throw or doesn't throw but not noexcept 2019-08-29 15:23:07 -07:00
IInputEvent.hpp Fix SA for Visual Studio 16.8 (#8551) 2020-12-11 05:04:30 +00:00
sgrStack.hpp Add support for XTPUSHSGR / XTPOPSGR (#1978) 2021-02-17 18:31:52 -08:00
ThemeUtils.h Use standard 1px window borders on NC Island Window (#3394) 2019-11-04 15:45:40 -08:00
User32Utils.hpp Add support for commandline args to wt.exe (#4023) 2020-01-27 15:34:12 +00:00
Utf16Parser.hpp C26447,C26440 - is noexcept but can throw or doesn't throw but not noexcept 2019-08-29 15:23:07 -07:00
utils.hpp Add a file for storing elevated-only state (#11222) 2021-11-13 01:58:43 +01:00
viewport.hpp Correct horizontal coordinates in viewport overflow test (#8456) 2020-12-03 21:53:16 +00:00