README.md

StarChange Pro v2.7.1

High-Performance Pure Native C++ Windows File Association & Defense Suite — Zero .NET Runtime Required (Windows XP to 11).

StarChange is an ultra-fast, zero-dependency Win32 application (one ~130 KB .exe, pure C++, zero .NET Framework required) that lets you change, batch manage, diagnose, and protect file associations across Windows XP, Vista, 7, 8, 8.1, 10, and 11.


What’s New in v2.7.1

  • 32-bit build for Windows XP and later alongside the 64-bit build. StarChange-2.7.1-x86.exe (and -x86-cli.exe) is built for Windows XP: PE subsystem 5.1, classic msvcrt.dll only, and no functions newer than XP. The installer installs the 32-bit or 64-bit build to match Windows.
  • Removed use of the secure-CRT functions (_snwprintf_s, strncpy_s) that XP’s msvcrt.dll does not export, which would have stopped the program from starting on XP.
  • New build_mingw.ps1 builds both architectures, verifies the 32-bit build is XP-safe, and packages dist\ (portable exes, StarChange-2.7.1-portable.zip, installer, SHA256SUMS.txt).
  • Release files are now named by architecture: StarChange-2.7.1-x86.exe, StarChange-2.7.1-x64.exe, the matching -cli.exe files, StarChange-2.7.1-portable.zip and StarChange-2.7.1-setup.exe.
  • The 32-bit build was checked by inspecting its headers and imports and by running it on Windows 11; it has not been run on a real Windows XP machine.

What’s New in v2.7.0

  • New Defaults tab (second tab): a Windows Settings-style list of everyday categories (web browser, email, photos, video, music, PDF/documents, text/code, archives) with the app that currently opens each. Pick a category, type an app name such as brave.exe (or click Browse), and click Change Default App to switch every file type in the group at once. No file picker is needed.
  • New command-line commands: --list-defaults shows the same categories and current apps; --set-category <cat> <app> changes one (browser, email, photos, video, music, docs, text, archives).
  • Clear errors when a default cannot be set: every set-default action now says whether it worked, partly worked or failed, and points to Protection when Windows blocks the change. The Quick Association dialog no longer reports success when the change failed.
  • Bug fixes: a nonexistent .exe is no longer accepted as a handler; the current-app lookup could return the previous file type’s app; Microsoft Store apps are shown as “Microsoft Store app” instead of a resource file name.
  • Friendlier wording throughout: Start Here, the guided tour, hints and result messages.
  • Release files are now named with the version: StarChange-2.7.0.exe, StarChange-2.7.0-cli.exe, StarChange-2.7.0-setup.exe, and StarChange-2.7.0.zip.
  • This release was built with MinGW-w64 (64-bit). The 32-bit MSVC build that targets Windows XP is still produced by build_native.bat.

What’s New in v2.6.6

  • Default Apps Protocol Replacement: StarChange can now replace the Windows Settings default apps handler (ms-settings:defaultapps, defaultapps:, and default-apps:). When activated (via Protection tab, the installer, or --replace-default-apps-protocol), clicking “Default apps” in Windows or third-party links opens StarChange directly on the Apps tab. Any requested app in query parameters (such as registeredAppUser=<AppName>) is automatically highlighted and selected. Non-defaultapps ms-settings: links continue to pass smoothly to Windows Settings. The installer now offers this as an optional task during setup.
  • Fixed Default Apps UI & Association bugs:
    • Fixed an issue where the file type list in the Apps tab did not refresh after applying defaults.
    • Fixed protocol link defaults showing “Pick an app” or failing to query due to missing trailing colons (e.g. http: vs http), with automatic UserChoice fallback.
    • Enhanced ProgID resolution (ResolveExeFromProgId) to support HKCU-registered ProgIDs, alternate verbs (edit, StdFileEditing\server), CurVer redirects, and AppX package paths, ensuring built-in apps like Paint (PBrush) and modern AppX handlers catalog properly.
    • Fixed protocol association validation rejecting protocols with colons (http:).
    • Fixed app deduplication and candidate lookup when executables are referenced by short vs long paths or executable name (notepad.exe).
  • Group box titles and checkbox labels are readable again; they were drawn dark on the dark background.
  • The command-line reference now lists only commands that exist (16 documented commands were left over from the old .NET version).
  • Documented a Windows limitation: some Windows builds ignore any saved default for http/https links. See Web links still open in the old browser.

What’s New in v2.6.4

  • Sharper text on scaled displays: on Windows 10 (1703) and 11 at 125% or 150% scaling, the interface is now drawn at the screen’s real resolution instead of being stretched, so text is no longer blurry.
  • Upgrading with the installer now removes the executables of earlier versions instead of leaving them in the install folder.
  • Downloads now live on the Releases page, each with SHA-256 checksums (see Verify your download).

What’s New in v2.6.3

  • Guided tour for beginners: the first launch walks you through every tab and outlines the controls it describes. Replay it from Start Here > Take the Tour or with --tour.
  • The main window now opens centred in the visible screen area, so its bottom buttons are no longer hidden behind the taskbar on smaller or scaled screens.

What’s New in v2.6.2

  • Browser switcher fixed: the 1-Click Universal Browser Switcher now uses the handlers a browser registers with Windows (for example Floorp’s FirefoxURL-… / FirefoxHTML-…). Before, it wrote the exe path or the browser’s registered name as the handler, which broke http/https links. You can name the browser by exe path, registered name, display name or exe name.
  • The switcher no longer overrides the system launch command for http/https/ftp, and only changes ftp and .url when the browser registers them.
  • Assigning a protocol to a plain .exe now creates a proper per-user URL handler (StarChange.URL.<app>).
  • Handler names that Windows cannot launch are rejected instead of being written.
  • --set now sets protocols too: starchange-cli.exe --set http: <progid>.

What’s New in v2.6.1

  • Larger native interface with app browsing and bulk defaults for registered file types and links.
  • Standalone command line executable for listing apps, previewing associations, and setting defaults.

What’s New in v2.6.0 Pro

  • 100% Pure C++ Native Architecture (Dropped .NET Entirely): StarChange is now completely native C++. It has zero dependency on the .NET Framework, mscorlib.dll, or MSVC runtime DLLs. Runs out-of-the-box on a fresh install of Windows XP SP3 through Windows 11 24H2.
  • Zero GUI Lag (Virtual ListView Engine): Completely eliminated all UI lag when browsing hundreds of extensions. The new Virtual ListView (LVS_OWNERDATA) loads and filters 1,000+ file types in 0.1 milliseconds with smooth 60fps scrolling.
  • Colorful Fluent Dark Theme: Custom modern dark theme (Zinc #121214 canvas, #1C1C1F cards, Flame Orange #F97316 accents, custom-styled rounded buttons, and color-coded status badges).
  • True Windows XP Subsystem 5.01 Compatibility: Dual-engine architecture automatically switches between Windows XP Direct Registry Mode and Modern Windows UserChoice MD5+32-bit Hash Mode.

Features

Tab What it does
⚡ Batch Studio 1-Click Batch Association Studio with 7 curated category presets (Web, Images, Video, Audio, Docs, Code, Archives), arbitrary custom extension batch editor, instant App-to-App association migration, and the 1-Click Universal Default Browser & PDF Suite Switcher (sets Web protocols http/https and types .html, .htm, .xhtml, .mhtml, .svg, .pdf in one click; .url and ftp only when the browser registers them). Give it the browser’s exe or its registered name — a registered browser gets the handlers it declares to Windows.
📁 File Types Master searchable table of every extension on Windows powered by the lag-free Virtual ListView engine. Features instant search-as-you-type, color-coded status badges (User Choice, System Default, Locked, XP Default), and quick change, reset, or unlock buttons.
🚀 Apps Search for an app or browse to its executable. Preview the file types and links it registers, then set the checked associations or all associations.
🌐 Protocols URL Protocol Handlers Studio. Audit and configure handlers for 70+ URL protocols (http:, https:, mailto:, webcal:, magnet:, tg:, discord:, zoommtg:, steam:, etc.).
🩺 Doctor Association Doctor & Registry Cleaner. Scans UserChoice and OpenWithList registry branches for broken executables, missing/blank ProgIds, corrupt SFTA hashes, DENY permissions, and uninstalled ghost apps. 1-click auto-repair.
🛡️ Protection Integrated Defense Center. Windows 10/11 Registry DENY Lock removal, Windows 11 kernel UCPD driver management with 1-click unlock and restore, Explorer Context Menu integration, Startup Guard watchdog, and Replace Default Apps Protocol (intercepts ms-settings:defaultapps and defaultapps: to manage defaults via StarChange).
📋 Audit Log Real-time plain-language event log of every registry write, hash calculation, unlock, and restore operation. 1-click clipboard copy.

Other things worth knowing:

  • Icons everywhere. Program icons come from the executables themselves; file-type icons come from the shell, so .pdf looks like a PDF and .png like an image. Button glyphs are drawn by make_glyphs.py.
  • Register any program. Browse for a program… registers any .exe under HKCU\Software\Classes\Applications and shows the file types Windows knows it can open.
  • No Administrator rights for association changes — they are all per-user (HKCU). Elevation is only needed for UCPD.
  • Infotips everywhere. Hover any button or list for a one-line explanation.
  • Nothing is changed until you click a button, and every change applies to your user account only.

Install

Option A — installer

Download StarChange-2.7.1-setup.exe from the Releases page and run it. The setup first asks whether to install for all users (needs administrator rights) or only for you (no UAC prompt). You get an optional desktop shortcut and an entry in Apps & features for clean removal. Running a newer setup upgrades an existing install in place.

Option B — portable

Download StarChange-2.7.1-x64.exe (64-bit Windows) or StarChange-2.7.1-x86.exe (32-bit Windows, including Windows XP) from the same page, put it anywhere and run it. StarChange-2.7.1-portable.zip contains both. There is nothing to install and nothing to configure — the executable is statically linked and has no runtime dependencies.

Verify your download

The executables are not code-signed, so Windows SmartScreen may warn that they come from an unknown publisher. To make sure you have the genuine file, compute its SHA-256 checksum and compare it with the one listed in that release’s notes and in its SHA256SUMS.txt:

certutil -hashfile StarChange-2.7.1-setup.exe SHA256

Start here

StarChange opens to a beginner tutorial. Select Start Here or press F1 to return to it.

Guided tour

The first time you open StarChange, a short guided tour walks you through the app. It switches to each tab in turn and outlines the button or list it is describing: Apps, File Types, the browser switcher, Protocols, Doctor, Protection and the Audit Log. The tour only shows you around and changes nothing.

  • Next / Back move between steps; the arrow keys do the same. Esc or Skip tour closes it.
  • To see it again, open Start Here and click Take the Tour, or run starchange.exe --tour.
  • Finishing or skipping the tour sets TourCompleted under HKCU\Software\StarChange, so it shows once per Windows account.

Change what opens a file

  1. Open File Types and search for an extension such as .txt or .pdf.
  2. Select the matching row, click Change Default App, and choose the app’s .exe file.
  3. Open a sample file to see which app Windows uses. To remove your custom choice, select the same row and click Reset to Windows Default.

Set defaults by app

  1. Open Apps and search for an app, or click Browse and choose its .exe.
  2. Select the app to see its registered file types and link protocols, along with the current default for each.
  3. Click Set All Associations to apply all listed defaults for your Windows account. To change a subset, check the rows and click Set Checked as Default.

If the executable has no registered associations, StarChange offers to take you to Batch Studio, where you can enter the extensions yourself.


When a change does not stick

Windows validates the association you write. If something is wrong it silently reverts your choice, so StarChange writes the same Hash value Windows expects. If a change still fails, one of the blocks below is responsible — the System Blocks tab lists all of them and clears them in one click.

Open the tab (or run starchange-cli.exe --status) and you get a single verdict: what is blocking, and how much of it.

Windows blocks
  Registry lock : 29 of 440 file types  (.3g2, .3gp, .3gpp, .aac, .adt, ...)
  UCPD          : Active - blocks association changes
                  Service: Running (System)    Driver: present    Task: Enabled
  Policy        : Not set
  Assessment    : Blocked: 29 file types are write-protected, UCPD is active.
  Restore state : none

Two buttons do the work:

Button What it does
Disable All Blocks Removes the registry DENY entries on every file type, stops and disables UCPD (service + driver + scheduled task) and deletes any NoFileAssociate policy. Records the original settings first.
Restore Windows Defaults Puts the UCPD driver, its service start type, its scheduled task and the previous policy values back exactly as they were.

The same two actions are in the Options menu, so they are reachable from any tab.

This account, or every account?

The Apply to every user account on this PC checkbox widens both buttons from your own account to all of them:

Unchecked (default) Checked
Registry DENY entries your HKCU\...\FileExts every profile’s FileExts
NoFileAssociate your user policy + machine policy every user policy + machine policy
UCPD machine-wide either way machine-wide either way

With the box ticked, StarChange walks HKEY_USERS and mounts the NTUSER.DAT of profiles that are not logged on (needs Administrator rights and SeRestorePrivilege), does its work, then unloads every hive it mounted before returning. Accounts it cannot reach are listed with the reason instead of being silently skipped.

Restore works the same way: it replays the exact accounts recorded by the disable step, remounting their hives if needed.

The three blocks

1. A DENY permission on the registry key (Windows 10, still present on 11). When Windows writes a UserChoice key it also adds a DENY entry to that key’s permissions, so ordinary programs cannot change it afterwards. On some systems the lock is broad enough to block the normal “delete and recreate” route too.

Only DENY entries that apply to you (or to the broad groups that contain you — Everyone, Users, Authenticated Users, INTERACTIVE) are removed. Entries aimed at other accounts are left alone. No elevation is needed.

You can also clear a single extension with Remove Lock on the All File Types tab, Remove registry lock in the right-click menu, or starchange.exe --unlock <ext>.

On a normal Windows 10 install it is common for dozens of extensions to carry this entry — .txt, .pdf, .jpg, .mp3 and so on. That is the mechanism working as designed, not damage.

This one is deliberately not put back by Restore: Windows re-creates the DENY entry itself the next time it writes a UserChoice value, so there is nothing to restore.

2. UCPD (Windows 11 22H2 and later). The User Choice Protection Driver — a kernel driver, a service and a scheduled task — blocks programs from writing UserChoice. StarChange detects Windows 11 (build 22000+) on startup and offers to deal with it.

  • Disable All Blocks stops the service, sets its start type to Disabled, renames ucpd.sys to ucpd.sys.bak and disables the scheduled task. Fully reversible.
  • Remove UCPD Driver is the aggressive option: it also deletes the service key and the scheduled task. StarChange snapshots the service key and exports the task definition (XML) before deleting them, so Restore Windows Defaults can rebuild both.
  • Restore Windows Defaults renames the driver back, rebuilds the service key from the snapshot if needed, restores the recorded start type, starts the service and re-creates or re-enables the task.

All of these need Administrator rights; StarChange offers to relaunch itself elevated just for that operation, so you do not lose your place.

These actions change system services and drivers. A Windows update may re-install UCPD.

3. The NoFileAssociate policy. If any of these holds NoFileAssociate = 1, Explorer refuses to change associations no matter what:

HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
HKCU\Software\Policies\Microsoft\Windows\Explorer
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer

Disable All Blocks deletes the value (remembering what it was); Restore puts it back. The two HKLM locations need Administrator rights.

What StarChange remembers

Before changing anything, StarChange records the original state under HKCU\Software\StarChange\Blocks:

  • the UCPD service start type and whether its scheduled task was enabled
  • a copy of the UCPD service key and the task’s XML definition
  • the previous NoFileAssociate value for the machine policy locations, and — one subkey per account, Blocks\U\<sid> — for each user policy location

The record is deleted once a restore completes, so Restore Windows Defaults is greyed out when there is nothing to undo.

Web links still open in the old browser

On some Windows builds (seen on a Windows 11 Dev-channel build), http and https links are always handed to Windows’ Open with component, whatever default is saved. The browser switcher still sets your browser correctly, and .html, .pdf and the other file types open in it, but links clicked in other apps either show the How do you want to open this? picker every time or, if that component is broken, do nothing.

You can tell this case apart: the File Types and Protocols tabs show your browser for http/https, yet clicking a link still asks or fails. No association tool can change that behaviour — setting the default from Windows Settings (Apps > Default apps) is the only route Windows offers, and if the picker keeps appearing even then, the cause is the Windows installation itself.


What StarChange writes to the registry

Everything is per-user. Nothing outside HKEY_CURRENT_USER is touched, except by the UCPD actions (which need Administrator rights and are reversible).

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\<ext>\UserChoice
    Progid = <the handler>
    Hash   = <8-byte SFTA hash, stored as base64>

HKCU\Software\Classes\Applications\<exe>\
    FriendlyAppName            = <display name>
    DefaultIcon                = <exe>,0
    shell\open\command         = "<exe>" "%1"

HKCU\Software\StarChange\            (StarChange's own settings)
    Blocks\                          what "Disable All Blocks" changed, for Restore
    Window / LastTab                 remembered window position and tab

HKCU\Software\StarChange\Blocks holds the UCPD start type, a copy of the UCPD service key, the previous NoFileAssociate values and (when Remove UCPD Driver was used) the scheduled task’s XML under %LOCALAPPDATA%\StarChange. It is deleted as soon as a restore completes.

Undo

  • Reset (or Reset association in the right-click menu) deletes the UserChoice key, so Windows falls back to the system default.
  • To undo a bulk change, use the All File Types tab and reset the extensions you changed.
  • Uninstalling StarChange does not revert associations you set — they are your settings, not the program’s.

Command line

Open a terminal in the portable folder and run starchange-cli.exe --help for the full command list.

starchange-cli.exe --list-apps
starchange-cli.exe --app-associations "<app name from the list>"
starchange-cli.exe --set-app-defaults "<app name from the list>"

The last two commands also accept a quoted path to an existing .exe. Use --app-associations to preview the registered file types and link protocols. --set-app-defaults applies them for the current Windows account and prints a result for each association. Exit code 0 indicates success, 1 indicates a failed operation, and 2 indicates invalid usage. Redirected output uses UTF-8.


Building from source

Requirements:

  • Visual Studio 2022 Build Tools (or a full VS 2022 install) with the C++ workload — MSVC v143
  • Windows SDK 10.0.26100 (or any recent 10.0.x)
  • Python 3 with Pillow, only if you want to regenerate the icons
build.bat

build.bat locates the installed C++ Build Tools and compiles the Win32 sources in native. It produces the GUI and console executables in dist. Both link the C++ runtime statically and use built-in Windows libraries.

Without Visual Studio: build_mingw.ps1 builds 32-bit (Windows XP and later) and 64-bit executables with w64devkit (default path C:\tools\w64devkit), then packages dist\ as described above. The 32-bit target uses -D_WIN32_WINNT=0x0501 and subsystem 5.1, and the script fails if the 32-bit exe would import UCRT or secure-CRT functions that XP lacks.

powershell -File build_mingw.ps1

Regenerating the artwork

cd src
python make_icon.py     :: app.ico  (16-256 px)
python make_glyphs.py   :: ic_*.ico (button glyphs)

Building the installer

Requires Inno Setup 7. Build the native executables first, then:

build-installer.bat

Output lands in dist\StarChange-2.7.1-setup.exe. build_mingw.ps1 runs the installer step for you when Inno Setup is installed, and the installer expects the executables under dist\x86 and dist\x64.


Command Line Interface (CLI)

starchange-cli.exe --help prints the full list (the same commands also work with starchange.exe):

StarChange Pro v2.7.1 (Pure Native C++ / Windows XP to 11 / Zero .NET)
--------------------------------------------------------------------
Usage:
  starchange-cli.exe --list-apps                    List apps with registered associations
  starchange-cli.exe --app-associations <app>       List file types and links for an exact app name or .exe path
  starchange-cli.exe --set-app-defaults <app>       Set all listed associations for this Windows account
  starchange-cli.exe --batch <target_app> <ext>...  Batch associate extensions
  starchange-cli.exe --batch-preset <cat> <app>     Batch preset (web/images/video/audio/docs/code/archives)
  starchange-cli.exe --set-default-browser <app>    1-Click Universal Browser Switcher
  starchange-cli.exe --transfer <src_app> <dst_app> Transfer associations from one app to another
  starchange-cli.exe --doctor-scan                  Scan registry for broken associations
  starchange-cli.exe --doctor-fix                   Auto-repair broken associations
  starchange-cli.exe --set <ext|proto:> <progid>    Set single file type or protocol
  starchange-cli.exe --unlock <ext>                 Remove registry DENY lock
  starchange-cli.exe --status                       Display OS & UCPD status
  starchange-cli.exe --blocks-disable               Clear all DENY locks and UCPD
  starchange-cli.exe --blocks-restore               Restore Windows defaults
  starchange-cli.exe --context-menu-add             Add to Windows Explorer context menu
  starchange-cli.exe --context-menu-remove          Remove from Windows Explorer context menu
  starchange-cli.exe --shield-install               Enable startup watchdog guard
  starchange-cli.exe --shield-uninstall             Disable startup watchdog guard
  starchange-cli.exe --replace-default-apps-protocol Replace Windows Settings default apps handler
  starchange-cli.exe --restore-default-apps-protocol Restore Windows Settings default apps handler
  starchange-cli.exe --export-profile <file>        Export machine profile (.starchange JSON)
  starchange-cli.exe --import-profile <file>        Import machine profile (.starchange JSON)

The GUI executable (starchange.exe) also accepts:

  starchange.exe --tour                       Open the app and replay the beginner tour
  starchange.exe --tab <n>                    Open the app on tab number n
  starchange.exe --quick-assoc <filepath>     Show the quick association dialog for a file
  starchange.exe <file>.starchange            Import a profile (asks first)
  starchange.exe ms-settings:defaultapps      Launch directly into the Apps tab
  starchange.exe defaultapps:<app>            Launch directly into the Apps tab and select app

Project layout

native/
  StarChangeNative.cpp  Pure Win32 C++ application (GUI + CLI, Subsystem 5.01)
  AssocEngine.h/cpp     Registry association engine (XP Direct + Modern SFTA Hash)
  SftaHash.h/cpp        C++ implementation of SFTA MD5 + 32-bit hash routine
  resource.h/rc         Icons & Common Controls v6 manifest (XP Luna + Win11)
  native.manifest       Application compatibility manifest
src/
  AssociationDoctor.cs  Registry scanner & auto-repair engine for dead apps & corrupt hashes
  BatchEngine.cs        1-click batch engine, category presets & migration
  CoreInterop.cs        C++ native engine interop & backward compatibility
  EdgeDefaulterShield.cs Background watchdog & auto-reverter for Edge hijacks
  IconStudio.cs         Per-extension shell icon & friendly description customizer
  MainForm.cs           Fluent dark UI, 8 Studio tabs, double-buffered rendering
  Models.cs             Data models, category presets, protection structures
  OpenWithManager.cs    Explorer "Open With" MRUList & OpenWithProgids manager
  ProfilePackage.cs     Machine setup packager & .starchange format engine
  Program.cs            CLI parser, routing, headless operations & tray mode
  ProtocolManager.cs    URL Protocol Handlers Studio & registry writer
  QuickAssocDialog.cs   Explorer shell context menu quick-assignment dialog
  RegistryManager.cs    Registry queries, DENY unlock & Win11 UCPD management
  ShellContextMenu.cs   Explorer context menu registration ("Make default...")
  UserChoiceHash.cs     Pure C# SFTA MD5+mixing hash generator (zero external dependencies)
  app.ico               Application icon (multi-resolution 16-256 px)
  build.bat             One-click .NET / Win32 static compiler
build_native.bat        Build script for StarChangeNative.exe (x86, XP Subsystem 5.01)
installer/
  starchange.iss        Inno Setup 7 packaging script (.starchange file registration)

The repository also contains the original VB.NET v1.0 sources (MainForm.vb, Misc.vb, WikiLinkLabel.vb). They are kept for reference; the shipping product is the C++ project in src/. sfta_oracle.ps1 is the verified PowerShell reference for the hash (the older sfta_ref.ps1/test_sfta.ps1 used an incorrect SHA-256 scheme and have been removed).


How the hash works

When a program writes UserChoice, Windows checks a Hash value so that only “legitimate” writers can change the default. If the hash is wrong Windows silently ignores the key and falls back to the system default — which is why a change can appear to succeed but never take effect.

The value Windows expects is not a plain SHA-256. It is an 8-byte result produced by a custom mixing routine seeded with MD5, stored as base64 (12 characters ending in =, e.g. G+xAtJck9+U=). The SFTA / SetUserFTA community research reverse-engineered it; StarChange re-implements it in UserChoiceHash.cpp.

The hashed input (baseInfo) is the concatenation, with no separators, of

<extension><user SID><ProgID><hex FILETIME><user experience>

then lower-cased in full. hex FILETIME is the current local time rounded down to the minute, written as 16 hex digits. user experience is the phrase Windows embeds in SysWOW64\shell32.dll:

User Choice set via Windows User Experience {D18B6DD5-6124-4341-9318-804003BAFA0B}

StarChange reads that phrase (including the GUID) out of shell32.dll at run time, so it follows the running build instead of hard-coding a GUID that a Windows update could rotate. The baseInfo is converted to UTF-16LE, one NUL is appended, MD5 seeds two passes of 32-bit mixing, the passes are XOR-folded, and the 8 bytes are base64-encoded.

Newer Windows 11 builds accept this hash for file types and most protocols, but may ignore it for http and https; see Web links still open in the old browser.


License

MIT — see LICENSE. Change it if you prefer something else.

Inspired by stax76’s File Association Changer and the SFTA Get-Hash technique documented by the community.

Описание
Релизы
последний
Конвейеры
0 успешных
0 с ошибкой
Разработчики