The following example illustrates how an application can set up notification for every audio attribute change.
MCI_GENERIC_PARMS mixevent; mixevent.hwndCallback = hwndMixer; if (hMixer) { mciSendCommand(hMixer, MCI_MIXNOTIFY, /* MCI mixer message */ MCI_WAIT | MCI_MIXNOTIFY_ON, /* Flags for this message */ (PVOID)&mixevent, /* Data structure */ 0); /* No user parm */