You need to access the websites from where you acquired the games. They should either provide another set of codes, or additional instructions on how to register them in Windows 10. However, you can try running them in Compatibility mode. Right click one of the games, then go to Properties > Compatibility and choose a Windows version that you know it worked. Make sure also run the game as Administrator and then try to register.