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.

299 lines
4.8 KiB

  1. #include "netpch.h"
  2. #pragma hdrstop
  3. #include <ras.h>
  4. #include <rasdlg.h>
  5. #include <rasuip.h>
  6. #include <hnetcfg.h>
  7. static
  8. BOOL
  9. APIENTRY
  10. RasDialDlgW (
  11. LPWSTR lpszPhonebook,
  12. LPWSTR lpszEntry,
  13. LPWSTR lpszPhoneNumber,
  14. LPRASDIALDLG lpInfo
  15. )
  16. {
  17. lpInfo->dwError = ERROR_PROC_NOT_FOUND;
  18. return FALSE;
  19. }
  20. static
  21. BOOL
  22. APIENTRY
  23. RasEntryDlgW (
  24. LPWSTR lpszPhonebook,
  25. LPWSTR lpszEntry,
  26. LPRASENTRYDLGW lpInfo
  27. )
  28. {
  29. lpInfo->dwError = ERROR_PROC_NOT_FOUND;
  30. return FALSE;
  31. }
  32. static
  33. DWORD
  34. APIENTRY
  35. RasSrvAddPropPages (
  36. IN HRASSRVCONN hRasSrvConn,
  37. IN HWND hwndParent,
  38. IN LPFNADDPROPSHEETPAGE pfnAddPage,
  39. IN LPARAM lParam,
  40. IN OUT PVOID * ppvContext
  41. )
  42. {
  43. return ERROR_PROC_NOT_FOUND;
  44. }
  45. static
  46. DWORD
  47. APIENTRY
  48. RasSrvAddWizPages (
  49. IN LPFNADDPROPSHEETPAGE pfnAddPage,
  50. IN LPARAM lParam,
  51. IN OUT PVOID * ppvContext
  52. )
  53. {
  54. return ERROR_PROC_NOT_FOUND;
  55. }
  56. static
  57. DWORD
  58. APIENTRY
  59. RasSrvAllowConnectionsConfig (
  60. OUT BOOL* pfAllow
  61. )
  62. {
  63. return ERROR_PROC_NOT_FOUND;
  64. }
  65. static
  66. DWORD
  67. APIENTRY
  68. RasSrvCleanupService (
  69. VOID
  70. )
  71. {
  72. return ERROR_PROC_NOT_FOUND;
  73. }
  74. static
  75. DWORD
  76. APIENTRY
  77. RasSrvEnumConnections (
  78. IN OUT LPRASSRVCONN pRasSrvConn, // Buffer of array of connections.
  79. IN LPDWORD pcb, // size in bytes of buffer
  80. OUT LPDWORD pcConnections
  81. )
  82. {
  83. return ERROR_PROC_NOT_FOUND;
  84. }
  85. static
  86. DWORD
  87. APIENTRY
  88. RasSrvHangupConnection (
  89. IN HRASSRVCONN hRasSrvConn
  90. )
  91. {
  92. return ERROR_PROC_NOT_FOUND;
  93. }
  94. static
  95. DWORD
  96. APIENTRY
  97. RasSrvInitializeService (
  98. VOID
  99. )
  100. {
  101. return ERROR_PROC_NOT_FOUND;
  102. }
  103. static
  104. DWORD
  105. APIENTRY
  106. RasSrvIsConnectionConnected (
  107. IN HRASSRVCONN hRasSrvConn, // The connection in question
  108. OUT BOOL* pfConnected
  109. )
  110. {
  111. return ERROR_PROC_NOT_FOUND;
  112. }
  113. static
  114. DWORD
  115. APIENTRY
  116. RasSrvQueryShowIcon (
  117. OUT BOOL* pfShowIcon
  118. )
  119. {
  120. return ERROR_PROC_NOT_FOUND;
  121. }
  122. static
  123. DWORD
  124. APIENTRY
  125. RasUserEnableManualDial (
  126. IN HWND hwndParent, // parent for error dialogs
  127. IN BOOL bLogon, // whether a user is logged in
  128. IN BOOL bEnable
  129. )
  130. {
  131. return ERROR_PROC_NOT_FOUND;
  132. }
  133. static
  134. DWORD
  135. APIENTRY
  136. RasUserGetManualDial (
  137. IN HWND hwndParent, // parent for error dialogs
  138. IN BOOL bLogon, // whether a user is logged in
  139. IN PBOOL pbEnabled
  140. )
  141. {
  142. return ERROR_PROC_NOT_FOUND;
  143. }
  144. static
  145. DWORD
  146. APIENTRY
  147. RasUserPrefsDlg (
  148. HWND hwndParent
  149. )
  150. {
  151. return ERROR_PROC_NOT_FOUND;
  152. }
  153. static
  154. DWORD
  155. APIENTRY
  156. RasWizCreateNewEntry(
  157. IN DWORD dwRasWizType,
  158. IN LPVOID pvData,
  159. OUT LPWSTR pszwPbkFile,
  160. OUT LPWSTR pszwEntryName,
  161. OUT DWORD* pdwFlags
  162. )
  163. {
  164. return ERROR_PROC_NOT_FOUND;
  165. }
  166. static
  167. DWORD
  168. APIENTRY
  169. RasWizGetNCCFlags(
  170. IN DWORD dwRasWizType,
  171. IN LPVOID pvData,
  172. OUT DWORD * pdwFlags)
  173. {
  174. return ERROR_PROC_NOT_FOUND;
  175. }
  176. static
  177. DWORD
  178. APIENTRY
  179. RasWizGetSuggestedEntryName(
  180. IN DWORD dwRasWizType,
  181. IN LPVOID pvData,
  182. OUT LPWSTR pszwSuggestedName
  183. )
  184. {
  185. return ERROR_PROC_NOT_FOUND;
  186. }
  187. static
  188. DWORD
  189. APIENTRY
  190. RasWizGetUserInputConnectionName (
  191. IN LPVOID pvData,
  192. OUT LPWSTR pszwInputName)
  193. {
  194. return ERROR_PROC_NOT_FOUND;
  195. }
  196. static
  197. DWORD
  198. APIENTRY
  199. RasWizIsEntryRenamable(
  200. IN DWORD dwRasWizType,
  201. IN LPVOID pvData,
  202. OUT BOOL* pfRenamable
  203. )
  204. {
  205. return ERROR_PROC_NOT_FOUND;
  206. }
  207. static
  208. DWORD
  209. APIENTRY
  210. RasWizQueryMaxPageCount(
  211. IN DWORD dwRasWizType
  212. )
  213. {
  214. return ERROR_PROC_NOT_FOUND;
  215. }
  216. static
  217. DWORD
  218. APIENTRY
  219. RasWizSetEntryName(
  220. IN DWORD dwRasWizType,
  221. IN LPVOID pvData,
  222. IN LPCWSTR pszwName
  223. )
  224. {
  225. return ERROR_PROC_NOT_FOUND;
  226. }
  227. static
  228. BOOL
  229. APIENTRY
  230. RasPhonebookDlgW(
  231. LPWSTR lpszPhonebook,
  232. LPWSTR lpszEntry,
  233. LPRASPBDLGW lpInfo
  234. )
  235. {
  236. if (lpInfo)
  237. {
  238. lpInfo->dwError = ERROR_PROC_NOT_FOUND;
  239. }
  240. return FALSE;
  241. }
  242. //
  243. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  244. //
  245. DEFINE_PROCNAME_ENTRIES(rasdlg)
  246. {
  247. DLPENTRY(RasDialDlgW)
  248. DLPENTRY(RasEntryDlgW)
  249. DLPENTRY(RasPhonebookDlgW)
  250. DLPENTRY(RasSrvAddPropPages)
  251. DLPENTRY(RasSrvAddWizPages)
  252. DLPENTRY(RasSrvAllowConnectionsConfig)
  253. DLPENTRY(RasSrvCleanupService)
  254. DLPENTRY(RasSrvEnumConnections)
  255. DLPENTRY(RasSrvHangupConnection)
  256. DLPENTRY(RasSrvInitializeService)
  257. DLPENTRY(RasSrvIsConnectionConnected)
  258. DLPENTRY(RasSrvQueryShowIcon)
  259. DLPENTRY(RasUserEnableManualDial)
  260. DLPENTRY(RasUserGetManualDial)
  261. DLPENTRY(RasUserPrefsDlg)
  262. DLPENTRY(RasWizCreateNewEntry)
  263. DLPENTRY(RasWizGetNCCFlags)
  264. DLPENTRY(RasWizGetSuggestedEntryName)
  265. DLPENTRY(RasWizGetUserInputConnectionName)
  266. DLPENTRY(RasWizIsEntryRenamable)
  267. DLPENTRY(RasWizQueryMaxPageCount)
  268. DLPENTRY(RasWizSetEntryName)
  269. };
  270. DEFINE_PROCNAME_MAP(rasdlg)