Package com.sun.jna.platform.win32
Class WinRas.RASENTRY
java.lang.Object
com.sun.jna.Structure
com.sun.jna.platform.win32.WinRas.RASENTRY
- Direct Known Subclasses:
WinRas.RASENTRY.ByReference
- Enclosing interface:
- WinRas
@FieldOrder({"dwSize","dwfOptions","dwCountryID","dwCountryCode","szAreaCode","szLocalPhoneNumber","dwAlternateOffset","ipaddr","ipaddrDns","ipaddrDnsAlt","ipaddrWins","ipaddrWinsAlt","dwFrameSize","dwfNetProtocols","dwFramingProtocol","szScript","szAutodialDll","szAutodialFunc","szDeviceType","szDeviceName","szX25PadType","szX25Address","szX25Facilities","szX25UserData","dwChannels","dwReserved1","dwReserved2","dwSubEntries","dwDialMode","dwDialExtraPercent","dwDialExtraSampleSeconds","dwHangUpExtraPercent","dwHangUpExtraSampleSeconds","dwIdleDisconnectSeconds","dwType","dwEncryptionType","dwCustomAuthKey","guidId","szCustomDialDll","dwVpnStrategy","dwfOptions2","dwfOptions3","szDnsSuffix","dwTcpWindowSize","szPrerequisitePbk","szPrerequisiteEntry","dwRedialCount","dwRedialPause","ipv6addrDns","ipv6addrDnsAlt","dwIPv4InterfaceMetric","dwIPv6InterfaceMetric","ipv6addr","dwIPv6PrefixLength","dwNetworkOutageTime"})
public static class WinRas.RASENTRY
extends Structure
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.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.sun.jna.Structure
Structure.ByValue, Structure.FieldOrder, Structure.StructField
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Specifies the offset, in bytes, from the beginning of the structure to a list of consecutive null-terminated strings.int
Reserved for future useint
Specifies the country/region code portion of the phone number.int
Specifies the TAPI country/region identifier.int
This member is used for Extensible Authentication Protocol (EAP).int
Specifies a percent of the total bandwidth available from the currently connected subentries.int
Specifies the number of seconds that current bandwidth usage must exceed the threshold specified by dwDialExtraPercent before RAS dials an additional subentry.int
Specifies whether RAS should dial all of this entry's multilink subentries when the entry is first connected.int
The type of encryption to use with the connection.int
Specifies the network protocols to negotiate.int
A set of bit flags that specify connection options.int
A set of bits that specify connection options.int
This parameter is reserved for future use.int
Specifies the IP address of a secondary WINS server to be used while this connection is active.int
Specifies the framing protocol used by the server.int
Specifies a percent of the total bandwidth available from the currently connected subentries.int
Specifies the number of seconds that current bandwidth usage must be less than the threshold specified by dwHangUpExtraPercent before RAS terminates an existing subentry connection.int
Specifies the number of seconds after which the connection is terminated due to inactivity.int
Sets the metric of the IPv4 stack for this interface.int
Sets the metric of the IPv6 stack for this interface.int
The length of the IPv6 address prefix in ipv6addr.int
Specifies the amount of time, in minutes, that IKEv2 packets will be retransmitted without a response before the connection is considered lost.int
Specifies the number of times RAS attempts to redial a connection.int
Specifies the number of seconds to wait between redial attempts.int
Reserved.int
Reserved.int
Specifies the size, in bytes, of the RASENTRY structure.int
Specifies the number of multilink subentries associated with this entry.int
Specifies the TCP window size for all TCP sessions that run over this connection.int
The type of phone-book entry.int
The VPN strategy to use when dialing a VPN connection.The GUID (Globally Unique Identifier) that represents this phone-book entry.Specifies the IP address to be used while this connection is active.Specifies the IP address of the DNS server to be used while this connection is active.Specifies the IP address of a secondary or backup DNS server to be used while this connection is active.Specifies the IP address of the WINS server to be used while this connection is active.Specifies the IP address of a secondary WINS server to be used while this connection is active.Specifies the client's IPv6 address negotiated by the server and the client.Contains the IPv6 address of the preferred DNS.Contains the IPv6 address of the alternate DNS.char[]
Specifies the area code as a null-terminated string.char[]
Windows 2000 or later: This member is no longer supported.char[]
Windows 2000 or later: This member is no longer supported.char[]
A null-terminated string that contains the full path and file name for the dynamic link library (DLL) that implements the custom-dialing functions.char[]
Contains a null-terminated string that contains the name of a TAPI device to use with this phone-book entry, for example, "XYZ Corp 28800 External".char[]
Specifies a null-terminated string that indicates the RAS device type referenced by szDeviceName.char[]
Pointer to a string that specifies the Domain Name Service (DNS) suffix for the connection.char[]
Specifies a null-terminated device-type specific destination string.char[]
Pointer to a null-terminated string that specifies a phone-book entry.char[]
Pointer to a null-terminated string that specifies the full path and file name of a phone-book (PBK) file.char[]
Specifies a null-terminated string that contains the name of the script file.char[]
Contains a null-terminated string that identifies the X.25 address to which to connect .char[]
Contains a null-terminated string that specifies the facilities to request from the X.25 host at connection.char[]
Contains a null-terminated string that identifies the X.25 PAD type.char[]
Contains a null-terminated string that specifies additional connection information supplied to the X.25 host at connection.Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
dwSize
public int dwSizeSpecifies the size, in bytes, of the RASENTRY structure. Before calling RasSetEntryProperties or RasGetEntryProperties, set dwSize to sizeof(RASENTRY) to identify the version of the structure. -
dwfOptions
public int dwfOptionsA set of bit flags that specify connection options. Set one or more of the following flags. -
dwCountryID
public int dwCountryIDSpecifies the TAPI country/region identifier. Use the RasGetCountryInfo function to enumerate country/region identifiers. This member is ignored unless the dwfOptions member specifies the RASEO_UseCountryAndAreaCodes flag. -
dwCountryCode
public int dwCountryCodeSpecifies the country/region code portion of the phone number. The country/region code must correspond to the country/region identifier specified by dwCountryID. If dwCountryCode is zero, the country/region code is based on the country/region identifier specified by dwCountryID. This member is ignored unless dwfOptions specifies the RASEO_UseCountryAndAreaCodes flag. -
szAreaCode
public char[] szAreaCodeSpecifies the area code as a null-terminated string. If the dialing location does not have an area code, specify an empty string (""). Do not include parentheses or other delimiters in the area code string. For example, "206" is a valid area code; "(206)" is not. This member is ignored unless the dwfOptions member specifies the RASEO_UseCountryAndAreaCodes flag. -
szLocalPhoneNumber
public char[] szLocalPhoneNumberSpecifies a null-terminated device-type specific destination string. The following table describes the contents of the szLocalPhoneNumber member for various device types. -
dwAlternateOffset
public int dwAlternateOffsetSpecifies the offset, in bytes, from the beginning of the structure to a list of consecutive null-terminated strings. The last string is terminated by two consecutive null characters. The strings are alternate phone numbers that RAS dials in the order listed if the primary number (see szLocalPhoneNumber) fails to connect. The alternate phone number strings are ANSI or Unicode, depending on whether you use the ANSI or Unicode version of the structure. -
ipaddr
Specifies the IP address to be used while this connection is active. This member is ignored unless dwfOptions specifies the RASEO_SpecificIpAddr flag. -
ipaddrDns
Specifies the IP address of the DNS server to be used while this connection is active. This member is ignored unless dwfOptions specifies the RASEO_SpecificNameServers flag. -
ipaddrDnsAlt
Specifies the IP address of a secondary or backup DNS server to be used while this connection is active. This member is ignored unless dwfOptions specifies the RASEO_SpecificNameServers flag. -
ipaddrWins
Specifies the IP address of the WINS server to be used while this connection is active. This member is ignored unless dwfOptions specifies the RASEO_SpecificNameServers flag. -
ipaddrWinsAlt
Specifies the IP address of a secondary WINS server to be used while this connection is active. This member is ignored unless dwfOptions specifies the RASEO_SpecificNameServers flag. -
dwFrameSize
public int dwFrameSizeSpecifies the IP address of a secondary WINS server to be used while this connection is active. This member is ignored unless dwfOptions specifies the RASEO_SpecificNameServers flag. -
dwfNetProtocols
public int dwfNetProtocolsSpecifies the network protocols to negotiate. This member can be a combination of the following flags. -
dwFramingProtocol
public int dwFramingProtocolSpecifies the framing protocol used by the server. PPP is the emerging standard. SLIP is used mainly in UNIX environments. This member can be one of the following flags. -
szScript
public char[] szScriptSpecifies a null-terminated string that contains the name of the script file. The file name should be a full path. This field is only used for analog dial-up connections. -
szAutodialDll
public char[] szAutodialDllWindows 2000 or later: This member is no longer supported. The szCustomDialDll member of the RASENTRY structure specifies the path to the custom-dial DLL. For more information on custom dialers, see RAS Custom Dialers. -
szAutodialFunc
public char[] szAutodialFuncWindows 2000 or later: This member is no longer supported. See RAS Custom Dialers for more information on custom dialers. -
szDeviceType
public char[] szDeviceTypeSpecifies a null-terminated string that indicates the RAS device type referenced by szDeviceName. This member can be one of the following string constants. -
szDeviceName
public char[] szDeviceNameContains a null-terminated string that contains the name of a TAPI device to use with this phone-book entry, for example, "XYZ Corp 28800 External". To enumerate all available RAS-capable devices, use the RasEnumDevices function. -
szX25PadType
public char[] szX25PadTypeContains a null-terminated string that identifies the X.25 PAD type. Set this member to "" unless the entry should dial using an X.25 PAD. The szX25PadType string maps to a section name in PAD.INF. -
szX25Address
public char[] szX25AddressContains a null-terminated string that identifies the X.25 address to which to connect . Set this member to "" unless the entry should dial using an X.25 PAD or native X.25 device. -
szX25Facilities
public char[] szX25FacilitiesContains a null-terminated string that specifies the facilities to request from the X.25 host at connection. This member is ignored if szX25Address is an empty string (""). -
szX25UserData
public char[] szX25UserDataContains a null-terminated string that specifies additional connection information supplied to the X.25 host at connection. This member is ignored if szX25Address is an empty string (""). -
dwChannels
public int dwChannelsReserved for future use -
dwReserved1
public int dwReserved1Reserved. Must be zero. -
dwReserved2
public int dwReserved2Reserved. Must be zero. -
dwSubEntries
public int dwSubEntriesSpecifies the number of multilink subentries associated with this entry. When calling RasSetEntryProperties, set this member to zero. To add subentries to a phone-book entry, use the RasSetSubEntryProperties function. -
dwDialMode
public int dwDialModeSpecifies whether RAS should dial all of this entry's multilink subentries when the entry is first connected. This member can be one of the following values. -
dwDialExtraPercent
public int dwDialExtraPercentSpecifies a percent of the total bandwidth available from the currently connected subentries. RAS dials an additional subentry when the total bandwidth used exceeds dwDialExtraPercent percent of the available bandwidth for at least dwDialExtraSampleSeconds seconds. -
dwDialExtraSampleSeconds
public int dwDialExtraSampleSecondsSpecifies the number of seconds that current bandwidth usage must exceed the threshold specified by dwDialExtraPercent before RAS dials an additional subentry. -
dwHangUpExtraPercent
public int dwHangUpExtraPercentSpecifies a percent of the total bandwidth available from the currently connected subentries. RAS terminates (hangs up) an existing subentry connection when total bandwidth used is less than dwHangUpExtraPercent percent of the available bandwidth for at least dwHangUpExtraSampleSeconds seconds. -
dwHangUpExtraSampleSeconds
public int dwHangUpExtraSampleSecondsSpecifies the number of seconds that current bandwidth usage must be less than the threshold specified by dwHangUpExtraPercent before RAS terminates an existing subentry connection. -
dwIdleDisconnectSeconds
public int dwIdleDisconnectSecondsSpecifies the number of seconds after which the connection is terminated due to inactivity. Note that unless the idle time out is disabled, the entire connection is terminated if the connection is idle for the specified interval. This member can specify a number of seconds, or one of the following values. -
dwType
public int dwTypeThe type of phone-book entry. This member can be one of the following types. -
dwEncryptionType
public int dwEncryptionTypeThe type of encryption to use with the connection. The encryption is either provided by IPSec (for L2TP/IPSec connections) or by Microsoft Point-to-Point Encryption (MPPE). This member can be one of the following values. -
dwCustomAuthKey
public int dwCustomAuthKeyThis member is used for Extensible Authentication Protocol (EAP). This member contains the authentication key provided to the EAP vendor. -
guidId
The GUID (Globally Unique Identifier) that represents this phone-book entry. This member is read-only. -
szCustomDialDll
public char[] szCustomDialDllA null-terminated string that contains the full path and file name for the dynamic link library (DLL) that implements the custom-dialing functions. This DLL should export Unicode versions of functions named RasCustomDial, RasCustomHangup, RasCustomEntryDlg, and RasCustomDialDlg. These functions should have prototypes RasCustomDialFn and RasCustomHangUpFn as defined in Ras.h, and RasCustomDialDlgFn and RasCustomEntryDlgFn as defined in Rasdlg.h. -
dwVpnStrategy
public int dwVpnStrategyThe VPN strategy to use when dialing a VPN connection. This member can have one of the following values. -
dwfOptions2
public int dwfOptions2A set of bits that specify connection options. This member is a continuation of the bits specified in the dwfOptions member. Set one or more of the following bit flags. -
dwfOptions3
public int dwfOptions3This parameter is reserved for future use. -
szDnsSuffix
public char[] szDnsSuffixPointer to a string that specifies the Domain Name Service (DNS) suffix for the connection. This string can be Unicode depending on the version of the structure you are using. -
dwTcpWindowSize
public int dwTcpWindowSizeSpecifies the TCP window size for all TCP sessions that run over this connection. Setting this value can increase the throughput of high-latency devices such as cellular phones. -
szPrerequisitePbk
public char[] szPrerequisitePbkPointer to a null-terminated string that specifies the full path and file name of a phone-book (PBK) file. This phone-book file contains the entry specified by the szPrerequisiteEntry member. This member is used only for VPN connections. -
szPrerequisiteEntry
public char[] szPrerequisiteEntryPointer to a null-terminated string that specifies a phone-book entry. This entry should exist in the phone-book file specified by the szPrerequisitePbk member. The szPrerequisteEntry member specifies an entry that RAS dials prior to establishing the connection specified by this RASENTRY structure. This member is used only for VPN connections. -
dwRedialCount
public int dwRedialCountSpecifies the number of times RAS attempts to redial a connection. -
dwRedialPause
public int dwRedialPauseSpecifies the number of seconds to wait between redial attempts. -
ipv6addrDns
Contains the IPv6 address of the preferred DNS. A RASIPV6ADDR type is identical to a in6_addr structure. -
ipv6addrDnsAlt
Contains the IPv6 address of the alternate DNS. A RASIPV6ADDR type is identical to a in6_addr structure. -
dwIPv4InterfaceMetric
public int dwIPv4InterfaceMetricSets the metric of the IPv4 stack for this interface. -
dwIPv6InterfaceMetric
public int dwIPv6InterfaceMetricSets the metric of the IPv6 stack for this interface. -
ipv6addr
Specifies the client's IPv6 address negotiated by the server and the client. -
dwIPv6PrefixLength
public int dwIPv6PrefixLengthThe length of the IPv6 address prefix in ipv6addr. -
dwNetworkOutageTime
public int dwNetworkOutageTimeSpecifies the amount of time, in minutes, that IKEv2 packets will be retransmitted without a response before the connection is considered lost. Increase this value to support connection persistence during network outages.
-
-
Constructor Details
-
RASENTRY
public RASENTRY() -
RASENTRY
-