This thread may be off topic or outside the scope of this forum.
I'm writing a larger application that (will) set a particular partition active.
It needs to generate the contents of a partition table for a disk and then
set one of them active based on certain criteria. The application is...