MprAdminPortDisconnect

[This is preliminary documentation and subject to change.]

The MprAdminPortDisconnect function disconnects a connection on a specific port.

DWORD MprAdminPortDisconnect(
  RAS_SERVER_HANDLE hRasServer,    // handle to the server
  HANDLE            hPort          // handle to the port
);
 

Parameters

hRasServer
Handle to the Remote Access Server on which to disconnect the port. Obtain this handle by calling MprAdminServerConnect.
hPort
Handle to the port to disconnect. Obtain this handle by calling MprAdminPortEnum.

Return Values

If the function succeeds, the return value will be NO_ERROR.

If the function fails, the return value will be ERROR_INVALID_PARAMETER.

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

MprAdminServerConnect, MprAdminPortEnum