AllowSetForegroundWindow

[DllImport("user32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool AllowSetForegroundWindow(
   uint dwProcessId
);

Microsoft documentation: Link

Last updated