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
1.3 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1997 - 1999
  3. Module Name:
  4. wan.hxx
  5. Abstract:
  6. This file contains all the WAN-specific routines for the Connectivity
  7. APIs implementation.
  8. Author:
  9. Gopal Parupudi <GopalP>
  10. [Notes:]
  11. optional-notes
  12. Revision History:
  13. GopalP 10/11/1997 Start.
  14. --*/
  15. #ifndef __WAN_HXX__
  16. #define __WAN_HXX__
  17. #define RAS_MANAGER SENS_STRING("RasMan")
  18. #define RAS_EVENT_CONNECT SENS_STRING("SENS Notify - Ras Connect Event")
  19. #define RAS_EVENT_DISCONNECT SENS_STRING("SENS Notify - Ras Disconnect Event")
  20. #define MAX_WAN_INTERVAL 3*60*1000 // 3 minutes
  21. #define MAX_RAS_CONNECTIONS 1 // Start with a max of 1.
  22. //
  23. // Externs
  24. //
  25. extern long gdwLastWANTime;
  26. extern long gdwWANState;
  27. //
  28. // Forward Declarations
  29. //
  30. BOOL
  31. IsRasInstalled(
  32. OUT LPDWORD lpdwState,
  33. OUT LPDWORD lpdwLastError
  34. );
  35. #if defined(SENS_NT4) || defined(SENS_CHICAGO)
  36. BOOL
  37. RegisterWithRas(
  38. void
  39. );
  40. BOOL
  41. UnregisterWithRas(
  42. void
  43. );
  44. VOID
  45. RasEventNotifyRoutine(
  46. PVOID pContext,
  47. BOOLEAN bTimeout
  48. );
  49. #endif // SENS_NT4 || SENS_CHICAGO
  50. BOOL WINAPI
  51. EvaluateWanConnectivity(
  52. OUT LPDWORD lpdwLastError
  53. );
  54. #endif // __WAN_HXX__