参考mediaplayer的源码
procedure TMediaPlayer.Resume;
var
GenParm: TMCI_Generic_Parms;
begin
CheckIfOpen;
{raises exception if device is not open}
FFlags := 0;
if FUseNotify then
begin
if FNotify then
FFlags := mci_Notify;
end
else
FFlags := mci_Notify;
if FUseWait then
begin
if FWait then
FFlags := FFlags or mci_Wait;
end;
GenParm.dwCallback := Handle;
FError := mciSendCommand( FDeviceID, mci_Resume, FFlags, Longint(@GenParm));
{if error calling resume (resume not supported), call Play}
if FError <> 0 then
Play {FUseNotify &
FUseWait reset by Play}
else
begin
if FUseNotify then
FUseNotify := False;
if FUseWait then
FUseWait := False;
end;
end;