NetScheduleJobGetInfo

The NetScheduleJobGetInfo function retrieves information about a particular job queued on a specified computer. This function requires that the Schedule service be started.

Security Requirements

Only members of the Administrators local group can successfully execute NetScheduleJobGetInfo on a remote server.

NET_API_STATUS NetScheduleJobGetInfo(
  LPWSTR Servername,       
  DWORD JobId,             
  LPBYTE *PointerToBuffer  
);
 

Parameters

Servername
Pointer to a Unicode string containing the name of the remote server on which the function is to execute. A NULL pointer or string specifies the local computer.
JobId
A job identifier of a job in question.
PointerToBuffer
On return a pointer to the buffer containing the AT_INFO structure describing the job in question.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in lmat.h.
  Import Library: Use netapi32.lib.

See Also

Networking (Net) Overview, Net Functions, NetScheduleJobEnum