Partager via


2.2.1.2.75 RASI_PORT_0

The RASI_PORT_0 structure contains general information regarding a specific RRAS port, such as the port condition and the port name.

 typedef struct _RASI_PORT_0 {
   DWORD dwPort;
   DWORD dwConnection;
   RAS_PORT_CONDITION dwPortCondition;
   DWORD dwTotalNumberOfCalls;
   DWORD dwConnectDuration;
   WCHAR wszPortName[17];
   WCHAR wszMediaName[17];
   WCHAR wszDeviceName[129];
   WCHAR wszDeviceType[17];
 } RASI_PORT_0,
  *PRASI_PORT_0;

dwPort: A unique identifier for the port.

dwConnection: A unique identifier that specifies the connection.

dwPortCondition: A RAS_PORT_CONDITION (section 2.2.1.1.4) enumeration value indicating the condition of a port specified in dwPort.

dwTotalNumberOfCalls: Specifies the cumulative number of calls that this port has serviced.

dwConnectDuration: Specifies the duration of the current connection on this port, in seconds.

wszPortName: Specifies the port name.

wszMediaName: Specifies the media name.

wszDeviceName: Specifies the device name.

wszDeviceType: Specifies the device type. This member can be one of the following string constants.

Value

Meaning

MPRDT_Modem

"Modem"

A modem that is accessed through a Component Object Model (COM) port.

MPRDT_Isdn

"Isdn"

An ISDN adapter with the corresponding NDISWAN driver installed.

MPRDT_X25

"x25"

An X.25 adapter with the corresponding NDISWAN driver installed.

MPRDT_Vpn

"Vpn"

A virtual private network (VPN) connection.

MPRDT_Pad

"Pad"

A packet assembler/disassembler.

MPRDT_Generic

"GENERIC"

Generic.

MPRDT_Serial

"SERIAL"

Direct serial connection through a serial port.

MPRDT_FrameRelay

"FRAMERELAY"

Frame relay.

MPRDT_Atm

"ATM"

Asynchronous transfer mode (ATM).

MPRDT_Sonet

"SONET"

Sonet.

MPRDT_SW56

"SW56"

Switched 56K access.

MPRDT_Irda

"IRDA"

An Infrared Data Association (IrDA)-compliant device.

MPRDT_Parallel

"PARALLEL"

Direct parallel connection through a parallel port.