Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.7 KiB

  1. /*
  2. File : ASTRA_RAS.h
  3. */
  4. //typedef DWORD (WINAPI *RASGETENTRYPROPERTIES) ( LPTSTR, LPTSTR, LPRASENTRY, LPDWORD, LPBYTE, LPDWORD );
  5. //typedef DWORD (APIENTRY *RASGETENTRYPROPERTIES) ( LPTSTR, LPTSTR, LPRASENTRY, LPDWORD, LPBYTE, LPDWORD );
  6. #ifndef __ASTRATEK_RAS_WRAPPER
  7. #define __ASTRATEK_RAS_WRAPPER
  8. #include <windows.h>
  9. #include <tchar.h>
  10. #include <ras.h>
  11. #include <raserror.h>
  12. #include <rasdlg.h>
  13. #define ERROR_LOADING_RAS_DLL -1
  14. #define RAS_DLL_LOADED 1
  15. #define RAS_DLL_NOT_LOADED 0
  16. typedef DWORD (APIENTRY *RASGETENTRYPROPERTIES) ( LPTSTR, LPTSTR, LPRASENTRY, LPDWORD, LPBYTE, LPDWORD );
  17. typedef DWORD (APIENTRY *RASSETENTRYPROPERTIES) ( LPTSTR, LPTSTR, LPRASENTRY, DWORD, LPBYTE, DWORD );
  18. typedef DWORD (APIENTRY *RASDELETEENTRY) ( LPTSTR, LPTSTR );
  19. typedef DWORD (APIENTRY *RASGETERRORSTRING) (UINT, LPTSTR, DWORD );
  20. typedef DWORD (APIENTRY *RASDIAL) ( LPRASDIALEXTENSIONS, LPTSTR, LPRASDIALPARAMS, DWORD,
  21. LPVOID, LPHRASCONN );
  22. typedef DWORD (APIENTRY* RASHANGUP) ( HRASCONN );
  23. typedef DWORD (APIENTRY* RASENUMDEVICES) ( LPRASDEVINFO, LPDWORD, LPDWORD );
  24. typedef DWORD (APIENTRY* RASENUMCONNECTIONS) (LPRASCONN , LPDWORD, LPDWORD);
  25. typedef DWORD (APIENTRY* RASGETCOUNTRYINFO)( LPRASCTRYINFO, LPDWORD );
  26. typedef DWORD (APIENTRY* RASGETCONNECTIONSTATUS)( HRASCONN, LPRASCONNSTATUS );
  27. int ATK_IsRasDllOk();
  28. DWORD ATK_RasDial( LPRASDIALEXTENSIONS lpRasDial,
  29. LPTSTR lpPhBk,
  30. LPRASDIALPARAMS lpDialParam,
  31. DWORD dwNotifyType,
  32. LPVOID lpNotifier,
  33. LPHRASCONN lphRasConn);
  34. DWORD ATK_RasHangUp ( HRASCONN hrasconn );
  35. DWORD ATK_RasGetEntryProperties(
  36. LPTSTR lpszPhonebook,
  37. LPTSTR lpszEntry,
  38. LPRASENTRY lpRasEntry,
  39. LPDWORD lpdwEntryInfoSize,
  40. LPBYTE lpbDeviceInfo,
  41. LPDWORD lpdwDeviceInfoSize );
  42. DWORD ATK_RasSetEntryProperties(
  43. LPTSTR lpszPhonebook,
  44. LPTSTR lpszEntry,
  45. LPRASENTRY lpRasEntry,
  46. DWORD dwEntryInfoSize,
  47. LPBYTE lpbDeviceInfo,
  48. DWORD dwDeviceInfoSize );
  49. DWORD ATK_RasDeleteEntry( LPTSTR lpszPhonebook,
  50. LPTSTR lpszEntry);
  51. DWORD ATK_RasGetErrorString( UINT uErrorValue,
  52. LPTSTR lpszErrorString,
  53. DWORD cBufSize );
  54. DWORD ATK_RasEnumDevices( LPRASDEVINFO lpRasDevInfo,
  55. LPDWORD lpcb,
  56. LPDWORD lpcDevices);
  57. DWORD ATK_RasEnumConnections ( LPRASCONN lprasconn,
  58. LPDWORD lpcb,
  59. LPDWORD lpcConnections);
  60. DWORD ATK_RasGetCountryInfo( LPRASCTRYINFO lpRasCtryInfo,
  61. LPDWORD lpdwSize );
  62. DWORD ATK_RasGetCountryInfoA( LPRASCTRYINFO lpRasCtryInfo,
  63. LPDWORD lpdwSize );
  64. DWORD ATK_RasGetConnectionStatus( HRASCONN hrasconn,
  65. LPRASCONNSTATUS lprasconnstatus );
  66. #endif