deli
December 27th, 2004, 11:01
i try to read stack context i.e parameters from wsarecv.
i have written a small plugin which sets a breakpoint at
wsarecv... but how did i then get the stack ???
void __declspec(dllexport) __cdecl ODBG_Pluginmainloop(DEBUG_EVENT *debugevent){
if(debugevent&&wsarecv)
if(debugevent->u.Exception.ExceptionRecord.ExceptionAddress==wsarecv ){
Addtolist(0, -1, " !!!!!!!!!!!breakpoint"
;
// test =GetExceptionInformation();
Setbreakpoint(wsarecv,TY_TEMP,0);
}
if(wsarecv)
if(TY_INVALID==Getbreakpointtype(wsarecv,NULL)){
Setbreakpoint(wsarecv,TY_TEMP,0);
}
}
i tried
LPEXCEPTION_POINTERS GetExceptionInformation(void);
but i think this function is only useable in a exception handler, right ??
thanks for help
i have written a small plugin which sets a breakpoint at
wsarecv... but how did i then get the stack ???
void __declspec(dllexport) __cdecl ODBG_Pluginmainloop(DEBUG_EVENT *debugevent){
if(debugevent&&wsarecv)
if(debugevent->u.Exception.ExceptionRecord.ExceptionAddress==wsarecv ){
Addtolist(0, -1, " !!!!!!!!!!!breakpoint"

// test =GetExceptionInformation();
Setbreakpoint(wsarecv,TY_TEMP,0);
}
if(wsarecv)
if(TY_INVALID==Getbreakpointtype(wsarecv,NULL)){
Setbreakpoint(wsarecv,TY_TEMP,0);
}
}
i tried
LPEXCEPTION_POINTERS GetExceptionInformation(void);
but i think this function is only useable in a exception handler, right ??
thanks for help