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.

392 lines
6.7 KiB

  1. #include "netpch.h"
  2. #pragma hdrstop
  3. #include <winnetwk.h>
  4. static
  5. DWORD
  6. APIENTRY
  7. WNetAddConnection2W(
  8. IN LPNETRESOURCEW lpNetResource,
  9. IN LPCWSTR lpPassword,
  10. IN LPCWSTR lpUserName,
  11. IN DWORD dwFlags
  12. )
  13. {
  14. return ERROR_PROC_NOT_FOUND;
  15. }
  16. static
  17. DWORD
  18. APIENTRY
  19. WNetAddConnection3W(
  20. IN HWND hwndOwner,
  21. IN LPNETRESOURCEW lpNetResource,
  22. IN LPCWSTR lpPassword,
  23. IN LPCWSTR lpUserName,
  24. IN DWORD dwFlags
  25. )
  26. {
  27. return ERROR_PROC_NOT_FOUND;
  28. }
  29. static
  30. DWORD
  31. APIENTRY
  32. WNetCancelConnection2W(
  33. IN LPCWSTR lpName,
  34. IN DWORD dwFlags,
  35. IN BOOL fForce
  36. )
  37. {
  38. return ERROR_PROC_NOT_FOUND;
  39. }
  40. static
  41. DWORD
  42. APIENTRY
  43. WNetCloseEnum(
  44. IN HANDLE hEnum
  45. )
  46. {
  47. return ERROR_PROC_NOT_FOUND;
  48. }
  49. static
  50. DWORD
  51. APIENTRY
  52. WNetEnumResourceW(
  53. IN HANDLE hEnum,
  54. IN OUT LPDWORD lpcCount,
  55. OUT LPVOID lpBuffer,
  56. IN OUT LPDWORD lpBufferSize
  57. )
  58. {
  59. return ERROR_PROC_NOT_FOUND;
  60. }
  61. static
  62. DWORD
  63. APIENTRY
  64. WNetGetUniversalNameW(
  65. IN LPCWSTR lpLocalPath,
  66. IN DWORD dwInfoLevel,
  67. OUT LPVOID lpBuffer,
  68. IN OUT LPDWORD lpBufferSize
  69. )
  70. {
  71. return ERROR_PROC_NOT_FOUND;
  72. }
  73. static
  74. DWORD
  75. APIENTRY
  76. WNetGetResourceInformationW(
  77. IN LPNETRESOURCEW lpNetResource,
  78. OUT LPVOID lpBuffer,
  79. IN OUT LPDWORD lpcbBuffer,
  80. OUT LPWSTR *lplpSystem
  81. )
  82. {
  83. return ERROR_PROC_NOT_FOUND;
  84. }
  85. static
  86. DWORD
  87. APIENTRY
  88. WNetGetResourceInformationA(
  89. IN LPNETRESOURCEA lpNetResource,
  90. OUT LPVOID lpBuffer,
  91. IN OUT LPDWORD lpcbBuffer,
  92. OUT LPSTR *lplpSystem
  93. )
  94. {
  95. return ERROR_PROC_NOT_FOUND;
  96. }
  97. static
  98. DWORD
  99. APIENTRY
  100. WNetOpenEnumW(
  101. IN DWORD dwScope,
  102. IN DWORD dwType,
  103. IN DWORD dwUsage,
  104. IN LPNETRESOURCEW lpNetResource,
  105. OUT LPHANDLE lphEnum
  106. )
  107. {
  108. return ERROR_PROC_NOT_FOUND;
  109. }
  110. static
  111. DWORD
  112. APIENTRY
  113. WNetConnectionDialog(
  114. IN HWND hwnd,
  115. IN DWORD dwType
  116. )
  117. {
  118. return ERROR_PROC_NOT_FOUND;
  119. }
  120. static
  121. DWORD
  122. APIENTRY
  123. WNetConnectionDialog1W(
  124. IN OUT LPCONNECTDLGSTRUCTW lpConnDlgStruct
  125. )
  126. {
  127. return ERROR_PROC_NOT_FOUND;
  128. }
  129. static
  130. DWORD
  131. APIENTRY
  132. WNetDisconnectDialog1W(
  133. IN LPDISCDLGSTRUCTW lpConnDlgStruct
  134. )
  135. {
  136. return ERROR_PROC_NOT_FOUND;
  137. }
  138. static
  139. DWORD
  140. APIENTRY
  141. WNetUseConnectionW(
  142. IN HWND hwndOwner,
  143. IN LPNETRESOURCEW lpNetResource,
  144. IN LPCWSTR lpUserID,
  145. IN LPCWSTR lpPassword,
  146. IN DWORD dwFlags,
  147. OUT LPWSTR lpAccessName,
  148. IN OUT LPDWORD lpBufferSize,
  149. OUT LPDWORD lpResult
  150. )
  151. {
  152. return ERROR_PROC_NOT_FOUND;
  153. }
  154. static
  155. DWORD
  156. APIENTRY
  157. WNetGetUserW(
  158. IN LPCWSTR lpName,
  159. OUT LPWSTR lpUserName,
  160. IN OUT LPDWORD lpnLength
  161. )
  162. {
  163. return ERROR_PROC_NOT_FOUND;
  164. }
  165. static
  166. DWORD
  167. APIENTRY
  168. WNetGetConnectionW(
  169. IN LPCWSTR lpLocalName,
  170. OUT LPWSTR lpRemoteName,
  171. IN OUT LPDWORD lpnLength
  172. )
  173. {
  174. return ERROR_PROC_NOT_FOUND;
  175. }
  176. static
  177. DWORD
  178. APIENTRY
  179. WNetGetResourceParentW(
  180. IN LPNETRESOURCEW lpNetResource,
  181. OUT LPVOID lpBuffer,
  182. IN OUT LPDWORD lpcbBuffer
  183. )
  184. {
  185. return ERROR_PROC_NOT_FOUND;
  186. }
  187. static
  188. DWORD
  189. APIENTRY
  190. WNetGetProviderNameW(
  191. IN DWORD dwNetType,
  192. OUT LPWSTR lpProviderName,
  193. IN OUT LPDWORD lpBufferSize
  194. )
  195. {
  196. return ERROR_PROC_NOT_FOUND;
  197. }
  198. static
  199. DWORD
  200. APIENTRY
  201. MultinetGetConnectionPerformanceW(
  202. IN LPNETRESOURCEW lpNetResource,
  203. OUT LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct
  204. )
  205. {
  206. return ERROR_PROC_NOT_FOUND;
  207. }
  208. static
  209. DWORD APIENTRY
  210. WNetDisconnectDialog(
  211. IN HWND hwnd,
  212. IN DWORD dwType
  213. )
  214. {
  215. return ERROR_PROC_NOT_FOUND;
  216. }
  217. static
  218. DWORD APIENTRY
  219. WNetGetLastErrorW(
  220. OUT LPDWORD lpError,
  221. OUT LPWSTR lpErrorBuf,
  222. IN DWORD nErrorBufSize,
  223. OUT LPWSTR lpNameBuf,
  224. IN DWORD nNameBufSize
  225. )
  226. {
  227. return ERROR_PROC_NOT_FOUND;
  228. }
  229. static
  230. DWORD APIENTRY
  231. WNetGetLastErrorA(
  232. OUT LPDWORD lpError,
  233. OUT LPSTR lpErrorBuf,
  234. IN DWORD nErrorBufSize,
  235. OUT LPSTR lpNameBuf,
  236. IN DWORD nNameBufSize
  237. )
  238. {
  239. return ERROR_PROC_NOT_FOUND;
  240. }
  241. static
  242. DWORD APIENTRY
  243. WNetRestoreConnectionW(
  244. IN HWND hwndParent,
  245. IN LPCWSTR lpDevice
  246. )
  247. {
  248. return ERROR_PROC_NOT_FOUND;
  249. }
  250. static
  251. DWORD APIENTRY
  252. WNetRestoreConnectionA(
  253. IN HWND hwndParent,
  254. IN LPCSTR lpDevice
  255. )
  256. {
  257. return ERROR_PROC_NOT_FOUND;
  258. }
  259. static
  260. DWORD APIENTRY
  261. MultinetGetErrorTextW(
  262. OUT LPWSTR lpErrorTextBuf,
  263. IN OUT LPDWORD lpnErrorBufSize,
  264. OUT LPWSTR lpProviderNameBuf,
  265. IN OUT LPDWORD lpnNameBufSize
  266. )
  267. {
  268. return ERROR_PROC_NOT_FOUND;
  269. }
  270. static
  271. DWORD APIENTRY
  272. WNetGetConnection3W(
  273. IN LPCWSTR lpLocalName,
  274. IN LPCWSTR lpProviderName,
  275. IN DWORD dwInfoLevel,
  276. OUT LPVOID lpBuffer,
  277. IN OUT LPDWORD lpcbBuffer
  278. )
  279. {
  280. return ERROR_PROC_NOT_FOUND;
  281. }
  282. static
  283. DWORD APIENTRY
  284. WNetFormatNetworkNameW(
  285. IN LPCWSTR lpProvider,
  286. IN LPCWSTR lpRemoteName,
  287. OUT LPWSTR lpFormattedName,
  288. IN OUT LPDWORD lpnLength,
  289. IN DWORD dwFlags,
  290. IN DWORD dwAveCharPerLine
  291. )
  292. {
  293. return ERROR_PROC_NOT_FOUND;
  294. }
  295. static
  296. DWORD APIENTRY
  297. WNetGetProviderTypeW(
  298. IN LPCWSTR lpProvider,
  299. OUT LPDWORD lpdwNetType
  300. )
  301. {
  302. return ERROR_PROC_NOT_FOUND;
  303. }
  304. static
  305. DWORD APIENTRY
  306. WNetRestoreConnection2W(
  307. IN HWND hwndParent,
  308. IN LPCWSTR lpDevice,
  309. IN DWORD dwFlags,
  310. OUT BOOL* pfReconnectFailed
  311. )
  312. {
  313. return ERROR_PROC_NOT_FOUND;
  314. }
  315. static
  316. DWORD APIENTRY
  317. WNetClearConnections(
  318. HWND hWnd
  319. )
  320. {
  321. return ERROR_PROC_NOT_FOUND;
  322. }
  323. //
  324. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  325. //
  326. DEFINE_PROCNAME_ENTRIES(mpr)
  327. {
  328. DLPENTRY(MultinetGetConnectionPerformanceW)
  329. DLPENTRY(MultinetGetErrorTextW)
  330. DLPENTRY(WNetAddConnection2W)
  331. DLPENTRY(WNetAddConnection3W)
  332. DLPENTRY(WNetCancelConnection2W)
  333. DLPENTRY(WNetClearConnections)
  334. DLPENTRY(WNetCloseEnum)
  335. DLPENTRY(WNetConnectionDialog)
  336. DLPENTRY(WNetConnectionDialog1W)
  337. DLPENTRY(WNetDisconnectDialog)
  338. DLPENTRY(WNetDisconnectDialog1W)
  339. DLPENTRY(WNetEnumResourceW)
  340. DLPENTRY(WNetFormatNetworkNameW)
  341. DLPENTRY(WNetGetConnection3W)
  342. DLPENTRY(WNetGetConnectionW)
  343. DLPENTRY(WNetGetLastErrorA)
  344. DLPENTRY(WNetGetLastErrorW)
  345. DLPENTRY(WNetGetProviderNameW)
  346. DLPENTRY(WNetGetProviderTypeW)
  347. DLPENTRY(WNetGetResourceInformationA)
  348. DLPENTRY(WNetGetResourceInformationW)
  349. DLPENTRY(WNetGetResourceParentW)
  350. DLPENTRY(WNetGetUniversalNameW)
  351. DLPENTRY(WNetGetUserW)
  352. DLPENTRY(WNetOpenEnumW)
  353. DLPENTRY(WNetRestoreConnection2W)
  354. DLPENTRY(WNetRestoreConnectionA)
  355. DLPENTRY(WNetRestoreConnectionW)
  356. DLPENTRY(WNetUseConnectionW)
  357. };
  358. DEFINE_PROCNAME_MAP(mpr)