The MprAdminInterfaceDelete function deletes an interface on a specified server.
DWORD MprAdminInterfaceDelete( MPR_SERVER_HANDLE hMprServer, // handle to the router HANDLE hInterface // handle to the interface );
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_INTERFACE_CONNECTED | The interface specified is a demand-dial interface and is currently connected. |
ERROR_INVALID_HANDLE | The hInterface value is invalid. |
Windows NT/2000: Requires Windows 2000.
Header: Declared in Mprapi.h.
Library: Use Mprapi.lib.
Router Management Reference, Router Administration Functions, MprAdminInterfaceCreate, MprAdminServerConnect