Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
580 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. terminate.cpp
  5. Abstract:
  6. temporary support for C++ exception handling
  7. Author:
  8. Jay Krell (a-JayK) October 2000
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #include "ntos.h"
  14. #include "nt.h"
  15. #include "ntrtl.h"
  16. #include "nturtl.h"
  17. #include "ntxcapi.h"
  18. void __cdecl terminate(void)
  19. {
  20. #if DBG
  21. DbgPrint("NTDLL:"__FUNCTION__":NtTerminateThread(NtCurrentThread(), STATUS_UNHANDLED_EXCEPTION)\n");
  22. DbgBreakPoint();
  23. #endif
  24. NtTerminateThread(NtCurrentThread(), STATUS_UNHANDLED_EXCEPTION);
  25. }