MPR_INTERFACE_0

The MPR_INTERFACE_0 structure contains information for a particular router interface.

typedef struct _MPR_INTERFACE_0 {
  WCHAR                  wszInterfaceName[MAX_INTERFACE_NAME_LEN+1];
  HANDLE                     hInterface;
  BOOL                       fEnabled;
  ROUTER_INTERFACE_TYPE      IfType;
  ROUTER_CONNECTION_STATE    dwConnectionState;
  DWORD                      fUnReachabilityReasons;
  DWORD                      dwLastError;
} MPR_INTERFACE_0, * PMPR_INTERFACE_0;

Members

wszInterfaceName
Pointer to a Unicode string containing the name of the interface.
hInterface
Handle to the interface.
fEnabled
Specifies whether the interface is enabled. This member is TRUE if the interface is enabled, FALSE if the interface is administratively disabled.
IfType
Specifies the type of interface.
dwConnectionState
Specifies the current state of the interface, for example connected, disconnected, or unreachable. For a list of possible states, see ROUTER_CONNECTION_STATE.
fUnReachabilityReasons
Specifies a value that represents a reason why the interface cannot be reached. See Unreachability Reasons for a list of possible values.
dwLastError
Specifies a nonzero value if the interface fails to connect.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Mprapi.h.

See Also

Router Management Reference, Router Management Structures, MprAdminInterfaceEnum, MprAdminInterfaceGetInfo, ROUTER_CONNECTION_STATE, ROUTER_INTERFACE_TYPE, Unreachability Reasons