terrafx.interop.windows icon indicating copy to clipboard operation
terrafx.interop.windows copied to clipboard

NativeInheritance attributes with missing/incorrect base types

Open rickbrew opened this issue 2 years ago • 0 comments

Found these while experimenting with a generator for the PUnknown wrappers I was talking about on Discord.

The assumption is that [NativeInheritance("FOO")] means that a TerraFx.Interop.FOO entity exists, retrievable via assembly.GetType("TerraFX.Interop.FOO"). For these, that's not true:

Missing base type IDispatchEx for IIE70DispatchEx
Missing base type IDispatchEx for IIE80DispatchEx
Missing base type tagBIND_OPTS for BIND_OPTS2
Missing base type tagBIND_OPTS2 for BIND_OPTS3
Missing base type tagMONITORINFO for MONITORINFOEXA
Missing base type tagMONITORINFO for MONITORINFOEXW
Missing base type tagMOUSEHOOKSTRUCT for MOUSEHOOKSTRUCTEX

This doesn't block me, I can just skip them for now. Could be a useful unit test though.

rickbrew avatar Oct 18 '21 20:10 rickbrew