<div class="content"><p> </p><p>The SchRpcGetNumberOfMissedRuns MUST return the number of
times a task was scheduled to run but did not due to the server being
unavailable (for example, powered off).</p><dl>
<dd>
<div><pre> HRESULT SchRpcGetNumberOfMissedRuns(
   [in, string] const wchar_t* path,
   [out] DWORD* pNumberOfMissedRuns
 );
</pre></div>
</dd></dl><p><b>path: </b>MUST contain the full path to a task, in
the format specified in section <span><a href="fa8809c8-4f0f-4c6d-994a-6c10308757c1" data-linktype="relative-path">2.3.11</a></span>.</p><p><b>pNumberOfMissedRuns: </b>MUST be the address of a <span><a href="../ms-dtyp/262627d8-3418-4627-9218-4ffe110850b2" data-linktype="relative-path">DWORD</a></span>
that receives the number of times a task was scheduled to run but did not.</p><p><b>Return Values: </b>For more information about
return codes, see section <span><a href="774cd43a-8376-4c8b-a2e3-57aaa6357088" data-linktype="relative-path">2.3.14</a></span>, or Win32
Error Codes in <span><a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a></span>
section <span><a href="../ms-erref/0642cb2f-2075-4469-918c-4441e69c548a" data-linktype="relative-path">2.1</a></span>.</p><p>Upon receipt of the SchRpcGetNumberOfMissedRuns call, the
server MUST:</p><ul><li><p><span><span> 
</span></span>Return the number of runs missed since the last successful run.
If the task has not yet run in the <i>pNumberOfMissedRuns</i> parameter and if
the parameter is non-NULL, the server MUST return the number of runs missed
since registration instead.</p>
</li><li><p><span><span> 
</span></span>Return S_OK when:</p>
<ul><li><p><span><span>  </span></span>The
<i>path</i> is not present.</p>
</li><li><p><span><span>  </span></span>The
<i>path</i> is not in the specified format.</p>
</li></ul></li><li><p><span><span> 
</span></span>Return S_OK.<a id="Appendix_A_Target_81"></a><a aria-label="Product behavior note 81" href="2d1fbbab-fe6c-4ae5-bdf5-41dc526b2439#Appendix_A_81" data-linktype="relative-path">&lt;81&gt;</a></p>
</li></ul></div>