I wanted to learn how to start writing the task scheduler.
Which Win 32 API's will be reqd and how can i implement them??
Printable View
I wanted to learn how to start writing the task scheduler.
Which Win 32 API's will be reqd and how can i implement them??
On Jun 1, 5:50 am, Akshay Ranjan <akshay.ranja...@gmail.com> wrote:[color=blue]
> I wanted to learn how to start writing the task scheduler.
> Which Win 32 API's will be reqd and how can i implement them??[/color]
Hi,
One option available for scheduled tasks is to use the Win32 APIs
that would allow your application to start & sleep (waitable timer),
until it is time to perform some jobs, case in point:
CreateWaitableTimer()
SetWaitableTimer()
WaitForSingleObjectEx()
CancelWaitableTimer()
OR,
NetScheduleJobAdd()
Also, if you have the WMI (Windows Management Instrumentation),
you can use the following class to Schedule tasks as well:
Win32_ScheduledJob
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createwaitabletimer.asp[/url]
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/setwaitabletimer.asp[/url]
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/waitforsingleobjectex.asp[/url]
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/cancelwaitabletimer.asp[/url]
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netschedulejobadd.asp[/url]
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_scheduledjob.asp[/url]
Kellie.