You'll need to code in Win32 (e.g. use Visual C++) in order to use those functions. You can read more on writing to the registry by searching through Microsoft's MSDN library.
As for PIF files, you'll need to get the binary file format of the PIF file itself and pick up from there, unless MS has some function or object that creates PIF files for you.
🙂atwl