This message is sent to a window when a MIDI input device is closed. The device handle is no longer valid once this message has been sent.
WORD wParam
Specifies a handle to the MIDI input device that was closed.
LONG lParam
Currently unused.
None
MIM_CLOSE