#Include <WinAPI.au3>
$iPID = ProcessExists('SciTE.exe')
If Not $iPID Then Exit
$begin = TimerInit()
$hProc = _WinAPI_OpenProcess(0x1F0FFF, 0, $iPID)
Local $iStartAddress = 0x00100000, $iStopAddress = 0x06000000, $iStep = 1024
Local $tBuff = DllStructCreate('byte[' & $iStep & ']')
$dll = DllOpen('kernel32.dll')
$iCount = 0
For $iAddress = $iStartAddress To $iStopAddress Step $iStep
$aRet = DllCall($dll, 'int', 'ReadProcessMemory', 'int', $hProc, 'ptr', $iAddress, 'ptr', DllStructGetPtr($tBuff), 'int', $iStep, 'int', '')
If @Error Then
ConsoleWrite('-@Error>' & @Error & @CRLF)
ExitLoop
EndIf
If Not $aRet[3] Then ExitLoop
$iReadData = BinaryToString(DllStructGetData($tBuff, 1))
$iPos = 1
While $iPos
$iPos = StringInStr($iReadData, ':\', 2, 1, $iPos)
If Not $iPos Then ExitLoop
$aTmp = StringRegExp(StringMid($iReadData, $iPos - 1, 256), '(?i)^([a-z]:\\.*)', 3)
If IsArray($aTmp) Then
ConsoleWrite('-OutStr>' & $aTmp[0] & @CRLF)
$iCount += 1
If $iCount = 100 Then ExitLoop 2
EndIf
$iPos += 3
WEnd
Next
DllClose($dll)
_WinAPI_CloseHandle($hProc)
ConsoleWrite('-TimerDiff>' & TimerDiff($begin) & @CRLF)