A
Academia
I've seen:
PRINTER_DEFAULTS pd;
pd.pDatatype = null;
pd.pDevMode = null;
pd.DesiredAccess = PRINTER_ACCESS_ADMINISTER;
bResult = OpenPrinter(printerName, &hPrinter, &pd);
I looked at what little documentation I could find but can't figure if what
DesiredAccess is set to, gives the user that privilege for this Open
or if it is saying
that the user must have that privilege in order to run this code.
I'd like any user to be able to open the printer
Can you tell me how to set DesiredAccess so any user can execute the
OpenPrinter statement?
Is that possible?
Thanks
PRINTER_DEFAULTS pd;
pd.pDatatype = null;
pd.pDevMode = null;
pd.DesiredAccess = PRINTER_ACCESS_ADMINISTER;
bResult = OpenPrinter(printerName, &hPrinter, &pd);
I looked at what little documentation I could find but can't figure if what
DesiredAccess is set to, gives the user that privilege for this Open
or if it is saying
that the user must have that privilege in order to run this code.
I'd like any user to be able to open the printer
Can you tell me how to set DesiredAccess so any user can execute the
OpenPrinter statement?
Is that possible?
Thanks