Hey, thanks for applying this. I forgot to mention that 36603 is solved by this patch too. MinGW does know about RIM_INPUTSINK but it needs WINVER defined as 0x0501 in order to define it in winuser.h