windows: Try to unify all the GUID comparison code into a core helper function. There are likely several more I missed.