I have an app that needs to run on XP and Vista. That is it has to interface to the appropriate Task Scheduler (1.0 or 2.0). Because of this I'm using the ITaskScheduler interface (1.0). This works great except when I try to use IScheduledWorkItem GetFlags or SetFlags. Then the OS's that use 2.0 (Vista +) return a different result from what appears in their Task Scheduler itself. Do I really have to fork my code depending on the OS?