t_thread * Findthreadbyordinal(int ordinal);
Given thread's ordinal, returns pointer to the thread descriptor.
OllyDbg assigns ordinal 1 to the main thread. Each next thread gets ordinal number increased by 1. Auxiliary threads created by Windows have ordinal 0 and can't be located with Findthreadbyordinal().
Parameters:
ordinal
(in) Ordinal assigned to the thread by OllyDbg
Return values:
If
thread with given ordinal is present in the debugged process,
returns pointer to the structure t_thread
that describes this thread. Otherwise, returns NULL
See also: