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); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)