Gehe zu deutscher Webseite

ViaThinkSoft CodeLib

This article is in:
CodeLibProgramming aidsDelphi

procedure StopMusic;
begin
  SendMessage(HWND_BROADCAST, WM_APPCOMMAND, 0, MAKELONG(0, APPCOMMAND_MEDIA_STOP));
end;

This also works in applications which swallow the VK_MEDIA_STOP key (like OwnCloud).
Daniel Marschall
ViaThinkSoft Co-Founder