|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| -
| Header File
| ras.h
| Unicode
| WinNT
| Platform Notes
| Yes
|
|
|
RASDIALPARAMS
The RASDIALPARAMS structure contains parameters used by RasDial to establish a remote access connection.
typedef struct _RASDIALPARAMS {
DWORD dwSize;
TCHAR szEntryName[RAS_MaxEntryName + 1];
TCHAR szPhoneNumber[RAS_MaxPhoneNumber + 1];
TCHAR szCallbackNumber[RAS_MaxCallbackNumber + 1];
TCHAR szUserName[UNLEN + 1];
TCHAR szPassword[PWLEN + 1];
TCHAR szDomain[DNLEN + 1] ;
#if (WINVER >= 0x401)
DWORD dwSubEntry;
DWORD dwCallbackId;
#endif
} RASDIALPARAMS;
Members
dwSize
Specifies the structure size, in bytes.
szEntryName
Specifies a string containing the phonebook entry to use to establish the
connection. An empty string ("") specifies a simple modem connection on the first
available modem port, in which case a nonempty szPhoneNumber must be provided.
szPhoneNumber
Specifies a string containing an overriding phone number. An empty string ("")
indicates that the phonebook entry's phone number should be used. If szEntryName is "", szPhoneNumber cannot be "".
szCallbackNumber
Specifies a string containing a callback phone number. An empty string ("")
indicates that callback should not be used. This string is ignored unless the
user has "Set By Caller" callback permission on the RAS server. An asterisk
indicates that the number stored in the phonebook should be used for callback.
szUserName
Specifies a string containing the user's user name. This string is used to
authenticate the user's access to the remote access server.
szPassword
Specifies a string containing the user's password. This string is used to
authenticate the user's access to the remote access server.
Windows NT: You can use szPassword to send a new password to the remote server when you restart a RasDial connection from a RASCS_PasswordExpired paused state. When changing a
password on an entry that calls Microsoft Networks, you should limit the new password
to 14 characters in length to avoid down-level compatibility problems.
szDomain
Specifies a string containing the domain on which authentication is to occur.
An empty string ("") specifies the domain in which the remote access server is
a member. An asterisk specifies the domain stored in the phonebook for the
entry.
dwSubEntry
Specifies the index of the initial subentry to dial. If the phone-book entry
has no subentries or the dial mode of the phone-book entry is RASEDM_DialAll, dwSubEntry is ignored. If the dial mode is RASEDM_DialAsNeeded, RAS dials the specified
subentry. If dwSubEntry is not a valid subentry index, RAS dials the first subentry. The RASENTRY structure returned by RasGetEntryProperties indicates the dial mode and number of subentries for the phone-book entry.
dwCallbackId
Specifies an application-defined value that RAS passes to your RasDialFunc2 callback function.
Remarks
The szUserName and szPassword strings are used to authenticate the user's access to the remote access
server.
Windows NT:
RAS does not actually log the user onto the network. The user does this in the
usual manner, for example, by logging on with cached credentials prior to
making the connection or by using CTRL+ALT+DEL, after the RAS connection is established.
If both the szUserName and szPassword members are empty strings (""), RAS uses the user name and password of the
current logon context for authentication. For a user mode application, RAS uses
the credentials of the currently logged-on interactive user. For a Win32 service
process, RAS uses the credentials associated with the service.
Windows 95:
RAS uses the szUserName and szPassword strings to log the user onto the network. Windows 95 cannot get the password
of the currently logged-on user, so if both the szUserName and the szPassword members are empty strings (""), RAS leaves the user name and password empty
during authentication.
See Also
RasDial
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|