The SchRpcStop MUST stop all currently running instances of a task specified by a path.

 HRESULT SchRpcStop(
   [in, string, unique] const wchar_t* path,
   [in] DWORD flags
 );

path: MUST contain the full path to a task using the format specified in section 2.3.11.

flags: Unused. The client MUST set 0, and the server MUST return an error if nonzero.

Return Values: For more information on return codes, see section 2.3.14, or Win32 Error Codes in [MS-ERREF] section 2.1.

Upon receipt of the SchRpcStop call, the server MUST:

If any errors are raised during the processing, they are returned. For more information about return codes, see section 2.3.14 and Win32 Error Codes in [MS-ERREF] section 2.1.