|
Auto Debug On Line Help |
|
OnBreakPointReturnThe OnBreakPointReturn event will be called when an api which has be monitored exit. void OnBreakPointReturn( BSTR pszDll, // The api's dll module name. BSTR pszName, // The api's function name. int nParam, // The number of api's parameter. LONG* pParam, // The array of api's parameters data. LONG dwProcessId, // The debuggee process's ID. LONG rc // The api's return value. ); Parameters
Return ValuesNo return value. ExamplesVBscript Example: sub main
addMenuItem "Save Log", "SaveLogFile"
addMenuItem "Kill Trace Process", "KillTraceProcess"
startProcess "Notepad.exe", "c:\a.txt"
end sub
sub SaveLogFile
MsgBox "Call Save Log File"
saveLog "c:\aaa.dsf"
end sub
sub KillTraceProcess
MsgBox "Call Kill Process"
killProcess false
end sub
sub OnBreakPointReturn(pszDll, pszName, nParam, pParam, dwProcessId, rc)
echo pszDll & " " & pszName &" " & nParam & " " & dwProcessId & " " & rc
end sub
JavaScript Example: function main(){
addMenuItem("Save Log", "SaveLogFile");
addMenuItem("Kill Trace Process", "KillTraceProcess");
startProcess("Notepad.exe", "c:\a.txt");
}
function SaveLogFile(){
echo("Call Save Log File");
saveLog("c:\aaa.dsf");
}
function KillTraceProcess(){
echo("Call Kill Process");
killProcess(false);
}
function OnBreakPointReturn(pszDll, pszName, nParam, pParam, dwProcessId, rc)
{
echo (pszDll + " " + pszName +" " + nParam + " " + dwProcessId + " " + rc);
}
RequirementsAuto Debug for Windows: Unsupport. See AlsoScript Information Overview, Script Events, OnBreakPointEntry,OnException ,OnProcessEnd |
| Copyright c 2003-2025, www.autodebug.com All Rights Reserved |