1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Catching a Signal from OS in VC++(MFC)

Discussion in 'MFC' started by manmfc, Sep 22, 2008.

  1. manmfc

    manmfc New Member

    Sep 22, 2008
    Likes Received:
    Trophy Points:
    I am new to WINDOWS and VC++ MFC. I am trying to catch a Signal through VC++ MFC from Windows OS. But am not able to find the solution. The need is, one application is running in the user space(eg xyz.exe) and suddenly if the end user(who is using this application on the PC) trying to kill that process from Task Manager. When end user clicks on EndProcess, OS should catch a signal. In UNIX variants I can catch that signal SIGKILL(9). Now am trying to do the same like catching that SIGKILL on UNIX variants by registering a signal handler for that process. In Windows(VC++ MFC) is there any way to do that? Help me out.

Share This Page