Hello all.
Can any one tell me why the structure of GUID in libntfs and windows are
different.
The libntfs struct for GUID is
typedef union {
struct {
le32 data1; /* The first eight hexadecimal digits of the GUID. */
le16 data2; /* The first group of four hexadecimal digits. */
le16 data3; /* The second group of four hexadecimal digits. */
u8 data4[8]; /* The first two bytes are the third group of four
hexadecimal digits. The remaining six bytes are the final 12 hexadecimal
digits. */
} __attribute__((__packed__));
u8 raw[16]; /* Raw binary for ease of access. */
} __attribute__((__packed__)) GUID;
WHERE AS in windows
its only the structure not a union
typedef struct _GUID {
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[ 8 ];
} GUID;
Why is we use the union in libntfs, and why it is only a struct
Whereas the struct is exactly same.
--
Regards:
Adnan Shaheen.
+92-321-518-0278
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel