コード例 #1
0
        public static uint GetThreadExitCode(ulong threadHandle)
        {
            uint exitCode;

            NT.GetExitCodeThread(threadHandle, out exitCode);
            return(exitCode);
        }
コード例 #2
0
ファイル: Natives.cs プロジェクト: mal137/LoadLib
        public static string GetModuleBaseName(IntPtr processHandle, ulong moduleHandle)
        {
            StringBuilder name = new StringBuilder(1024);

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

            return(name.ToString());
        }
コード例 #3
0
ファイル: Natives.cs プロジェクト: mal137/LoadLib
 public static ulong OpenThread(NT.ThreadAccess threadAccess, int threadId) =>
 NT.OpenThread(threadAccess, false, threadId);
コード例 #4
0
ファイル: Natives.cs プロジェクト: mal137/LoadLib
 public static void WaitForThread(ulong threadHandle)
 => NT.WaitForSingleObject(threadHandle, uint.MaxValue);
コード例 #5
0
ファイル: Natives.cs プロジェクト: mal137/LoadLib
 public static ulong GetModuleFunction(string moduleName, string functionName)
 => NT.GetProcAddress(NT.GetModuleHandle(moduleName), functionName);