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.

101 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1998, Microsoft Corporation
  3. Module Name:
  4. svcmain.h
  5. Abstract:
  6. This module contains declarations for the module's shared-access mode,
  7. in which the module runs as a service rather than as a routing component.
  8. Author:
  9. Abolade Gbadegesin (aboladeg) 4-Sep-1998
  10. Revision History:
  11. --*/
  12. #pragma once
  13. #ifndef _NATHLP_SVCMAIN_H_
  14. #define _NATHLP_SVCMAIN_H_
  15. #include "udpbcast.h"
  16. //
  17. // Pointer to the GlobalInterfaceTable for the process
  18. //
  19. extern IGlobalInterfaceTable *NhGITp;
  20. //
  21. // GIT cookie for the IHNetCfgMgr instance
  22. //
  23. extern DWORD NhCfgMgrCookie;
  24. //
  25. // UDP Broadcast mapper
  26. //
  27. extern IUdpBroadcastMapper *NhpUdpBroadcastMapper;
  28. //
  29. // Policy information
  30. //
  31. extern BOOL NhPolicyAllowsFirewall;
  32. extern BOOL NhPolicyAllowsSharing;
  33. //
  34. // Function prototypes
  35. //
  36. HRESULT
  37. NhGetHNetCfgMgr(
  38. IHNetCfgMgr **ppCfgMgr
  39. );
  40. ULONG
  41. NhMapGuidToAdapter(
  42. PWCHAR Guid
  43. );
  44. BOOLEAN
  45. NhQueryScopeInformation(
  46. PULONG Address,
  47. PULONG Mask
  48. );
  49. ULONG
  50. NhStartICSProtocols(
  51. VOID
  52. );
  53. ULONG
  54. NhStopICSProtocols(
  55. VOID
  56. );
  57. ULONG
  58. NhUpdatePrivateInterface(
  59. VOID
  60. );
  61. VOID
  62. ServiceHandler(
  63. ULONG ControlCode
  64. );
  65. VOID
  66. ServiceMain(
  67. ULONG ArgumentCount,
  68. PWCHAR ArgumentArray[]
  69. );
  70. #endif // _NATHLP_SVCMAIN_H_