TRASPROJECTION = integer; TRASPPPIP = record dwSize : DWORD; dwError : DWORD; szIpAddress : array [0..RAS_MaxIpAddress] of char; end;
function RasDialA(RasDialExtensions: PRASDIALEXTENSIONS; PhoneBook : PChar; RasDialParams : PRASDIALPARAMS; NotifierType : DWORD; Notifier : Pointer; RasConn : PHRASCONN ): DWORD; stdcall; function RasGetErrorStringA( uErrorValue : DWORD; // error to get string for szErrorString : PChar; // buffer to hold error string cBufSize : DWORD // size, in characters, of buffer ): DWORD; stdcall; function RasHangupA(RasConn: THRASCONN): DWORD; stdcall; function RasConnectionStateToString(nState : Integer) : String; function RasGetConnectStatusA( hRasConn: THRASCONN; // handle to RAS connection of interest lpRasConnStatus : PRASCONNSTATUS // buffer to receive status data ): DWORD; stdcall; function RasEnumConnectionsA( pRasConn : PRASCONN; // buffer to receive connections data pCB : PDWORD; // size in bytes of buffer pcConnections : PDWORD // number of connections written to buffer ) : DWORD; stdcall function RasEnumEntriesA( Reserved : Pointer; // reserved, must be NIL szPhonebook : PChar; // full path and filename of phonebook file lpRasEntryName : PRASENTRYNAME; // buffer to receive entries lpcb : PDWORD; // size in bytes of buffer lpcEntries : PDWORD // number of entries written to buffer ) : DWORD; stdcall; function RasGetEntryDialParamsA( lpszPhonebook : PChar; // pointer to the full path and filename of the phonebook file lprasdialparams : PRASDIALPARAMS; // pointer to a structure that receives the connection parameters lpfPassword : PBOOL // indicates whether the user''''s password was retrieved ) : DWORD; stdcall; function RasEditPhonebookEntryA( hWndParent : HWND; // handle to the parent window of the dialog box lpszPhonebook : PChar; // pointer to the full path and filename of the phonebook file lpszEntryName : PChar // pointer to the phonebook entry name ) : DWORD; stdcall; //function RasEntryDlgA( // lpszPhonebook : PChar; // pointer to the full path and filename of the phone-book file // lpszEntry : PChar; // pointer to the name of the phone-book entry to edit, copy, or create // lpInfo : PRASENTRYDLG // pointer to a structure that contains additional parameters // ) : DWORD; stdcall; function RasCreatePhonebookEntryA( hWndParent : HWND; // handle to the parent window of the dialog box lpszPhonebook : PChar // pointer to the full path and filename of the phonebook file ) : DWORD; stdcall;
function RasGetProjectionInfoA( hRasConn : THRASCONN; // handle that specifies remote access connection of interest RasProjection : TRASPROJECTION; // specifies type of projection information to obtain lpProjection : Pointer; // points to buffer that receives projection information lpcb : PDWORD // points to variable that specifies buffer size ) : DWORD; stdcall; function RasGetIPAddress: string;