[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)

Re: [python-win32] GetVolumeInformation throwing exception

2007-01-10 Thread Gustavo Tabares
Roberts [EMAIL PROTECTED] wrote: Gustavo Tabares wrote: I'm having a problem with the code below and I'm not sure if there is a bug in win32api.GetVolumeInformation. There is a simple workaround, but I'm curious nonetheless. Any help is appreciated. ... The simple workaround is to add os.sep

RE: [python-win32] Re: LsaAddAccountRights help

2005-04-12 Thread Gustavo Tabares
. For the meantime,you should be able to use win32security.LsaAddAccountRights( policy_handle, sid_obj, ('SeServiceLogonRight',) ) hth Roger - Original Message - From: Gustavo Tabares To: python-win32@python.org Sent: Tuesday, April 12, 2005 6:19