大网数据广告活动
网络与域名解析

Function Comparison Windows 2000 vs. RRAS Redistributable

· 52CE 我爱测

The RAS API is distributed as a feature of Windows 2000 and later operating systems and is available as a redistributable for Windows NT 4.0 with Service Pack 3 (SP3) and earlier.

The RAS API is distributed as a feature of Windows 2000 and later operating systems and is available as a redistributable for Windows NT 4.0 with Service Pack 3 (SP3) and earlier. RAS provides the same functionality in both of these forms but the naming convention that is used is different for the reference elements in each version of the RAS API.

The RAS functions for Windows NT 4.0 with SP3 and earlier typically begin with the "RasAdmin" prefix. The analogous functions for Routing and Remote Access Service (RRAS) begin with the "MprAdmin" prefix. For example, RAS provides a function called RasAdminPortGetInfo. The analogous function in RRAS is called MprAdminPortGetInfo. As a similar example, RAS provides the callback function RasAdminGetIpAddressForUser. RRAS provides a similar callback function called MprAdminGetIpAddressForUser. Exceptions to this rule are RasAdminPortClearStatistics, which under RRAS is MprAdminPortClearStats, and RasAdminFreeBuffer, which under RRAS is MprAdminBufferFree.

The following table lists the Windows NT 4.0 SP3 RAS functions and the corresponding RRAS functions.

Windows NT 4.0 RAS RRAS
RasAdminAcceptNewConnection MprAdminAcceptNewConnection
RasAdminConnectionHangupNotification MprAdminConnectionHangupNotification
RasAdminFreeBuffer MprAdminBufferFree
RasAdminGetErrorString MprAdminGetErrorString
RasAdminGetIpAddressForUser MprAdminGetIpAddressForUser
RasAdminPortClearStatistics MprAdminPortClearStats
RasAdminPortDisconnect MprAdminPortDisconnect
RasAdminPortEnum MprAdminPortEnum
RasAdminPortGetInfo MprAdminPortGetInfo
RasAdminReleaseIpAddress MprAdminReleaseIpAddress
RasAdminUserGetInfo MprAdminUserGetInfo
RasAdminUserSetInfo MprAdminUserSetInfo

Although the RRAS functions are similar to their Windows NT 4.0 with SP3 and earlier RAS counterparts in functionality, RRAS functions often take a different set of parameters. See the reference page for a particular function for complete information on that function's parameter list.

The RRAS redistributable for Windows NT 4.0 with SP3 and earlier adds the following functions, which have no RAS counterparts:

MprAdminAcceptNewLink

MprAdminConnectionClearStats

MprAdminConnectionEnum

MprAdminConnectionGetInfo

MprAdminGetPDCServer

MprAdminIsServiceRunning

MprAdminLinkHangupNotification

MprAdminPortReset

MprAdminServerConnect

MprAdminServerDisconnect

In addition to the preceding functions, Windows 2000 and later operating systems add the following functions:

MprAdminSendUserMessage

MprAdminAcceptNewConnection2

MprAdminConnectionHangupNotification2

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。