Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

RASDIALPARAMS (Structures)
 
.
Summary

C# Definitions:

[StructLayout(LayoutKind.Sequential,CharSet = CharSet.Auto)]
struct RASDIALPARAMS {
   public int  dwSize;
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.RAS_MaxEntryName + 1)]
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst=256 + 1)]
   public string szEntryName;
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.RAS_MaxPhoneNumber + 1)]
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128 + 1)]
   public string szPhoneNumber;
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.RAS_MaxCallbackNumber + 1)]
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst=128 + 1)]
   public string szCallbackNumber;
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.UsernameLength + 1)]
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst=256 + 1)]
   public string szUserName;
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.PasswordLength + 1)]
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst=256 + 1)]
   public string szPassword;
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.DomainLength + 1)]
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst=15 + 1)]
   public string szDomain;
   public uint    dwSubEntry;
   public IntPtr dwCallbackId;
}

[StructLayout(LayoutKind.Sequential,CharSet = CharSet.Auto)]
internal class RASDIALPARAMS
{
   public int dwSize = Marshal.SizeOf(typeof(RASDIALPARAMS));
   [MarshalAs(UnmanagedType.ByValTStr,SizeConst =
       (int) RasFieldSizeConstants.RAS_MaxEntryName+1)]
   public string szEntryName = null;
   [MarshalAs(UnmanagedType.ByValTStr,SizeConst =
       (int) RasFieldSizeConstants.RAS_MaxPhoneNumber+1)]
   public string szPhoneNumber = null;
   [MarshalAs(UnmanagedType.ByValTStr,SizeConst =
       (int) RasFieldSizeConstants.RAS_MaxCallbackNumber+1)]
   public string szCallbackNumber = null;
   [MarshalAs(UnmanagedType.ByValTStr,SizeConst =
       (int) RasFieldSizeConstants.UNLEN+1)]
   public string szUserName = null;
   [MarshalAs(UnmanagedType.ByValTStr,SizeConst =
       (int) RasFieldSizeConstants.PWLEN+1)]
   public string szPassword = null;
   [MarshalAs(UnmanagedType.ByValTStr,SizeConst =
       (int) RasFieldSizeConstants.DNLEN+1)]
   public string szDomain = null;
   public int dwSubEntry = 0;
   public int dwCallbackId = 0;
}

VB Definition:

Structure RASDIALPARAMS
   Public TODO
End Structure

User-Defined Field Types:

None.

Notes:

Most RAS specific constants are documented at :

http://www.pinvoke.net/default.aspx/Constants.ras

None.

Other constants are:

const int UsernameLength = 256;

const int PasswordLength = 256;

const int DomainLength = 15;

Alternative Managed API:

http://www.codeplex.com/DotRas

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions