Runsinglethread

OllyDbg Plugin API

Runsinglethread

Suspends all threads except for specified, and resumes specified thread even if it was suspended. If threadid is 0 or invalid, suspends all threads. Returns thread ID of the thread that was the only one running, thread ID of the main thread if there were none/more than 1 active threads, and 0 on error. To reverse effect of this function, call Restoreallthreads. Improper use of this function may bring OllyDbg in unstable or undefined state.

ulong Runsinglethread(ulong threadid);

Parameters:

threadid - identifier (not handle!) of thread to run, or 0 to suspend all threads.

See also: OpenEXEfile, Go, Animate, Suspendprocess, Restoreallthreads