MprAdminInterfaceDisconnect function (mprapi.h)

The MprAdminInterfaceDisconnect function disconnects a connected WAN interface.

Syntax

DWORD MprAdminInterfaceDisconnect(
  [in] MPR_SERVER_HANDLE hMprServer,
  [in] HANDLE            hInterface
);

Parameters

[in] hMprServer

Handle to the router on which to execute this call. Obtain this handle by calling MprAdminServerConnect.

[in] hInterface

Handle to the interface. This handle is obtained from a previous call to MprAdminInterfaceCreate.

Return value

If the function succeeds, the return value is NO_ERROR.

If the function fails, the return value is one of the following error codes.

Value Meaning
ERROR_ACCESS_DENIED
The calling application does not have sufficient privileges.
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.
 
 

Router Management Reference, Router Administration Functions, MprAdminInterfaceCreate, MprAdminInterfaceConnect, MprAdminServerConnect

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header mprapi.h
Library Mprapi.lib
DLL Mprapi.dll