Use a local define for WAVEFORMAT_EX based on the size of the struct + 2 bytes for the extension size.