I've been struggling with struc all the evening, but cannot make it work
I'd like to define a struc for GUID as follows:
struc GUID {
.TimeLow dd ?
.TimeMid dw ?
.TimeHighAndVersion dw ?
.ClockSeqHighAndReserved db ?
.ClockSeqLow db ?
.Node db 6 dup (?)
}
the problem is that the structure is not initializable.
For example, I want to init the structure with values
MyGUID GUID 0x12345678, 0x1234, 0x5678, 0xaa, 0xbb, <0x11, 0x11, 0x11, 0x11, 0x11, 0x11>
or I'd like to define several constants in a .inc file so I could use them like
MyGUID GUID CONSTANT_VAL
The only solution I came up with is to use
struc GUID [val] {
align 8
common
. db val
}
and initialize GUID byte by byte. But this is not the way I'd like it to be.
Thanks in advance for any suggestions.