Menu

C++ ways to end task

Sevko
2009-02-15
2012-09-26
  • Sevko

    Sevko - 2009-02-15

    I have read how to end a task in c++ and i found a lot. But I'm most interested in WM_CLOSE and TerminateProcess() if any 1 could tell me how it works and add an example code. Thanks in advance

     
    • cpns

      cpns - 2009-02-15

      Vague question of the week award goes to you. ;-)

      What do you mean by 'task'. Windows has two tasking models - process and threads. A process may have multiple threads. TerminateProcess() does exactly what it says on the tin ( and in the documentation http://msdn.microsoft.com/en-us/library/ms686714(VS.85).aspx ). What do you want to know that is not already in the documentation.

      Equally WM_CLOSE is a windows message, how you process it is up to you. What do you need to know that is not already in the documentation: http://msdn.microsoft.com/en-us/library/ms632617(VS.85).aspx ?

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.