That is a good suggestion. It would require checking for a predefined struct name, remembering the names of each of the pre-defined structure elements, then iterating through the list and defining offsets for the current struct. The include headers would have to change to use it, but it sounds workable...