Nice.

There's also another undocumented way that can get system process paths without any special privileges, not even basic elevation, and without any special steps for 64bit processes from 32bit builds: Through NtQuerySystemInformation with the undocumented info class SystemProcessIdInformation.

[VB6, twinBASIC] Getting the full path of all processes when not elevated

Of course 64bit compatible as well

Really should at least provision for updates in the future by using LongPtr where appropriate, it's very little extra effort so if you ever do want to make a 64bit build you don't need to redo all that.

There's also some APIs I've found where it's straight impossible to use from 32bit WOW64.