MprAdminInterfaceDisconnect
[This is preliminary documentation and subject to change.]
The MprAdminInterfaceDisconnect function disconnects a connected WAN interface.
DWORD MprAdminInterfaceDisconnect(
MPR_SERVER_HANDLE hMprServer, // handle to router
HANDLE hInterface // handle to interface
);
Parameters
-
hMprServer
-
Handle to the Windows NT router on which to execute this call. Obtain this handle by calling MprAdminServerConnect.
-
hInterface
-
Handle to the interface. This handle is obtained from a previous call to MprAdminInterfaceCreate.
Return Values
-
NO_ERROR
-
Success
-
ERROR_ACCESS_DENIED
-
The caller does not have sufficient privilege.
-
ERROR_DDM_NOT_RUNNING
-
The Demand Dial Manager (DDM) is not running.
-
ERROR_INVALID_HANDLE
-
The hInterface value is invalid.
-
ERROR_INTERFACE_NOT_CONNECTED
-
This interface is not connected. Therefore, it cannot be disconnected.
QuickInfo
Windows NT: Use version 5.0 and later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in mprapi.h.
Import Library: Link with mprapi.lib.
See Also
MprAdminInterfaceCreate, MprAdminInterfaceConnect, MprAdminServerConnect