Hello,
In C++ we can access members of a guid in the following way:
GUID guid = {0};
CoCreateGuid(&guid);
dwRand = guid.Data1 & 0x7FFFFFFF;
The structure of guid in C++ is:
Data 1 - unsigned long
Data 2 - unsigned short
Data 3 - unsigned short
Data 4 - unsigned char
Question: How to translate the third line in the C++ code (dwRand = guid.Data1 & 0x7FFFFFFF;
). In other words - how to access guid members? There's no such thing in C#.
Thanks in advance!