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.

150 lines
2.9 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. atkinit.h
  5. Abstract:
  6. This module contains definitions for init time routines.
  7. Author:
  8. Jameel Hyder (jameelh@microsoft.com)
  9. Nikhil Kamkolkar (nikhilk@microsoft.com)
  10. Revision History:
  11. 19 Jun 1992 Initial Version
  12. Notes: Tab stop: 4
  13. --*/
  14. #ifndef _ATKINIT_
  15. #define _ATKINIT_
  16. // Winsock related constants used during initialization util routines
  17. #define PROTOCOLTYPE_PREFIX L"\\"
  18. #define SOCKETSTREAM_SUFFIX L"\\Stream"
  19. #define SOCKET_TYPE_UNDEFINED 0
  20. #define PROTOCOL_TYPE_UNDEFINED 0
  21. #define SOCKET_TYPE_STREAM 1
  22. #define SOCKET_TYPE_RDM 2
  23. #define ATALK_PORT_NAME "Microsoft\250 Windows 2000\252 Prt"
  24. #define ATALK_PORT_NAME_SIZE (strlen(ATALK_PORT_NAME) + 1)
  25. #define ATALK_ROUTER_NBP_TYPE "Microsoft\250 Windows 2000\252 Rtr"
  26. #define ATALK_ROUTER_NBP_SIZE (strlen(ATALK_ROUTER_NBP_TYPE) + 1)
  27. #define ATALK_NONROUTER_NBP_TYPE ATALK_PORT_NAME
  28. #define ATALK_NONROUTER_NBP_SIZE (strlen(ATALK_NONROUTER_NBP_TYPE) + 1)
  29. // Registry parameters keys that we use and expect
  30. #define LINKAGE_STRING L"Linkage"
  31. #define PARAMETERS_STRING L"Parameters"
  32. #define ADAPTERS_STRING L"Parameters\\Adapters"
  33. #define RAS_ADAPTER_NAME L"\\DEVICE\\NDISWANATALK"
  34. #define BIND_STRING L"Bind"
  35. #define VALUENAME_NETUPPEREND L"NetworkRangeUpperEnd"
  36. #define VALUENAME_NETLOWEREND L"NetworkRangeLowerEnd"
  37. #define VALUENAME_ZONELIST L"ZoneList"
  38. #define VALUENAME_DEFAULTZONE L"DefaultZone"
  39. #define VALUENAME_PORTNAME L"PortName"
  40. #define VALUENAME_DDPCHECKSUMS L"DdpChecksums"
  41. #define VALUENAME_AARPRETRIES L"AarpRetries"
  42. #define VALUENAME_SEEDROUTER L"SeedingNetwork"
  43. #define VALUENAME_ENABLEROUTER L"EnableRouter"
  44. #define VALUENAME_DEFAULTPORT L"DefaultPort"
  45. #define VALUENAME_DESIREDZONE L"DesiredZone"
  46. #define VALUENAME_FILTEROURNAMES L"FilterOurNames"
  47. NTSTATUS
  48. AtalkInitializeTransport (
  49. IN PDRIVER_OBJECT pDrvObj,
  50. IN PUNICODE_STRING pRegPath
  51. );
  52. NTSTATUS
  53. AtalkInitAdapter(
  54. IN PUNICODE_STRING AdapterName,
  55. IN PPORT_DESCRIPTOR pExistingPortDesc
  56. );
  57. NTSTATUS
  58. AtalkDeinitAdapter(
  59. IN PPORT_DESCRIPTOR pPortDesc
  60. );
  61. NTSTATUS
  62. atalkInitGetHandleToKey(
  63. IN PUNICODE_STRING KeyName,
  64. OUT PHANDLE KeyHandle
  65. );
  66. NTSTATUS
  67. atalkInitGlobal(
  68. VOID
  69. );
  70. NTSTATUS
  71. atalkInitPort(
  72. IN PPORT_DESCRIPTOR pPortDesc,
  73. IN HANDLE AdaptersKeyHandle
  74. );
  75. NTSTATUS
  76. atalkInitNetRangeCheck(
  77. IN PPORT_DESCRIPTOR pPortDesc
  78. );
  79. NTSTATUS
  80. atalkInitNetRange(
  81. OUT PPORT_DESCRIPTOR pPortDesc
  82. );
  83. NTSTATUS
  84. atalkInitZoneList(
  85. OUT PPORT_DESCRIPTOR pPortDesc
  86. );
  87. NTSTATUS
  88. atalkInitDefZone(
  89. OUT PPORT_DESCRIPTOR pPortDesc
  90. );
  91. NTSTATUS
  92. atalkInitSeeding(
  93. IN OUT PPORT_DESCRIPTOR pPortDesc,
  94. OUT PBOOLEAN Seeding
  95. );
  96. NTSTATUS
  97. atalkInitPortParameters(
  98. OUT PPORT_DESCRIPTOR pPortDesc
  99. );
  100. NTSTATUS
  101. atalkInitStartPort(
  102. IN PPORT_DESCRIPTOR pPortDesc
  103. );
  104. VOID
  105. atalkRegNbpComplete(
  106. IN ATALK_ERROR Status,
  107. IN PACTREQ pActReq
  108. );
  109. #if DBG
  110. VOID
  111. atalkInitPrintPortInfo(
  112. VOID
  113. );
  114. #endif
  115. #endif // _ATKINIT_
  116.