none
Find a Sub Process Executed as part of a Main Process RRS feed

  • Question

  • Hi Experts,

    My Requirement is to Create a .Net Application which constantly monitors if a POPUP Window of a Third Party Application is Open or Closed. As Soon as the Popup window is closed (There is an OK Button in the POPUP Window on click the window gets closed). I would like to run a Batch File which would do some maintenance activities.(I have already created the batch file) But I don't know how to Monitor if a POPUP Window of Third Party Application is Closed

    I Don't have access to the Third Party code.

    From the Task manager(of Windows Server 2012) i can see that the POP UP Window is displayed as a Sub Process under the main Process.

    Can you please suggest if this is possible, if so how to go forward with it.


    Joji


    Thursday, April 30, 2015 9:56 PM

Answers

All replies

  • Hello Joji,

    It is not very clear what your requirement is about “Trigger my Application”, could you provide a detail clarification about this as how you want your application to be when a POPUP Window of a Third Party Application is Closed? And from your description, it is not sure if you are developing a .NET Framework application which is discussed in this forum. If you are developing a C++ project, I think the C++ forum is proper for this issue: https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vcgeneral.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, May 1, 2015 2:15 AM
    Moderator
  • Hi Fred,

    I have Modified my Query, Let me know if this information is enough.


    Joji

    Friday, May 1, 2015 3:52 AM
  • Hello Joji,

    It seems that you are trying to hook a the windows close event from a .NET based application, as far as I know, there is not such a api available in .NET, you could have a try with windows api as SetWindowsHookEx function: https://msdn.microsoft.com/en-us/library/windows/desktop/ms644990(v=vs.85).aspx to intercept WM_CLOSE, WM_QUIT and WM_DESTROY. And check this link for an example of its usage in C#: http://www.pinvoke.net/default.aspx/user32.setwindowshookex

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, May 1, 2015 5:17 AM
    Moderator
  • Thank You Fred, I wasn't aware of the Power of Win32 API. :)
    Really Lowed the stuff..


    Joji

    Friday, May 1, 2015 1:00 PM