Unit Rasext

Classes

Functions

RasConnectionNotification -
RasConnectionNotificationA -
RasConnectionNotificationW -
RasCreatePhonebookEntry -
RasCreatePhonebookEntryA -
RasCreatePhonebookEntryW -
RasDeleteEntry -
RasDeleteEntryA -
RasDeleteEntryW -
RasDial -
RasDialA - X.
RasDialW -
RasEditPhonebookEntry -
RasEditPhonebookEntryA -
RasEditPhonebookEntryW -
RasEnumAutodialAddresses -
RasEnumAutodialAddressesA -
RasEnumAutodialAddressesW -
RasEnumConnections -
RasEnumConnectionsA -
RasEnumConnectionsW -
RasEnumDevices -
RasEnumDevicesA - * These are subject to change, since RNAPH.
RasEnumDevicesW -
RasEnumEntries -
RasEnumEntriesA -
RasEnumEntriesW -
RasGetAutodialAddress -
RasGetAutodialAddressA -
RasGetAutodialAddressW -
RasGetAutodialEnable -
RasGetAutodialEnableA -
RasGetAutodialEnableW -
RasGetAutodialParam -
RasGetAutodialParamA -
RasGetAutodialParamW -
RasGetConnectStatus -
RasGetConnectStatusA -
RasGetConnectStatusW -
RasGetCountryInfo -
RasGetCountryInfoA -
RasGetCountryInfoW -
RasGetCredentials -
RasGetCredentialsA -
RasGetCredentialsW -
RasGetEntryDialParams -
RasGetEntryDialParamsA -
RasGetEntryDialParamsW -
RasGetEntryProperties -
RasGetEntryPropertiesA -
RasGetEntryPropertiesW -
RasGetErrorString -
RasGetErrorStringA -
RasGetErrorStringW -
RasGetProjectionInfo -
RasGetProjectionInfoA -
RasGetProjectionInfoW -
RasGetSubEntryHandle -
RasGetSubEntryHandleA -
RasGetSubEntryHandleW -
RasGetSubEntryProperties -
RasGetSubEntryPropertiesA -
RasGetSubEntryPropertiesW -
RasHangUp -
RasHangUpA -
RasHangUpW -
RasRenameEntry -
RasRenameEntryA -
RasRenameEntryW -
RasSetAutodialAddress -
RasSetAutodialAddressA -
RasSetAutodialAddressW -
RasSetAutodialEnable -
RasSetAutodialEnableA -
RasSetAutodialEnableW -
RasSetAutodialParam -
RasSetAutodialParamA -
RasSetAutodialParamW -
RasSetCredentials -
RasSetCredentialsA -
RasSetCredentialsW -
RasSetEntryDialParams -
RasSetEntryDialParamsA -
RasSetEntryDialParamsW -
RasSetEntryProperties -
RasSetEntryPropertiesA -
RasSetEntryPropertiesW -
RasSetSubEntryProperties -
RasSetSubEntryPropertiesA -
RasSetSubEntryPropertiesW -
RasValidateEntryName - function not found - try rnaph.
RasValidateEntryNameA -
RasValidateEntryNameW -

Types

LPHRasConn
LPRasAmb
LPRasAmbA
LPRasAmbW
LPRasConn
LPRasConnA
LPRasConnState
LPRasConnStatus
LPRasConnStatusA
LPRasConnStatusW
LPRasConnW
LPRasCtryInfo
LPRasCtryInfoA
LPRasCtryInfoW
LPRasDevInfo
LPRasDevInfoA
LPRasDevInfoW
LPRasDialExtensions
LPRasDialParams
LPRasDialParamsA
LPRasDialParamsW
LPRasEntry
LPRasEntryA
LPRasEntryName
LPRasEntryNameA
LPRasEntryNameW
LPRasEntryW
LPRasIPAddr
LPRasPppIp
LPRasPppIpA
LPRasPppIpW
LPRasPppIpx
LPRasPppIpxA
LPRasPppIpxW
LpRasPppLcp
LpRaspppNbf
LPRasPppNbfA
LPRasPppNbfW
LPRasProjection
LpRasSlip
LpRasSlipA
LpRasSlipW
THRasConn
TRasAmb
TRasAmbA
TRasAmbW
TRasConn
TRasConnA
TRasConnState
TRasConnStatus
TRasConnStatusA
TRasConnStatusW
TRasConnW
TRasCtryInfo
TRasCtryInfoA
TRasCtryInfoW
TRasDevInfo
TRasDevInfoA
TRasDevInfoW
TRasDialExtensions
TRasDialParams
TRasDialParamsA
TRasDialParamsW
TRasEntry
TRasEntryA
TRasEntryName
TRasEntryNameA
TRasEntryNameW
TRasEntryW
TRasIPAddr
TRasPppIp
TRasPppIpA
TRasPppIpW
TRasPppIpx
TRasPppIpxA
TRasPppIpxW
TRasPppLcp
TRasPppNbf
TRasPppNbfA
TRasPppNbfW
TRasProjection
TRasSlip
TRasSlipA
TRasSlipW

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_CALLBACK_NUMBER
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_SCRIPT_SYNTAX
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
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_PppLcp
RASP_PppNbf
RASP_Slip
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_DisableConnectedUI
RDEOPT_DisableReconnect
RDEOPT_DisableReconnectUI
RDEOPT_IgnoreModemSpeaker
RDEOPT_IgnoreSoftwareCompression
RDEOPT_NoUser
RDEOPT_PausedStates
RDEOPT_PauseOnScript
RDEOPT_SetModemSpeaker
RDEOPT_SetSoftwareCompression
RDEOPT_UsePrefixSuffix
SUCCESS
UNLEN
WARNING_MSG_ALIAS_NOT_ADDED
WM_RASDIALEVENT

Variables


Functions


function RasConnectionNotification( hrasconn: THRasConn; hEvent: THandle; dwFlags: Longint ): Longint;


function RasConnectionNotificationA( hrasconn: THRasConn; hEvent: THandle; dwFlags: Longint ): Longint;


function RasConnectionNotificationW( hrasconn: THRasConn; hEvent: THandle; dwFlags: Longint ): Longint;


function RasCreatePhonebookEntry( hwndParentWindow: HWND; lpszPhoneBook: PChar ): Longint;


function RasCreatePhonebookEntryA( hwndParentWindow: HWND; lpszPhoneBook: PAnsiChar ): Longint;


function RasCreatePhonebookEntryW( hwndParentWindow: HWND; lpszPhoneBook: PWideChar ): Longint;


function RasDeleteEntry( lpszPhonebook, szEntry: PChar ): Longint;


function RasDeleteEntryA( lpszPhonebook, szEntry: PAnsiChar ): Longint;


function RasDeleteEntryW( lpszPhonebook, szEntry: PWideChar ): Longint;


function RasDial( lpRasDialExt: LPRasDialExtensions; lpszPhoneBook: PChar; var params: TRasDialParams; dwNotifierType: Longint; lpNotifier: Pointer; var rasconn: THRasConn ): Longint;


function RasDialA( lpRasDialExt: LPRasDialExtensions; lpszPhoneBook: PAnsiChar; var params: TRasDialParamsA; dwNotifierType: Longint; lpNotifier: Pointer; var rasconn: THRasConn ): Longint;

X.25 {* Old AutoDial DLL function prototype. ** ** This prototype is documented for backward-compatibility ** purposes only. It is superceded by the RASADFUNCA ** and RASADFUNCW definitions below. DO NOT USE THIS ** PROTOTYPE IN NEW CODE. SUPPORT FOR IT MAY BE REMOVED ** IN FUTURE VERSIONS OF RAS. *} typedef BOOL (WINAPI *ORASADFUNC)( HWND, LPSTR, DWORD, LPDWORD ); For Delphi: function ORasAdFunc(hwndParent: THandle; szEntry: PChar; dwFlags: Longint; var lpdwRetCode: Longint): Boolean; stdcall; WINVER41 {* External RAS API function prototypes. *} {Note: for Delphi the function without 'A' or 'W' is the Ansi one as on the other Delphi headers

function RasDialW( lpRasDialExt: LPRasDialExtensions; lpszPhoneBook: PWideChar; var params: TRasDialParamsW; dwNotifierType: Longint; lpNotifier: Pointer; var rasconn: THRasConn ): Longint;


function RasEditPhonebookEntry( hwndParentWindow: HWND; lpszPhoneBook: PChar; lpszEntryName: PChar ): Longint;


function RasEditPhonebookEntryA( hwndParentWindow: HWND; lpszPhoneBook: PAnsiChar; lpszEntryName: PAnsiChar ): Longint;


function RasEditPhonebookEntryW( hwndParentWindow: HWND; lpszPhoneBook: PWideChar; lpszEntryName: PWideChar ): Longint;


function RasEnumAutodialAddresses( lppAddresses: Pointer; var lpdwcbAddresses: Longint; var lpdwAddresses: Longint ): Longint;


function RasEnumAutodialAddressesA( lppAddresses: Pointer; var lpdwcbAddresses: Longint; var lpdwAddresses: Longint ): Longint;


function RasEnumAutodialAddressesW( lppAddresses: Pointer; var lpdwcbAddresses: Longint; var lpdwAddresses: Longint ): Longint;


function RasEnumConnections( rasconnArray: LPRasConn; var lpcb: Longint; var lpcConnections: Longint ): Longint;


function RasEnumConnectionsA( rasconnArray: LPRasConnA; var lpcb: Longint; var lpcConnections: Longint ): Longint;


function RasEnumConnectionsW( rasconnArray: LPRasConnW; var lpcb: Longint; var lpcConnections: Longint ): Longint;


function RasEnumDevices( lpBuff: LPRasDevInfo; var lpcbSize: Longint; var lpcDevices: Longint ): Longint;


function RasEnumDevicesA( lpBuff: LPRasDevInfoA; var lpcbSize: Longint; var lpcDevices: Longint ): Longint;

* These are subject to change, since RNAPH.DLL will be removed. ** The 'A' and 'W' functions are present in Windows NT 4.0

function RasEnumDevicesW( lpBuff: LPRasDevInfoW; var lpcbSize: Longint; var lpcDevices: Longint ): Longint;


function RasEnumEntries( reserved: PChar; lpszPhoneBook: PChar; entrynamesArray: LPRasEntryName; var lpcb: Longint; var lpcEntries: Longint ): Longint;


function RasEnumEntriesA( reserved: PAnsiChar; lpszPhoneBook: PAnsiChar; entrynamesArray: LPRasEntryNameA; var lpcb: Longint; var lpcEntries: Longint ): Longint;


function RasEnumEntriesW( reserved: PWideChar; lpszPhoneBook: PWideChar; entrynamesArray: LPRasEntryNameW; var lpcb: Longint; var lpcEntries: Longint ): Longint;


function RasGetAutodialAddress( lpszAddress: PChar; lpdwReserved: Pointer; lpAutoDialEntries: LPRasAutoDialEntry; var lpdwcbAutoDialEntries: Longint; var lpdwcAutoDialEntries: Longint ): Longint;


function RasGetAutodialAddressA( lpszAddress: PAnsiChar; lpdwReserved: Pointer; lpAutoDialEntries: LPRasAutoDialEntryA; var lpdwcbAutoDialEntries: Longint; var lpdwcAutoDialEntries: Longint ): Longint;


function RasGetAutodialAddressW( lpszAddress: PWideChar; lpdwReserved: Pointer; lpAutoDialEntries: LPRasAutoDialEntryW; var lpdwcbAutoDialEntries: Longint; var lpdwcAutoDialEntries: Longint ): Longint;


function RasGetAutodialEnable( dwDialingLocation: Longint; var lpfEnabled: LongBool ): Longint;


function RasGetAutodialEnableA( dwDialingLocation: Longint; var lpfEnabled: LongBool ): Longint;


function RasGetAutodialEnableW( dwDialingLocation: Longint; var lpfEnabled: LongBool ): Longint;


function RasGetAutodialParam( dwKey: Longint; lpvValue: Pointer; var lpdwcbValue: Longint ): Longint;


function RasGetAutodialParamA( dwKey: Longint; lpvValue: Pointer; var lpdwcbValue: Longint ): Longint;


function RasGetAutodialParamW( dwKey: Longint; lpvValue: Pointer; var lpdwcbValue: Longint ): Longint;


function RasGetConnectStatus( hConn: THRasConn; var lpStatus: TRasConnStatus ): Longint;


function RasGetConnectStatusA( hConn: THRasConn; var lpStatus: TRasConnStatusA ): Longint;


function RasGetConnectStatusW( hConn: THRasConn; var lpStatus: TRasConnStatusW ): Longint;


function RasGetCountryInfo( var lpCtryInfo: TRasCtryInfo; var lpdwSize: Longint ): Longint;


function RasGetCountryInfoA( var lpCtryInfo: TRasCtryInfo; var lpdwSize: Longint ): Longint;


function RasGetCountryInfoW( var lpCtryInfo: TRasCtryInfo; var lpdwSize: Longint ): Longint;


function RasGetCredentials( lpszPhoneBook, lpszEntry: PChar; var lpCredentials: TRasCredentials ): Longint;


function RasGetCredentialsA( lpszPhoneBook, lpszEntry: PAnsiChar; var lpCredentials: TRasCredentialsA ): Longint;


function RasGetCredentialsW( lpszPhoneBook, lpszEntry: PWideChar; var lpCredentials: TRasCredentialsW ): Longint;


function RasGetEntryDialParams( lpszPhoneBook: PChar; var lpDialParams: TRasDialParams; var lpfPassword: LongBool ): Longint;


function RasGetEntryDialParamsA( lpszPhoneBook: PAnsiChar; var lpDialParams: TRasDialParamsA; var lpfPassword: LongBool ): Longint;


function RasGetEntryDialParamsW( lpszPhoneBook: PWideChar; var lpDialParams: TRasDialParamsW; var lpfPassword: LongBool ): Longint;


function RasGetEntryProperties( lpszPhonebook, szEntry: PChar; lpbEntry: Pointer; var lpdwEntrySize: Longint; lpbDeviceInfo: Pointer; var lpdwDeviceInfoSize: Longint ): Longint;


function RasGetEntryPropertiesA( lpszPhonebook, szEntry: PAnsiChar; lpbEntry: Pointer; var lpdwEntrySize: Longint; lpbDeviceInfo: Pointer; var lpdwDeviceInfoSize: Longint ): Longint;


function RasGetEntryPropertiesW( lpszPhonebook, szEntry: PWideChar; lpbEntry: Pointer; var lpdwEntrySize: Longint; lpbDeviceInfo: Pointer; var lpdwDeviceInfoSize: Longint ): Longint;


function RasGetErrorString( errorValue: Integer; erroString: PChar; cBufSize: Longint ): Longint;


function RasGetErrorStringA( errorValue: Integer; erroString: PAnsiChar; cBufSize: Longint ): Longint;


function RasGetErrorStringW( errorValue: Integer; erroString: PWideChar; cBufSize: Longint ): Longint;


function RasGetProjectionInfo( hConn: THRasConn; rasproj: TRasProjection; lpProjection: Pointer; var lpcb: Longint ): Longint;


function RasGetProjectionInfoA( hConn: THRasConn; rasproj: TRasProjection; lpProjection: Pointer; var lpcb: Longint ): Longint;


function RasGetProjectionInfoW( hConn: THRasConn; rasproj: TRasProjection; lpProjection: Pointer; var lpcb: Longint ): Longint;


function RasGetSubEntryHandle( hrasconn: THRasConn; dwSubEntry: Longint; var lphrasconn: THRasConn ): Longint;


function RasGetSubEntryHandleA( hrasconn: THRasConn; dwSubEntry: Longint; var lphrasconn: THRasConn ): Longint;


function RasGetSubEntryHandleW( hrasconn: THRasConn; dwSubEntry: Longint; var lphrasconn: THRasConn ): Longint;


function RasGetSubEntryProperties( lpszPhoneBook, lpszEntry: PChar; dwSubEntry: Longint; var lpRasSubEntry: TRasSubEntry; var lpdwcb: Longint; p: Pointer; var lpdw: Longint ): Longint;


function RasGetSubEntryPropertiesA( lpszPhoneBook, lpszEntry: PAnsiChar; dwSubEntry: Longint; var lpRasSubEntry: TRasSubEntryA; var lpdwcb: Longint; p: Pointer; var lpdw: Longint ): Longint;


function RasGetSubEntryPropertiesW( lpszPhoneBook, lpszEntry: PWideChar; dwSubEntry: Longint; var lpRasSubEntry: TRasSubEntryW; var lpdwcb: Longint; p: Pointer; var lpdw: Longint ): Longint;


function RasHangUp( hConn: THRasConn ): Longint;


function RasHangUpA( hConn: THRasConn ): Longint;


function RasHangUpW( hConn: THRasConn ): Longint;


function RasRenameEntry( lpszPhonebook, szEntryOld, szEntryNew: PChar ): Longint;


function RasRenameEntryA( lpszPhonebook, szEntryOld, szEntryNew: PAnsiChar ): Longint;


function RasRenameEntryW( lpszPhonebook, szEntryOld, szEntryNew: PWideChar ): Longint;


function RasSetAutodialAddress( lpszAddress: PChar; dwReserved: Longint; lpAutoDialEntries: LPRasAutoDialEntry; dwcbAutoDialEntries: Longint; dwcAutoDialEntries: Longint ): Longint;


function RasSetAutodialAddressA( lpszAddress: PAnsiChar; dwReserved: Longint; lpAutoDialEntries: LPRasAutoDialEntryA; dwcbAutoDialEntries: Longint; dwcAutoDialEntries: Longint ): Longint;


function RasSetAutodialAddressW( lpszAddress: PWideChar; dwReserved: Longint; lpAutoDialEntries: LPRasAutoDialEntryW; dwcbAutoDialEntries: Longint; dwcAutoDialEntries: Longint ): Longint;


function RasSetAutodialEnable( dwDialingLocation: Longint; fEnabled: LongBool ): Longint;


function RasSetAutodialEnableA( dwDialingLocation: Longint; fEnabled: LongBool ): Longint;


function RasSetAutodialEnableW( dwDialingLocation: Longint; fEnabled: LongBool ): Longint;


function RasSetAutodialParam( dwKey: Longint; lpvValue: Pointer; dwcbValue: Longint ): Longint;


function RasSetAutodialParamA( dwKey: Longint; lpvValue: Pointer; dwcbValue: Longint ): Longint;


function RasSetAutodialParamW( dwKey: Longint; lpvValue: Pointer; dwcbValue: Longint ): Longint;


function RasSetCredentials( lpszPhoneBook, lpszEntry: PChar; var lpCredentials: TRasCredentials; fRemovePassword: LongBool ): Longint;


function RasSetCredentialsA( lpszPhoneBook, lpszEntry: PAnsiChar; var lpCredentials: TRasCredentialsA; fRemovePassword: LongBool ): Longint;


function RasSetCredentialsW( lpszPhoneBook, lpszEntry: PWideChar; var lpCredentials: TRasCredentialsW; fRemovePassword: LongBool ): Longint;


function RasSetEntryDialParams( lpszPhoneBook: PChar; var lpDialParams: TRasDialParams; fRemovePassword: LongBool ): Longint;


function RasSetEntryDialParamsA( lpszPhoneBook: PAnsiChar; var lpDialParams: TRasDialParamsA; fRemovePassword: LongBool ): Longint;


function RasSetEntryDialParamsW( lpszPhoneBook: PWideChar; var lpDialParams: TRasDialParamsW; fRemovePassword: LongBool ): Longint;


function RasSetEntryProperties( lpszPhonebook, szEntry: PChar; lpbEntry: Pointer; dwEntrySize: Longint; lpbDeviceInfo: Pointer; dwDeviceInfoSize: Longint ): Longint;


function RasSetEntryPropertiesA( lpszPhonebook, szEntry: PAnsiChar; lpbEntry: Pointer; dwEntrySize: Longint; lpbDeviceInfo: Pointer; dwDeviceInfoSize: Longint ): Longint;


function RasSetEntryPropertiesW( lpszPhonebook, szEntry: PWideChar; lpbEntry: Pointer; dwEntrySize: Longint; lpbDeviceInfo: Pointer; dwDeviceInfoSize: Longint ): Longint;


function RasSetSubEntryProperties( lpszPhoneBook, lpszEntry: PChar; dwSubEntry: Longint; var lpRasSubEntry: TRasSubEntry; dwcb: Longint; p: Pointer; dw: Longint ): Longint;


function RasSetSubEntryPropertiesA( lpszPhoneBook, lpszEntry: PAnsiChar; dwSubEntry: Longint; var lpRasSubEntry: TRasSubEntryA; dwcb: Longint; p: Pointer; dw: Longint ): Longint;


function RasSetSubEntryPropertiesW( lpszPhoneBook, lpszEntry: PWideChar; dwSubEntry: Longint; var lpRasSubEntry: TRasSubEntryW; dwcb: Longint; p: Pointer; dw: Longint ): Longint;


function RasValidateEntryName( lpszPhonebook, szEntry: PChar ): Longint;

function not found - try rnaph.dll

function RasValidateEntryNameA( lpszPhonebook, szEntry: PAnsiChar ): Longint;


function RasValidateEntryNameW( lpszPhonebook, szEntry: PWideChar ): Longint;


Types


LPHRasConn = ^THRasConn

LPRasAmb = ^TRasAmb

LPRasAmbA = ^TRasAmbA

LPRasAmbW = ^TRasAmbW
* Describes the result of a RAS AMB (Authentication Message Block) ** projection. This protocol is used with NT 3.1 and OS/2 1.3 downlevel ** RAS servers.
LPRasConn = ^TRasConn

LPRasConnA = ^TRasConnA

LPRasConnState = ^TRasConnState

LPRasConnStatus = ^TRasConnStatus

LPRasConnStatusA = ^TRasConnStatusA

LPRasConnStatusW = ^TRasConnStatusW
* Describes the status of a RAS connection. (See RasConnectionStatus)
LPRasConnW = ^TRasConnW
* Identifies an active RAS connection. (See RasEnumConnections)
LPRasCtryInfo = ^TRasCtryInfo
RAS Country Information (currently retreieved from TAPI).
LPRasCtryInfoA = ^TRasCtryInfoA

LPRasCtryInfoW = ^TRasCtryInfoW
* There is currently no difference between ** RASCTRYINFOA and RASCTRYINFOW. This may ** change in the future.
LPRasDevInfo = ^TRasDevInfo

LPRasDevInfoA = ^TRasDevInfoA
* Information describing a RAS-capable device.
LPRasDevInfoW = ^TRasDevInfoW

LPRasDialExtensions = ^TRasDialExtensions
* Describes extended connection establishment options. (See RasDial)
LPRasDialParams = ^TRasDialParams

LPRasDialParamsA = ^TRasDialParamsA

LPRasDialParamsW = ^TRasDialParamsW
* Describes connection establishment parameters. (See RasDial)
LPRasEntry = ^TRasEntry

LPRasEntryA = ^TRasEntryA
A RAS phonebook entry.
LPRasEntryName = ^TRasEntryName

LPRasEntryNameA = ^TRasEntryNameA

LPRasEntryNameW = ^TRasEntryNameW
* Describes an enumerated RAS phone book entry name. (See RasEntryEnum)
LPRasEntryW = ^TRasEntryW

LPRasIPAddr = ^TRasIPAddr
A RAS IP Address.
LPRasPppIp = ^TRasPppIp

LPRasPppIpA = ^TRasPppIpA

LPRasPppIpW = ^TRasPppIpW
* Describes the results of a PPP IP (Internet) projection.
LPRasPppIpx = ^TRasPppIpx

LPRasPppIpxA = ^TRasPppIpxA

LPRasPppIpxW = ^TRasPppIpxW
* Describes the results of a PPP IPX (Internetwork Packet Exchange) ** projection.
LpRasPppLcp = ^TRasPppLcp
* Describes the results of a PPP LCP/multi-link negotiation.
LpRaspppNbf = ^TRasPppNbf

LPRasPppNbfA = ^TRasPppNbfA

LPRasPppNbfW = ^TRasPppNbfW
* Describes the result of a PPP NBF (NetBEUI) projection.
LPRasProjection = ^TRasProjection
* Protocol code to projection data structure mapping.
LpRasSlip = ^TRasSlip

LpRasSlipA = ^TRasSlipA

LpRasSlipW = ^TRasSlipW
* Describes the results of a SLIP (Serial Line IP) projection.
THRasConn = Longint

TRasAmb = TRasAmbA

TRasAmbA = record
dwSize : Longint;
dwError : Longint;
szNetBiosError : Array[0..NETBIOS_NAME_LEN] of AnsiChar;
bLana : Byte;
end;

TRasAmbW = record
dwSize : Longint;
dwError : Longint;
szNetBiosError : Array[0..NETBIOS_NAME_LEN] of WideChar;
bLana : Byte;
end;

TRasConn = TRasConnA

TRasConnA = record
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 = Integer

TRasConnStatus = TRasConnStatusA

TRasConnStatusA = record
dwSize : Longint;
rasconnstate : TRasConnState;
dwError : LongInt;
szDeviceType : Array[0..RAS_MaxDeviceType] of AnsiChar;
szDeviceName : Array[0..RAS_MaxDeviceName] of AnsiChar;
end;

TRasConnStatusW = record
dwSize : Longint;
rasconnstate : TRasConnState;
dwError : LongInt;
szDeviceType : Array[0..RAS_MaxDeviceType] of WideChar;
szDeviceName : Array[0..RAS_MaxDeviceName] of WideChar;
end;

TRasConnW = record
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 = record
dwSize : Longint;
dwCountryID : Longint;
dwNextCountryID : Longint;
dwCountryCode : Longint;
dwCountryNameOffset : Longint;
end;

TRasCtryInfoA = TRasCtryInfo

TRasCtryInfoW = TRasCtryInfo

TRasDevInfo = TRasDevInfoA

TRasDevInfoA = record
dwSize : Longint;
szDeviceType : Array[0..RAS_MaxDeviceType] of AnsiChar;
szDeviceName : Array[0..RAS_MaxDeviceName] of AnsiChar;
end;

TRasDevInfoW = record
dwSize : Longint;
szDeviceType : Array[0..RAS_MaxDeviceType] of WideChar;
szDeviceName : Array[0..RAS_MaxDeviceName] of WideChar;
end;

TRasDialExtensions = record
dwSize : LongInt;
dwfOptions : LongInt;
hwndParent : HWND;
reserved : LongInt;
end;

TRasDialParams = TRasDialParamsA

TRasDialParamsA = record
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 = record
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 = TRasEntryA

TRasEntryA = record
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 = TRasEntryNameA

TRasEntryNameA = record
dwSize : Longint;
szEntryName : Array[0..RAS_MaxEntryName] of AnsiChar;
end;

TRasEntryNameW = record
dwSize : Longint;
szEntryName : Array[0..RAS_MaxEntryName] of WideChar;
end;

TRasEntryW = record
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 = record
a : Byte;
b : Byte;
c : Byte;
d : Byte;
end;

TRasPppIp = TRasPppIpA

TRasPppIpA = record
dwSize : Longint;
dwError : Longint;
szIpAddress : Array[0..RAS_MaxIpAddress] of AnsiChar;
szServerIpAddress : Array[0..RAS_MaxIpAddress] of AnsiChar;
end;

TRasPppIpW = record
dwSize : Longint;
dwError : Longint;
szIpAddress : Array[0..RAS_MaxIpAddress] of WideChar;
szServerIpAddress : Array[0..RAS_MaxIpAddress] of WideChar;
end;

TRasPppIpx = TRasPppIpxA

TRasPppIpxA = record
dwSize : Longint;
dwError : Longint;
szIpxAddress : Array[0..RAS_MaxIpxAddress] of AnsiChar;
end;

TRasPppIpxW = record
dwSize : Longint;
dwError : Longint;
szIpxAddress : Array[0..RAS_MaxIpxAddress] of WideChar;
end;

TRasPppLcp = record
dwSize : Longint;
fBundled : LongBool;
end;

TRasPppNbf = TRasPppNbfA

TRasPppNbfA = record
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 = record
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 = Integer

TRasSlip = TRasSlipA

TRasSlipA = record
dwSize : Longint;
dwError : Longint;
szIpAddress : Array[0..RAS_MaxIpAddress] of AnsiChar;
end;

TRasSlipW = record
dwSize : Longint;
dwError : Longint;
szIpAddress : Array[0..RAS_MaxIpAddress] of WideChar;
end;

Constants

DNLEN = 15

These are from lmcons.h

ERROR_ACCESSING_TCPCFGDLL = (RASBASE+127)

* The IPX protocol cannot be used for dial-out on more than one port at a time.%0

ERROR_ACCT_DISABLED = (RASBASE+47)

* The account is not permitted to logon at this time of day.%0

ERROR_ACCT_EXPIRED = (RASBASE+108)

* X.25 diagnostic indication.%0

ERROR_ALLOCATING_MEMORY = (RASBASE+64)

* The media .INI file refers to an unknown device type.%0

ERROR_ALREADY_DISCONNECTING = (RASBASE+17)

* An asynchronous request is pending.%0

ERROR_ASYNC_REQUEST_PENDING = (RASBASE+16)

* The port was not found.%0

ERROR_AUTHENTICATION_FAILURE = (RASBASE+91)

* ERROR_EMPTY_INI_FILE%0

ERROR_AUTH_INTERNAL = (RASBASE+45)

* You will not receive network message popups.%0

ERROR_BAD_CALLBACK_NUMBER = (RASBASE+104)

* ERROR_INTERACTIVE_MODE%0

ERROR_BAD_PHONE_NUMBER = (RASBASE+149)

* ERROR_SMM_TIMEOUT%0

ERROR_BAD_STRING = (RASBASE+37)

* The wrong device is attached to the port.%0

ERROR_BAD_USAGE_IN_INI_FILE = (RASBASE+69)

* The connection dropped.%0

ERROR_BIPLEX_PORT_NOT_AVAILABLE = (RASBASE+112)

* RasMan initialization failure. Check the event log.%0

ERROR_BUFFER_INVALID = (RASBASE+10)

* The device type does not exist.%0

ERROR_BUFFER_TOO_SMALL = (RASBASE+3)

* The port is already open.%0

ERROR_CANNOT_FIND_PHONEBOOK_ENTRY = (RASBASE+23)

* Cannot load the phone book file.%0

ERROR_CANNOT_GET_LANA = (RASBASE+39)

* The request has timed out.%0

ERROR_CANNOT_LOAD_PHONEBOOK = (RASBASE+22)

* Cannot open the phone book file.%0

ERROR_CANNOT_LOAD_STRING = (RASBASE+26)

* Invalid information found in the phone book file.%0

ERROR_CANNOT_OPEN_PHONEBOOK = (RASBASE+21)

* There are no endpoints.%0

ERROR_CANNOT_PROJECT_CLIENT = (RASBASE+34)

* The port is already in use or is not configured for Remote Access dial out.%0

ERROR_CANNOT_SET_PORT_INFO = (RASBASE+5)

* Wrong information specified.%0

ERROR_CANNOT_USE_LOGON_CREDENTIALS = (RASBASE+139)

* The server did not assign an address.%0

ERROR_CANNOT_WRITE_PHONEBOOK = (RASBASE+24)

* Cannot find the phone book entry.%0

ERROR_CHANGING_PASSWORD = (RASBASE+109)

* The account has expired.%0

ERROR_CMD_TOO_LONG = (RASBASE+100)

* The device response caused buffer overflow.%0

ERROR_CORRUPT_PHONEBOOK = (RASBASE+25)

* Cannot write the phone book file.%0

ERROR_DCB_NOT_FOUND = (RASBASE+94)

* ERROR_NOT_BINARY_MACRO%0

ERROR_DEFAULTOFF_MACRO_NOT_FOUND = (RASBASE+56)

* The macro was not found in the device .INF file secion.%0

ERROR_DEVICENAME_NOT_FOUND = (RASBASE+59)

* The device name in the device .INF or media .INI file is too long.%0

ERROR_DEVICENAME_TOO_LONG = (RASBASE+58)

* The device .INF file could not be opened.%0

ERROR_DEVICETYPE_DOES_NOT_EXIST = (RASBASE+9)

* The device does not exist.%0

ERROR_DEVICE_DOES_NOT_EXIST = (RASBASE+8)

* The event is invalid.%0

ERROR_DEVICE_NOT_READY = (RASBASE+66)

* The port is not configured for Remote Access.%0

ERROR_DISCONNECTION = (RASBASE+28)

* Cannot find key.%0

ERROR_EMPTY_INI_FILE = (RASBASE+90)

* ERROR_READING_DEFAULTOFF%0

ERROR_EVENT_INVALID = (RASBASE+7)

* The port is not connected.%0

ERROR_FILE_COULD_NOT_BE_OPENED = (RASBASE+57)

* The macro in the device .INF file section contains an undefined macro.%0

ERROR_FROM_DEVICE = (RASBASE+51)

* The Remote Access server is not responding.%0

ERROR_HARDWARE_FAILURE = (RASBASE+30)

* The port was disconnected by the remote machine.%0

ERROR_INTERACTIVE_MODE = (RASBASE+103)

* Device response received when none expected.%0

ERROR_INVALID_AUTH_STATE = (RASBASE+105)

* ERROR_BAD_CALLBACK_NUMBER

ERROR_INVALID_CALLBACK_NUMBER = (RASBASE+151)

* ERROR_WRONG_MODULE%0

ERROR_INVALID_COMPRESSION_SPECIFIED = (RASBASE+13)

* The route is not allocated.%0

ERROR_INVALID_PORT_HANDLE = (RASBASE+1)

* An operation is pending.%0

ERROR_INVALID_SIZE = (RASBASE+32)

* The port was disconnected by the user.%0

ERROR_INVALID_SMM = (RASBASE+145)

* Cannot use the IPX network number assigned by remote server. Check the event log.%0

ERROR_IN_COMMAND = (RASBASE+81)

* There is no dial tone.%0

ERROR_IPXCP_DIALOUT_ALREADY_ACTIVE = (RASBASE+126)

* The IPX protocol cannot dial-in on the port because the IPX router is not installed.%0

ERROR_IPXCP_NET_NUMBER_CONFLICT = (RASBASE+144)

* The remote server requires encryption.%0

ERROR_IPXCP_NO_DIALIN_CONFIGURED = (RASBASE+125)

* The IPX protocol cannot dial-out on the port because the machine is an IPX router.%0

ERROR_IPXCP_NO_DIALOUT_CONFIGURED = (RASBASE+124)

* The phone number including prefix and suffix is too long.%0

ERROR_IP_CONFIGURATION = (RASBASE+116)

* Too many errors occured because of poor phone line quality.%0

ERROR_KEY_NOT_FOUND = (RASBASE+27)

* Cannot load a string.%0

ERROR_LINE_BUSY = (RASBASE+76)

* Cannot read the maximum carrier BPS rate from the media .INI file.%0

ERROR_MACRO_NOT_DEFINED = (RASBASE+54)

* A macro required by the device was not found in the device .INF file section.%0

ERROR_MACRO_NOT_FOUND = (RASBASE+53)

* Unrecognized response from the device.%0

ERROR_MESSAGE_MACRO_NOT_FOUND = (RASBASE+55)

* A command or response in the device .INF file section refers to an undefined macro.%0

ERROR_NAME_EXISTS_ON_NET = (RASBASE+42)

* The server cannot allocate NetBIOS resources needed to support the client.%0

ERROR_NETBIOS_ERROR = (RASBASE+40)

* No asynchronous net available.%0

ERROR_NOT_BINARY_MACRO = (RASBASE+93)

* Hardware failure in port or attached device.%0

ERROR_NO_ACTIVE_ISDN_LINES = (RASBASE+113)

* Biplex port initializing. Wait a few seconds and redial.%0

ERROR_NO_ANSWER = (RASBASE+78)

* A person answered instead of a modem.%0

ERROR_NO_CARRIER = (RASBASE+79)

* There is no answer.%0

ERROR_NO_COMMAND_FOUND = (RASBASE+61)

* The device .INF file contains no responses for the command.%0

ERROR_NO_CONNECTION = (RASBASE+68)

* Cannot read the media .INI file.%0

ERROR_NO_DIALIN_PERMISSION = (RASBASE+49)

* The password has expired.%0

ERROR_NO_DIALTONE = (RASBASE+80)

* Cannot detect carrier.%0

ERROR_NO_ENDPOINTS = (RASBASE+20)

* The port is disconnected.%0

ERROR_NO_IP_ADDRESSES = (RASBASE+117)

* The Remote Access IP configuration is unusable.%0

ERROR_NO_IP_RAS_ADAPTER = (RASBASE+128)

* Cannot access TCPCFG.DLL.%0

ERROR_NO_ISDN_CHANNELS_AVAILABLE = (RASBASE+114)

* No active ISDN lines are available.%0

ERROR_NO_LOCAL_ENCRYPTION = (RASBASE+141)

* Invalid TAPI configuration.%0

ERROR_NO_MAC_FOR_PORT = (RASBASE+147)

* ERROR_SMM_UNINITIALIZED%0

ERROR_NO_REMOTE_ENCRYPTION = (RASBASE+142)

* The local computer does not support encryption.%0

ERROR_NO_RESPONSES = (RASBASE+60)

* The media .INI file refers to an unknown device name.%0

ERROR_OUT_OF_BUFFERS = (RASBASE+14)

* Invalid compression specified.%0

ERROR_OVERRUN = (RASBASE+110)

* Error changing password on domain. The password may be too short or may match a previously used password.%0

ERROR_PARTIAL_RESPONSE_LOOPING = (RASBASE+97)

* ERROR_STATE_MACHINES_ALREADY_STARTED%0

ERROR_PASSWD_EXPIRED = (RASBASE+48)

* The account is disabled.%0

ERROR_PHONE_NUMBER_TOO_LONG = (RASBASE+123)

* The PPP packet is invalid.%0

ERROR_PORT_ALREADY_OPEN = (RASBASE+2)

* The port handle is invalid.%0

ERROR_PORT_DISCONNECTED = (RASBASE+19)

* The port is not open.%0

ERROR_PORT_NOT_AVAILABLE = (RASBASE+33)

* The structure size is incorrect.%0

ERROR_PORT_NOT_CONFIGURED = (RASBASE+65)

* Cannot allocate memory.%0

ERROR_PORT_NOT_CONNECTED = (RASBASE+6)

* Cannot set port information.%0

ERROR_PORT_NOT_FOUND = (RASBASE+15)

* Out of buffers.%0

ERROR_PORT_NOT_OPEN = (RASBASE+18)

* The port or device is already disconnecting.%0

ERROR_PORT_OR_DEVICE = (RASBASE+92)

* Access denied because username and/or password is invalid on the domain.%0

ERROR_PPP_CP_REJECTED = (RASBASE+133)

* The PPP negotiation is not converging.%0

ERROR_PPP_INVALID_PACKET = (RASBASE+122)

* Remote PPP peer is not responding.%0

ERROR_PPP_LCP_TERMINATED = (RASBASE+134)

* The PPP control protocol for this network protocol is not available on the server.%0

ERROR_PPP_LOOPBACK_DETECTED = (RASBASE+137)

* The remote computer terminated the control protocol.%0

ERROR_PPP_NCP_TERMINATED = (RASBASE+136)

* The requested address was rejected by the server.%0

ERROR_PPP_NOT_CONVERGING = (RASBASE+132)

* The protocol is not configured.%0

ERROR_PPP_NO_ADDRESS_ASSIGNED = (RASBASE+138)

* Loopback detected.%0

ERROR_PPP_NO_PROTOCOLS_CONFIGURED = (RASBASE+120)

* PPP terminated by remote machine.%0

ERROR_PPP_NO_RESPONSE = (RASBASE+121)

* No PPP control protocols configured.%0

ERROR_PPP_REMOTE_TERMINATED = (RASBASE+119)

* Timed out waiting for a valid response from the remote PPP peer.%0

ERROR_PPP_REQUIRED_ADDRESS_REJECTED = (RASBASE+135)

* The PPP link control protocol terminated.%0

ERROR_PPP_TIMEOUT = (RASBASE+118)

* No IP addresses are available in the static pool of Remote Access IP addresses.%0

ERROR_PROJECTION_NOT_COMPLETE = (RASBASE+130)

* SLIP cannot be used unless the IP protocol is installed.%0

ERROR_PROTOCOL_NOT_CONFIGURED = (RASBASE+131)

* Computer registration is not complete.%0

ERROR_RASMAN_CANNOT_INITIALIZE = (RASBASE+111)

* Serial overrun errors were detected while communicating with your modem.%0

ERROR_READING_DEFAULTOFF = (RASBASE+89)

* ERROR_WRITING_DEFAULTOFF%0

ERROR_READING_DEVICENAME = (RASBASE+72)

* Cannot read the device type from the media .INI file.%0

ERROR_READING_DEVICETYPE = (RASBASE+71)

* Cannot read the section name from the media .INI file.%0

ERROR_READING_INI_FILE = (RASBASE+67)

* Your modem (or other connecting device) is not functioning.%0

ERROR_READING_MAXCARRIERBPS = (RASBASE+75)

* Cannot read the maximum connection BPS rate from the media .INI file.%0

ERROR_READING_MAXCONNECTBPS = (RASBASE+74)

* Cannot read the usage from the media .INI file.%0

ERROR_READING_SECTIONNAME = (RASBASE+70)

* The usage parameter in the media .INI file is invalid.%0

ERROR_READING_USAGE = (RASBASE+73)

* Cannot read the device name from the media .INI file.%0

ERROR_RECV_BUF_FULL = (RASBASE+99)

* A response keyname in the device .INF file is not in the expected format.%0

ERROR_REMOTE_DISCONNECTION = (RASBASE+29)

* The port was disconnected.%0

ERROR_REMOTE_REQUIRES_ENCRYPTION = (RASBASE+143)

* The remote server does not support encryption.%0

ERROR_REQUEST_TIMEOUT = (RASBASE+38)

* The string could not be converted.%0

ERROR_RESTRICTED_LOGON_HOURS = (RASBASE+46)

* Internal authentication error.%0

ERROR_ROUTE_NOT_ALLOCATED = (RASBASE+12)

* The route is not available.%0

ERROR_ROUTE_NOT_AVAILABLE = (RASBASE+11)

* The buffer is invalid.%0

ERROR_SCRIPT_SYNTAX = (RASBASE+152)

* Invalid callback number. Only the characters 0 to 9, T, P, W, (, ), -, @, and space are allowed in the number.%0

ERROR_SERVER_GENERAL_NET_FAILURE = (RASBASE+43)

* One of your NetBIOS names is already registered on the remote network.%0

ERROR_SERVER_NOT_RESPONDING = (RASBASE+50)

* The account does not have Remote Access permission.%0

ERROR_SERVER_OUT_OF_RESOURCES = (RASBASE+41)

* A NetBIOS error has occurred.%0

ERROR_SLIP_REQUIRES_IP = (RASBASE+129)

* Cannot find an IP adapter bound to Remote Access.%0

ERROR_SMM_TIMEOUT = (RASBASE+148)

* ERROR_NO_MAC_FOR_PORT%0

ERROR_SMM_UNINITIALIZED = (RASBASE+146)

* ERROR_INVALID_SMM%0

ERROR_STATE_MACHINES_ALREADY_STARTED = (RASBASE+96)

* ERROR_STATE_MACHINES_NOT_STARTED%0

ERROR_STATE_MACHINES_NOT_STARTED = (RASBASE+95)

* ERROR_DCB_NOT_FOUND%0

ERROR_TAPI_CONFIGURATION = (RASBASE+140)

* The authentication protocol required by the remote server cannot use the Windows NT encrypted password. Redial, entering the password explicitly.%0

ERROR_TOO_MANY_LINE_ERRORS = (RASBASE+115)

* No ISDN channels are available to make the call.%0

ERROR_UNEXPECTED_RESPONSE = (RASBASE+102)

* The device moved to a BPS rate not supported by the COM driver.%0

ERROR_UNKNOWN = (RASBASE+35)

* Cannot register your computer on on the remote network.%0

ERROR_UNKNOWN_DEVICE_TYPE = (RASBASE+63)

* Attempted to set a macro not listed in device .INF file section.%0

ERROR_UNKNOWN_RESPONSE_KEY = (RASBASE+98)

* ERROR_PARTIAL_RESPONSE_LOOPING%0

ERROR_UNRECOGNIZED_RESPONSE = (RASBASE+52)

* Your modem (or other connecting device) has reported an error.%0

ERROR_UNSUPPORTED_BPS = (RASBASE+101)

* The expanded command in the device .INF file is too long.%0

ERROR_USER_DISCONNECTION = (RASBASE+31)

* The port was disconnected due to hardware failure.%0

ERROR_VOICE_ANSWER = (RASBASE+77)

* The line is busy.%0

ERROR_WRITING_DEFAULTOFF = (RASBASE+88)

* ERROR_WRITING_USAGE%0

ERROR_WRITING_DEVICENAME = (RASBASE+84)

* ERROR_WRITING_DEVICETYPE%0

ERROR_WRITING_DEVICETYPE = (RASBASE+83)

* ERROR_WRITING_SECTIONNAME%0

ERROR_WRITING_INITBPS = (RASBASE+106)

* ERROR_INVALID_AUTH_STATE%0

ERROR_WRITING_MAXCARRIERBPS = (RASBASE+86)

* ERROR_WRITING_MAXCONNECTBPS%0

ERROR_WRITING_MAXCONNECTBPS = (RASBASE+85)

* ERROR_WRITING_DEVICENAME%0

ERROR_WRITING_SECTIONNAME = (RASBASE+82)

* General error reported by device.%0

ERROR_WRITING_USAGE = (RASBASE+87)

* ERROR_WRITING_MAXCARRIERBPS%0

ERROR_WRONG_DEVICE_ATTACHED = (RASBASE+36)

* Unknown error.%0

ERROR_WRONG_INFO_SPECIFIED = (RASBASE+4)

* Caller's buffer is too small.%0

ERROR_WRONG_KEY_SPECIFIED = (RASBASE+62)

* The device .INF file is missing a command.%0

ERROR_WRONG_MODULE = (RASBASE+150)

* ERROR_BAD_PHONE_NUMBER%0

ERROR_X25_DIAGNOSTIC = (RASBASE+107)

* ERROR_WRITING_INITBPS%0

NETBIOS_NAME_LEN = 16

Maximum password length

PENDING = (RASBASE+0)

PWLEN = 256

Maximum user name length

RASBASE = 600

** raserror.h ** Remote Access external API ** RAS specific error codes

RASBASEEND = (RASBASE+152)

* A syntax error was encountered while processing a script.%0

RASCS_AllDevicesConnected = 4

RASCS_AuthAck = 12

RASCS_AuthCallback = 8

RASCS_AuthChangePassword = 9

RASCS_Authenticate = 5

RASCS_Authenticated = 14

RASCS_AuthLinkSpeed = 11

RASCS_AuthNotify = 6

RASCS_AuthProject = 10

RASCS_AuthRetry = 7

RASCS_CallbackComplete = 20

RASCS_CallbackSetByCaller = RASCS_PAUSED + 2

RASCS_ConnectDevice = 2

RASCS_Connected = RASCS_DONE

RASCS_DeviceConnected = 3

RASCS_Disconnected = RASCS_DONE + 1

RASCS_DONE = $2000

RASCS_Interactive = RASCS_PAUSED

RASCS_LogonNetwork = 21

RASCS_OpenPort = 0

RASCS_PasswordExpired = RASCS_PAUSED + 3

RASCS_PAUSED = $1000

* Enumerates intermediate states to a connection. (See RasDial)

RASCS_PortOpened = 1

RASCS_PrepareForCallback = 15

RASCS_Projected = 18

RASCS_ReAuthenticate = 13

RASCS_RetryAuthentication = RASCS_PAUSED + 1

RASCS_StartAuthentication = 19

RASCS_WaitForCallback = 17

RASCS_WaitForModemReset = 16

RASDIALEVENT = 'RasDialEvent'

* If using RasDial message notifications, get the notification message code ** by passing this string to the RegisterWindowMessageA() API. ** WM_RASDIALEVENT is used only if a unique message cannot be registered.

RASDT_Isdn = 'isdn'

Modem

RASDT_Modem = 'modem'

Microsoft proprietary protocol (* TRasEntry 'szDeviceType' strings

RASDT_X25 = 'x25'

ISDN

RASEO_DisableLcpExtensions = $00000020

RASEO_IpHeaderCompression = $00000008

RASEO_ModemLights = $00000100

RASEO_NetworkLogon = $00002000

RASEO_PromoteAlternates = $00008000

RASEO_RemoteDefaultGateway = $00000010

RASEO_RequireDataEncryption = $00001000

RASEO_RequireEncryptedPw = $00000400

RASEO_RequireMsEncryptedPw = $00000800

RASEO_SpecificIpAddr = $00000002

RASEO_SpecificNameServers = $00000004

RASEO_SwCompression = $00000200

RASEO_TerminalAfterDial = $00000080

RASEO_TerminalBeforeDial = $00000040

RASEO_UseCountryAndAreaCodes = $00000001

TRasEntry 'dwfOptions' bit flags.

RASEO_UseLogonCredentials = $00004000

RASFP_Ppp = $00000001

Negotiate TCP/IP (* TRasEntry 'dwFramingProtocols' (framing protocols used by the server)

RASFP_Ras = $00000004

Serial Line Internet Protocol (SLIP

RASFP_Slip = $00000002

Point-to-Point Protocol (PPP

RASNP_Ip = $00000004

Negotiate IPX

RASNP_Ipx = $00000002

Negotiate NetBEUI

RASNP_Netbeui = $00000001

TRasEntry 'dwfNetProtocols' bit flags. (session negotiated protocols)

RASP_Amb = $10000

RASP_PppIp = $8021

RASP_PppIpx = $802B

RASP_PppLcp = $C021

RASP_PppNbf = $803F

RASP_Slip = $20000

RAS_MaxAreaCode = 10

RAS_MaxCallbackNumber = RAS_MaxPhoneNumber

RAS_MaxDeviceName = 128

RAS_MaxDeviceType = 16

NetBIOS net name (bytes

RAS_MaxEntryName = 256

Version 4.x sizes

RAS_MaxFacilities = 200

RAS_MaxIpAddress = 15

RAS_MaxIpxAddress = 21

RAS_MaxPadType = 32

RAS_MaxPhoneNumber = 128

RAS_MaxUserData = 200

RAS_MaxX25Address = 200

RDEOPT_DisableConnectedUI = $00000040

RDEOPT_DisableReconnect = $00000100

RDEOPT_DisableReconnectUI = $00000080

RDEOPT_IgnoreModemSpeaker = $00000004

RDEOPT_IgnoreSoftwareCompression = $00000010

RDEOPT_NoUser = $00000200

RDEOPT_PausedStates = $00000002

RDEOPT_PauseOnScript = $00000400

RDEOPT_SetModemSpeaker = $00000008

RDEOPT_SetSoftwareCompression = $00000020

RDEOPT_UsePrefixSuffix = $00000001

* 'dwfOptions' bit flags.

SUCCESS = 0

UNLEN = 256

Maximum domain name length

WARNING_MSG_ALIAS_NOT_ADDED = (RASBASE+44)

* A network adapter at the server failed.%0

WM_RASDIALEVENT = $CCCD


Variables