With this plugintype you will get notified whenever a debug event happens in the default windows
debugger. Your callback routine gets called right after the WaitForDebugEvent returns true with
the pointer to the DebugEvent structure.
callback definition:
typedef
int
(
__stdcall
*CEP_PLUGINTYPE2)(LPDEBUG_EVENT DebugEvent);
return 0 if you want to let ce or other plugins handle the debug event as well
reutrn 1 if you don't want anything else to handle this event. You will have to call
ContinueDebugEvent yourself
Pointer to structure of init you have to pass:
struct
PLUGINTYPE2_INIT
{
CEP_PLUGINTYPE2 callbackroutine;
//pointer to a callback routine of the type 2
plugin
};
NOTE: This event happens in a thread that is NOT the main thread. GUI specific calls (like
showmessage) will not work properly.