The RasSecurityDialogBegin function is a third-party RAS security DLL entry point that the Windows NT RAS server calls when a remote user tries to connect. This enables the security DLL to begin its authentication of the remote user.
Note that Windows NT currently provides RAS security host support only for serial devices; other types of connections, such as ISDN or a virtual private network (VPN) connection, are not supported.
DWORD WINAPI RasSecurityDialogBegin(
HPORT hPort, |
// RAS handle to the port |
PBYTE pSendBuf, |
// pointer to buffer for sending data |
DWORD SendBufSize, |
// size, in bytes, of the send buffer |
PBYTE pRecvBuf, |
// pointer to buffer for receiving data |
DWORD RecvBufSize, |
// size, in bytes, of the receive buffer |
VOID (WINAPI * RasSecurityDialogComplete) |
// pointer to the completion function |
); |
Note that this handle is valid only in RAS security functions; you cannot use
it in other Win32 I/O functions.
If the security DLL successfully starts the authentication operation, RasSecurityDialogBegin should return NO_ERROR. In this case, the security DLL must later terminate the authentication transaction by calling the function pointed to by the RasSecurityDialogComplete parameter.
If an error occurs, RasSecurityDialogBegin should return a nonzero error code. In this case, the RAS server hangs up the call and records the error in the Windows NT event log. Returning a nonzero error code terminates the authentication transaction, so the security DLL does not need to call the RasSecurityDialogComplete function.
When a Windows NT RAS server receives a call from a remote computer, it calls the RasSecurityDialogBegin function exported by the registered RAS security DLL, if there is one. When the RAS server calls this function, it passes the following information to the security DLL:
The port handle and buffer pointers are valid until you call RasSecurityDialogComplete to terminate the authentication transaction.
Your RasSecurityDialogBegin implementation must return as soon as possible, because the RAS server is blocked and cannot accept any other calls until RasSecurityDialogBegin returns. The RasSecurityDialogBegin function should copy the input parameters and create a thread to communicate with and authenticate the remote user.
RasSecurityDialogComplete, RasSecurityDialogReceive, RasSecurityDialogSend
file: /Techref/os/win/api/win32/func/src/f70_27.htm, 6KB, , updated: 2000/4/7 11:19, local time: 2024/11/10 09:45,
3.145.171.131:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/techref/os/win/api/win32/func/src/f70_27.htm"> RasSecurityDialogBegin</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.