This statement defines a C-style union.
typedef [attributes] union [tag] {
memberlist
} unionname;
The union keyword must be preceded with a typedef. The union description must precede other references to the structure in the library. Members of a union can be of any built-in type, or any type defined lexically as a typedef before the union. For a description of how strings and arrays can be entered, see the sections "String Definitions" and "Array Definitions" earlier in this chapter.
[uuid(BFB7334C-822A-1068-8849-00DD011087E8), helpstring("A task"), helpcontext(1019)]
typedef union {
COLOR polycolor;
int cVertices;
boolean filled;
SAFEARRAY (int) subtasks;
} UNIONSHOP;