Platform SDK: RAS/Routing and RAS

RAS_SECURITY_INFO

The RAS_SECURITY_INFO structure is used with the RasSecurityDialogGetInfo function to return information about the RAS port associated with a RAS security DLL authentication transaction.

typedef struct _RAS_SECURITY_INFO {
  DWORD LastError;
  DWORD BytesReceived;
  CHAR DeviceName[RASSAPI_MAX_DEVICE_NAME+1];
}RAS_SECURITY_INFO,*PRAS_SECURITY_INFO;

Members

LastError
Specifies an error code that indicates the state of the last RasSecurityDialogReceive call for the port. If the receive operation failed, LastError is one of the error codes defined in Raserror.h or Winerror.h. Otherwise, LastError is one of the following values.
Value Meaning
SUCCESS The receive operation has been successfully completed. The BytesReceived member indicates the number of bytes received.
PENDING The receive operation is pending completion.

BytesReceived
Specifies the number of bytes received in the most recent RasSecurityDialogReceive operation. This member is valid only if the value of the LastError member is SUCCESS.
DeviceName
Specifies a null-terminated string that contains the user-friendly display name of the device on the port, such as Hayes SmartModem 9600.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Windows 95/98: Unsupported.
  Header: Declared in Rasshost.h.

See Also

Remote Access Service (RAS) Overview, RAS Server Administration Structures, RasSecurityDialogGetInfo, RasSecurityDialogReceive