-
-#if defined(__WIN32__)
-
-#include <rpc.h>
-
- UUID UUIDData;
- UuidCreate(&UUIDData);
- wchar_t* UUIDStr = 0;
- UuidToString(&UUIDData, (RPC_WSTR*)&UUIDStr);
- wxString Result(UUIDStr);
-
+#if defined(WIN32)
+ UUID uuidData;
+ UuidCreate(&uuidData);
+ wchar_t* uuidStr = 0;
+ UuidToString(&uuidData, (RPC_WSTR*)&uuidStr);
+ wstring uuidWStr(uuidStr);
+ std::string uuidOut(uuidWStr.begin(), uuidWStr.end());