Re:Writing a Simple Windows Driver in Rust
by keyringlight on Saturday February 08, 2025 @03:43PM
(#42986012)
The only way I can see it getting solved is the OS sandboxing everything behind the scenes, redirecting everything the application spews in random locations to The One True Profile Folder per application. Even then it wouldn't be without challenges, off the top of my head some method if you actually wanted an application to get out of its sandbox and look at the real documents folder, another method for App1 to look at files in App2's sandbox (and detecting when this is desired), or what to do if an application is able to change how it identifies itself to the OS (new versions?).
Re:Writing a Simple Windows Driver in Rust
by pjmlp on Sunday February 09, 2025 @03:55AM
(#42989423)
Hence UWP, with its rampdown, the newly introduced Win32 app sandbox model for .msix distribution.
Re:Writing a Simple Windows Driver in Rust
by pjmlp on Saturday February 08, 2025 @03:15PM
(#42985829)
Like GNOME?
There are rules when to use what, but usually folks rather code away instead of reading documentation.
Re:Writing a Simple Windows Driver in Rust
by the8472 on Saturday February 08, 2025 @04:41PM
(#42986434)
maybe if microsoft had a registryfs...
Re:Writing a Simple Windows Driver in Rust
by p_ing on Saturday February 08, 2025 @04:59PM
(#42986548)
You can browse/manipulate the registry with PowerShell. There's an OOTB provider for it.
cd HKCU:
https://learn.microsoft.com/powershell/scripting/samples/wor...
Re:Writing a Simple Windows Driver in Rust
by the8472 on Saturday February 08, 2025 @08:10PM
(#42987605)
[delayed]
Re:Writing a Simple Windows Driver in Rust
by int_19h on Saturday February 08, 2025 @10:47PM
(#42988284)
The registry hasn't been the recommended place for Win32 app settings for well over two decades now. The guidance is to only use it for system stuff that's already these, and have config files in the standard designated locations under %AppData% (depending on whether they are machine-specific or user-specific; ideally, apps are supposed to support both).
Apps are terrible at this on Windows. Sometimes it's in %USERPROFILE%, sometimes in one of the three %appdata% folders, then My Docs, other times in %ProgramData%, and even worse, %PUBLIC%.
There's a registry for a reason, but even Microsoft doesn't use it for x-platform apps.