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

RASENTRY (Structures)
 
.
Summary
The RASENTRY structure describes a phone-book entry. The RasSetEntryProperties and RasGetEntryProperties functions use this structure to set and retrieve the properties of a phone-book entry.

C# Definition:

struct RASENTRY
{
        public int      dwSize;
        public uint     dwfOptions;
        //
        // Location/phone number.
        //
        public int      dwCountryID;
        public int      dwCountryCode;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)RAS_MaxAreaCode + 1)]
        public string   szAreaCode;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)RAS_MaxPhoneNumber + 1)]
        public string   szLocalPhoneNumber;
        public int      dwAlternateOffset;
        //
        // PPP/Ip
        //
        public RASIPADDR ipaddr;
        public RASIPADDR ipaddrDns;
        public RASIPADDR ipaddrDnsAlt;
        public RASIPADDR ipaddrWins;
        public RASIPADDR ipaddrWinsAlt;
        //
        // Framing
        //
        public int dwFrameSize;
        public int dwfNetProtocols;
        public int dwFramingProtocol;
        //
        // Scripting
        //
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MAX_PATH)]
        public string szScript;
        //
        // AutoDial
        //
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MAX_PATH)]
        public string szAutodialDll;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MAX_PATH)]
        public string szAutodialFunc;
        //
        // Device
        //
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)RAS_MaxDeviceType + 1)]
        public string szDeviceType;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)RAS_MaxDeviceName + 1)]
        public string szDeviceName;
        //
        // X.25
        //
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)RAS_MaxPadType + 1)]
        public string szX25PadType;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)RAS_MaxX25Address + 1)]
        public string szX25Address;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)RAS_MaxFacilities + 1)]
        public string szX25Facilities;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)RAS_MaxUserData + 1)]
        public string szX25UserData;
        public int    dwChannels;
        //
        // Reserved
        //
        public int dwReserved1;
        public int dwReserved2;
        #if WINVER401
        //
        // Multilink and BAP
        //
        public int       dwSubEntries;
        public int       dwDialMode;
        public int       dwDialExtraPercent;
        public int       dwDialExtraSampleSeconds;
        public int       dwHangUpExtraPercent;
        public int       dwHangUpExtraSampleSeconds;
        //
        // Idle time out
        //
        public int       dwIdleDisconnectSeconds;
        #endif
        #if WINVER500
        public EntryTypes       dwType;
        public EncryptionTypes  dwEncryptionType;
        public int          dwCustomAuthKey;
        public GUID         guidId;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MAX_PATH)]
        public string       szCustomDialDll;
        public int          dwVpnStrategy;
        #endif
        #if WINVER501
        public int      dwfOptions2;
        public int      dwfOptions3;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)RAS_MaxDnsSuffix + 1)]
        public string   szDnsSuffix;
        public int      dwTcpWindowSize;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MAX_PATH)]
        public string   szPrerequisitePbk;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = (int)RAS_MaxEntryName + 1)]
        public string   szPrerequisiteEntry;
        public int      dwRedialCount;
        public int      dwRedialPause;
        #endif
}

VB Definition:

Structure RASENTRYNAME
   Public TODO
End Structure

User-Defined Field Types:

None.

Notes:

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
Find References
Show Printable Version
Revisions