public static uint CreateAndWaitForThread(this Process process, ulong startAddress, ulong argumentAddress, out ulong threadHandle) { threadHandle = NT.CreateRemoteThread(process.Handle, 0, 0, startAddress, argumentAddress, 0, out ulong threadId); NTM.WaitForThread(threadHandle); return(NTM.GetThreadExitCode(threadHandle)); }
public static ulong CreateThread(this Process process, ulong startAddress, ulong argumentAddress, out ulong threadId) { return(NT.CreateRemoteThread(process.Handle, 0, 0, startAddress, argumentAddress, 0, out threadId)); }