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 | |
|
); |