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.

189 lines
3.2 KiB

  1. /*++
  2. Copyright(c) 1995 Microsoft Corporation
  3. MODULE NAME
  4. rasprocs.h
  5. ABSTRACT
  6. Header file for RAS utility routines.
  7. AUTHOR
  8. Anthony Discolo (adiscolo) 23-Mar-1995
  9. REVISION HISTORY
  10. Original version from Gurdeep
  11. --*/
  12. //
  13. // Dialing location information per address.
  14. //
  15. typedef struct _ADDRESS_LOCATION_INFORMATION {
  16. DWORD dwLocation; // TAPI dialing location
  17. LPTSTR pszEntryName; // phonebook/entry
  18. } ADDRESS_LOCATION_INFORMATION, *PADDRESS_LOCATION_INFORMATION;
  19. //
  20. // Autodial-related parameters per address.
  21. //
  22. typedef struct _ADDRESS_PARAMS {
  23. DWORD dwTag; // ADDRMAP_TAG_*
  24. DWORD dwModifiedTime; // last modified time
  25. } ADDRESS_PARAMS, *PADDRESS_PARAMS;
  26. extern HANDLE hConnectionEventG;
  27. BOOLEAN LoadRasDlls();
  28. VOID UnloadRasDlls();
  29. DWORD
  30. ActiveConnections(
  31. IN BOOLEAN fAuthenticated,
  32. OUT LPTSTR **lppEntryNames,
  33. OUT HRASCONN **lpphRasConn
  34. );
  35. BOOLEAN
  36. WaitForConnectionCompletion(
  37. IN DWORD dwConnections,
  38. IN HRASCONN *phRasCon
  39. );
  40. BOOLEAN
  41. StartAutoDialer(
  42. IN HANDLE hProcess,
  43. IN PACD_ADDR pAddr,
  44. IN LPTSTR lpAddress,
  45. IN LPTSTR lpEntryName,
  46. IN BOOLEAN fSharedAccess,
  47. OUT PBOOLEAN pfInvalidEntry
  48. );
  49. BOOLEAN
  50. StartReDialer(
  51. IN HANDLE hProcess,
  52. IN LPTSTR lpPhonebook,
  53. IN LPTSTR lpEntry
  54. );
  55. LPTSTR
  56. GetNetbiosDevice(
  57. IN HRASCONN hrasconn
  58. );
  59. VOID
  60. ProcessLearnedAddress(
  61. IN ACD_ADDR_TYPE fType,
  62. IN LPTSTR pszAddress,
  63. IN PACD_ADAPTER pAdapter
  64. );
  65. DWORD
  66. GetAddressDialingLocationInfo(
  67. IN LPTSTR pszAddress,
  68. OUT PADDRESS_LOCATION_INFORMATION *lppDialingInfo,
  69. OUT LPDWORD lpdwcDialingInfo
  70. );
  71. DWORD
  72. SetAddressDialingLocationInfo(
  73. IN LPTSTR pszAddress,
  74. IN PADDRESS_LOCATION_INFORMATION lpDialingInfo
  75. );
  76. DWORD
  77. ClearAddressDialingLocationInfo(
  78. IN LPTSTR pszAddress
  79. );
  80. DWORD
  81. GetAddressParams(
  82. IN LPTSTR pszAddress,
  83. OUT PADDRESS_PARAMS lpParams
  84. );
  85. DWORD
  86. SetAddressParams(
  87. IN LPTSTR pszAddress,
  88. IN PADDRESS_PARAMS lpParams
  89. );
  90. DWORD
  91. EnumAutodialAddresses(
  92. IN LPTSTR *ppAddresses,
  93. IN LPDWORD lpdwcbAddresses,
  94. IN LPDWORD lpdwcAddresses
  95. );
  96. DWORD
  97. CreateAutoDialChangeEvent(
  98. IN PHANDLE phEvent
  99. );
  100. DWORD
  101. NotifyAutoDialChangeEvent(
  102. IN HANDLE hEvent
  103. );
  104. VOID
  105. EnableAutoDialChangeEvent(
  106. IN HANDLE hEvent,
  107. IN BOOLEAN fEnabled
  108. );
  109. BOOLEAN
  110. ExternalAutoDialChangeEvent();
  111. VOID
  112. CloseAutoDialChangeEvent(
  113. IN HANDLE hEvent
  114. );
  115. LPTSTR
  116. AddressToNetwork(
  117. IN LPTSTR pszAddress
  118. );
  119. LPTSTR
  120. EntryToNetwork(
  121. IN LPTSTR pszEntry
  122. );
  123. DWORD
  124. AutoDialEnabled(
  125. IN PBOOLEAN lpfEnabled
  126. );
  127. DWORD
  128. DisableAutoDial();
  129. DWORD
  130. GetAutodialParam(
  131. IN DWORD dwKey
  132. );
  133. VOID
  134. SetAutodialParam(
  135. IN DWORD dwKey,
  136. IN DWORD dwValue
  137. );
  138. VOID
  139. SetRedialOnLinkFailureHandler(
  140. IN FARPROC lpProc
  141. );
  142. VOID
  143. GetPortProtocols(
  144. IN HPORT hPort,
  145. IN RAS_PROTOCOLS *pProtocols,
  146. IN LPDWORD lpdwcProtocols
  147. );
  148. DWORD
  149. DwGetDefaultEntryName(
  150. LPTSTR *ppszEntryName
  151. );