hi guys, please, i need your help for find thread start address, i got script for find tid's, now i need find how get start adress from tid's, thank you.
$te32=DllStructCreate($THREADENTRY32)
DllStructSetData($te32,"dwSize",DllStructGetSize($te32))
$call=DllCall("Kernel32.dll","int","Thread32First","ptr",$handle,"ptr",DllStructGetPtr($te32))
If DllStructGetData($te32,"th32OwnerProcessID")=$iPid Then _GetAllThreads_ArrHelper($RetArr,$te32)
Do
$call=DllCall("Kernel32.dll","int","Thread32Next","ptr",$handle,"ptr",DllStructGetPtr($te32))
If Not $call[0] Then ExitLoop
If DllStructGetData($te32,"th32OwnerProcessID")=$iPid Then _GetAllThreads_ArrHelper($RetArr,$te32)
Until True And False
_ArrayDelete($RetArr,0)
_WinAPI_CloseHandle($handle)
Return $RetArr
EndFunc
;=================================================================================================
; Function: GetAllThreadsStartAddress($ProcessId)
; Description: Retrieves a list of threads.
; Return Value(s): On Success - Returns an array of matching thread identifiers and handles.
; On Failure - Returns false
; @Error: 0 = No error.
; 1 = Failed to open 'ntdll.dll'.
; 2 = Failed to open 'Kernel32.dll'.
; 3 = Failed to create a snapshot.
; 4 = Failed to copie the first entry of the thread list.
; 5 = Failed to open a thread.
; 6 = Failed to get the start address.
; 7 = Failed to close the opened thread.
; 8 = Failed to copie the next entry of the thread list.
; 7 = Failed to close the created snapshot.
; Author(s): KillerDeluxe
;=================================================================================================
DllCall($Kernel32, "int", "CloseHandle", "HANDLE", $hThread[0])
If @error Then Return SetError(7, "", False)
EndIf
$ret = DllCall($Kernel32, "int", "Thread32Next", "HANDLE", $hSnapshot[0], "ptr", DllStructGetPtr($TE32))
If @error Then Return SetError(8, "", False)
If Not $ret[0] Then ExitLoop
WEnd
DllCall($Kernel32, "int", "CloseHandle", "HANDLE", $hSnapshot[0])
If @error Then Return SetError(9, "", False)
#include <Array.au3>
$Array = GetAllThreadsStartAddress(ProcessExists("explorer.exe"))
If Not @error Then _ArrayDisplay($Array)
;=================================================================================================
; Function: GetAllThreadsStartAddress($ProcessId)
; Description: Retrieves a list of threads.
; Return Value(s): On Success - Returns an array of matching thread identifiers and handles.
; On Failure - Returns false
; @Error: 0 = No error.
; 1 = Failed to open 'ntdll.dll'.
; 2 = Failed to open 'Kernel32.dll'.
; 3 = Failed to create a snapshot.
; 4 = Failed to copie the first entry of the thread list.
; 5 = Failed to open a thread.
; 6 = Failed to get the start address.
; 7 = Failed to close the opened thread.
; 8 = Failed to copie the next entry of the thread list.
; 7 = Failed to close the created snapshot.
; Author(s): KillerDeluxe
;=================================================================================================
DllCall($Kernel32, "int", "CloseHandle", "HANDLE", $hThread[0])
If @error Then Return SetError(7, "", False)
EndIf
$ret = DllCall($Kernel32, "int", "Thread32Next", "HANDLE", $hSnapshot[0], "ptr", DllStructGetPtr($TE32))
If @error Then Return SetError(8, "", False)
If Not $ret[0] Then ExitLoop
WEnd
DllCall($Kernel32, "int", "CloseHandle", "HANDLE", $hSnapshot[0])
If @error Then Return SetError(9, "", False)
How to find a npc address via UCE 03/06/2010 - Kal Online - 1 Replies As the name of the post say i looking the npc address with uce
If someone could be so kind to tell me how to find tham by myself or you can post some address here
How to find AOE address 09/26/2009 - Cabal Online - 0 Replies How can I find the AOE address? Any previous thread mentioned it?
How to find the server address 03/04/2009 - Dekaron Private Server - 0 Replies Me and MANY others would LOVE if someone would come and help us out.
I was following the codes for CE and finally got the concept. Then i found out that i need to have a server adress for it to go to. But somehow everyone failed to show us how.
If you have already said it just post it here, and if not, now would be the perfect time!
Thanks to all of you hardworkers! ;)
Find the address 02/14/2009 - Perfect World - 4 Replies If i wan to use zPW v1.25 for perfect world private server, how do i find their address ??
Need Help Find IP Address 03/19/2008 - Lineage 2 - 3 Replies hi gys need some help to find the ip address and protcol version of this server a friend plays on l2 memories and was asking i told him i would try i know there is the old programs to do it but not sure about karmael if any can help it would be greatly appreciated or point me in the right direction