#pragma once #include "eh.h" #include "windows.h" #include #include using namespace std; //在多线程程序中,每个线程有一个独立的转换函数。 class structured_exception : public std::exception { public: structured_exception(EXCEPTION_POINTERS const &) throw(); static void install() throw(); virtual char const *what() const throw(); void const *where() const throw(); private: void const *address_; unsigned code_; };