Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than rasapi32, prefix the name with the module name and a period.
<DllImport("rasapi32.dll", CharSet:=CharSet.Auto)> _
Public Function RasGetEntryDialParams( _
ByVal lpszPhonebook As String, _
<[In](), Out()> ByRef lprasdialparams As RASDIALPARAMS, _
<Out()> ByRef lpfPassword As Boolean) As Integer
End Function
.or.
Declare Function RasGetEntryDialParams Lib "rasapi32.dll" (TODO) As TODO
// Only this sample works on my Windows 7 + dotNET4
[DllImport("rasapi32.dll", SetLastError = true)]
public static extern uint RasGetEntryDialParamsW(
string lpszPhonebook,
IntPtr lprasdialparams,
out bool lpfPassword);
Please add some!
public RASDIALPARAMS GetDialParams() {
var lpRasDialParams = new RASDIALPARAMS
{
szEntryName = "Some dial name"
};
The RasGetEntryDialParams function retrieves the connection information saved by the last successful call to the RasDial or RasSetEntryDialParams function for a specified phone-book entry.
10/9/2011 1:47:33 PM - -95.111.240.197
The RasDialDlg function establishes a RAS connection using a specified phone-book entry and the credentials of the logged-on user. The function displays a stream of dialog boxes that indicate the state of the connection operation.
5/10/2010 8:00:51 AM - -93.180.241.4
The RASDIALPARAMS structure contains parameters that are used by RasDial to establish a remote access connection.
3/11/2009 2:13:39 PM - PaulG-87.194.180.52
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).