diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-10-08 18:43:29 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-10-08 18:43:29 +0000 |
commit | 864081102a5f252415f41950b3039a896b4ae9c5 (patch) | |
tree | c6b764651e9dd1f8f53b98eab05f16ba4a492a79 /plugins/Watrack/i_timer.inc | |
parent | db5149b48346c417e18add5702a9dfe7f6e28dd0 (diff) |
Awkwars's plugins - welcome to our trunk
git-svn-id: http://svn.miranda-ng.org/main/trunk@1822 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack/i_timer.inc')
-rw-r--r-- | plugins/Watrack/i_timer.inc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/Watrack/i_timer.inc b/plugins/Watrack/i_timer.inc new file mode 100644 index 0000000000..f37092291b --- /dev/null +++ b/plugins/Watrack/i_timer.inc @@ -0,0 +1,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;
|