* WinNT task reference...
@ 2005-06-09 13:22 e.coli
2005-06-09 13:51 ` Adrien Plisson
2005-06-10 2:21 ` Steve
0 siblings, 2 replies; 3+ messages in thread
From: e.coli @ 2005-06-09 13:22 UTC (permalink / raw)
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.
thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: WinNT task reference...
2005-06-09 13:22 WinNT task reference e.coli
@ 2005-06-09 13:51 ` Adrien Plisson
2005-06-10 2:21 ` Steve
1 sibling, 0 replies; 3+ messages in thread
From: Adrien Plisson @ 2005-06-09 13:51 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: WinNT task reference...
2005-06-09 13:22 WinNT task reference e.coli
2005-06-09 13:51 ` Adrien Plisson
@ 2005-06-10 2:21 ` Steve
1 sibling, 0 replies; 3+ messages in thread
From: Steve @ 2005-06-10 2:21 UTC (permalink / raw)
"e.coli" <maurizio.ferracini@gmail.com> wrote in message
news:1118323347.353446.8600@g47g2000cwa.googlegroups.com...
>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.
>
> thanks
>
Are you new to Ada?
If you are, the general answer is: you don't need to use Win32, Win32.Winnt,
or Win32.Winbase. By sticking with the tasking built into the language, you
make your program more portable.
I successfully moved a 160K SLOC multi-tasking application from Windows NT
to Linux in a couple of hours. I had to make changes in the area of TCP/IP
communications, no changes required to tasking.
Steve
(The Duck)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-06-10 2:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-09 13:22 WinNT task reference e.coli
2005-06-09 13:51 ` Adrien Plisson
2005-06-10 2:21 ` Steve
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox