Re: how can i programmatically enable /disable "File and printer shari



There are several ways on how to do this.

- stop 'Server' service (a rude way)
- enum all bindings (via INetCfgBindingPath) and disable them (see solution
provided at OSR: http://www.osronline.com/showThread.cfm?link=8331 )
- use NetShareEnum + NetShareDel

--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.
"oncer" <oncer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:88664C05-A3CE-42B0-9909-3B9FBBCB155E@xxxxxxxxxxxxxxxx
how can i programmatically (C++) enable /disable "File and printer
sharing
for Microsoft Networks" ??

Is here any solution working under XP and Vista ??


.