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.

36 lines
727 B

  1. /***
  2. *csysex.cpp - Implementation CException class for NT kernel mode
  3. *
  4. * Copyright (c) 1993-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Implementation of kernel mode default exception
  8. *
  9. * Entry points:
  10. * CException
  11. *
  12. *Revision History:
  13. * 04-21-95 DAK Module created
  14. *
  15. ****/
  16. #if defined(_NTSUBSET_)
  17. #include <csysex.hxx>
  18. class type_info {
  19. public: virtual ~type_info() { }
  20. };
  21. type_info Dummy;
  22. //
  23. // Convert system exceptions to a C++ exception.
  24. //
  25. extern "C" void _cdecl SystemExceptionTranslator( unsigned int uiWhat,
  26. struct _EXCEPTION_POINTERS * pexcept )
  27. {
  28. throw CException( uiWhat ) ;
  29. }
  30. #endif // _NT_SUBSET_