I have code that uses a C # TaskManager object to create a task. In Windows 7, it works fine, but in Windows XP (and, presumably, another Windows), it does not work at all, because the default user for this task is the system and, therefore, there is no session to display the graphical interface. If I change the created task manually in the widgets of the control panel so that the task is executed only when the user logs in and only for a specific user, then everything works fine. But, despite the hours of searching, I see no options for setting these parameters in C # objects. Does anyone know a solution with existing objects? I would not want to rewrite everything to manually launch the EXE scheduler and transfer stuff on the command line.
Q
source
share