|
Auto Debug On Line Help |
|
getProcessMemoryThe getProcessMemory function to get debuggee process memory context.. Array getProcessMemory( LONG pAddress, // The pointer to the base address in the debuggee process. int nSize, // The number of bytes to be read from the debuggee process. ArrayDataType nType // The array type. ); Parameters
Return ValuesReturn the array value which read from debuggee process. This function only can be call at OnBreakPointEntry or OnBreakPointReturn event. 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)
rc = getParamAddress(pParam, 0)
buf = getProcessMemory(rc, 100, 0)
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)
{
rc = getParamAddress(pParam, 0);
vbTemp = getProcessMemory(rc, 100, 0);
buf = new VBArray(vbTemp);
}
RequirementsAuto Debug for Windows: Unsupport. See AlsoScript Information Overview, Script Functions, getParamAddress,setProcessMemory, OnBreakPointReturn ,OnBreakPointEntry |
| Copyright c 2003-2025, www.autodebug.com All Rights Reserved |