From: Adrien Plisson <aplisson-news@stochastique.net>
Subject: Re: WinNT task reference...
Date: Thu, 09 Jun 2005 15:51:34 +0200
Date: 2005-06-09T15:51:34+02:00 [thread overview]
Message-ID: <42a8499d$0$331$ba620e4c@news.skynet.be> (raw)
In-Reply-To: <1118323347.353446.8600@g47g2000cwa.googlegroups.com>
e.coli wrote:
> i need some example/reference for tasking in WinNT
> with Win32, Win32.Winnt, Win32.Winbase
>
> like create a new task
> control it (start/stop)
> kill it.
why not use the tasking features built into Ada to achieve this ? i
assume you have good reasons to use WinNT tasking features, but we
don't know them.
the first thing is: what do you mean by task ? is it a thread or a
process ? (typically, Ada tasks maps to threads).
if you are talking about threads, you can have a look at the following
functions:
CreateThread
WaitForSingleObject/WaitForMultipleObjects
TerminateThread
SuspendThread
ResumeThread
CloseHandle
the documentation for all those functions are located in the MSDN
(http://msdn.microsoft.com/). although it is written for C application
developpers, you will have a better understanding of the purpose of
each function, applicable to your Ada program.
--
rien
next prev parent reply other threads:[~2005-06-09 13:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-09 13:22 WinNT task reference e.coli
2005-06-09 13:51 ` Adrien Plisson [this message]
2005-06-10 2:21 ` Steve
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox