#define OxFF 255 * pack a word function pw (v) return chr(bitand(m.v, OxFF)) + chr(bitand(bitrshift(m.v, 8), OxFF)) * pack a long function pl (v) return pw(m.v) + pw(bitrshift(m.v, 16))then you could build a 'structure' containing two 32-bit integers like this:
local cStruc
cStruct = pl(m.tnField1) + pl(m.tnField2)
= ApiFunc(@m.cStruc)
(Note: I wrote the functions when I had my 'brief identifiers' period some five years ago and because they work and because bit-twiddling heavy code actually benefits from having the short identifiers for trivia like pack/unpack I have have not changed them *g*)