win32wnet.WNetCancelConnection2

WNetCancelConnection2(name, flags, force)

Closes network connections made by WNetAddConnection2 or 3

Parameters

name : string

Name of existing connection to be closed

flags : int

Currently determines if the persisent connection information will be updated as a result of this call.

force : int

indicates if the close operation should be forced. (i.e. ignore open files and connections)