GetThreadContext

[DllImport("Kernel32.dll")][return: MarshalAs(UnmanagedType.Bool)]
public static extern bool GetThreadContext(
   IntPtr hThread,
   ref CONTEXT lpContext
);

Microsoft documentation: Link

Last updated