Preventing XP from knowing that you program crashed.

From: The Half A Wannabee ("The)
Date: 03/18/04

  • Next message: Jim Carlock: "Re: How do you inherit DOS console in Win32 application?"
    Date: Thu, 18 Mar 2004 07:12:45 +0100
    
    

    You know, perhaps, that in Windows XP, if you program faults, window will
    launch a Dialogbox that says to the user:

    "
    ApplicationX.exe

    ApplicationX.exe has encountered a problem and needs to close. We are sorry
    for the inconvenience.

    If you were in the middle of something, the information you were working on
    might be lost.

    PLEASE TELL MICROSOFT ABOUT IT...ect etc bull***
    "

    The last demo I posted included a primitive exceptionhandler. This contained
    a rage condition, now patched. But it also have a feature. It prevents
    window from showing the dialog.

    The first lines in my app:

    call 'kernel32.SetUnhandledExceptionFilter' TSZApplication_Exception
    mov D$OldHandler eax

    At the TSZApplication_Exception adresse :

    [OldHandler:?]
    TSZApplication_Exception:

      cmp D$OldHandler &NULL|je @Quit
      mov D$OldHandler &NULL

      ;Give some feedback maybe to user here

    @Quit:
      call TSZApplication_Done
    ret


  • Next message: Jim Carlock: "Re: How do you inherit DOS console in Win32 application?"
  • Quantcast