Re: How do I set security for a printer for a logged



Thank you I will see what I can do with this.
--
\Manfred



"Kellie Fitton" wrote:

On Oct 18, 12:52 pm, Manfred Wilner <mwil...@xxxxxxxxxxxxxxx> wrote:
Here is my problem.
I install a printer on a XP Pro system that has bi-directional support
through a Language Monitor.
In order to work properly the printer user must have all access to Manage
Printers and Documents or it will not print. In a logged down system the
standard user can't print unless I change the permissions in Printer
Properties -> Security for the user or Everyone to allow to Manage Printers
and Documents.

Now I can't do this via the UI since there are too many PC's to administer
and I am looking for a way to do this programatically. I have not found a way
to do this specifically for the printer user.
Can anyone point me to a solution?

Thanks a lot.
--
\Manfred


Hi,

You can use the following APIs to Get/Set the printer's security
information:

GetPrinter()

EnumPrinters() PRINTER_INFO_3

OpenPrinter()

SetPrinter() PRINTER_INFO_3

ClosePrinter()

http://msdn2.microsoft.com/en-us/library/ms535494.aspx

http://msdn2.microsoft.com/en-us/library/ms536005.aspx

http://msdn2.microsoft.com/en-us/library/ms536027.aspx

http://msdn2.microsoft.com/en-us/library/ms535488.aspx

http://msdn2.microsoft.com/en-us/library/ms535648.aspx

Kellie.



.