I know jack about Windows 8, but if you still have access to the regular Win32 / 64 APIs, you can use several mechanisms for this. UuidCreate () from rpcrt4 library is one, CoCreateGuid () from oleaut lib is another (which just jumps to the first). The latter has subtleties, at least when deleting your result in a GUID structure directly.
source share