The NetrJobAdd method MUST add a single AT task to the server's task store.

 NET_API_STATUS NetrJobAdd(
   [in, string, unique] ATSVC_HANDLE ServerName,
   [in] LPAT_INFO pAtInfo,
   [out] LPDWORD pJobId
 );

ServerName: Pointer to a Unicode string that MUST specify the server. The client MUST map this string to an RPC binding handle. The server MUST ignore this parameter. For more information, see [C706] sections 4.3.5 and 5.1.5.2.

pAtInfo:  Pointer to an AT_INFO structure (section 2.3.4) that MUST contain the task configuration.

pJobId: MUST return a pointer to the task identifier when the NetrJobAdd method is successful.

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

In response to this request, the server MUST:

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.