Win32net.NetServerEnum Unicode problem

jcashman55 at my-deja.com jcashman55 at my-deja.com
Thu Jun 8 12:12:59 EDT 2000


I have Hammond's Python on Win32 book, and it doesn't list another
parameter relating to domain name.  Plus it doesn't seem to work.
Complains that the system call level is not correct, which is usually
when I don't have the right number of params or type of params.

jim

In article <erz%4.2026$wp.166067 at pouncer.easynews.com>,
  "Roger Upole" <rupole at compaq.net> wrote:
> It looks like you are missing the domain name, which should
> be right after SV_TYPE_ALL.
>         Roger Upole
>
> <jcashman55 at my-deja.com> wrote in message
> news:8hlnd2$lrm$1 at nnrp2.deja.com...
> > Having trouble with the following line:
> >
> >         entries, total, resume= \
> > win32net.NetServerEnum('Dopey', \
> > 102,win32netcon.SV_TYPE_ALL, 0, 4096)
> >
> > When I run code that contains this line, I get:
> >
> > TypeError: The object can not be converted to a
> > Unicode object
> >
> > I have run some of the the other win32net calls
> > without a problem.  Anyone have an idea?
> >
> > Thanks.
> >
> > Jim
> >
> >
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list