Re: [python-win32] Opening and enumerating resource many times

2009-01-29 Thread Mark Hammond
On 30/01/2009 5:09 AM, Gustavo Tabares wrote: Hi all, I'm having a problem when opening and enumerating a network resource many times. For example: i = 0 while i< 1: handle = win32wnet.WNetOpenEnum(win32netcon.RESOURCE_CONNECTED, win32netcon.RESOURCETYPE_ANY, 0, None) par

Re: [python-win32] Opening and enumerating resource many times

2009-01-29 Thread Tim Roberts
Gustavo Tabares wrote: > Hi all, > > I'm having a problem when opening and enumerating a network resource > many times. For example: > > i = 0 > > while i < 1: >handle = > win32wnet.WNetOpenEnum(win32netcon.RESOURCE_CONNECTED, > win32netcon.RESOURCETYPE_ANY, 0, None) >partial_n

[python-win32] Opening and enumerating resource many times

2009-01-29 Thread Gustavo Tabares
Hi all, I'm having a problem when opening and enumerating a network resource many times. For example: i = 0 while i < 1: handle = win32wnet.WNetOpenEnum(win32netcon.RESOURCE_CONNECTED, win32netcon.RESOURCETYPE_ANY, 0, None) partial_nr_list = win32wnet.WNetEnumResource(handle)