Update of /cvsroot/pywin32/pywin32/win32/Demos/win32wnet
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4261/win32/Demos/win32wnet
Modified Files:
Tag: py3k
netresource.htm testwnet.py
Log Message:
merge lots of changes (most via 2to3) from the trunk
Index: testwnet.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Demos/win32wnet/testwnet.py,v
retrieving revision 1.2.4.4
retrieving revision 1.2.4.5
diff -C2 -d -r1.2.4.4 -r1.2.4.5
*** testwnet.py 11 Dec 2008 04:13:35 -0000 1.2.4.4
--- testwnet.py 5 Jan 2009 12:51:27 -0000 1.2.4.5
***************
*** 88,91 ****
--- 88,95 ----
win32wnet.WNetCancelConnection2(localName, 0, 0)
+ # and one more time using WNetAddConnection3
+ win32wnet.WNetAddConnection3(0, nr)
+ win32wnet.WNetCancelConnection2(localName, 0, 0)
+
# Only do the first share that succeeds.
break
Index: netresource.htm
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Demos/win32wnet/netresource.htm,v
retrieving revision 1.1
retrieving revision 1.1.4.1
diff -C2 -d -r1.1 -r1.1.4.1
*** netresource.htm 2 Sep 1999 00:19:27 -0000 1.1
--- netresource.htm 5 Jan 2009 12:51:27 -0000 1.1.4.1
***************
*** 106,113 ****
makes a connection to a network resource. The
function can redirect a local device to the
! network resource. This function was written
! before the PyNETRESOURCE object was created and
! thus does not use PyNETRESOURCE in this release
! (this will be updated at a later date). The first
four parameters correspond to the NETRESOURCE
object that is being constructed for the Win32API
--- 106,110 ----
makes a connection to a network resource. The
function can redirect a local device to the
! network resource. The first
four parameters correspond to the NETRESOURCE
object that is being constructed for the Win32API
***************
*** 121,124 ****
--- 118,127 ----
WNetAddConnection3 is the only interface
supported by Windows CE.</dd>
+ <dd>Note that this function has since been updated to optionally
+ accept a NETRESOURCE object making its signature almost
+ identical to the win32 version - see the pywin32 help for
+ more information. Also note that WNetAddConnection3
+ is also implemented, which is similar to this function but
+ accepts a HWND as the first (or named) param.
</dl>
</dd>
|