Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Googler


Сообщения: 3665
Благодарности: 1563

Профиль | Отправить PM | Цитировать


Belfigor, обходной путь:
Код: Выделить весь код
$PID = ProcessExists("Explorer.Exe")
$adr = _ProcessGetAllocAddress($PID)
ConsoleWrite("0x"& Hex($adr) &@CRLF)

Func _ProcessGetAllocAddress ($PID)
    Local $tPID = DllStructCreate("long")
    Local $tBuffer = DllStructCreate("byte")

    DllStructSetData($tPID, 1, $PID)
    Local $hProc = DllCall('kernel32.dll', 'int', 'OpenProcess', "int", 0x38, "int", 0, "int", DllStructGetData($tPID,1))
    Local $pMem = DllCall('kernel32.dll', 'int', 'VirtualAllocEx', "int", $hProc[0], "ptr", 0, "int", DllStructGetSize($tBuffer),   "int", 0x3000, "int", 0x4)

    DllCall('kernel32.dll', 'int', 'VirtualFreeEx', "int", $hProc[0], "ptr", $pMem[0], "int", 0, "int", 0x8000)
    DllCall("kernel32.dll", "int", "CloseHandle", "int", $hProc[0])

    Return $pMem[0]
EndFunc ; ==> _ProcessGetAllocAddress

Последний раз редактировалось amel27, 28-07-2009 в 08:44. Причина: оформление

Это сообщение посчитали полезным следующие участники:

Отправлено: 08:21, 28-07-2009 | #16