MPR_INTERFACE_0 structure (mprapi.h)

The MPR_INTERFACE_0 structure contains information for a particular router interface.

Syntax

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

Members

wszInterfaceName[MAX_INTERFACE_NAME_LEN + 1]

Pointer to a Unicode string that contains 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.

dwIfType

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

Requirement Value
Minimum supported client None supported
Minimum supported server Windows 2000 Server [desktop apps only]
Header mprapi.h

See also

MprAdminInterfaceEnum

MprAdminInterfaceGetInfo

ROUTER_CONNECTION_STATE

ROUTER_INTERFACE_TYPE

Router Management Reference

Router Management Structures

Unreachability Reasons