关于mci播放完一首歌不能获取MM_MCINOTIFY消息
关于Open:
mov stMciOpen.lpstrDeviceType,L("MPEGVideo") mov eax,lpFileName mov stMciOpen.lpstrElementName,eax invoke mciSendCommand,0,MCI_OPEN,MCI_OPEN_ELEMENT or MCI_OPEN_TYPE,addr stMciOpen
push hWinMain pop @stMciPlay.dwCallback invoke mciSendCommand,hDevice,MCI_PLAY,MCI_NOTIFY,addr @stMciPlay
.elseif eax == MM_MCINOTIFY invoke MessageBox,NULL,L("1"),L("------"),MB_OK mov eax,wParam .if wParam == MCI_NOTIFY_FAILURE invoke MessageBox,NULL,L("-2"),L("------"),MB_OK .elseif wParam == MCI_NOTIFY_SUCCESSFUL invoke MessageBox,NULL,L("-3"),L("------"),MB_OK .endif
invoke DialogBoxParam,hInstance,DLG_MAIN,NULL,offset _ProcDlgMain,NULL invoke ExitProcess,NULL
push hWinMain pop @stSeekParam.dwCallback mov eax,_dwCurrentTime mov @stSeekParam.dwTo,eax invoke mciSendCommand,hDevice,MCI_SEEK,MCI_TO or MCI_WAIT,addr @stSeekParam push _dwCurrentTime pop @stMciPlay.dwFrom invoke mciSendCommand,hDevice,MCI_PLAY,MCI_FROM,addr @stMciPlay