terrafx.interop.windows
terrafx.interop.windows copied to clipboard
List of things for "the analyzer" to point out
We can keep track of things that can't really be solved in source, but can be flagged by an analyzer.
- Incorrectly using
Unsafe.SizeOf<T>()
orMarshal.SizeOf(typeof(T))
on structs likeSHELLEXECUTEINFOW
. It can produce the wrong size on certain platforms, andT.SizeOf
should be used instead.