Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 372 Bytes

File metadata and controls

7 lines (5 loc) · 372 Bytes

RunInThread

Auxiliary assembly function for x64 C to run threaded functions.

Eliminates the need to create context for WINAPI CreateThread function. Instead you just call RunInThread(function_ptr,...), eg.: HANDLE ThreadHandle = RunInThread(memcpy, dst, src, n);

The function works only with __fastcall functions. Parameters are copied to the created thread's stack.