On 26/07/2018 22:32, Vincent Povirk wrote:
BTW, WICPixelFormatNumericRepresentation is DWORD-sized (and if not we have a binary compatibility problem), so it should be OK to cast the pointer.
According to WikiPedia, "C exposes the integer representation of enumeration values ...". As in enum type is somewhat obscure. https://en.wikipedia.org/wiki/Enumerated_type#C
To be on the extra-safe/explicit side, I would use an intermediate DWORD.