From: kobi1 on
I am trying to enable the printer sharing in windows XP
programmatically.
The operation i am trying to imitate is:
1. right click on a local printer (in printers and faxes window).
2. choose sharing from menu.
3. press on the "I understand the security risk..." hyper link.
4. choose just enable printer sharing.
5. press on the "OK" button.

I have tried to look all over the web for what happening below the
surface when i choose the "Just enable printer sharing" but could not
find a clue.


Please help me understand what is happening when i choose the "just
enable printer sharing" and how can I imitate it?


Thanks,
Kobi.
From: Christian ASTOR on
On 1 juil, 13:52, ko...(a)hotmail.com wrote:

> Please help me understand what is happening when i choose the "just
> enable printer sharing" and how can I imitate it?

OpenPrinter()-GetPrinter()
Attributes |= PRINTER_ATTRIBUTE_SHARED
SetPrinter()-ClosePrinter()
From: kobi1 on
You have provided me a way to share a specific printer.
I want to enable the printer sharing, meaning I want to imitate the
press on "Just enable printer sharing" hyperlink.

Thanks for trying to help anyway :)
Kobi.