Francois Gouget wrote:
On Thu, 19 Oct 2006, Robert Shearman wrote:
[...]
Actually, in the PSDK there seems to be a correlation between
COM_NO_WINDOWS_H and idl files. It's not 100% but that may be just be
because they don't ship all the idl files. Also, the COM_NO_WINDOWS_H #ifdef
is not present in the idl file, suggesting that it is being added by midl.
Yes, this is correct.

Hmm, there must still be something more: for instance amvideo.h and wtypes.h are midl generated and yet they don't have this COM_NO_WINDOWS_H stuff.

Still, the 2003SP2 SDK has 231 header files generated from an Idl file, and only 44 of those are missing the COM_NO_WINDOWS_H section so it's a good first approximation. Could it depend on the imported idl files?

Is there any pattern to those that are missing it?

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.

--
Rob Shearman



Reply via email to