Win32wnet problems in win98

Mark Hammond mhammond at
Fri Aug 2 01:15:54 CEST 2002

Kelly wrote:
> I have been trying to use win32wnet.WNetAddConnection2 in Windows 98 but 
> get the following:
>>>>import win32wnet, win32netcon
>>>>win32wnet.WNetAddConnection2(win32netcon.RESOURCETYPE_DISK, "w:", 
> r"\\server\share", None, None, None, win32netcon.CONNECT_UPDATE_PROFILE)
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in ?
> api_error: (50, 'WNetAddConnection2', 'The network request is not 
> supported.')
> Poking around a little with PEView it looks like win32wnet.pyd imports 
> WNetAddConnection2W (Unicode version) and looking at MSDN documentation:
> us/wnet/networks_84z6.asp
> it looks like the Unicode version is not supported directly by 
> win95/98/Me. I'd try to recompile win32wnet.pyd myself but I'm stuck 
> without Visual C. Anybody have any ideas?

This module is built with UNICODE defined.  It should not be.  The next 
release will fix this.  If you are *really* desperate, mail me and I 
will send you a new .pyd - make sure you tell me what Python version you 


More information about the Python-list mailing list