This is an unfinished and dirt code to get information from the Windows registry like in 'Add remove programs' from control panel.
If you want to get 64 bit programs compile it on x64, else you will get 32 bit (this is the main bug of this)..
Attached source