I just wanted to add this info: Check INPUT_RECORD.sizeof if it is declared before and after its related sub-structs. In the first case the size of INPUT_RECORD will be 4, otherwise the size is 20.