Drivers are definitely out. Some games are really iffy. Especially from the Win 9x era, where they’d do stupid things like look for a 9 in the version string of Windows, or get the amount of RAM as a 32 bit signed int, so refuses to install if you have 4GB RAM or more.
We had a lot of dodgy old DOS programs that were fine under Win98, but XP broke them.