Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The following example shows how the MCI_NOTIFY flag is used with the MCI_PLAY command. The handle to the window procedure that will process the MM_MCINOTIFY message is specified in hwnd.
MCI_DGV_PLAY_PARMS mciPlay;
DWORD dwFlags;
mciPlay.dwCallback = MAKELONG(hwnd, 0);
dwFlags = MCI_NOTIFY;
mciSendCommand(wMCIDeviceID, MCI_PLAY, dwFlags, (DWORD)(LPSTR)&mciPlay);