The rules are completely different if you're running "appstore" apps, which actually have some kind of sandbox.
If it's a regular win32 app, then it has access to all your filesystem (except UAC bits), can read and post keystrokes to other windows, and indeed can just straight up inject code into other processes.