A completely free, open-source tool. It’s a bit more technical (it runs from a bootable USB), but it can do almost everything a paid partition manager can do.
: A powerful, open-source tool for Linux and Windows (via bootable USB) that handles most advanced partitioning for free. DiskGenius
The code snippet provided is a basic example and may not actually generate a working license key for MiniTool Partition Wizard. The development of a real tool would require more research, expertise, and testing.