The NetScheduleJobEnum function lists the jobs queued on a specified computer. This function requires that the Schedule service be started.
Only members of the Administrators local group can successfully execute NetScheduleJobEnum on a remote server.
NET_API_STATUS NetScheduleJobEnum(
LPWSTR Servername,
LPBYTE *PointerToBuffer,
DWORD PreferredMaximumLength,
LPDWORD EntriesRead,
LPDWORD TotalEntries,
LPDWORD ResumeHandle
);
Note Each entry returned contains the JobId number of the AT_ENUM structure. The value of this member can be used in functions that require job identifier argument, such as NetScheduleJobDel.
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, NetScheduleJobGetInfo