Re: [Mingw-w64-public] GUID definition in guiddef.h

2017-04-28 Thread Liu Hao
On 2017/4/28 21:38, Vincent Torri wrote:
> ok, the MSDC doc i mentioned is incorrect...
>
> thank you
My pleasure. Nevertheless it isn't being incorrect at all. It is just 
the doc about the human readable format and is irrelevant to the binary 
representation.

-- 
Best regards,
LH_Mouse


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] GUID definition in guiddef.h

2017-04-28 Thread Vincent Torri
On Fri, Apr 28, 2017 at 3:27 PM, Liu Hao  wrote:
> On 2017/4/28 19:38, Vincent Torri wrote:
>> Hello
>>
>> in guiddef.h, a GUID is a struct organized as : 4 bytes, 2 bytes 2
>> bytes and 8 times 1 byte
>>
>> but according to
>> https://msdn.microsoft.com/en-us/library/dd354925.aspx at the bottom :
>>
>> "The correct format of the GUID string is
>> {CDEF7890-ABCD-1234-ABCD-1234567890AB} where 0-9, A-F symbolizes
>> hexadecimal digits. "
>>
>> that is, the GUID structure should be organized as : 4 bytes, 2 bytes
>> 2 bytes 2 bytes and 6 times 1 byte
>>
>> is it normal that the GUID structure does not follow the MSDN doc ?
> It is because Microsoft's own version is defined like that and we
> shouldn't create the incompatibility.
>
> Reference:
> https://msdn.microsoft.com/en-us/library/windows/desktop/aa373931(v=vs.85).aspx

ok, the MSDC doc i mentioned is incorrect...

thank you

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] GUID definition in guiddef.h

2017-04-28 Thread Liu Hao
On 2017/4/28 19:38, Vincent Torri wrote:
> Hello
>
> in guiddef.h, a GUID is a struct organized as : 4 bytes, 2 bytes 2
> bytes and 8 times 1 byte
>
> but according to
> https://msdn.microsoft.com/en-us/library/dd354925.aspx at the bottom :
>
> "The correct format of the GUID string is
> {CDEF7890-ABCD-1234-ABCD-1234567890AB} where 0-9, A-F symbolizes
> hexadecimal digits. "
>
> that is, the GUID structure should be organized as : 4 bytes, 2 bytes
> 2 bytes 2 bytes and 6 times 1 byte
>
> is it normal that the GUID structure does not follow the MSDN doc ?
It is because Microsoft's own version is defined like that and we 
shouldn't create the incompatibility.

Reference: 
https://msdn.microsoft.com/en-us/library/windows/desktop/aa373931(v=vs.85).aspx

-- 
Best regards,
LH_Mouse


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] GUID definition in guiddef.h

2017-04-28 Thread Vincent Torri
Hello

in guiddef.h, a GUID is a struct organized as : 4 bytes, 2 bytes 2
bytes and 8 times 1 byte

but according to
https://msdn.microsoft.com/en-us/library/dd354925.aspx at the bottom :

"The correct format of the GUID string is
{CDEF7890-ABCD-1234-ABCD-1234567890AB} where 0-9, A-F symbolizes
hexadecimal digits. "

that is, the GUID structure should be organized as : 4 bytes, 2 bytes
2 bytes 2 bytes and 6 times 1 byte

is it normal that the GUID structure does not follow the MSDN doc ?

Vincent

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public