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

RAS Security DLL Authentication Transaction

· 52CE 我爱测

Windows NT/Windows 2000 RAS server calls the security DLL's RasSecurityDialogBegin function to begin an authentication of a remote user.

Windows NT/Windows 2000 RAS server calls the security DLL's RasSecurityDialogBegin function to begin an authentication of a remote user. The RAS server is blocked and cannot accept any other calls until RasSecurityDialogBegin returns. For this reason, RasSecurityDialogBegin should copy the input parameters, create a thread to perform the authentication, and return as quickly as possible.

The thread created by the security DLL uses the RasSecurityDialogSend and RasSecurityDialogReceive functions to communicate with the remote computer. These functions are not available for static import from any library. Instead, the security DLL must use the LoadLibrary and GetProcAddress functions to dynamically link to these functions in RASMAN.DLL.

During an authentication transaction, the RAS connection manager on the remote computer displays a terminal window. The thread of the security DLL calls RasSecurityDialogSend to send a message to display in the terminal window. The thread then calls RasSecurityDialogReceive to receive the input that the remote user types in the terminal window. The thread can make any number of RasSecurityDialogSend calls, with each call followed by a RasSecurityDialogReceive call. After each call to RasSecurityDialogReceive, the thread must call one of the wait functions, such as WaitForSingleObject, to wait for the asynchronous send and receive operations to be completed. The RAS server signals an event object when the receive operation has been completed or when an optional time-out interval has elapsed.

When the thread has finished authenticating the remote user, it calls the RasSecurityDialogComplete function. This call passes a SECURITY_MESSAGE structure containing the results of the authentication transaction to the RAS server. The RAS server then performs a cleanup sequence that includes a call to the DLL's RasSecurityDialogEnd function. This gives the security DLL an opportunity to perform any necessary cleanup.

The security DLL can call the RasSecurityDialogGetInfo function to retrieve information about the port associated with an authentication transaction. RasSecurityDialogGetInfo fills in a RAS_SECURITY_INFO structure that indicates the state of the last RasSecurityDialogReceive call for the port.

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)

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

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