CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Location
    Salisburyl UK
    Posts
    324

    how can I determine if a process has terminated ??

    Hi All..
    I have a windows based app which when closing has to unload a large amount of resources. My problem is that another application needs to know when the process has completely finished unloading its resources. The window of the first process dies long before the resources are completely unloaded so I need to find a way of determining whether the process is still active or if it has finished and therefore died...
    This is proving more complicated than I expected.
    Does anyone know how I can do this using WIN32 api calls.
    Any help pointers or suggestions would be gratefully received..
    Thanks in advance

    Phill

  2. #2
    Join Date
    Jul 2002
    Posts
    2,543
    Having process handle you can call WaitForSingleObject.
    Process handle becomes signaled when process terminated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured