The NetScheduleJobGetInfo function retrieves information about a particular job queued on a specified computer. This function requires that the Schedule service be started.
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
);
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in lmat.h.
Import Library: Use netapi32.lib.
Networking (Net) Overview, Net Functions, NetScheduleJobEnum