hello , how are you ?
please i want ask about how i can using RasDialDlg() function API in C# to connect the internet by dialup,,
please any one help me
Thank you
Ahmed Osama
my E-mail: [email protected]
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend3days leftRegister
Mike GoldRank #50 · 30.6K pointsPosted Jul 19, 2005, 4:22 AM EDT
typedef struct tagRASDIALDLG { IN DWORD dwSize; IN HWND hwndOwner; IN DWORD dwFlags; IN LONG xDlg; IN LONG yDlg; IN DWORD dwSubEntry; OUT DWORD dwError; IN ULONG_PTR reserved; IN ULONG_PTR reserved2; } RASDIALDLG; and pinvoke the call BOOL RasDialDlg( LPTSTR lpszPhonebook, LPTSTR lpszEntry, LPTSTR lpszPhoneNumber, LPRASDIALDLG lpInfo ); My guess is that it is something like below: [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] struct RASDIALDLG { int size, IntPtr hwndOwner, int flags, Int32 xdialog, Int32 ydialog, int subentry, ref int error, IntPtr reserved, IntPtr reserved2 }[DllImport("Rasdlg.dll")]
public static extern bool RasDialDlg(string phonebook, string entry, string number, RASDIALDLG lpInfo);
-Mike G
Mike GoldRank #50 · 30.6K pointsPosted Jul 19, 2005, 4:23 AM EDT
not sure if the ulong_ptr are Int32 or Int64, because if you look at the definitions, they can be either
depending upon how _WIN64 is defined.
-Mike G
AhmedOsama4 pointsPosted Jul 19, 2005, 11:23 PM EDT
Ahmed Osama