@Felipe: Right, but it won't solve the problem. Apparently, MASM cannot interpret the record correctly (Windows.inc, line 21845): ImportRec RECORD Reserved :11,NameType :3,Type2 :2
It seems not present in the list of known Masm bugs.Windows.inc(21860) : error A2191:cannot include structure in self
We changed szText items by _szText a couple of years ago, because collision with macro.asm. Only thing I can see in windows.inc.
@Héctor: So you have your own modified version of Windows.inc, which explains why your code assembles (at least with my non-modified version of the Masm32 SDK) only with AsmC. MASM and UAsm fail miserably. Btw who is "we"?
It is generally a good idea to post only code that a) uses the same Masm32 SDK that everybody has installed and b) has been built successfully with the three assemblers commonly used here.