I'm looking for a good example of reading and writing to the Windows Registry using VB6.
Yes, I know there are lots of mediocre examples. I spent an hour googling and testing. Some were incredibly complex, others had only some of the functions, and almost none of it had been vetted in any way (voted on).
Since Stack Overflow is intended to the canonical location for answers to programming questions, it seems reasonable to post it here.