Hi Peter,
I think an alignment to 4 bytes is needed after EventType. (or make it a Dword)
Type INPUT_RECORD
WORD EventType
align 4
union
{
KEY_EVENT_RECORD KeyEvent
MOUSE_EVENT_RECORD MouseEvent
WINDOW_BUFFER_SIZE_RECORD WindowBufferSizeEvent
MENU_EVENT_RECORD MenuEvent
FOCUS_EVENT_RECORD FocusEvent
}
End Type
#recordof input_record
Charles