Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C++
res = ::NetScheduleJobEnum(L"\\\\AMITCH",
    (LPBYTE*)&buffPtr,
    MAX_PREFERRED_LENGTH,
    &nrRead,
    &posRead,
    NULL);


if(res != 0)
{
    int i;
}
else

    for(ai = buffPtr, cnt = 0; cnt < nrRead; cnt++, ++buffPtr)
    {
        str.Format(L"Jobid: %d Command: %s", ai->JobId, ai->Command);
        ::AfxMessageBox(str);
    }

    if(buffPtr != NULL)
        NetApiBufferFree(buffPtr);
    }

i have two ScheduleJob on server AMITCH but i m not hetting it when i run on local system it work fine but on remote i dont get any error but also i m not getting any job and i got value of res = 0 but no result
Posted
Updated 10-Oct-12 23:37pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900