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.

146 lines
2.2 KiB

  1. /*++
  2. Copyright(c) 1995 Microsoft Corporation
  3. MODULE NAME
  4. addrmap.h
  5. ABSTRACT
  6. Header file for address attributes database shared
  7. between the automatic connection driver, the registry
  8. and the automatic connection service.
  9. AUTHOR
  10. Anthony Discolo (adiscolo) 01-Sep-1995
  11. REVISION HISTORY
  12. --*/
  13. //
  14. // Flags for FlushAddressMap().
  15. //
  16. #define ADDRMAP_FLUSH_DRIVER 0x00000001
  17. #define ADDRMAP_FLUSH_REGISTRY 0x00000002
  18. //
  19. // Address tag types.
  20. //
  21. #define ADDRMAP_TAG_NONE 0
  22. #define ADDRMAP_TAG_USED 1
  23. #define ADDRMAP_TAG_LEARNED 2
  24. BOOLEAN
  25. InitializeAddressMap();
  26. VOID
  27. UninitializeAddressMap();
  28. BOOLEAN
  29. ResetAddressMap();
  30. VOID
  31. LockAddressMap();
  32. VOID
  33. UnlockAddressMap();
  34. VOID
  35. LockDisabledAddresses();
  36. VOID
  37. UnlockDisabledAddresses();
  38. BOOLEAN
  39. FlushAddressMap();
  40. VOID
  41. ResetAddressMapAddress(
  42. IN LPTSTR pszAddress
  43. );
  44. VOID
  45. EnumAddressMap(
  46. IN PHASH_TABLE_ENUM_PROC pProc,
  47. IN PVOID pArg
  48. );
  49. BOOLEAN
  50. ListAddressMapAddresses(
  51. OUT LPTSTR **ppszAddresses,
  52. OUT PULONG pulcAddresses
  53. );
  54. BOOLEAN
  55. GetAddressDisabled(
  56. IN LPTSTR pszAddress,
  57. OUT PBOOLEAN pfDisabled
  58. );
  59. BOOLEAN
  60. SetAddressDisabled(
  61. IN LPTSTR pszAddress,
  62. IN BOOLEAN fDisabled
  63. );
  64. BOOLEAN
  65. GetAddressDialingLocationEntry(
  66. IN LPTSTR pszAddress,
  67. OUT LPTSTR *ppszEntryName
  68. );
  69. BOOLEAN
  70. SetAddressDialingLocationEntry(
  71. IN LPTSTR pszAddress,
  72. IN LPTSTR pszEntryName
  73. );
  74. BOOLEAN
  75. GetSimilarDialingLocationEntry(
  76. IN LPTSTR pszAddress,
  77. OUT LPTSTR *ppszEntryName
  78. );
  79. BOOLEAN
  80. SetAddressLastFailedConnectTime(
  81. IN LPTSTR pszAddress
  82. );
  83. BOOLEAN
  84. GetAddressLastFailedConnectTime(
  85. IN LPTSTR pszAddress,
  86. OUT LPDWORD dwTicks
  87. );
  88. BOOLEAN
  89. SetAddressTag(
  90. IN LPTSTR pszAddress,
  91. IN DWORD dwTag
  92. );
  93. BOOLEAN
  94. GetAddressTag(
  95. IN LPTSTR pszAddress,
  96. OUT LPDWORD lpdwTag
  97. );
  98. VOID
  99. ResetLearnedAddressIndex();
  100. BOOLEAN
  101. GetAddressNetwork(
  102. IN LPTSTR pszAddress,
  103. OUT LPTSTR *ppszNetwork
  104. );
  105. BOOLEAN
  106. DisableAutodial();
  107. DWORD
  108. AcsAddressMapThread(
  109. LPVOID lpArg
  110. );
  111. VOID
  112. ResetDisabledAddresses();