On Thu, 19 Oct 2006, Robert Shearman wrote: [...]
Is there any pattern to those that are missing it?
I have not found it yet.
I would only expect to see the COM_NO_WINDOWS_H stuff in headers generated from IDL files with at least one interface with the object keyword.
Ah, you must know more than me as I had no particular expectations. There are some counter-examples: * Bits.h contains the COM_NO_WINDOWS section, but there is no object keyword in Bits.Idl. * Dimm.h contains no COM_NO_WINDOWS section, but there are object keywords in Dimm.Idl (but in a library section, maybe that makes a difference).
Counter example to the "object keywords inside a 'library' don't count" hypothesis: SspsIdl.Idl.
Maybe this has to do with what a given Idl file #imports? (which would make testing harder :-( )
Or maybe the headers that lack the COM_NO_WINDOWS section have been manually edited by MS after being generated by midl?