Desktop Functions: Smart Device Functions:
|
Search Results for "NetSessionDel" in [All]netapi32NET_API_STATUS NetSessionDel(
internal static extern uint NetSessionDel(
''' The NetSessionDel function ends a network session between a server and a workstation.
''' <remarks>Only members of the Administrators or Server Operators local group can successfully execute the NetSessionDel function.</remarks>
<DllImport("netapi32.dll", SetLastError:=True)> Private Shared Function NetSessionDel(<MarshalAs(UnmanagedType.LPWStr)> ByVal serverName As String, <MarshalAs(UnmanagedType.LPWStr)> ByVal UncClientName As String, <MarshalAs(UnmanagedType.LPWStr)> ByVal username As String) As Integer NetSessionDel(Nothing, Nothing, "USERNAMETODELETE") |