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.

441 lines
8.1 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. WNetGetNetworkInformationA(
  244. LPCSTR lpProvider,
  245. LPNETINFOSTRUCT lpNetInfoStruct
  246. )
  247. {
  248. return ERROR_PROC_NOT_FOUND;
  249. }
  250. static
  251. DWORD APIENTRY
  252. WNetGetNetworkInformationW(
  253. LPCWSTR lpProvider,
  254. LPNETINFOSTRUCT lpNetInfoStruct
  255. )
  256. {
  257. return ERROR_PROC_NOT_FOUND;
  258. }
  259. static
  260. DWORD APIENTRY
  261. WNetRestoreConnectionW(
  262. IN HWND hwndParent,
  263. IN LPCWSTR lpDevice
  264. )
  265. {
  266. return ERROR_PROC_NOT_FOUND;
  267. }
  268. static
  269. DWORD APIENTRY
  270. WNetRestoreConnectionA(
  271. IN HWND hwndParent,
  272. IN LPCSTR lpDevice
  273. )
  274. {
  275. return ERROR_PROC_NOT_FOUND;
  276. }
  277. static
  278. DWORD APIENTRY
  279. MultinetGetErrorTextW(
  280. OUT LPWSTR lpErrorTextBuf,
  281. IN OUT LPDWORD lpnErrorBufSize,
  282. OUT LPWSTR lpProviderNameBuf,
  283. IN OUT LPDWORD lpnNameBufSize
  284. )
  285. {
  286. return ERROR_PROC_NOT_FOUND;
  287. }
  288. static
  289. DWORD APIENTRY
  290. WNetGetConnection3W(
  291. IN LPCWSTR lpLocalName,
  292. IN LPCWSTR lpProviderName,
  293. IN DWORD dwInfoLevel,
  294. OUT LPVOID lpBuffer,
  295. IN OUT LPDWORD lpcbBuffer
  296. )
  297. {
  298. return ERROR_PROC_NOT_FOUND;
  299. }
  300. static
  301. DWORD APIENTRY
  302. WNetFormatNetworkNameW(
  303. IN LPCWSTR lpProvider,
  304. IN LPCWSTR lpRemoteName,
  305. OUT LPWSTR lpFormattedName,
  306. IN OUT LPDWORD lpnLength,
  307. IN DWORD dwFlags,
  308. IN DWORD dwAveCharPerLine
  309. )
  310. {
  311. return ERROR_PROC_NOT_FOUND;
  312. }
  313. static
  314. DWORD APIENTRY
  315. WNetGetProviderTypeW(
  316. IN LPCWSTR lpProvider,
  317. OUT LPDWORD lpdwNetType
  318. )
  319. {
  320. return ERROR_PROC_NOT_FOUND;
  321. }
  322. static
  323. DWORD APIENTRY
  324. WNetRestoreConnection2W(
  325. IN HWND hwndParent,
  326. IN LPCWSTR lpDevice,
  327. IN DWORD dwFlags,
  328. OUT BOOL* pfReconnectFailed
  329. )
  330. {
  331. return ERROR_PROC_NOT_FOUND;
  332. }
  333. static
  334. DWORD APIENTRY
  335. WNetClearConnections(
  336. HWND hWnd
  337. )
  338. {
  339. return ERROR_PROC_NOT_FOUND;
  340. }
  341. static
  342. DWORD APIENTRY
  343. WNetGetConnectionA (
  344. IN LPCSTR lpLocalName,
  345. OUT LPSTR lpRemoteName,
  346. IN OUT LPDWORD lpnLength
  347. )
  348. {
  349. return ERROR_PROC_NOT_FOUND;
  350. }
  351. static
  352. DWORD
  353. APIENTRY
  354. WNetOpenEnumA(
  355. IN DWORD dwScope,
  356. IN DWORD dwType,
  357. IN DWORD dwUsage,
  358. IN LPNETRESOURCEA lpNetResource,
  359. OUT LPHANDLE lphEnum
  360. )
  361. {
  362. return ERROR_PROC_NOT_FOUND;
  363. }
  364. //
  365. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  366. //
  367. DEFINE_PROCNAME_ENTRIES(mpr)
  368. {
  369. DLPENTRY(MultinetGetConnectionPerformanceW)
  370. DLPENTRY(MultinetGetErrorTextW)
  371. DLPENTRY(WNetAddConnection2W)
  372. DLPENTRY(WNetAddConnection3W)
  373. DLPENTRY(WNetCancelConnection2W)
  374. DLPENTRY(WNetClearConnections)
  375. DLPENTRY(WNetCloseEnum)
  376. DLPENTRY(WNetConnectionDialog)
  377. DLPENTRY(WNetConnectionDialog1W)
  378. DLPENTRY(WNetDisconnectDialog)
  379. DLPENTRY(WNetDisconnectDialog1W)
  380. DLPENTRY(WNetEnumResourceW)
  381. DLPENTRY(WNetFormatNetworkNameW)
  382. DLPENTRY(WNetGetConnection3W)
  383. DLPENTRY(WNetGetConnectionA)
  384. DLPENTRY(WNetGetConnectionW)
  385. DLPENTRY(WNetGetLastErrorA)
  386. DLPENTRY(WNetGetLastErrorW)
  387. DLPENTRY(WNetGetNetworkInformationA)
  388. DLPENTRY(WNetGetNetworkInformationW)
  389. DLPENTRY(WNetGetProviderNameW)
  390. DLPENTRY(WNetGetProviderTypeW)
  391. DLPENTRY(WNetGetResourceInformationA)
  392. DLPENTRY(WNetGetResourceInformationW)
  393. DLPENTRY(WNetGetResourceParentW)
  394. DLPENTRY(WNetGetUniversalNameW)
  395. DLPENTRY(WNetGetUserW)
  396. DLPENTRY(WNetOpenEnumA)
  397. DLPENTRY(WNetOpenEnumW)
  398. DLPENTRY(WNetRestoreConnection2W)
  399. DLPENTRY(WNetRestoreConnectionA)
  400. DLPENTRY(WNetRestoreConnectionW)
  401. DLPENTRY(WNetUseConnectionW)
  402. };
  403. DEFINE_PROCNAME_MAP(mpr)