public static ulong GetModuleFunction(string moduleName, string functionName) => Native.GetProcAddress(Native.GetModuleHandle(moduleName), functionName);
public static void WaitForThread(ulong threadHandle) => Native.WaitForSingleObject(threadHandle, uint.MaxValue);