home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_02_07
/
2n07017a
< prev
next >
Wrap
Text File
|
1991-06-04
|
595b
|
37 lines
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include "timer.h"
int TIMER::OutOfTimers() { return TRUE; }
#include "common.c"
void TIMER::InitTimerPackage(HANDLE Instance)
{
TD.CallBack = MakeProcInstance(
(FARPROC)&TimerCallBack, Instance);
}
TIMER::TIMER(int EventId)
{
InitTimer(this, EventId);
}
TIMER::~TIMER()
{
DeleteTimer(this);
}
int TIMER::Start(ULONG Interval)
{
return SetInterval(this, Interval);
}
void TIMER::Stop()
{
SetInterval(this, 0);
}