Does all hardware that works with Windows XP work with Windows Vista?

No. Due to the length of time between the releases of Windows XP and Windows Vista, as well as Windows Vista ditching support for some legacy technologies, there are many devices that will not function in Windows Vista but work in Windows XP.