i am still confuse ( i am newbies in win32asm :->) what is the different about the definition of structure like this: TV_INSERTSTRUCT STRUCT DWORD hParent DWORD ? hInsertAfter DWORD ? ITEMTYPE <> TV_INSERTSTRUCT ENDS TV_INSERTSTRUCT STRUCT hParent DWORD ? hInsertAfter DWORD ? ITEMTYPE <> TV_INSERTSTRUCT ENDS i mean what is the meaning of dword (TV_INSERTSTRUCT STRUCT DWORD) compare with TV_INSERTSTRUCT STRUCT without DWORD ?
Alignment. The DWORD on the STRUCT statement line means align the struct on a DWORD boundary, IE, the address is evenly divisibly by 4. Same structure, just placed a bit special. Properly aligning data speeds transfers, as the Intel processor 'grew' to it's current configuration from an 8 bit data 16 bit address style.