I need to create a GUID in an unmanaged windows C++ project. I\'m used to C#, where I\'d use Guid.NewGuid(). What\'s the (unmanaged windows) C++ vers
GUID
Guid.NewGuid()
UuidCreate() in Win32 API has exactly the same effect. However you need to pass an address of the variable that will receive the generated value:
UUID newId; UuidCreate( &newId );
I believe Guid.NewGuid() simply maps onto it inside the .NET runtime.