CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 1999
    Posts
    128

    Termination of running app.

    Could anyone please tell me how can i terminate an application that is already running from a VB program? Please note that the application has started outside my program so i don't know its task ID. Also note that i wish to terminate it normally (i.e. request its termination, not force its termination).

    TIA

    -------------------------
    Nick A.

  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Termination of running app.

    try the FindWindow API to find the window handle of a window of that application.
    Then post a WM_CLOSE message to that window


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