The MOM_CLOSE callback message notifies a client that a user-mode driver has finished processing a MODM_CLOSE message.
A user-mode MIDI output driver sends a MOM_CLOSE message to its client, by means of a callback, when the driver finishes processing a MODM_CLOSE message. The driver sends the message to the client by calling DriverCallback, passing the specified parameters.
The driver sends the MOM_CLOSE message only if the client has previously specified a notification target with a MODM_OPEN message.
Win32 SDK documentation states that clients receive a MM_MOM_CLOSE message if the notification target is a window handle. MOM_CLOSE and MM_MOM_CLOSE are equivalent.
For more information, see Notifying Clients from Audio Drivers and Transferring MIDI Output Data.