public static uint GetThreadExitCode(ulong threadHandle) { uint exitCode; NT.GetExitCodeThread(threadHandle, out exitCode); return(exitCode); }
public static string GetModuleBaseName(IntPtr processHandle, ulong moduleHandle) { StringBuilder name = new StringBuilder(1024); NT.GetModuleBaseName(processHandle, moduleHandle, name, 1024); return(name.ToString()); }
public static ulong OpenThread(NT.ThreadAccess threadAccess, int threadId) => NT.OpenThread(threadAccess, false, threadId);
public static void WaitForThread(ulong threadHandle) => NT.WaitForSingleObject(threadHandle, uint.MaxValue);
public static ulong GetModuleFunction(string moduleName, string functionName) => NT.GetProcAddress(NT.GetModuleHandle(moduleName), functionName);