Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to get a status from ITask

How to get a status from ITask

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialc++sysadminwindows-adminjson
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    StefanKittel
    wrote on last edited by
    #1

    Hello, I'm working on an application that uses the Scheduled Task APIs... I am unable to get the "detailed status" that appears in the GUI from anything in the API. For example, let's say I've got a scheduled task that has a bad user/password.... in the Win2003 GUI, the "Status" column has the following: "The scheduled task did not run because an incorrect password or user name was entered" However, nothing in the API can get me this error code (0x8007052E)... I've tried: ITask.GetStatus = returns 0x41300 (Which is "Task is scheduled") ITask.GetWorkItemData = return a 0 for the length of the data (so there is no application specific data) ITask.GetExitCode = return 0 because the last time it did run, it ran fine What am I missing? Visuall C++ 6.0 using Microsoft Platform SDK for Windows Server 2003 R2 on Windows XP Prof SP2 :confused:

    H 1 Reply Last reply
    0
    • S StefanKittel

      Hello, I'm working on an application that uses the Scheduled Task APIs... I am unable to get the "detailed status" that appears in the GUI from anything in the API. For example, let's say I've got a scheduled task that has a bad user/password.... in the Win2003 GUI, the "Status" column has the following: "The scheduled task did not run because an incorrect password or user name was entered" However, nothing in the API can get me this error code (0x8007052E)... I've tried: ITask.GetStatus = returns 0x41300 (Which is "Task is scheduled") ITask.GetWorkItemData = return a 0 for the length of the data (so there is no application specific data) ITask.GetExitCode = return 0 because the last time it did run, it ran fine What am I missing? Visuall C++ 6.0 using Microsoft Platform SDK for Windows Server 2003 R2 on Windows XP Prof SP2 :confused:

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      See Harnessing the task scheduler[^] does any help?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups