I created a WinForms application that is being start by a scheduled task under the SYSTEM
user. The only problem is that it's running in the background.
Is it possible to write a wrapper around the program to get the logged in user and bring it to their desktop?
using System;
using System.Windows.Forms;
namespace ScheduledTaskTest
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}