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.

67 lines
2.4 KiB

  1. /*
  2. Copyright (c) 1998, Microsoft Corporation, all rights reserved
  3. Description:
  4. History:
  5. */
  6. #ifndef _HELPER__H_
  7. #define _HELPER__H_
  8. #include "rasiphlp_.h"
  9. #include <dhcpcapi.h>
  10. #include <rasman.h>
  11. #include <llinfo.h>
  12. #include <ddwanarp.h>
  13. #include <winsock2.h>
  14. #include <objbase.h>
  15. #include "rastcp.h"
  16. #include "tcpreg.h"
  17. #include "rassrvr.h"
  18. #include "rasstat.h"
  19. #include "helper.h"
  20. LONG HelperLock = 0;
  21. BOOL HelperInitialized = FALSE;
  22. HANDLE HelperWanArpHandle = INVALID_HANDLE_VALUE;
  23. HINSTANCE HelperDhcpDll = NULL;
  24. HINSTANCE HelperIpHlpDll = NULL;
  25. HINSTANCE HelperIpBootpDll = NULL;
  26. DWORD HelperTraceId = (DWORD)-1;
  27. REGVAL HelperRegVal;
  28. DHCPNOTIFYCONFIGCHANGE PDhcpNotifyConfigChange = NULL;
  29. DHCPLEASEIPADDRESS PDhcpLeaseIpAddress = NULL;
  30. DHCPRENEWIPADDRESSLEASE PDhcpRenewIpAddressLease = NULL;
  31. DHCPRELEASEIPADDRESSLEASE PDhcpReleaseIpAddressLease = NULL;
  32. SETPROXYARPENTRYTOSTACK PSetProxyArpEntryToStack = NULL;
  33. SETIPFORWARDENTRYTOSTACK PSetIpForwardEntryToStack = NULL;
  34. SETIPFORWARDENTRY PSetIpForwardEntry = NULL;
  35. DELETEIPFORWARDENTRY PDeleteIpForwardEntry = NULL;
  36. ALLOCATEANDGETIPADDRTABLEFROMSTACK PAllocateAndGetIpAddrTableFromStack = NULL;
  37. NHPALLOCATEANDGETINTERFACEINFOFROMSTACK PNhpAllocateAndGetInterfaceInfoFromStack = NULL;
  38. ALLOCATEANDGETIPFORWARDTABLEFROMSTACK PAllocateAndGetIpForwardTableFromStack = NULL;
  39. GETADAPTERSINFO PGetAdaptersInfo = NULL;
  40. GETPERADAPTERINFO PGetPerAdapterInfo = NULL;
  41. ENABLEDHCPINFORMSERVER PEnableDhcpInformServer = NULL;
  42. DISABLEDHCPINFORMSERVER PDisableDhcpInformServer = NULL;
  43. CRITICAL_SECTION RasDhcpCriticalSection;
  44. CRITICAL_SECTION RasStatCriticalSection;
  45. CRITICAL_SECTION RasSrvrCriticalSection;
  46. CRITICAL_SECTION RasTimrCriticalSection;
  47. DWORD
  48. helperGetAddressOfProcs(
  49. VOID
  50. );
  51. VOID
  52. helperReadRegistry(
  53. VOID
  54. );
  55. #endif // #ifndef _HELPER__H_