win32net without NetAddUse method

James_McNaughton jtm63 at shell-1.enteract.com
Fri Oct 6 13:45:30 EDT 2000


"Dag Sunde" <dag at orion.no> writes:

> There is a WNetAddConnection2()...
> could that be of any help?
> 
> See: X:\Python\win32\demos\win32wnet\netresource.htm
> of your installation...
> 
> Dag.
> 

I tried that too without much success. I modified the example
"testwnet.py" so it would work on my machine and now it doesn't raise
an exception but the win32wnet.WNetEnumResource() calls return empty
lists. It was mentioned elsewhere that win32wnet was intended for
Win95/98. Maybe that's the reason. Anyone know for sure? Anyhow, I
neeed to have a list of the currently attached network drives for the
WNetCancelConnection2() function and if I can't enumerate the current
connections I can't break them (at least that appears to be the case).

Anyhow, I'm still curious about the reference to
win32net.NetAddUse(). Does this show up in 1.6 or 2.0 and not in
1.5.2? Is there an updated dll which I should have? Were these people
high?

Jim

 



More information about the Python-list mailing list