Unit DialUp |
***************************************** |****************************************** * DIALUP, telefonicke pripojeni site * |* DIALUP, dial-up networking component * * komponenta pro Delphi 3 (32b) * |* for Delphi 3 (32b) * * (c) 1998 BEALsoft * |* (c) 1998 BEALsoft * * v1.0 * |* v1.0 * *________________________________________* |*________________________________________* * !! TATO KOMPONENTA JE ZDARMA !! * |* !! THIS COMPONENT IS FREE !! * ****************************************** |******************************************) // Kontakt na autora // Contact to author : // aberka@usa.net, ICQ UIN 2365308, http://members.xoom.com/aberka // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // See README.TXT for details, description of properties and methods // Prectete si CTIMNE.TXT, kde jsou popsany vsechny dulezite funkce a vlastnosti // Thanx to Davide Moretti for his RAS API header (Some code in this component // was written by him). You can reach him via e-mail: dmoretti@iper.net
Classes |
TDialUp -
Functions |
RasCreatePhonebookEntry - RASAPI
RasCreatePhonebookEntryA - RASAPI*) (*RASAPI
**************************************************************************} {****************************************************************************} {****************************************************************************} {****************************************************************************} {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RasCreatePhonebookEntryW - RASAPI
RasDeleteEntry - RASAPI
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RasDeleteEntryA - RASAPI*) (*RASAPI
RasDeleteEntryW - RASAPI
RasDial - RASAPI
RasDialA - Note: for Delphi the function without 'A' or 'W' is the Ansi one
(*RASAPI*) as on the other Delphi headers} (*RASAPI*) (*RASAPI
RasDialW - RASAPI
RasEditPhonebookEntry - RASAPI
RasEditPhonebookEntryA - RASAPI*) (*RASAPI
RasEditPhonebookEntryW - RASAPI
RasEnumConnections - RASAPI
RasEnumConnectionsA - RASAPI*) (*RASAPI
RasEnumConnectionsW - RASAPI
RasEnumDevices - RASAPI
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RasEnumDevicesA - RASAPI*) (*RASAPI
RasEnumDevicesW - RASAPI
RasEnumEntries - RASAPI
RasEnumEntriesA - RASAPI*) (*RASAPI
RasEnumEntriesW - RASAPI
RasGetConnectStatus - RASAPI
RasGetConnectStatusA - RASAPI*) (*RASAPI
RasGetConnectStatusW - RASAPI
RasGetCountryInfo - RASAPI
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RasGetCountryInfoA - RASAPI*) (*RASAPI
RasGetCountryInfoW - RASAPI
RasGetEntryDialParams - RASAPI
RasGetEntryDialParamsA - RASAPI*) (*RASAPI
RasGetEntryDialParamsW - RASAPI
RasGetEntryProperties - RASAPI
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RasGetEntryPropertiesA - RASAPI*) (*RASAPI
RasGetEntryPropertiesW - RASAPI
RasGetErrorString - RASAPI
RasGetErrorStringA - RASAPI*) (*RASAPI
RasGetErrorStringW - RASAPI
RasGetProjectionInfo - RASAPI
RasGetProjectionInfoA - RASAPI*) (*RASAPI
RasGetProjectionInfoW - RASAPI
RasHangUp - RASAPI
RasHangUpA - RASAPI*) (*RASAPI
RasHangUpW - RASAPI
RasRenameEntry - RASAPI
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RasRenameEntryA - RASAPI*) (*RASAPI
RasRenameEntryW - RASAPI
RasSetEntryDialParams - RASAPI
RasSetEntryDialParamsA - RASAPI*) (*RASAPI
RasSetEntryDialParamsW - RASAPI
RasSetEntryProperties - RASAPI
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RasSetEntryPropertiesA - RASAPI*) (*RASAPI
RasSetEntryPropertiesW - RASAPI
RasValidateEntryName - RASAPI
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RasValidateEntryNameA - RAS functions found in RNAPH.
RasValidateEntryNameW - RASAPI
Register - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} //procedure RasCallback(Msg: Integer; State: TRasConnState; Error: Integer); stdcall; forward;
Types |
LPHRasConn
LPRasAmb
LPRasAmbA
LPRasAmbW
LPRasConn
LPRasConnA
LPRasConnState
LPRasConnStatus
LPRasConnStatusA
LPRasConnStatusW
LPRasConnW
LPRasCtryInfo
LPRasDevInfo
LPRasDevInfoA
LPRasDevInfoW
LPRasDialExtensions
LPRasDialParams
LPRasDialParamsA
LPRasDialParamsW
LPRasEntry
LPRasEntryA
LPRasEntryName
LPRasEntryNameA
LPRasEntryNameW
LPRasEntryW
LPRasIPAddr
LPRasPppIp
LPRasPppIpA
LPRasPppIpW
LPRasPppIpx
LPRasPppIpxA
LPRasPppIpxW
LpRaspppNbf
LPRasPppNbfA
LPRasPppNbfW
LPRasProjection
TDialMode
THRasConn
TLanguage
TOnActiveConn
TOnAsyncEvent
TOnEntryGet
TOnError
TOnNotConn
TRasAmb
TRasAmbA
TRasAmbW
TRasConn
TRasConnA
TRasConnState
TRasConnStatus
TRasConnStatusA
TRasConnStatusW
TRasConnW
TRasCtryInfo
TRasDevInfo
TRasDevInfoA
TRasDevInfoW
TRasDialExtensions
TRasDialParams
TRasDialParamsA
TRasDialParamsW
TRasEntry
TRasEntryA
TRasEntryName
TRasEntryNameA
TRasEntryNameW
TRasEntryW
TRasIPAddr
TRasPppIp
TRasPppIpA
TRasPppIpW
TRasPppIpx
TRasPppIpxA
TRasPppIpxW
TRasPppNbf
TRasPppNbfA
TRasPppNbfW
TRasProjection
TStandartEv
Constants |
DNLEN
ERROR_ACCESSING_TCPCFGDLL
ERROR_ACCT_DISABLED
ERROR_ACCT_EXPIRED
ERROR_ALLOCATING_MEMORY
ERROR_ALREADY_DISCONNECTING
ERROR_ASYNC_REQUEST_PENDING
ERROR_AUTHENTICATION_FAILURE
ERROR_AUTH_INTERNAL
ERROR_BAD_CALLBACK_NUMBER
ERROR_BAD_PHONE_NUMBER
ERROR_BAD_STRING
ERROR_BAD_USAGE_IN_INI_FILE
ERROR_BIPLEX_PORT_NOT_AVAILABLE
ERROR_BUFFER_INVALID
ERROR_BUFFER_TOO_SMALL
ERROR_CANNOT_FIND_PHONEBOOK_ENTRY
ERROR_CANNOT_GET_LANA
ERROR_CANNOT_LOAD_PHONEBOOK
ERROR_CANNOT_LOAD_STRING
ERROR_CANNOT_OPEN_PHONEBOOK
ERROR_CANNOT_PROJECT_CLIENT
ERROR_CANNOT_SET_PORT_INFO
ERROR_CANNOT_USE_LOGON_CREDENTIALS
ERROR_CANNOT_WRITE_PHONEBOOK
ERROR_CHANGING_PASSWORD
ERROR_CMD_TOO_LONG
ERROR_CORRUPT_PHONEBOOK
ERROR_DCB_NOT_FOUND
ERROR_DEFAULTOFF_MACRO_NOT_FOUND
ERROR_DEVICENAME_NOT_FOUND
ERROR_DEVICENAME_TOO_LONG
ERROR_DEVICETYPE_DOES_NOT_EXIST
ERROR_DEVICE_DOES_NOT_EXIST
ERROR_DEVICE_NOT_READY
ERROR_DISCONNECTION
ERROR_EMPTY_INI_FILE
ERROR_EVENT_INVALID
ERROR_FILE_COULD_NOT_BE_OPENED
ERROR_FROM_DEVICE
ERROR_HARDWARE_FAILURE
ERROR_INTERACTIVE_MODE
ERROR_INVALID_AUTH_STATE
ERROR_INVALID_COMPRESSION_SPECIFIED
ERROR_INVALID_PORT_HANDLE
ERROR_INVALID_SIZE
ERROR_INVALID_SMM
ERROR_IN_COMMAND
ERROR_IPXCP_DIALOUT_ALREADY_ACTIVE
ERROR_IPXCP_NET_NUMBER_CONFLICT
ERROR_IPXCP_NO_DIALIN_CONFIGURED
ERROR_IPXCP_NO_DIALOUT_CONFIGURED
ERROR_IP_CONFIGURATION
ERROR_KEY_NOT_FOUND
ERROR_LINE_BUSY
ERROR_MACRO_NOT_DEFINED
ERROR_MACRO_NOT_FOUND
ERROR_MESSAGE_MACRO_NOT_FOUND
ERROR_NAME_EXISTS_ON_NET
ERROR_NETBIOS_ERROR
ERROR_NOT_BINARY_MACRO
ERROR_NO_ACTIVE_ISDN_LINES
ERROR_NO_ANSWER
ERROR_NO_CARRIER
ERROR_NO_COMMAND_FOUND
ERROR_NO_CONNECTION
ERROR_NO_DIALIN_PERMISSION
ERROR_NO_DIALTONE
ERROR_NO_ENDPOINTS
ERROR_NO_IP_ADDRESSES
ERROR_NO_IP_RAS_ADAPTER
ERROR_NO_ISDN_CHANNELS_AVAILABLE
ERROR_NO_LOCAL_ENCRYPTION
ERROR_NO_MAC_FOR_PORT
ERROR_NO_REMOTE_ENCRYPTION
ERROR_NO_RESPONSES
ERROR_OUT_OF_BUFFERS
ERROR_OVERRUN
ERROR_PARTIAL_RESPONSE_LOOPING
ERROR_PASSWD_EXPIRED
ERROR_PHONE_NUMBER_TOO_LONG
ERROR_PORT_ALREADY_OPEN
ERROR_PORT_DISCONNECTED
ERROR_PORT_NOT_AVAILABLE
ERROR_PORT_NOT_CONFIGURED
ERROR_PORT_NOT_CONNECTED
ERROR_PORT_NOT_FOUND
ERROR_PORT_NOT_OPEN
ERROR_PORT_OR_DEVICE
ERROR_PPP_CP_REJECTED
ERROR_PPP_INVALID_PACKET
ERROR_PPP_LCP_TERMINATED
ERROR_PPP_LOOPBACK_DETECTED
ERROR_PPP_NCP_TERMINATED
ERROR_PPP_NOT_CONVERGING
ERROR_PPP_NO_ADDRESS_ASSIGNED
ERROR_PPP_NO_PROTOCOLS_CONFIGURED
ERROR_PPP_NO_RESPONSE
ERROR_PPP_REMOTE_TERMINATED
ERROR_PPP_REQUIRED_ADDRESS_REJECTED
ERROR_PPP_TIMEOUT
ERROR_PROJECTION_NOT_COMPLETE
ERROR_PROTOCOL_NOT_CONFIGURED
ERROR_RASMAN_CANNOT_INITIALIZE
ERROR_READING_DEFAULTOFF
ERROR_READING_DEVICENAME
ERROR_READING_DEVICETYPE
ERROR_READING_INI_FILE
ERROR_READING_MAXCARRIERBPS
ERROR_READING_MAXCONNECTBPS
ERROR_READING_SECTIONNAME
ERROR_READING_USAGE
ERROR_RECV_BUF_FULL
ERROR_REMOTE_DISCONNECTION
ERROR_REMOTE_REQUIRES_ENCRYPTION
ERROR_REQUEST_TIMEOUT
ERROR_RESTRICTED_LOGON_HOURS
ERROR_ROUTE_NOT_ALLOCATED
ERROR_ROUTE_NOT_AVAILABLE
ERROR_SERVER_GENERAL_NET_FAILURE
ERROR_SERVER_NOT_RESPONDING
ERROR_SERVER_OUT_OF_RESOURCES
ERROR_SLIP_REQUIRES_IP
ERROR_SMM_TIMEOUT
ERROR_SMM_UNINITIALIZED
ERROR_STATE_MACHINES_ALREADY_STARTED
ERROR_STATE_MACHINES_NOT_STARTED
ERROR_TAPI_CONFIGURATION
ERROR_TOO_MANY_LINE_ERRORS
ERROR_UNEXPECTED_RESPONSE
ERROR_UNKNOWN
ERROR_UNKNOWN_DEVICE_TYPE
ERROR_UNKNOWN_RESPONSE_KEY
ERROR_UNRECOGNIZED_RESPONSE
ERROR_UNSUPPORTED_BPS
ERROR_USER_DISCONNECTION
ERROR_VOICE_ANSWER
ERROR_WRITING_DEFAULTOFF
ERROR_WRITING_DEVICENAME
ERROR_WRITING_DEVICETYPE
ERROR_WRITING_INITBPS
ERROR_WRITING_MAXCARRIERBPS
ERROR_WRITING_MAXCONNECTBPS
ERROR_WRITING_SECTIONNAME
ERROR_WRITING_USAGE
ERROR_WRONG_DEVICE_ATTACHED
ERROR_WRONG_INFO_SPECIFIED
ERROR_WRONG_KEY_SPECIFIED
ERROR_WRONG_MODULE
ERROR_X25_DIAGNOSTIC
MaxEntries
NETBIOS_NAME_LEN
PENDING
PWLEN
RASBASE
RASBASEEND
RASCS_AllDevicesConnected
RASCS_AuthAck
RASCS_AuthCallback
RASCS_AuthChangePassword
RASCS_Authenticate
RASCS_Authenticated
RASCS_AuthLinkSpeed
RASCS_AuthNotify
RASCS_AuthProject
RASCS_AuthRetry
RASCS_CallbackComplete
RASCS_CallbackSetByCaller
RASCS_ConnectDevice
RASCS_Connected
RASCS_DeviceConnected
RASCS_Disconnected
RASCS_DONE
RASCS_Interactive
RASCS_LogonNetwork
RASCS_OpenPort
RASCS_PasswordExpired
RASCS_PAUSED
RASCS_PortOpened
RASCS_PrepareForCallback
RASCS_Projected
RASCS_ReAuthenticate
RASCS_RetryAuthentication
RASCS_StartAuthentication
RASCS_WaitForCallback
RASCS_WaitForModemReset
RASDIALEVENT
RASDT_Isdn
RASDT_Modem
RASDT_X25
RASEO_DisableLcpExtensions
RASEO_IpHeaderCompression
RASEO_ModemLights
RASEO_NetworkLogon
RASEO_PromoteAlternates
RASEO_RemoteDefaultGateway
RASEO_RequireDataEncryption
RASEO_RequireEncryptedPw
RASEO_RequireMsEncryptedPw
RASEO_SpecificIpAddr
RASEO_SpecificNameServers
RASEO_SwCompression
RASEO_TerminalAfterDial
RASEO_TerminalBeforeDial
RASEO_UseCountryAndAreaCodes
RASEO_UseLogonCredentials
RASFP_Ppp
RASFP_Ras
RASFP_Slip
RASNP_Ip
RASNP_Ipx
RASNP_Netbeui
RASP_Amb
RASP_PppIp
RASP_PppIpx
RASP_PppNbf
RAS_MaxAreaCode
RAS_MaxCallbackNumber
RAS_MaxDeviceName
RAS_MaxDeviceType
RAS_MaxEntryName
RAS_MaxFacilities
RAS_MaxIpAddress
RAS_MaxIpxAddress
RAS_MaxPadType
RAS_MaxPhoneNumber
RAS_MaxUserData
RAS_MaxX25Address
RDEOPT_IgnoreModemSpeaker
RDEOPT_IgnoreSoftwareCompression
RDEOPT_PausedStates
RDEOPT_SetModemSpeaker
RDEOPT_SetSoftwareCompression
RDEOPT_UsePrefixSuffix
SUCCESS
UNLEN
WARNING_MSG_ALIAS_NOT_ADDED
WM_RASDIALEVENT
Variables |
Functions |
**************************************************************************} {****************************************************************************} {****************************************************************************} {****************************************************************************} {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Types |
LPHRasConn = ^THRasConnRASAPI
LPRasAmb = ^TRasAmbRASAPI*) (*RASAPI
LPRasAmbA = ^TRasAmbARASAPI*) (*RASAPI
LPRasAmbW = ^TRasAmbW* Describes the result of a RAS AMB (Authentication Message Block) (*RASAPI*)** projection. This protocol is used with NT 3.1 and OS/2 1.3 downlevel (*RASAPI*)** RAS servers.*} (*RASAPI
LPRasConn = ^TRasConnRASAPI*) (*RASAPI
LPRasConnA = ^TRasConnARASAPI*) (*RASAPI
LPRasConnState = ^TRasConnStateRASAPI
LPRasConnStatus = ^TRasConnStatusRASAPI*) (*RASAPI
LPRasConnStatusA = ^TRasConnStatusARASAPI*) (*RASAPI
LPRasConnStatusW = ^TRasConnStatusW* Describes the status of a RAS connection. (See RasConnectionStatus)*} (*RASAPI
LPRasConnW = ^TRasConnW* Identifies an active RAS connection. (See RasEnumConnections) *} (*RASAPI
LPRasCtryInfo = ^TRasCtryInfoDescribes Country Information *) (*RASAPI
LPRasDevInfo = ^TRasDevInfoRASAPI*) (*RASAPI
LPRasDevInfoA = ^TRasDevInfoADescribes RAS Device Information *) (*RASAPI
LPRasDevInfoW = ^TRasDevInfoWRASAPI*) (*RASAPI
LPRasDialExtensions = ^TRasDialExtensions* Describes extended connection establishment options. (See RasDial)*} (*RASAPI
LPRasDialParams = ^TRasDialParamsRASAPI*) (*RASAPI
LPRasDialParamsA = ^TRasDialParamsARASAPI*) (*RASAPI
LPRasDialParamsW = ^TRasDialParamsW* Describes connection establishment parameters. (See RasDial)*} (*RASAPI
LPRasEntry = ^TRasEntryRASAPI*) (*RASAPI
LPRasEntryA = ^TRasEntryADescribes a RAS phonebook entry *) (*RASAPI
LPRasEntryName = ^TRasEntryNameRASAPI*) (*RASAPI
LPRasEntryNameA = ^TRasEntryNameARASAPI*) (*RASAPI
LPRasEntryNameW = ^TRasEntryNameW* Describes an enumerated RAS phone book entry name. (See RasEntryEnum)*} (*RASAPI
LPRasEntryW = ^TRasEntryWRASAPI*) (*RASAPI
LPRasIPAddr = ^TRasIPAddrDescribes a RAS IP Address *) (*RASAPI
LPRasPppIp = ^TRasPppIpRASAPI*) (*RASAPI
LPRasPppIpA = ^TRasPppIpARASAPI*) (*RASAPI
LPRasPppIpW = ^TRasPppIpW* Describes the results of a PPP IP (Internet) projection.*} (*RASAPI
LPRasPppIpx = ^TRasPppIpxRASAPI*) (*RASAPI
LPRasPppIpxA = ^TRasPppIpxARASAPI*) (*RASAPI
LPRasPppIpxW = ^TRasPppIpxW* Describes the results of a PPP IPX (Internetwork Packet Exchange) (*RASAPI*)** projection.*} (*RASAPI
LpRaspppNbf = ^TRasPppNbfRASAPI*) (*RASAPI
LPRasPppNbfA = ^TRasPppNbfARASAPI*) (*RASAPI
LPRasPppNbfW = ^TRasPppNbfW* Describes the result of a PPP NBF (NetBEUI) projection.*} (*RASAPI
LPRasProjection = ^TRasProjection* Protocol code to projection data structure mapping.*} (*RASAPI
TDialMode = (dmAsync,dmSync);
THRasConn = LongintRASAPI
TLanguage = (English,Czech);dmAsync - Function will exit BEFORE finishing dialing Events : onDialing,onError,onAsyncEvent dmSync - Function will exit AFTER finishing dialing Events : onDialing,onConnect,onNotConnected
TOnActiveConn = procedure (Sender : TObject; Handle : THRasConn; Status : TRasConnStatus; StatusString : String; EntryName, DeviceType, DeviceName : Array of Char) of object
TOnAsyncEvent = procedure (Sender : TObject; State : TRasConnState; Error : Integer; MessageText : String) of object
TOnEntryGet = procedure (Sender : TObject; EntryName : Array of {Ansi}Char) of ObjectIt's enough
TOnError = procedure (Sender : TObject; ErrorCode : Integer; ErrorMessage : String) of Object
TOnNotConn = procedure (Sender : TObject; ErrorCode : Integer; ErrorMessage : String) of object
TRasAmb = TRasAmbARASAPI
TRasAmbA = recordRASAPI
dwSize : Longint;
dwError : Longint;
szNetBiosError : Array[0..NETBIOS_NAME_LEN] of AnsiChar;
bLana : Byte;
end;
TRasAmbW = recordRASAPI
dwSize : Longint;
dwError : Longint;
szNetBiosError : Array[0..NETBIOS_NAME_LEN] of WideChar;
bLana : Byte;
end;
TRasConn = TRasConnARASAPI
TRasConnA = recordRASAPI
dwSize : Longint;
hrasconn : THRasConn;
szEntryName : Array[0..RAS_MaxEntryName] of AnsiChar;
szDeviceType : Array[0..RAS_MaxDeviceType] of AnsiChar;
szDeviceName : Array[0..RAS_MaxDeviceName] of AnsiChar;
end;
TRasConnState = IntegerRASAPI
TRasConnStatus = TRasConnStatusARASAPI
TRasConnStatusA = recordRASAPI
dwSize : Longint;
rasconnstate : TRasConnState;
dwError : LongInt;
szDeviceType : Array[0..RAS_MaxDeviceType] of AnsiChar;
szDeviceName : Array[0..RAS_MaxDeviceName] of AnsiChar;
end;
TRasConnStatusW = recordRASAPI
dwSize : Longint;
rasconnstate : TRasConnState;
dwError : LongInt;
szDeviceType : Array[0..RAS_MaxDeviceType] of WideChar;
szDeviceName : Array[0..RAS_MaxDeviceName] of WideChar;
end;
TRasConnW = recordRASAPI
dwSize : Longint;
hrasconn : THRasConn;
szEntryName : Array[0..RAS_MaxEntryName] of WideChar;
szDeviceType : Array[0..RAS_MaxDeviceType] of WideChar;
szDeviceName : Array[0..RAS_MaxDeviceName] of WideChar;
end;
TRasCtryInfo = recordRASAPI
dwSize : Longint;
dwCountryID : Longint;
dwNextCountryID : Longint;
dwCountryCode : Longint;
dwCountryNameOffset : Longint;
end;
TRasDevInfo = TRasDevInfoARASAPI
TRasDevInfoA = recordRASAPI
dwSize : Longint;
szDeviceType : Array[0..RAS_MaxDeviceType] of AnsiChar;
szDeviceName : Array[0..RAS_MaxDeviceName] of AnsiChar;
end;
TRasDevInfoW = recordRASAPI
dwSize : Longint;
szDeviceType : Array[0..RAS_MaxDeviceType] of WideChar;
szDeviceName : Array[0..RAS_MaxDeviceName] of WideChar;
end;
TRasDialExtensions = recordRASAPI
dwSize : LongInt;
dwfOptions : LongInt;
hwndParent : HWND;
reserved : LongInt;
end;
TRasDialParams = TRasDialParamsARASAPI
TRasDialParamsA = recordRASAPI
dwSize : LongInt;
szEntryName : Array[0..RAS_MaxEntryName] of AnsiChar;
szPhoneNumber : Array[0..RAS_MaxPhoneNumber] of AnsiChar;
szCallbackNumber : Array[0..RAS_MaxCallbackNumber] of AnsiChar;
szUserName : Array[0..UNLEN] of AnsiChar;
szPassword : Array[0..PWLEN] of AnsiChar;
szDomain : Array[0..DNLEN] of AnsiChar;
end;
TRasDialParamsW = recordRASAPI
dwSize : LongInt;
szEntryName : Array[0..RAS_MaxEntryName] of WideChar;
szPhoneNumber : Array[0..RAS_MaxPhoneNumber] of WideChar;
szCallbackNumber : Array[0..RAS_MaxCallbackNumber] of WideChar;
szUserName : Array[0..UNLEN] of WideChar;
szPassword : Array[0..PWLEN] of WideChar;
szDomain : Array[0..DNLEN] of WideChar;
end;
TRasEntry = TRasEntryARASAPI
TRasEntryA = recordRASAPI
dwSize : Longint;
dwfOptions : Longint;
dwCountryID : Longint;
dwCountryCode : Longint;
szAreaCode : array[0.. RAS_MaxAreaCode] of AnsiChar;
szLocalPhoneNumber : array[0..RAS_MaxPhoneNumber] of AnsiChar;
dwAlternatesOffset : Longint;
ipaddr : TRasIPAddr;
ipaddrDns : TRasIPAddr;
ipaddrDnsAlt : TRasIPAddr;
ipaddrWins : TRasIPAddr;
ipaddrWinsAlt : TRasIPAddr;
dwFrameSize : Longint;
dwfNetProtocols : Longint;
dwFramingProtocol : Longint;
szScript : Array[0..MAX_PATH - 1] of AnsiChar;
szAutodialDll : Array [0..MAX_PATH - 1] of AnsiChar;
szAutodialFunc : Array [0..MAX_PATH - 1] of AnsiChar;
szDeviceType : Array [0..RAS_MaxDeviceType] of AnsiChar;
szDeviceName : Array [0..RAS_MaxDeviceName] of AnsiChar;
szX25PadType : Array [0..RAS_MaxPadType] of AnsiChar;
szX25Address : Array [0..RAS_MaxX25Address] of AnsiChar;
szX25Facilities : Array [0..RAS_MaxFacilities] of AnsiChar;
szX25UserData : Array [0..RAS_MaxUserData] of AnsiChar;
dwChannels : Longint;
dwReserved1 : Longint;
dwReserved2 : Longint;
end;
TRasEntryName = TRasEntryNameARASAPI
TRasEntryNameA = recordRASAPI
dwSize : Longint;
szEntryName : Array[0..RAS_MaxEntryName] of AnsiChar;
end;
TRasEntryNameW = recordRASAPI
dwSize : Longint;
szEntryName : Array[0..RAS_MaxEntryName] of WideChar;
end;
TRasEntryW = recordRASAPI
dwSize : Longint;
dwfOptions : Longint;
dwCountryID : Longint;
dwCountryCode : Longint;
szAreaCode : array[0.. RAS_MaxAreaCode] of WideChar;
szLocalPhoneNumber : array[0..RAS_MaxPhoneNumber] of WideChar;
dwAlternatesOffset : Longint;
ipaddr : TRasIPAddr;
ipaddrDns : TRasIPAddr;
ipaddrDnsAlt : TRasIPAddr;
ipaddrWins : TRasIPAddr;
ipaddrWinsAlt : TRasIPAddr;
dwFrameSize : Longint;
dwfNetProtocols : Longint;
dwFramingProtocol : Longint;
szScript : Array[0..MAX_PATH - 1] of WideChar;
szAutodialDll : Array [0..MAX_PATH - 1] of WideChar;
szAutodialFunc : Array [0..MAX_PATH - 1] of WideChar;
szDeviceType : Array [0..RAS_MaxDeviceType] of WideChar;
szDeviceName : Array [0..RAS_MaxDeviceName] of WideChar;
szX25PadType : Array [0..RAS_MaxPadType] of WideChar;
szX25Address : Array [0..RAS_MaxX25Address] of WideChar;
szX25Facilities : Array [0..RAS_MaxFacilities] of WideChar;
szX25UserData : Array [0..RAS_MaxUserData] of WideChar;
dwChannels : Longint;
dwReserved1 : Longint;
dwReserved2 : Longint;
end;
TRasIPAddr = recordRASAPI
A : Byte;
B : Byte;
C : Byte;
D : Byte;
end;
TRasPppIp = TRasPppIpARASAPI
TRasPppIpA = recordRASAPI
dwSize : Longint;
dwError : Longint;
szIpAddress : Array[0..RAS_MaxIpAddress] of AnsiChar;
szServerIpAddress : Array[0..RAS_MaxIpAddress] of AnsiChar;
end;
TRasPppIpW = recordRASAPI
dwSize : Longint;
dwError : Longint;
szIpAddress : Array[0..RAS_MaxIpAddress] of WideChar;
szServerIpAddress : Array[0..RAS_MaxIpAddress] of WideChar;
end;
TRasPppIpx = TRasPppIpxARASAPI
TRasPppIpxA = recordRASAPI
dwSize : Longint;
dwError : Longint;
szIpxAddress : Array[0..RAS_MaxIpxAddress] of AnsiChar;
end;
TRasPppIpxW = recordRASAPI
dwSize : Longint;
dwError : Longint;
szIpxAddress : Array[0..RAS_MaxIpxAddress] of WideChar;
end;
TRasPppNbf = TRasPppNbfARASAPI
TRasPppNbfA = recordRASAPI
dwSize : Longint;
dwError : Longint;
dwNetBiosError : Longint;
szNetBiosError : Array[0..NETBIOS_NAME_LEN] of AnsiChar;
szWorkstationName : Array[0..NETBIOS_NAME_LEN] of AnsiChar;
bLana : Byte;
end;
TRasPppNbfW = recordRASAPI
dwSize : Longint;
dwError : Longint;
dwNetBiosError : Longint;
szNetBiosError : Array[0..NETBIOS_NAME_LEN] of WideChar;
szWorkstationName : Array[0..NETBIOS_NAME_LEN] of WideChar;
bLana : Byte;
end;
TRasProjection = IntegerRASAPI
TStandartEv = procedure (Sender : TObject) of objectAnsi
Constants |
Variables |