I have some OS X code that uses the volume's UUID for some calculations. I'm rewriting these calculations for Windows. I have the requirement that for a given drive, the calculations produce the exact same results on both operating systems; there's no possibility of changing the calculation to use a better piece of data, such as the disk's serial number.
Unfortunately, I can't find much information on this UUID. The closest piece of data I can find on Windows is the mounted volume name, which takes the form of a GUID; coincidentally, the volume's UUID on OS X is also a GUID.
Is the mounted volume name on Windows the same as the UUID on OS X? Does the volume even know about it's own UUID, or is this relation something held by the OS?