|
Auto Debug On Line Help |
|
OnBreakPointEntryThe OnBreakPointEntry event will be called when an api which has be monitored entry. void OnBreakPointEntry( 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. ); 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 OnBreakPointEntry(pszDll, pszName, nParam, pParam, dwProcessId) echo pszDll & " " & pszName &" " & nParam & " " & dwProcessId 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 OnBreakPointEntry(pszDll, pszName, nParam, pParam, dwProcessId) { echo (pszDll + " " + pszName +" " + nParam + " " + dwProcessId); } RequirementsAuto Debug for Windows: Unsupport. See AlsoScript Information Overview, Script Events, OnBreakPointReturn,OnException ,OnProcessEnd |
Copyright c 2003-2025, www.autodebug.com All Rights Reserved |