This implementation is better imo. Creds Bobbysing, ISXWoW, or wherever the **** this came from.
Code:#pragma warning(push) #pragma warning(disable: 4201) struct WGUID { union { __int64 ullGuid; struct { unsigned long A; unsigned long B; }; }; WGUID() { } WGUID(unsigned long dwLow, unsigned long dwHigh) { A = dwLow; B = dwHigh; } WGUID(__int64 iGuid) { ullGuid = iGuid; } }; #pragma warning(pop)