<div class="content" name="NetrJobGetInfo" uuid="ee6ca40c-ae87-421d-998d-ec759d375824"><p>The NetrJobGetInfo method MUST return information for a
specified <a href="4d44c426-fad2-4cc7-9677-bfcd235dca33" data-linktype="relative-path">ATSvc</a> task.
The task identifier MUST be used to locate the task configuration. </p><dl>
<dd>
<div><pre> NET_API_STATUS NetrJobGetInfo(
   [in, string, unique] ATSVC_HANDLE ServerName,
   [in] DWORD JobId,
   [out] LPAT_INFO* ppAtInfo
 );
</pre></div>
</dd></dl><p><b>ServerName: </b>Pointer to a <a href="efc35aa8-1f40-4609-869a-107dd31bbed0#gt_b069acb4-e364-453e-ac83-42d469bb339e" data-linktype="relative-path">Unicode string</a> that MUST
specify the server. The client MUST map this string to an <a href="efc35aa8-1f40-4609-869a-107dd31bbed0#gt_8a7f6700-8311-45bc-af10-82e10accd331" data-linktype="relative-path">RPC</a> <a href="efc35aa8-1f40-4609-869a-107dd31bbed0#gt_44deb72d-c62b-4335-90e4-b9fd4dd782ed" data-linktype="relative-path">binding handle</a>. The server
MUST ignore this parameter. For more information, see <a href="https://go.microsoft.com/fwlink/?LinkId=89824" data-linktype="external">[C706]</a> sections 4.3.5
and 5.1.5.2.</p><p><b>JobId: </b>MUST contain a task identifier.</p><p><b>ppAtInfo: </b> MUST be a pointer to an <a href="7290597e-bb6d-46fe-9338-e6b0467b23ae" data-linktype="relative-path">AT_INFO</a> structure as
specified in section 2.3.4. </p><p><b>Return Values: </b>For more information on return
codes, see section <a href="774cd43a-8376-4c8b-a2e3-57aaa6357088" data-linktype="relative-path">2.3.14</a>,
or Win32 Error Codes in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>
section <a href="../ms-erref/0642cb2f-2075-4469-918c-4441e69c548a" data-linktype="relative-path">2.1</a>.</p><p>In response to this request the server MUST:</p><ul><li><p><span><span> 
</span></span>Return ERROR_ACCESS_DENIED if the caller does not have
administrative privileges on the server.</p>
</li><li><p><span><span> 
</span></span>Retrieve from the AT <a href="efc35aa8-1f40-4609-869a-107dd31bbed0#gt_08035fe7-a786-4b30-ab60-3fd046060617" data-linktype="relative-path">task store</a> the <a href="d77ddb4a-bb25-4fbe-b5fe-aeca9d5b9498" data-linktype="relative-path">AT_ENUM</a> structure of the
task specified by the <i>JobId</i> parameter.</p>
</li><li><p><span><span> 
</span></span>Allocate an AT_INFO structure, copy the corresponding fields from
the AT_ENUM structure, and return the AT_INFO structure&#39;s address in the <i>ppAtInfo</i>
parameter.</p>
</li><li><p><span><span> 
</span></span>MUST return ERROR_SUCCESS if the call was successful.</p>
</li><li><p><span><span> 
</span></span>Return ERROR_FILE_NOT_FOUND if the specified task cannot be
found.</p>
</li></ul><p>If any errors are raised during the processing, they are
returned. For more information on return codes, see section 2.3.14 and Win32
Error Codes in [MS-ERREF] section 2.1.</p></div>