Beispiel #1
0
        public static uint GetThreadExitCode(ulong threadHandle)
        {
            uint exitCode;

            NT.GetExitCodeThread(threadHandle, out exitCode);
            return(exitCode);
        }
Beispiel #2
0
        public static string GetModuleBaseName(IntPtr processHandle, ulong moduleHandle)
        {
            StringBuilder name = new StringBuilder(1024);

            NT.GetModuleBaseName(processHandle, moduleHandle, name, 1024);

            return(name.ToString());
        }
Beispiel #3
0
 public static ulong OpenThread(NT.ThreadAccess threadAccess, int threadId) =>
 NT.OpenThread(threadAccess, false, threadId);
Beispiel #4
0
 public static void WaitForThread(ulong threadHandle)
 => NT.WaitForSingleObject(threadHandle, uint.MaxValue);
Beispiel #5
0
 public static ulong GetModuleFunction(string moduleName, string functionName)
 => NT.GetProcAddress(NT.GetModuleHandle(moduleName), functionName);