Windows 10 generate a UUID for UWP in C++
What API is available for generating a UUID in UWP application using C++?
The function UuidCreate is available only for desktop Apps as in :
https://msdn.microsoft.com/en-us/library/windows/desktop/aa379205(v=vs.85).aspx
Thx in advance.
If GUID is sutable alternative for you, you can try Guid.NewGuid().
EDIT: Actually, Guid structure is not part of WinRT, so you can't access it via C++. But since you're using C++ , why do you look for UWP specific way to generate UUID? I haven't touched C++ for some while, but I belive you can use any of existing C++ implementation of UUID generator, for example Boost UUID library or CoCreateGuid function.
链接地址: http://www.djcxy.com/p/91448.html