GetCurrentThread

[DllImport("kernel32.dll", SetLastError = true)]
public static extern IntPtr GetCurrentThread(
   
);

Microsoft documentation: Link

Last updated