3.1.4.3.5.5 Retrieve a Task's Last Run Information

To retrieve a task's last run information, the client MUST first know the path of the task. The path of the task is determined when the client creates the task or queries the server (section 3.1.4.3.6).

The client MUST then invoke the SchRpcGetLastRunInfo method with the following parameters:

  • The path of the existing task in the path parameter.

  • The location of a SYSTEMTIME structure to receive the last run time in the pLastRuntime parameter.

  • The location of a DWORD to receive the last return code in the pLastReturnCode parameter.