lifetime of the MIDI/MIXER/WAVEOPENDESC structure?

Maarten Lankhorst m.b.lankhorst at
Wed Mar 16 13:55:46 CDT 2011


Op 16-03-11 16:03, Joerg-Cyril.Hoehle at schreef:
> Hi,
> MSDN is silent about the lifetime of the MIDI/MIXER/WAVEOPENDESC structure
> that is deliverred via the W/MODM_OPEN/MXM_OPEN message to the winmm drivers
> (WAVEOOPENDESC is not even documented for MS-Windows (not CE) anymore).
> IMHO, it would make a lot of sense if the structure remained allocated
> for the whole lifetime of the open/close cycle, so the driver need not make a copy of it.
> Is there anybody who knows more about this topic?
I wouldn't count on it, the structure is allocated on the stack, see for 
example winmm.c: WAVE_Open


More information about the wine-devel mailing list