Relative Content

Tag Archive for winapivisual-c++seh

How to fill EXCEPTION_RECORD properly for a RtlUnwindEx call?

I am trying to manually handle a C++ exception ,caused by dynamically loaded code, through a VEH handler.At first I capture the exception with VEH then perform a stackwalk then call the __c_specific_handler to see if there is an actual handler and at last I need to make a call to RtlUnwindEx to actually call the catch callback. Reading at Skywing’s study on X64 exception handling (http://www.nynaeve.net/?p=110) I find this: