Need help understanding _set_security_error_handler()

Posted by Emil D on Stack Overflow See other posts from Stack Overflow or by Emil D
Published on 2010-03-05T17:25:06Z Indexed on 2010/05/23 2:20 UTC
Read the original article Hit count: 334

Filed under:
|
|

So , I've been reading this article:

http://msdn.microsoft.com/en-us/library/aa290051%28VS.71%29.aspx

And I would like to define my custom handler.However, I'm not sure I understand the mechanics well.What happens after a call is made to the user-defined function ( e.g. the argument of _set_security_error_handler() ) ? Does the program still terminate afterward ? If that is the case, is it possible to terminate only the current thread(assuming that it is not the main thread of the application).AFAIK, each thread has its own stack , so if the stack of a thread gets corrupted, the rest of the application shouldn't be affected.

Finally, if it is indeed possible to only terminate the current thread of execution, what potential problems could such an action cause?

I'm trying to do all this inside an unmanaged C++ dll that I would like to use in my C# code.

© Stack Overflow or respective owner

Related posts about c#

Related posts about c++