Correct Windows Registry Syntax
Last Revised: 2025-04-18
I made this guide to help anyone interested in editing the Windows Registry.
Signed;
𝓞. 𝓞𝔃𝓽𝓮𝓴𝓲𝓷
| # useage: | |
| # scoop-import <exported_list_file> | |
| param( | |
| $exported | |
| ) | |
| $apps = ( | |
| Get-Content -Path $exported | Select-String '(?<app>.*)\s\(v:(?<version>.*)\)\s\[(?<bucket>.*)\]' -AllMatches | | |
| Foreach-Object {$_.Matches} | | |
| Foreach-Object {($_.Groups["bucket"].Value)+"/"+($_.Groups["app"].Value)} |
| Add-Type -Namespace Win32 -Name NativeMethods -MemberDefinition @" | |
| [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)] | |
| public static extern IntPtr SendMessageTimeout(IntPtr hWnd, uint Msg, UIntPtr wParam, string lParam, uint fuFlags, uint uTimeout, out UIntPtr lpdwResult); | |
| "@ | |
| function Send-SettingChange { | |
| $HWND_BROADCAST = [IntPtr] 0xffff; | |
| $WM_SETTINGCHANGE = 0x1a; | |
| $result = [UIntPtr]::Zero |
| package main | |
| import ( | |
| "image" | |
| _ "image/gif" | |
| _ "image/jpeg" | |
| _ "image/png" | |
| "io" | |
| "mime" |