blob: f37092291b3e8c4de126795c7a3a5ed0151383cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{Timer related procedures}
procedure TimerProc(wnd:HWND;uMsg:uint;idEvent:uint_ptr;dwTime:dword); stdcall;
begin
case DisablePlugin of
dsEnabled : CallService(MS_WAT_GETMUSICINFO,WAT_INF_CHANGES,0);
dsTemporary: DisablePlugin:=dsWait;
end;
end;
procedure StartTimer;
begin
if mTimer>0 then
hTimer:=SetTimer(0,0,mTimer,@TimerProc)
else
hTimer:=0;
end;
procedure StopTimer;
begin
if hTimer<>0 then
begin
KillTimer(0,hTimer);
hTimer:=0;
end;
end;
|