Cedric
2006-07-28 09:10:01 UTC
Hello,
I'm trying to use The SetJob API so for testing purpose I call Getjob to
retreive a valid structure JOB_INFO_2 And then I call SetJob with the same
structure.
But result of SetJob is an Error 5 : ACCESS_DENIED. I don't understand
because I'm PC's Administrator, my printer is local, I use OpenPrinter with
desiredAccess set to PRINTER_ALL_ACCESS.
I red something about the value of JOB_INFO_2's member SecurityDescriptor
that must be set to null before calling SetJob but is already set to null.
Thanks For Help.
I'm trying to use The SetJob API so for testing purpose I call Getjob to
retreive a valid structure JOB_INFO_2 And then I call SetJob with the same
structure.
But result of SetJob is an Error 5 : ACCESS_DENIED. I don't understand
because I'm PC's Administrator, my printer is local, I use OpenPrinter with
desiredAccess set to PRINTER_ALL_ACCESS.
I red something about the value of JOB_INFO_2's member SecurityDescriptor
that must be set to null before calling SetJob but is already set to null.
Thanks For Help.