unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, MMSystem;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
begin
PlaySound(pChar('SYSTEMASTERISK'), 0, SND_SYNC);
// ¼¼¹øÂ° ÆÄ¶ó¹ÌÅÍ·Î SND_ASYNC ¸¦ ÁöÁ¤Çϸé thread ·Î ¿¬ÁֵǹǷÎ
// background ¿¬ÁÖ°¡ µË´Ï´Ù
//
// soundÀÇ ´Ù¸¥ Á¾·ù
// PlaySound(pChar('SYSTEMSTART'), 0, SND_SYNC);
// PlaySound(pChar('SYSTEMHAND'), 0, SND_SYNC);
// PlaySound(pChar('SYSTEMEXIT'), 0, SND_SYNC);
// PlaySound(pChar('SYSTEMQUESTION'), 0, SND_SYNC);
// PlaySound(pChar('SYSTEMEXCLAMATION'), 0, SND_SYNC);
// PlaySound(pChar('SYSTEMEWLCOME'), 0, SND_SYNC);
// PlaySound(pChar('SYSTEMDEFAULT'), 0, SND_SYNC);
end;
end. |
|