RAS_PORT_0 structure (mprapi.h)

The RAS_PORT_0 structure contains general information regarding a specific RAS port, such as port condition and port name. For more detailed information about a specific port, such as line speed or errors, see RAS_PORT_1.

Syntax

typedef struct _RAS_PORT_0 {
  HANDLE             hPort;
  HANDLE             hConnection;
  RAS_PORT_CONDITION dwPortCondition;
  DWORD              dwTotalNumberOfCalls;
  DWORD              dwConnectDuration;
  WCHAR              wszPortName[MAX_PORT_NAME + 1];
  WCHAR              wszMediaName[MAX_MEDIA_NAME + 1];
  WCHAR              wszDeviceName[MAX_DEVICE_NAME + 1];
  WCHAR              wszDeviceType[MAX_DEVICETYPE_NAME + 1];
} RAS_PORT_0, *PRAS_PORT_0;

Members

hPort

Handle to the port.

hConnection

Handle to the connection.

dwPortCondition

RAS_PORT_CONDITION structure.

dwTotalNumberOfCalls

Specifies the cumulative number of calls this port has serviced.

dwConnectDuration

Specifies the duration of the current connection, in seconds.

wszPortName[MAX_PORT_NAME + 1]

Specifies the port name.

wszMediaName[MAX_MEDIA_NAME + 1]

Specifies the media name.

wszDeviceName[MAX_DEVICE_NAME + 1]

Specifies the device name.

wszDeviceType[MAX_DEVICETYPE_NAME + 1]

Specifies the device type.

Requirements

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

See also

RAS Administration Structures

RAS_PORT_1

RAS_PORT_CONDITION

Remote Access Service Administration Reference