From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7ebe273fe042b108 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!feeder.xsnews.nl!tudelft.nl!txtfeed2.tudelft.nl!newsfeed.multikabel.nl!skynet.be!skynet.be!newspost001!tjb!not-for-mail Date: Thu, 09 Jun 2005 15:51:34 +0200 From: Adrien Plisson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: fr-fr, fr-be, fr, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: WinNT task reference... References: <1118323347.353446.8600@g47g2000cwa.googlegroups.com> In-Reply-To: <1118323347.353446.8600@g47g2000cwa.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <42a8499d$0$331$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 8d919960.news.skynet.be X-Trace: 1118325149 news.skynet.be 331 81.246.234.121:3111 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:11270 Date: 2005-06-09T15:51:34+02:00 List-Id: 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