MprAdminInterfaceDelete

[This is preliminary documentation and subject to change.]

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
);

Parameters

hMprServer
A handle to the Windows NT router on which to execute this call. Obtain this handle by calling MprAdminServerConnect.
hInterface
Handle to the interface to delete. Obtain this handle by calling MprAdminInterfaceCreate.

Return Values

NO_ERROR
The router interface was deleted successfully.
ERROR_ACCESS_DENIED
The caller does not have sufficient privilege.
ERROR_INTERFACE_CONNECTED
The interface specified is a demand dial interface and is currently connected.
ERROR_INVALID_HANDLE
The hInterface value is invalid.

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, MprAdminServerConnect