Source code of Windows XP (NT5)
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.

69 lines
2.2 KiB

  1. /***************************************************************************
  2. *
  3. * Copyright (C) 2001-2002 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: dpnhpastlocals.h
  6. *
  7. * Content: Header for DPNHPAST global variables and functions found in
  8. * dpnhpastdllmain.cpp.
  9. *
  10. * History:
  11. * Date By Reason
  12. * ======== ======== =========
  13. * 04/16/01 VanceO Split DPNATHLP into DPNHUPNP and DPNHPAST.
  14. *
  15. ***************************************************************************/
  16. //=============================================================================
  17. // Registry locations
  18. //=============================================================================
  19. #define REGKEY_COMPONENTSUBKEY L"DPNHPAST"
  20. ///=============================================================================
  21. // External defines
  22. //=============================================================================
  23. #define OVERRIDEMODE_DEFAULT 0 // leave settings alone
  24. #define OVERRIDEMODE_FORCEON 1 // force it to be on, regardless of Initialize flags
  25. #define OVERRIDEMODE_FORCEOFF 2 // force it to be off, regardless of Initialize flags
  26. ///=============================================================================
  27. // External variable references
  28. //=============================================================================
  29. extern volatile LONG g_lOutstandingInterfaceCount;
  30. extern DNCRITICAL_SECTION g_csGlobalsLock;
  31. extern CBilink g_blNATHelpPASTObjs;
  32. extern DWORD g_dwHoldRand;
  33. extern DWORD g_dwPASTICSMode;
  34. extern DWORD g_dwPASTPFWMode;
  35. extern INT g_iUnicastTTL;
  36. extern DWORD g_dwDefaultGatewayV4;
  37. extern DWORD g_dwSubnetMaskV4;
  38. extern DWORD g_dwNoActiveNotifyPollInterval;
  39. extern DWORD g_dwMinUpdateServerStatusInterval;
  40. extern DWORD g_dwPollIntervalBackoff;
  41. extern DWORD g_dwMaxPollInterval;
  42. extern BOOL g_fKeepPollingForRemoteGateway;
  43. extern DWORD g_dwReusePortTime;
  44. extern DWORD g_dwCacheLifeFound;
  45. extern DWORD g_dwCacheLifeNotFound;
  46. //=============================================================================
  47. // External function references
  48. //=============================================================================
  49. void ReadRegistrySettings(void);
  50. DWORD GetGlobalRand(void);