I'm having a little trouble understanding the win32net module.
What does the 'level' parameter do for many of the methods?
For example, the NetServerEnum method takes these parameters:
        NetServerEnum( server, level , type , domain , resumeHandle ,
prefLen )
If I use 0 or 1 I get an error:
        "ValueError: This information level is not supported"
but from the win32netdemo.py I see that a value of 100 is being used.
I tried that and it worked. What is this number use for?
How should I set it? Other methods seem to work with different levels.

I'm trying to write a NT Domain network spider.

Yours,
Noah

For example, from the command line at the Windows Command Prompt
I can  do this sort of stuff:

C:\>net view /domain
Domain

---------------------------------------------------------
WORKGROUP
The command completed successfully.

C:\>net view /domain:WORKGROUP
Server Name            Remark

---------------------------------------------------------
\\FS1                    Samba Server
\\OPENBSD                Samba Server OpenBSD mirror
\\NOAH
\\WINKY
The command completed successfully.

C:\>net view \\FS1
Shared resources at \\FS1

Share name   Type         Used as  Comment

---------------------------------------------------------
HappyPrinter Print
inbox        Disk
outbox       Disk
Public       Disk


_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to