WNetCancelConnection2 (mpr)
Last changed: -99.178.174.198

.
Summary
The WNetCancelConnection2 function cancels an existing network connection. You can also call the function to remove remembered network connections that are not currently connected.

C# Signature:

[DllImport("mpr.dll")]
static extern int WNetCancelConnection2(string lpName, Int32 dwFlags, bool bForce);

VB Signature:

Declare Function WNetCancelConnection2 Lib "mpr.dll" Alias "WNetCancelConnection2A" (ByVal lpName As String, ByVal dwFlags As Long, ByVal fForce As Long) As Long

Notes:

VB SIG

<DllImport("mpr.dll")> _

    Shared Function WNetCancelConnection2(ByVal lpName As String, ByVal dwFlags As Long, ByVal fForce As Long) As Long
    End Function

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation

test