DosPrintJobSetInfo

The DosPrintJobSetInfo API changes the instructions for a print job. You also can use it to give a particular print job priority over other print jobs by changing either the position of the job in the printer queue or its priority.

If the spooler is restarted, the order in which jobs are put on the queue depends on the priority and age of the job. This order might be different from the order following the DosPrintJobSetInfo call.