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.

1984 lines
40 KiB

  1. #include "inetcorepch.h"
  2. #pragma hdrstop
  3. #define _WINX32_
  4. #include <wininet.h>
  5. #include <winineti.h>
  6. #include <wincrypt.h> // for ALG_ID
  7. #undef INTERNETAPI
  8. #define INTERNETAPI HRESULT STDAPICALLTYPE
  9. #undef INTERNETAPI_
  10. #define INTERNETAPI_(type) type STDAPICALLTYPE
  11. #undef BOOLAPI
  12. #define BOOLAPI BOOL STDAPICALLTYPE
  13. #undef STDAPI
  14. #define STDAPI HRESULT STDAPICALLTYPE
  15. #undef STDAPI_
  16. #define STDAPI_(type) type STDAPICALLTYPE
  17. #undef URLCACHEAPI_
  18. #define URLCACHEAPI_(type) type STDAPICALLTYPE
  19. static
  20. BOOLAPI
  21. CreateUrlCacheEntryW(
  22. IN LPCWSTR lpszUrlName,
  23. IN DWORD dwExpectedFileSize,
  24. IN LPCWSTR lpszFileExtension,
  25. OUT LPWSTR lpszFileName,
  26. IN DWORD dwReserved
  27. )
  28. {
  29. SetLastError(ERROR_PROC_NOT_FOUND);
  30. return FALSE;
  31. }
  32. static
  33. INTERNETAPI_(DWORD)
  34. InternetAttemptConnect(
  35. IN DWORD dwReserved
  36. )
  37. {
  38. return ERROR_PROC_NOT_FOUND;
  39. }
  40. static
  41. VOID
  42. InternetAutodialCallback(
  43. IN DWORD dwOpCode,
  44. IN LPCVOID lpParam
  45. )
  46. {
  47. return;
  48. }
  49. static
  50. INTERNETAPI_(BOOL)
  51. InternetAutodial(
  52. IN DWORD dwFlags,
  53. IN HWND hwndParent
  54. )
  55. {
  56. SetLastError(ERROR_PROC_NOT_FOUND);
  57. return FALSE;
  58. }
  59. static
  60. INTERNETAPI_(BOOL)
  61. InternetCheckConnectionW(
  62. IN LPCWSTR pszUrlW,
  63. IN DWORD dwFlags,
  64. IN DWORD dwReserved
  65. )
  66. {
  67. SetLastError(ERROR_PROC_NOT_FOUND);
  68. return FALSE;
  69. }
  70. static
  71. INTERNETAPI_(BOOL)
  72. InternetCombineUrlW(
  73. IN LPCWSTR pszBaseUrl,
  74. IN LPCWSTR pszRelativeUrl,
  75. OUT LPWSTR pszBuffer,
  76. IN OUT LPDWORD lpdwBufferLength,
  77. IN DWORD dwFlags
  78. )
  79. {
  80. SetLastError(ERROR_PROC_NOT_FOUND);
  81. return FALSE;
  82. }
  83. static
  84. INTERNETAPI_(BOOL)
  85. InternetEnumPerSiteCookieDecisionA(
  86. OUT LPSTR pszSiteName,
  87. IN OUT unsigned long *pcSiteNameSize,
  88. OUT unsigned long *pdwDecision,
  89. IN unsigned long dwIndex
  90. )
  91. {
  92. SetLastError(ERROR_PROC_NOT_FOUND);
  93. return FALSE;
  94. }
  95. static
  96. INTERNETAPI_(HINTERNET)
  97. InternetOpenUrlW(
  98. IN HINTERNET hInternet,
  99. IN LPCWSTR lpszUrl,
  100. IN LPCWSTR lpszHeaders OPTIONAL,
  101. IN DWORD dwHeadersLength,
  102. IN DWORD dwFlags,
  103. IN DWORD_PTR dwContext
  104. )
  105. {
  106. return NULL;
  107. }
  108. static
  109. BOOLAPI
  110. CommitUrlCacheEntryW(
  111. IN LPCWSTR lpszUrlName,
  112. IN LPCWSTR lpszLocalFileName,
  113. IN FILETIME ExpireTime,
  114. IN FILETIME LastModifiedTime,
  115. IN DWORD CacheEntryType,
  116. IN LPWSTR lpHeaderInfo,
  117. IN DWORD dwHeaderSize,
  118. IN LPCWSTR lpszFileExtension,
  119. IN LPCWSTR lpszOriginalUrl
  120. )
  121. {
  122. SetLastError(ERROR_PROC_NOT_FOUND);
  123. return FALSE;
  124. }
  125. static
  126. BOOLAPI
  127. InternetReadFile(
  128. IN HINTERNET hFile,
  129. IN LPVOID lpBuffer,
  130. IN DWORD dwNumberOfBytesToRead,
  131. OUT LPDWORD lpdwNumberOfBytesRead
  132. )
  133. {
  134. *lpdwNumberOfBytesRead = 0;
  135. return FALSE;
  136. }
  137. static
  138. INTERNETAPI_(HINTERNET)
  139. InternetOpenW(
  140. IN LPCWSTR lpszAgent,
  141. IN DWORD dwAccessType,
  142. IN LPCWSTR lpszProxy OPTIONAL,
  143. IN LPCWSTR lpszProxyBypass OPTIONAL,
  144. IN DWORD dwFlags
  145. )
  146. {
  147. return NULL;
  148. }
  149. static
  150. BOOLAPI
  151. InternetCloseHandle(
  152. IN HINTERNET hInternet
  153. )
  154. {
  155. SetLastError(ERROR_PROC_NOT_FOUND);
  156. return FALSE;
  157. }
  158. static
  159. BOOLAPI
  160. InternetCrackUrlW(
  161. IN LPCWSTR lpszUrl,
  162. IN DWORD dwUrlLength,
  163. IN DWORD dwFlags,
  164. IN OUT LPURL_COMPONENTSW lpUrlComponents
  165. )
  166. {
  167. SetLastError(ERROR_PROC_NOT_FOUND);
  168. return FALSE;
  169. }
  170. static
  171. INTERNETAPI_(HINTERNET)
  172. InternetConnectW(
  173. IN HINTERNET hInternet,
  174. IN LPCWSTR lpszServerName,
  175. IN INTERNET_PORT nServerPort,
  176. IN LPCWSTR lpszUserName OPTIONAL,
  177. IN LPCWSTR lpszPassword OPTIONAL,
  178. IN DWORD dwService,
  179. IN DWORD dwFlags,
  180. IN DWORD_PTR dwContext
  181. )
  182. {
  183. return NULL;
  184. }
  185. static
  186. INTERNETAPI_(HINTERNET)
  187. HttpOpenRequestW(
  188. IN HINTERNET hConnect,
  189. IN LPCWSTR lpszVerb,
  190. IN LPCWSTR lpszObjectName,
  191. IN LPCWSTR lpszVersion,
  192. IN LPCWSTR lpszReferrer OPTIONAL,
  193. IN LPCWSTR FAR * lplpszAcceptTypes OPTIONAL,
  194. IN DWORD dwFlags,
  195. IN DWORD_PTR dwContext
  196. )
  197. {
  198. return NULL;
  199. }
  200. static
  201. INTERNETAPI_(BOOL)
  202. HttpEndRequestA(
  203. IN HINTERNET hRequest,
  204. OUT LPINTERNET_BUFFERSA lpBuffersOut OPTIONAL,
  205. IN DWORD dwFlags,
  206. IN DWORD_PTR dwContext
  207. )
  208. {
  209. SetLastError(ERROR_PROC_NOT_FOUND);
  210. return FALSE;
  211. }
  212. static
  213. INTERNETAPI_(BOOL)
  214. HttpEndRequestW(
  215. IN HINTERNET hRequest,
  216. OUT LPINTERNET_BUFFERSW lpBuffersOut OPTIONAL,
  217. IN DWORD dwFlags,
  218. IN DWORD_PTR dwContext
  219. )
  220. {
  221. SetLastError(ERROR_PROC_NOT_FOUND);
  222. return FALSE;
  223. }
  224. static
  225. INTERNETAPI_(BOOL)
  226. HttpSendRequestA(
  227. IN HINTERNET hRequest,
  228. IN LPCSTR lpszHeaders OPTIONAL,
  229. IN DWORD dwHeadersLength,
  230. IN LPVOID lpOptional OPTIONAL,
  231. IN DWORD dwOptionalLength
  232. )
  233. {
  234. SetLastError(ERROR_PROC_NOT_FOUND);
  235. return FALSE;
  236. }
  237. static
  238. BOOLAPI
  239. HttpSendRequestW(
  240. IN HINTERNET hRequest,
  241. IN LPCWSTR lpszHeaders OPTIONAL,
  242. IN DWORD dwHeadersLength,
  243. IN LPVOID lpOptional OPTIONAL,
  244. IN DWORD dwOptionalLength
  245. )
  246. {
  247. SetLastError(ERROR_PROC_NOT_FOUND);
  248. return FALSE;
  249. }
  250. static
  251. INTERNETAPI_(BOOL)
  252. HttpSendRequestExA(
  253. IN HINTERNET hRequest,
  254. IN LPINTERNET_BUFFERSA lpBuffersIn OPTIONAL,
  255. OUT LPINTERNET_BUFFERSA lpBuffersOut OPTIONAL,
  256. IN DWORD dwFlags,
  257. IN DWORD_PTR dwContext
  258. )
  259. {
  260. SetLastError(ERROR_PROC_NOT_FOUND);
  261. return FALSE;
  262. }
  263. static
  264. INTERNETAPI_(BOOL)
  265. HttpSendRequestExW(
  266. IN HINTERNET hRequest,
  267. IN LPINTERNET_BUFFERSW lpBuffersIn OPTIONAL,
  268. OUT LPINTERNET_BUFFERSW lpBuffersOut OPTIONAL,
  269. IN DWORD dwFlags,
  270. IN DWORD_PTR dwContext
  271. )
  272. {
  273. SetLastError(ERROR_PROC_NOT_FOUND);
  274. return FALSE;
  275. }
  276. static
  277. INTERNETAPI_(DWORD)
  278. InternetErrorDlg(
  279. IN HWND hWnd,
  280. IN OUT HINTERNET hRequest,
  281. IN DWORD dwError,
  282. IN DWORD dwFlags,
  283. IN OUT LPVOID * lppvData
  284. )
  285. {
  286. return ERROR_CANCELLED;
  287. }
  288. static
  289. INTERNETAPI_(BOOL)
  290. InternetFortezzaCommand(
  291. DWORD dwCommand,
  292. HWND hwnd,
  293. DWORD_PTR dwReserved
  294. )
  295. {
  296. return ERROR_PROC_NOT_FOUND;
  297. }
  298. static
  299. BOOLAPI
  300. GetUrlCacheEntryInfoExW(
  301. IN LPCWSTR lpszUrl,
  302. OUT LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
  303. IN OUT LPDWORD lpdwCacheEntryInfoBufSize,
  304. OUT LPWSTR lpszReserved,
  305. IN OUT LPDWORD lpdwReserved,
  306. LPVOID lpReserved,
  307. DWORD dwFlags
  308. )
  309. {
  310. SetLastError(ERROR_PROC_NOT_FOUND);
  311. return FALSE;
  312. }
  313. static
  314. INTERNETAPI_(BOOL)
  315. InternetGoOnlineW(
  316. IN LPWSTR lpszURL,
  317. IN HWND hwndParent,
  318. IN DWORD dwFlags
  319. )
  320. {
  321. SetLastError(ERROR_PROC_NOT_FOUND);
  322. return FALSE;
  323. }
  324. static
  325. INTERNETAPI_(BOOL)
  326. InternetQueryFortezzaStatus(
  327. DWORD *pdwStatus,
  328. DWORD_PTR dwReserved
  329. )
  330. {
  331. SetLastError(ERROR_PROC_NOT_FOUND);
  332. return FALSE;
  333. }
  334. static
  335. INTERNETAPI_(DWORD)
  336. InternetConfirmZoneCrossingW(
  337. IN HWND hWnd,
  338. IN LPWSTR szUrlPrev,
  339. IN LPWSTR szUrlNew,
  340. IN BOOL bPost
  341. )
  342. {
  343. return ERROR_PROC_NOT_FOUND;
  344. }
  345. static
  346. BOOLAPI
  347. GetUrlCacheEntryInfoExA(
  348. IN LPCSTR lpszUrl,
  349. OUT LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntryInfo,
  350. IN OUT LPDWORD lpdwCacheEntryInfoBufSize,
  351. OUT LPSTR lpszReserved,
  352. IN OUT LPDWORD lpdwReserved,
  353. LPVOID lpReserved,
  354. DWORD dwFlags
  355. )
  356. {
  357. SetLastError(ERROR_PROC_NOT_FOUND);
  358. return FALSE;
  359. }
  360. static
  361. BOOLAPI
  362. ReadUrlCacheEntryStream(
  363. IN HANDLE hUrlCacheStream,
  364. IN DWORD dwLocation,
  365. IN OUT LPVOID lpBuffer,
  366. IN OUT LPDWORD lpdwLen,
  367. IN DWORD Reserved
  368. )
  369. {
  370. SetLastError(ERROR_PROC_NOT_FOUND);
  371. return FALSE;
  372. }
  373. static
  374. STDAPI_(BOOL)
  375. IsProfilesEnabled()
  376. {
  377. SetLastError(ERROR_PROC_NOT_FOUND);
  378. return FALSE;
  379. }
  380. static
  381. URLCACHEAPI_(BOOL)
  382. CreateUrlCacheContainerA(
  383. IN LPCSTR Name,
  384. IN LPCSTR CachePrefix,
  385. IN LPCSTR CachePath,
  386. IN DWORD KBCacheLimit,
  387. IN DWORD dwContainerType,
  388. IN DWORD dwOptions,
  389. IN OUT LPVOID pvBuffer,
  390. IN OUT LPDWORD cbBuffer
  391. )
  392. {
  393. SetLastError(ERROR_PROC_NOT_FOUND);
  394. return FALSE;
  395. }
  396. static
  397. URLCACHEAPI_(HANDLE)
  398. FindFirstUrlCacheContainerA(
  399. IN OUT LPDWORD pdwModified,
  400. OUT LPINTERNET_CACHE_CONTAINER_INFOA lpContainerInfo,
  401. IN OUT LPDWORD lpdwContainerInfoBufferSize,
  402. IN DWORD dwOptions
  403. )
  404. {
  405. return NULL;
  406. }
  407. static
  408. URLCACHEAPI_(BOOL)
  409. DeleteUrlCacheContainerA(
  410. IN LPCSTR Name,
  411. IN DWORD dwOptions
  412. )
  413. {
  414. SetLastError(ERROR_PROC_NOT_FOUND);
  415. return FALSE;
  416. }
  417. static
  418. URLCACHEAPI_(BOOL)
  419. FindNextUrlCacheContainerA(
  420. IN HANDLE hFind,
  421. OUT LPINTERNET_CACHE_CONTAINER_INFOA lpContainerInfo,
  422. IN OUT LPDWORD lpdwContainerInfoBufferSize
  423. )
  424. {
  425. SetLastError(ERROR_PROC_NOT_FOUND);
  426. return FALSE;
  427. }
  428. static
  429. URLCACHEAPI_(HANDLE)
  430. RetrieveUrlCacheEntryStreamW(
  431. IN LPCWSTR lpszUrlName,
  432. OUT LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
  433. IN OUT LPDWORD lpdwCacheEntryInfoBufferSize,
  434. IN BOOL fRandomRead,
  435. IN DWORD dwReserved
  436. )
  437. {
  438. return NULL;
  439. }
  440. static
  441. URLCACHEAPI_(BOOL)
  442. UnlockUrlCacheEntryStream(
  443. HANDLE hStream,
  444. IN DWORD dwReserved
  445. )
  446. {
  447. SetLastError(ERROR_PROC_NOT_FOUND);
  448. return FALSE;
  449. }
  450. static
  451. INTERNETAPI_(BOOL)
  452. InternetClearAllPerSiteCookieDecisions()
  453. {
  454. return TRUE;
  455. }
  456. static
  457. INTERNETAPI_(DWORD)
  458. PrivacySetZonePreferenceW(
  459. DWORD dwZone,
  460. DWORD dwType,
  461. DWORD dwTemplate,
  462. LPCWSTR pszPreference
  463. )
  464. {
  465. return ERROR_PROC_NOT_FOUND;
  466. }
  467. static
  468. URLCACHEAPI_(BOOL)
  469. DeleteUrlCacheEntryA(
  470. IN LPCSTR lpszUrlName
  471. )
  472. {
  473. SetLastError(ERROR_PROC_NOT_FOUND);
  474. return FALSE;
  475. }
  476. static
  477. INTERNETAPI_(int)
  478. GetP3PPolicy(
  479. P3PCURL pszPolicyURL,
  480. HANDLE hDestination,
  481. P3PCXSL pszXSLtransform,
  482. struct P3PSignal *pSignal
  483. )
  484. {
  485. return P3P_Error;
  486. }
  487. static
  488. INTERNETAPI_(int)
  489. MapResourceToPolicy(
  490. struct P3PResource *pResource,
  491. P3PURL pszPolicy,
  492. unsigned long dwSize,
  493. struct P3PSignal *pSignal
  494. )
  495. {
  496. return P3P_Error;
  497. }
  498. static
  499. INTERNETAPI_(BOOL)
  500. InternetGetPerSiteCookieDecisionW(
  501. IN LPCWSTR pwchHostName,
  502. unsigned long* pResult
  503. )
  504. {
  505. SetLastError(ERROR_PROC_NOT_FOUND);
  506. return FALSE;
  507. }
  508. static
  509. INTERNETAPI_(BOOL)
  510. InternetEnumPerSiteCookieDecisionW(
  511. OUT LPWSTR pwszSiteName,
  512. IN OUT unsigned long *pcSiteNameSize,
  513. OUT unsigned long *pdwDecision,
  514. IN unsigned long dwIndex)
  515. {
  516. SetLastError(ERROR_PROC_NOT_FOUND);
  517. return FALSE;
  518. }
  519. static
  520. INTERNETAPI_(BOOL)
  521. InternetSetPerSiteCookieDecisionW(
  522. IN LPCWSTR pwchHostName,
  523. DWORD dwDecision
  524. )
  525. {
  526. SetLastError(ERROR_PROC_NOT_FOUND);
  527. return FALSE;
  528. }
  529. static
  530. INTERNETAPI_(int)
  531. FreeP3PObject(
  532. P3PHANDLE hObject
  533. )
  534. {
  535. return P3P_Done;
  536. }
  537. static
  538. BOOLAPI
  539. ImportCookieFileW(
  540. IN LPCWSTR szFilename
  541. )
  542. {
  543. SetLastError(ERROR_PROC_NOT_FOUND);
  544. return FALSE;
  545. }
  546. static
  547. BOOLAPI
  548. ExportCookieFileW(
  549. IN LPCWSTR szFilename,
  550. IN BOOL fAppend
  551. )
  552. {
  553. SetLastError(ERROR_PROC_NOT_FOUND);
  554. return FALSE;
  555. }
  556. static
  557. URLCACHEAPI_(HANDLE)
  558. FindFirstUrlCacheContainerW(
  559. IN OUT DWORD *pdwModified,
  560. OUT LPINTERNET_CACHE_CONTAINER_INFOW lpContainerInfo,
  561. IN OUT LPDWORD lpcbContainerInfo,
  562. IN DWORD dwOptions
  563. )
  564. {
  565. return NULL;
  566. }
  567. static
  568. URLCACHEAPI_(BOOL)
  569. FindNextUrlCacheContainerW(
  570. IN HANDLE hEnumHandle,
  571. OUT LPINTERNET_CACHE_CONTAINER_INFOW lpContainerInfo,
  572. IN OUT LPDWORD lpcbContainerInfo
  573. )
  574. {
  575. SetLastError(ERROR_PROC_NOT_FOUND);
  576. return FALSE;
  577. }
  578. static
  579. URLCACHEAPI_(BOOL)
  580. FindCloseUrlCache(
  581. IN HANDLE hFind
  582. )
  583. {
  584. SetLastError(ERROR_PROC_NOT_FOUND);
  585. return FALSE;
  586. }
  587. static
  588. URLCACHEAPI_(BOOL)
  589. GetUrlCacheEntryInfoA(
  590. IN LPCSTR lpszUrlName,
  591. OUT LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntryInfo,
  592. IN OUT LPDWORD lpdwCacheEntryInfoBufferSize
  593. )
  594. {
  595. SetLastError(ERROR_PROC_NOT_FOUND);
  596. return FALSE;
  597. }
  598. static
  599. URLCACHEAPI_(BOOL)
  600. CommitUrlCacheEntryA(
  601. IN LPCSTR lpszUrlName,
  602. IN LPCSTR lpszLocalFileName,
  603. IN FILETIME ExpireTime,
  604. IN FILETIME LastModifiedTime,
  605. IN DWORD CacheEntryType,
  606. IN LPBYTE lpHeaderInfo,
  607. IN DWORD dwHeaderSize,
  608. IN LPCSTR lpszFileExtension,
  609. IN LPCSTR lpszOriginalUrl
  610. )
  611. {
  612. SetLastError(ERROR_PROC_NOT_FOUND);
  613. return FALSE;
  614. }
  615. static
  616. INTERNETAPI_(BOOL)
  617. InternetCanonicalizeUrlA(
  618. IN LPCSTR pszUrl,
  619. OUT LPSTR pszBuffer,
  620. IN OUT LPDWORD lpdwBufferLength,
  621. IN DWORD dwFlags
  622. )
  623. {
  624. SetLastError(ERROR_PROC_NOT_FOUND);
  625. return FALSE;
  626. }
  627. static
  628. INTERNETAPI_(BOOL)
  629. InternetCanonicalizeUrlW(
  630. IN LPCWSTR pszUrl,
  631. OUT LPWSTR pszBuffer,
  632. IN OUT LPDWORD lpdwBufferLength,
  633. IN DWORD dwFlags
  634. )
  635. {
  636. SetLastError(ERROR_PROC_NOT_FOUND);
  637. return FALSE;
  638. }
  639. static
  640. INTERNETAPI_(BOOL)
  641. InternetGetConnectedStateExA(
  642. OUT LPDWORD lpdwFlags,
  643. OUT LPSTR lpszConnectionName,
  644. IN DWORD dwBufLen,
  645. IN DWORD dwReserved
  646. )
  647. {
  648. SetLastError(ERROR_PROC_NOT_FOUND);
  649. return FALSE;
  650. }
  651. static
  652. INTERNETAPI_(BOOL)
  653. InternetGetConnectedState(
  654. OUT LPDWORD lpdwFlags,
  655. IN DWORD dwReserved
  656. )
  657. {
  658. SetLastError(ERROR_PROC_NOT_FOUND);
  659. return FALSE;
  660. }
  661. static
  662. URLCACHEAPI_(BOOL)
  663. FindNextUrlCacheEntryA(
  664. IN HANDLE hFind,
  665. OUT LPINTERNET_CACHE_ENTRY_INFOA lpNextCacheEntryInfo,
  666. IN OUT LPDWORD lpdwNextCacheEntryInfoBufferSize
  667. )
  668. {
  669. SetLastError(ERROR_PROC_NOT_FOUND);
  670. return FALSE;
  671. }
  672. static
  673. URLCACHEAPI_(HANDLE)
  674. FindFirstUrlCacheEntryA(
  675. IN LPCSTR lpszUrlSearchPattern,
  676. OUT LPINTERNET_CACHE_ENTRY_INFOA lpFirstCacheEntryInfo,
  677. IN OUT LPDWORD lpdwFirstCacheEntryInfoBufferSize
  678. )
  679. {
  680. return NULL;
  681. }
  682. static
  683. URLCACHEAPI_(BOOL)
  684. FreeUrlCacheSpaceW(
  685. IN LPCWSTR lpszCachePath,
  686. IN DWORD dwSize,
  687. IN DWORD dwReserved
  688. )
  689. {
  690. SetLastError(ERROR_PROC_NOT_FOUND);
  691. return FALSE;
  692. }
  693. static
  694. URLCACHEAPI_(BOOL)
  695. FindNextUrlCacheEntryW(
  696. IN HANDLE hEnumHandle,
  697. OUT LPINTERNET_CACHE_ENTRY_INFOW pEntryInfo,
  698. IN OUT LPDWORD pcbEntryInfo
  699. )
  700. {
  701. SetLastError(ERROR_PROC_NOT_FOUND);
  702. return FALSE;
  703. }
  704. static
  705. URLCACHEAPI_(HANDLE)
  706. FindFirstUrlCacheEntryW(
  707. IN LPCWSTR lpszUrlSearchPattern,
  708. OUT LPINTERNET_CACHE_ENTRY_INFOW lpFirstCacheEntryInfo,
  709. IN OUT LPDWORD lpcbCacheEntryInfo
  710. )
  711. {
  712. return NULL;
  713. }
  714. static
  715. URLCACHEAPI_(BOOL)
  716. DeleteUrlCacheEntryW(
  717. IN LPCWSTR lpszUrlName
  718. )
  719. {
  720. SetLastError(ERROR_PROC_NOT_FOUND);
  721. return FALSE;
  722. }
  723. static
  724. INTERNETAPI_(BOOL)
  725. InternetShowSecurityInfoByURLW(
  726. IN LPWSTR pszUrlW,
  727. IN HWND hwndRootWindow
  728. )
  729. {
  730. SetLastError(ERROR_PROC_NOT_FOUND);
  731. return FALSE;
  732. }
  733. static
  734. URLCACHEAPI_(BOOL)
  735. SetUrlCacheEntryInfoW(
  736. IN LPCWSTR lpszUrlName,
  737. IN LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
  738. IN DWORD dwFieldControl
  739. )
  740. {
  741. SetLastError(ERROR_PROC_NOT_FOUND);
  742. return FALSE;
  743. }
  744. static
  745. URLCACHEAPI_(BOOL)
  746. GetUrlCacheConfigInfoW(
  747. OUT LPINTERNET_CACHE_CONFIG_INFOW pCacheConfigInfo,
  748. IN OUT LPDWORD pcbCacheConfigInfo,
  749. IN DWORD dwFieldControl
  750. )
  751. {
  752. SetLastError(ERROR_PROC_NOT_FOUND);
  753. return FALSE;
  754. }
  755. static
  756. INTERNETAPI_(BOOL)
  757. InternetCreateUrlW(
  758. IN LPURL_COMPONENTSW pUCW,
  759. IN DWORD dwFlags,
  760. OUT LPWSTR pszUrlW,
  761. IN OUT LPDWORD pdwUrlLengthW
  762. )
  763. {
  764. SetLastError(ERROR_PROC_NOT_FOUND);
  765. return FALSE;
  766. }
  767. static
  768. URLCACHEAPI_(BOOL)
  769. GetUrlCacheEntryInfoW(
  770. IN LPCWSTR lpszUrlName,
  771. OUT LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
  772. IN OUT LPDWORD lpcbCacheEntryInfo
  773. )
  774. {
  775. SetLastError(ERROR_PROC_NOT_FOUND);
  776. return FALSE;
  777. }
  778. static
  779. INTERNETAPI_(HINTERNET)
  780. HttpOpenRequestA(
  781. IN HINTERNET hConnect,
  782. IN LPCSTR lpszVerb OPTIONAL,
  783. IN LPCSTR lpszObjectName OPTIONAL,
  784. IN LPCSTR lpszVersion OPTIONAL,
  785. IN LPCSTR lpszReferrer OPTIONAL,
  786. IN LPCSTR FAR * lplpszAcceptTypes OPTIONAL,
  787. IN DWORD dwFlags,
  788. IN DWORD_PTR dwContext
  789. )
  790. {
  791. return NULL;
  792. }
  793. static
  794. INTERNETAPI_(HINTERNET)
  795. InternetConnectA(
  796. IN HINTERNET hInternet,
  797. IN LPCSTR lpszServerName,
  798. IN INTERNET_PORT nServerPort,
  799. IN LPCSTR lpszUserName OPTIONAL,
  800. IN LPCSTR lpszPassword OPTIONAL,
  801. IN DWORD dwService,
  802. IN DWORD dwFlags,
  803. IN DWORD_PTR dwContext
  804. )
  805. {
  806. return NULL;
  807. }
  808. static
  809. INTERNETAPI_(INTERNET_STATUS_CALLBACK)
  810. InternetSetStatusCallbackA(
  811. IN HINTERNET hInternet,
  812. IN INTERNET_STATUS_CALLBACK lpfnInternetCallback
  813. )
  814. {
  815. return INTERNET_INVALID_STATUS_CALLBACK;
  816. }
  817. static
  818. INTERNETAPI_(HINTERNET)
  819. InternetOpenA(
  820. IN LPCSTR lpszAgent,
  821. IN DWORD dwAccessType,
  822. IN LPCSTR lpszProxy OPTIONAL,
  823. IN LPCSTR lpszProxyBypass OPTIONAL,
  824. IN DWORD dwFlags
  825. )
  826. {
  827. return NULL;
  828. }
  829. static
  830. INTERNETAPI_(BOOL)
  831. InternetCrackUrlA(
  832. IN LPCSTR lpszUrl,
  833. IN DWORD dwUrlLength,
  834. IN DWORD dwFlags,
  835. IN LPURL_COMPONENTSA lpUrlComponents
  836. )
  837. {
  838. SetLastError(ERROR_PROC_NOT_FOUND);
  839. return FALSE;
  840. }
  841. static
  842. INTERNETAPI_(BOOL)
  843. HttpAddRequestHeadersA(
  844. IN HINTERNET hRequest,
  845. IN LPCSTR lpszHeaders,
  846. IN DWORD dwHeadersLength,
  847. IN DWORD dwModifiers
  848. )
  849. {
  850. SetLastError(ERROR_PROC_NOT_FOUND);
  851. return FALSE;
  852. }
  853. static
  854. INTERNETAPI_(BOOL)
  855. HttpAddRequestHeadersW(
  856. IN HINTERNET hRequest,
  857. IN LPCWSTR lpszHeaders,
  858. IN DWORD dwHeadersLength,
  859. IN DWORD dwModifiers
  860. )
  861. {
  862. SetLastError(ERROR_PROC_NOT_FOUND);
  863. return FALSE;
  864. }
  865. static
  866. INTERNETAPI_(BOOL)
  867. HttpQueryInfoW(
  868. IN HINTERNET hRequest,
  869. IN DWORD dwInfoLevel,
  870. IN OUT LPVOID lpBuffer OPTIONAL,
  871. IN OUT LPDWORD lpdwBufferLength,
  872. IN OUT LPDWORD lpdwIndex OPTIONAL
  873. )
  874. {
  875. SetLastError(ERROR_PROC_NOT_FOUND);
  876. return FALSE;
  877. }
  878. static
  879. BOOLAPI
  880. RegisterUrlCacheNotification(
  881. HWND hWnd,
  882. UINT uMsg,
  883. GROUPID gid,
  884. DWORD dwFilter,
  885. DWORD dwReserve
  886. )
  887. {
  888. SetLastError(ERROR_PROC_NOT_FOUND);
  889. return FALSE;
  890. }
  891. static
  892. URLCACHEAPI_(BOOL)
  893. SetUrlCacheEntryGroupW(
  894. IN LPCWSTR lpszUrlName,
  895. IN DWORD dwFlags,
  896. IN GROUPID GroupId,
  897. IN LPBYTE pbGroupAttributes,
  898. IN DWORD cbGroupAttributes,
  899. IN LPVOID lpReserved
  900. )
  901. {
  902. SetLastError(ERROR_PROC_NOT_FOUND);
  903. return FALSE;
  904. }
  905. static
  906. INTERNETAPI_(BOOL)
  907. InternetSetOptionW(
  908. IN HINTERNET hInternet OPTIONAL,
  909. IN DWORD dwOption,
  910. IN LPVOID lpBuffer,
  911. IN DWORD dwBufferLength
  912. )
  913. {
  914. SetLastError(ERROR_PROC_NOT_FOUND);
  915. return FALSE;
  916. }
  917. static
  918. INTERNETAPI_(BOOL)
  919. InternetTimeToSystemTimeW(
  920. IN LPCWSTR lpcszTimeString,
  921. OUT SYSTEMTIME *lpSysTime,
  922. IN DWORD dwReserved
  923. )
  924. {
  925. SetLastError(ERROR_PROC_NOT_FOUND);
  926. return FALSE;
  927. }
  928. static
  929. URLCACHEAPI_(BOOL)
  930. GetUrlCacheConfigInfoA(
  931. LPINTERNET_CACHE_CONFIG_INFOA lpCacheConfigInfo,
  932. IN OUT LPDWORD lpdwCacheConfigInfoBufferSize,
  933. DWORD dwFieldControl
  934. )
  935. {
  936. SetLastError(ERROR_PROC_NOT_FOUND);
  937. return FALSE;
  938. }
  939. static
  940. INTERNETAPI_(BOOL)
  941. InternetInitializeAutoProxyDll(
  942. DWORD dwReserved
  943. )
  944. {
  945. SetLastError(ERROR_PROC_NOT_FOUND);
  946. return FALSE;
  947. }
  948. static
  949. INTERNETAPI_(BOOL)
  950. InternetSetOptionA(
  951. IN HINTERNET hInternet OPTIONAL,
  952. IN DWORD dwOption,
  953. IN LPVOID lpBuffer,
  954. IN DWORD dwBufferLength
  955. )
  956. {
  957. SetLastError(ERROR_PROC_NOT_FOUND);
  958. return FALSE;
  959. }
  960. static
  961. INTERNETAPI_(BOOL)
  962. InternetQueryOptionA(
  963. IN HINTERNET hInternet OPTIONAL,
  964. IN DWORD dwOption,
  965. OUT LPVOID lpBuffer OPTIONAL,
  966. IN OUT LPDWORD lpdwBufferLength
  967. )
  968. {
  969. SetLastError(ERROR_PROC_NOT_FOUND);
  970. return FALSE;
  971. }
  972. static
  973. INTERNETAPI_(int)
  974. FindP3PPolicySymbol(
  975. const char *pszSymbol
  976. )
  977. {
  978. return -1;
  979. }
  980. static
  981. BOOLAPI
  982. IsDomainLegalCookieDomainW(
  983. IN LPCWSTR pchDomain,
  984. IN LPCWSTR pchFullDomain
  985. )
  986. {
  987. SetLastError(ERROR_PROC_NOT_FOUND);
  988. return FALSE;
  989. }
  990. static
  991. INTERNETAPI_(int)
  992. GetP3PRequestStatus(
  993. P3PHANDLE hObject
  994. )
  995. {
  996. return P3P_Error;
  997. }
  998. static
  999. BOOLAPI
  1000. HttpQueryInfoA(
  1001. IN HINTERNET hRequest,
  1002. IN DWORD dwInfoLevel,
  1003. IN OUT LPVOID lpBuffer OPTIONAL,
  1004. IN OUT LPDWORD lpdwBufferLength,
  1005. IN OUT LPDWORD lpdwIndex OPTIONAL
  1006. )
  1007. {
  1008. SetLastError(ERROR_PROC_NOT_FOUND);
  1009. return FALSE;
  1010. }
  1011. static
  1012. BOOLAPI
  1013. FtpPutFileEx(
  1014. IN HINTERNET hFtpSession,
  1015. IN LPCWSTR lpszLocalFile,
  1016. IN LPCSTR lpszNewRemoteFile,
  1017. IN DWORD dwFlags,
  1018. IN DWORD_PTR dwContext
  1019. )
  1020. {
  1021. SetLastError(ERROR_PROC_NOT_FOUND);
  1022. return FALSE;
  1023. }
  1024. static
  1025. BOOLAPI
  1026. FtpDeleteFileA(
  1027. IN HINTERNET hConnect,
  1028. IN LPCSTR lpszFileName
  1029. )
  1030. {
  1031. SetLastError(ERROR_PROC_NOT_FOUND);
  1032. return FALSE;
  1033. }
  1034. static
  1035. BOOLAPI
  1036. FtpDeleteFileW(
  1037. IN HINTERNET hConnect,
  1038. IN LPCWSTR lpszFileName
  1039. )
  1040. {
  1041. SetLastError(ERROR_PROC_NOT_FOUND);
  1042. return FALSE;
  1043. }
  1044. static
  1045. BOOLAPI
  1046. FtpRenameFileA(
  1047. IN HINTERNET hConnect,
  1048. IN LPCSTR lpszExisting,
  1049. IN LPCSTR lpszNew
  1050. )
  1051. {
  1052. SetLastError(ERROR_PROC_NOT_FOUND);
  1053. return FALSE;
  1054. }
  1055. static
  1056. INTERNETAPI_(HINTERNET)
  1057. FtpOpenFileA(
  1058. IN HINTERNET hConnect,
  1059. IN LPCSTR lpszFileName,
  1060. IN DWORD dwAccess,
  1061. IN DWORD dwFlags,
  1062. IN DWORD_PTR dwContext
  1063. )
  1064. {
  1065. SetLastError(ERROR_PROC_NOT_FOUND);
  1066. return NULL;
  1067. }
  1068. static
  1069. INTERNETAPI_(HINTERNET)
  1070. FtpOpenFileW(
  1071. IN HINTERNET hConnect,
  1072. IN LPCWSTR lpszFileName,
  1073. IN DWORD dwAccess,
  1074. IN DWORD dwFlags,
  1075. IN DWORD_PTR dwContext
  1076. )
  1077. {
  1078. SetLastError(ERROR_PROC_NOT_FOUND);
  1079. return NULL;
  1080. }
  1081. static
  1082. BOOLAPI
  1083. FtpCreateDirectoryA(
  1084. IN HINTERNET hConnect,
  1085. IN LPCSTR lpszDirectory
  1086. )
  1087. {
  1088. SetLastError(ERROR_PROC_NOT_FOUND);
  1089. return FALSE;
  1090. }
  1091. static
  1092. BOOLAPI
  1093. FtpCreateDirectoryW(
  1094. IN HINTERNET hConnect,
  1095. IN LPCWSTR lpszDirectory
  1096. )
  1097. {
  1098. SetLastError(ERROR_PROC_NOT_FOUND);
  1099. return FALSE;
  1100. }
  1101. static
  1102. INTERNETAPI_(BOOL)
  1103. FtpGetCurrentDirectoryW(
  1104. IN HINTERNET hFtpSession,
  1105. OUT LPWSTR lpszCurrentDirectory,
  1106. IN OUT LPDWORD lpdwCurrentDirectory
  1107. )
  1108. {
  1109. SetLastError(ERROR_PROC_NOT_FOUND);
  1110. return FALSE;
  1111. }
  1112. static
  1113. BOOLAPI
  1114. FtpRemoveDirectoryA(
  1115. IN HINTERNET hConnect,
  1116. IN LPCSTR lpszDirectory
  1117. )
  1118. {
  1119. SetLastError(ERROR_PROC_NOT_FOUND);
  1120. return FALSE;
  1121. }
  1122. static
  1123. INTERNETAPI_(HINTERNET)
  1124. FtpFindFirstFileA(
  1125. IN HINTERNET hConnect,
  1126. IN LPCSTR lpszSearchFile OPTIONAL,
  1127. OUT LPWIN32_FIND_DATAA lpFindFileData OPTIONAL,
  1128. IN DWORD dwFlags,
  1129. IN DWORD_PTR dwContext
  1130. )
  1131. {
  1132. SetLastError(ERROR_PROC_NOT_FOUND);
  1133. if (lpFindFileData)
  1134. {
  1135. lpFindFileData->cFileName[0] = 0;
  1136. }
  1137. return NULL;
  1138. }
  1139. static
  1140. INTERNETAPI_(HINTERNET)
  1141. FtpFindFirstFileW(
  1142. IN HINTERNET hConnect,
  1143. IN LPCWSTR lpszSearchFile OPTIONAL,
  1144. OUT LPWIN32_FIND_DATAW lpFindFileData OPTIONAL,
  1145. IN DWORD dwFlags,
  1146. IN DWORD_PTR dwContext
  1147. )
  1148. {
  1149. SetLastError(ERROR_PROC_NOT_FOUND);
  1150. if (lpFindFileData)
  1151. {
  1152. lpFindFileData->cFileName[0] = 0;
  1153. }
  1154. return NULL;
  1155. }
  1156. static
  1157. BOOLAPI
  1158. FtpCommandA(
  1159. IN HINTERNET hConnect,
  1160. IN BOOL fExpectResponse,
  1161. IN DWORD dwFlags,
  1162. IN LPCSTR lpszCommand,
  1163. IN DWORD_PTR dwContext,
  1164. OUT HINTERNET *phFtpCommand OPTIONAL
  1165. )
  1166. {
  1167. SetLastError(ERROR_PROC_NOT_FOUND);
  1168. return FALSE;
  1169. }
  1170. static
  1171. BOOLAPI
  1172. FtpGetFileEx(
  1173. IN HINTERNET hFtpSession,
  1174. IN LPCSTR lpszRemoteFile,
  1175. IN LPCWSTR lpszNewFile,
  1176. IN BOOL fFailIfExists,
  1177. IN DWORD dwFlagsAndAttributes,
  1178. IN DWORD dwFlags,
  1179. IN DWORD_PTR dwContext
  1180. )
  1181. {
  1182. SetLastError(ERROR_PROC_NOT_FOUND);
  1183. return FALSE;
  1184. }
  1185. static
  1186. BOOLAPI
  1187. InternetWriteFile(
  1188. IN HINTERNET hFile,
  1189. IN LPCVOID lpBuffer,
  1190. IN DWORD dwNumberOfBytesToWrite,
  1191. OUT LPDWORD lpdwNumberOfBytesWritten
  1192. )
  1193. {
  1194. SetLastError(ERROR_PROC_NOT_FOUND);
  1195. return FALSE;
  1196. }
  1197. static
  1198. BOOLAPI
  1199. InternetGetLastResponseInfoA(
  1200. OUT LPDWORD lpdwError,
  1201. OUT LPSTR lpszBuffer OPTIONAL,
  1202. IN OUT LPDWORD lpdwBufferLength
  1203. )
  1204. {
  1205. SetLastError(ERROR_PROC_NOT_FOUND);
  1206. return FALSE;
  1207. }
  1208. static
  1209. BOOLAPI
  1210. InternetGetLastResponseInfoW(
  1211. OUT LPDWORD lpdwError,
  1212. OUT LPWSTR lpszBuffer OPTIONAL,
  1213. IN OUT LPDWORD lpdwBufferLength
  1214. )
  1215. {
  1216. SetLastError(ERROR_PROC_NOT_FOUND);
  1217. return FALSE;
  1218. }
  1219. static
  1220. INTERNETAPI_(INTERNET_STATUS_CALLBACK)
  1221. InternetSetStatusCallbackW(
  1222. IN HINTERNET hInternet,
  1223. IN INTERNET_STATUS_CALLBACK lpfnInternetCallback
  1224. )
  1225. {
  1226. SetLastError(ERROR_PROC_NOT_FOUND);
  1227. return FALSE;
  1228. }
  1229. static
  1230. BOOLAPI
  1231. InternetFindNextFileA(
  1232. IN HINTERNET hFind,
  1233. OUT LPVOID lpvFindData
  1234. )
  1235. {
  1236. SetLastError(ERROR_PROC_NOT_FOUND);
  1237. return FALSE;
  1238. }
  1239. static
  1240. BOOLAPI
  1241. InternetFindNextFileW(
  1242. IN HINTERNET hFind,
  1243. OUT LPVOID lpvFindData
  1244. )
  1245. {
  1246. SetLastError(ERROR_PROC_NOT_FOUND);
  1247. return FALSE;
  1248. }
  1249. static
  1250. BOOLAPI
  1251. FtpGetCurrentDirectoryA(
  1252. IN HINTERNET hConnect,
  1253. OUT LPSTR lpszCurrentDirectory,
  1254. IN OUT LPDWORD lpdwCurrentDirectory
  1255. )
  1256. {
  1257. SetLastError(ERROR_PROC_NOT_FOUND);
  1258. return FALSE;
  1259. }
  1260. static
  1261. BOOLAPI
  1262. FtpSetCurrentDirectoryA(
  1263. IN HINTERNET hConnect,
  1264. IN LPCSTR lpszDirectory
  1265. )
  1266. {
  1267. SetLastError(ERROR_PROC_NOT_FOUND);
  1268. return FALSE;
  1269. }
  1270. static
  1271. BOOLAPI
  1272. FtpSetCurrentDirectoryW(
  1273. IN HINTERNET hConnect,
  1274. IN LPCWSTR lpszDirectory
  1275. )
  1276. {
  1277. SetLastError(ERROR_PROC_NOT_FOUND);
  1278. return FALSE;
  1279. }
  1280. static
  1281. INTERNETAPI_(DWORD)
  1282. FtpGetFileSize(
  1283. IN HINTERNET hFile,
  1284. OUT LPDWORD lpdwFileSizeHigh OPTIONAL
  1285. )
  1286. {
  1287. SetLastError(ERROR_PROC_NOT_FOUND);
  1288. return FALSE;
  1289. }
  1290. static
  1291. INTERNETAPI_(HINTERNET)
  1292. InternetOpenUrlA(
  1293. IN HINTERNET hInternet,
  1294. IN LPCSTR lpszUrl,
  1295. IN LPCSTR lpszHeaders OPTIONAL,
  1296. IN DWORD dwHeadersLength,
  1297. IN DWORD dwFlags,
  1298. IN DWORD_PTR dwContext
  1299. )
  1300. {
  1301. SetLastError(ERROR_PROC_NOT_FOUND);
  1302. return FALSE;
  1303. }
  1304. static
  1305. BOOLAPI
  1306. CreateUrlCacheEntryA(
  1307. IN LPCSTR lpszUrlName,
  1308. IN DWORD dwExpectedFileSize,
  1309. IN LPCSTR lpszFileExtension,
  1310. OUT LPSTR lpszFileName,
  1311. IN DWORD dwReserved
  1312. )
  1313. {
  1314. SetLastError(ERROR_PROC_NOT_FOUND);
  1315. return FALSE;
  1316. }
  1317. static
  1318. INTERNETAPI_(BOOL)
  1319. InternetTimeToSystemTimeA(
  1320. IN LPCSTR lpcszTimeString,
  1321. OUT SYSTEMTIME *lpSysTime,
  1322. IN DWORD dwReserved )
  1323. {
  1324. SetLastError(ERROR_PROC_NOT_FOUND);
  1325. return FALSE;
  1326. }
  1327. static
  1328. INTERNETAPI_(BOOL)
  1329. InternetTimeFromSystemTimeA(
  1330. IN CONST SYSTEMTIME *pst, // input GMT time
  1331. IN DWORD dwRFC, // RFC format: must be FORMAT_RFC1123
  1332. OUT LPSTR lpszTime, // output string buffer
  1333. IN DWORD cbTime // output buffer size
  1334. )
  1335. {
  1336. SetLastError(ERROR_PROC_NOT_FOUND);
  1337. return FALSE;
  1338. }
  1339. static
  1340. INTERNETAPI_(BOOL)
  1341. InternetTimeFromSystemTimeW(
  1342. IN CONST SYSTEMTIME *pst, // input GMT time
  1343. IN DWORD dwRFC, // RFC format: must be FORMAT_RFC1123
  1344. OUT LPWSTR lpszTime, // output string buffer
  1345. IN DWORD cbTime // output buffer size
  1346. )
  1347. {
  1348. SetLastError(ERROR_PROC_NOT_FOUND);
  1349. return FALSE;
  1350. }
  1351. static
  1352. INTERNETAPI_(BOOL)
  1353. InternetQueryOptionW(
  1354. IN HINTERNET hInternet OPTIONAL,
  1355. IN DWORD dwOption,
  1356. OUT LPVOID lpBuffer OPTIONAL,
  1357. IN OUT LPDWORD lpdwBufferLength
  1358. )
  1359. {
  1360. SetLastError(ERROR_PROC_NOT_FOUND);
  1361. return FALSE;
  1362. }
  1363. static
  1364. URLCACHEAPI_(BOOL)
  1365. SetUrlCacheConfigInfoA(
  1366. LPINTERNET_CACHE_CONFIG_INFOA pConfig,
  1367. DWORD dwFieldControl
  1368. )
  1369. {
  1370. SetLastError(ERROR_PROC_NOT_FOUND);
  1371. return FALSE;
  1372. }
  1373. static
  1374. URLCACHEAPI_(BOOL)
  1375. CreateUrlCacheContainerW(
  1376. IN LPCWSTR Name,
  1377. IN LPCWSTR CachePrefix,
  1378. IN LPCWSTR CachePath,
  1379. IN DWORD KBCacheLimit,
  1380. IN DWORD dwContainerType,
  1381. IN DWORD dwOptions,
  1382. IN OUT LPVOID pvBuffer,
  1383. IN OUT LPDWORD cbBuffer)
  1384. {
  1385. SetLastError(ERROR_PROC_NOT_FOUND);
  1386. return FALSE;
  1387. }
  1388. static
  1389. BOOLAPI InternetAutodialHangup(
  1390. IN DWORD dwReserved
  1391. )
  1392. {
  1393. SetLastError(ERROR_PROC_NOT_FOUND);
  1394. return FALSE;
  1395. }
  1396. static
  1397. BOOL
  1398. LoadUrlCacheContent(VOID)
  1399. {
  1400. SetLastError(ERROR_PROC_NOT_FOUND);
  1401. return FALSE;
  1402. }
  1403. static
  1404. INTERNETAPI_(GROUPID) CreateUrlCacheGroup(
  1405. IN DWORD dwFlags,
  1406. IN LPVOID lpReserved // must pass NULL
  1407. )
  1408. {
  1409. GROUPID gid = 0;
  1410. SetLastError(ERROR_PROC_NOT_FOUND);
  1411. return gid;
  1412. }
  1413. static
  1414. BOOLAPI DeleteUrlCacheGroup(
  1415. IN GROUPID GroupId,
  1416. IN DWORD dwFlags, // must pass 0
  1417. IN LPVOID lpReserved // must pass NULL
  1418. )
  1419. {
  1420. SetLastError(ERROR_PROC_NOT_FOUND);
  1421. return FALSE;
  1422. }
  1423. static
  1424. INTERNETAPI_(BOOL) InternetGetConnectedStateExW(
  1425. OUT LPDWORD lpdwFlags,
  1426. OUT LPWSTR lpszConnectionName,
  1427. IN DWORD dwNameLen,
  1428. IN DWORD dwReserved
  1429. )
  1430. {
  1431. SetLastError(ERROR_PROC_NOT_FOUND);
  1432. return FALSE;
  1433. }
  1434. static
  1435. BOOLAPI FindNextUrlCacheEntryExA(
  1436. IN HANDLE hEnumHandle,
  1437. OUT LPINTERNET_CACHE_ENTRY_INFOA lpFirstCacheEntryInfo,
  1438. IN OUT LPDWORD lpdwFirstCacheEntryInfoBufferSize,
  1439. OUT LPVOID lpReserved, // must pass NULL
  1440. IN OUT LPDWORD pcbReserved2, // must pass NULL
  1441. IN LPVOID lpReserved3 // must pass NULL
  1442. )
  1443. {
  1444. SetLastError(ERROR_PROC_NOT_FOUND);
  1445. return FALSE;
  1446. }
  1447. static
  1448. BOOLAPI FindNextUrlCacheEntryExW(
  1449. IN HANDLE hEnumHandle,
  1450. OUT LPINTERNET_CACHE_ENTRY_INFOW lpFirstCacheEntryInfo,
  1451. IN OUT LPDWORD lpdwFirstCacheEntryInfoBufferSize,
  1452. OUT LPVOID lpReserved, // must pass NULL
  1453. IN OUT LPDWORD pcbReserved2, // must pass NULL
  1454. IN LPVOID lpReserved3 // must pass NULL
  1455. )
  1456. {
  1457. SetLastError(ERROR_PROC_NOT_FOUND);
  1458. return FALSE;
  1459. }
  1460. static
  1461. INTERNETAPI_(HANDLE) FindFirstUrlCacheEntryExA(
  1462. IN LPCSTR lpszUrlSearchPattern,
  1463. IN DWORD dwFlags,
  1464. IN DWORD dwFilter,
  1465. IN GROUPID GroupId,
  1466. OUT LPINTERNET_CACHE_ENTRY_INFOA lpFirstCacheEntryInfo,
  1467. IN OUT LPDWORD lpdwFirstCacheEntryInfoBufferSize,
  1468. OUT LPVOID lpReserved, // must pass NULL
  1469. IN OUT LPDWORD pcbReserved2, // must pass NULL
  1470. IN LPVOID lpReserved3 // must pass NULL
  1471. )
  1472. {
  1473. SetLastError(ERROR_PROC_NOT_FOUND);
  1474. return NULL;
  1475. }
  1476. static
  1477. INTERNETAPI_(HANDLE) FindFirstUrlCacheEntryExW(
  1478. IN LPCWSTR lpszUrlSearchPattern,
  1479. IN DWORD dwFlags,
  1480. IN DWORD dwFilter,
  1481. IN GROUPID GroupId,
  1482. OUT LPINTERNET_CACHE_ENTRY_INFOW lpFirstCacheEntryInfo,
  1483. IN OUT LPDWORD lpdwFirstCacheEntryInfoBufferSize,
  1484. OUT LPVOID lpReserved, // must pass NULL
  1485. IN OUT LPDWORD pcbReserved2, // must pass NULL
  1486. IN LPVOID lpReserved3 // must pass NULL
  1487. )
  1488. {
  1489. SetLastError(ERROR_PROC_NOT_FOUND);
  1490. return NULL;
  1491. }
  1492. static
  1493. BOOLAPI IsHostInProxyBypassList (INTERNET_SCHEME tScheme, LPCSTR pszHost, DWORD cchHost)
  1494. {
  1495. SetLastError(ERROR_PROC_NOT_FOUND);
  1496. return FALSE;
  1497. }
  1498. static
  1499. BOOLAPI InternetCreateUrlA(
  1500. IN LPURL_COMPONENTSA lpUrlComponents,
  1501. IN DWORD dwFlags,
  1502. OUT LPSTR lpszUrl,
  1503. IN OUT LPDWORD lpdwUrlLength
  1504. )
  1505. {
  1506. SetLastError(ERROR_PROC_NOT_FOUND);
  1507. return FALSE;
  1508. }
  1509. static
  1510. INTERNETAPI_(BOOL) InternetReadFileExA(
  1511. IN HINTERNET hFile,
  1512. OUT LPINTERNET_BUFFERSA lpBuffersOut,
  1513. IN DWORD dwFlags,
  1514. IN DWORD_PTR dwContext
  1515. )
  1516. {
  1517. SetLastError(ERROR_PROC_NOT_FOUND);
  1518. return FALSE;
  1519. }
  1520. static
  1521. INTERNETAPI_(DWORD) InternetSetFilePointer(
  1522. IN HINTERNET hFile,
  1523. IN LONG lDistanceToMove,
  1524. IN PVOID pReserved,
  1525. IN DWORD dwMoveMethod,
  1526. IN DWORD_PTR dwContext
  1527. )
  1528. {
  1529. SetLastError(ERROR_PROC_NOT_FOUND);
  1530. return FALSE;
  1531. }
  1532. static
  1533. INTERNETAPI_(BOOL) ResumeSuspendedDownload(
  1534. IN HINTERNET hRequest,
  1535. IN DWORD dwResultCode
  1536. )
  1537. {
  1538. SetLastError(ERROR_PROC_NOT_FOUND);
  1539. return FALSE;
  1540. }
  1541. static
  1542. BOOLAPI UnlockUrlCacheEntryFileA(
  1543. IN LPCSTR lpszUrlName,
  1544. IN DWORD dwReserved
  1545. )
  1546. {
  1547. SetLastError(ERROR_PROC_NOT_FOUND);
  1548. return FALSE;
  1549. }
  1550. static
  1551. BOOLAPI InternetUnlockRequestFile(
  1552. IN HANDLE hLockRequestInfo
  1553. )
  1554. {
  1555. SetLastError(ERROR_PROC_NOT_FOUND);
  1556. return FALSE;
  1557. }
  1558. static
  1559. BOOLAPI InternetQueryDataAvailable(
  1560. IN HINTERNET hFile,
  1561. OUT LPDWORD lpdwNumberOfBytesAvailable OPTIONAL,
  1562. IN DWORD dwFlags,
  1563. IN DWORD_PTR dwContext
  1564. )
  1565. {
  1566. SetLastError(ERROR_PROC_NOT_FOUND);
  1567. return FALSE;
  1568. }
  1569. static
  1570. BOOLAPI InternetLockRequestFile(
  1571. IN HINTERNET hInternet,
  1572. OUT HANDLE * lphLockRequestInfo
  1573. )
  1574. {
  1575. SetLastError(ERROR_PROC_NOT_FOUND);
  1576. return FALSE;
  1577. }
  1578. static
  1579. BOOLAPI RetrieveUrlCacheEntryFileA(
  1580. IN LPCSTR lpszUrlName,
  1581. OUT LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntryInfo,
  1582. IN OUT LPDWORD lpdwCacheEntryInfoBufferSize,
  1583. IN DWORD dwReserved
  1584. )
  1585. {
  1586. SetLastError(ERROR_PROC_NOT_FOUND);
  1587. return FALSE;
  1588. }
  1589. static
  1590. INTERNETAPI_(DWORD)
  1591. InternetSetCookieExW(
  1592. IN LPCWSTR lpszUrl,
  1593. IN LPCWSTR lpszCookieName,
  1594. IN LPCWSTR lpszCookieData,
  1595. DWORD dwFlags,
  1596. DWORD_PTR dwReserved
  1597. )
  1598. {
  1599. return COOKIE_STATE_UNKNOWN;
  1600. }
  1601. static
  1602. BOOLAPI
  1603. InternetGetCookieExW(
  1604. IN LPCWSTR pchURL,
  1605. IN LPCWSTR pchCookieName,
  1606. IN LPWSTR pchCookieData OPTIONAL,
  1607. IN OUT LPDWORD pcchCookieData OPTIONAL,
  1608. IN DWORD dwFlags,
  1609. IN LPVOID lpReserved
  1610. )
  1611. {
  1612. SetLastError(ERROR_PROC_NOT_FOUND);
  1613. return FALSE;
  1614. }
  1615. static
  1616. BOOLAPI
  1617. IsUrlCacheEntryExpiredW(
  1618. IN LPCWSTR lpszUrlName,
  1619. IN DWORD dwFlags,
  1620. IN OUT FILETIME* pftLastModified
  1621. )
  1622. {
  1623. return TRUE;
  1624. }
  1625. static
  1626. BOOLAPI
  1627. SetUrlCacheEntryInfoA(
  1628. IN LPCSTR lpszUrlName,
  1629. IN LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntryInfo,
  1630. IN DWORD dwFieldControl
  1631. )
  1632. {
  1633. SetLastError(ERROR_PROC_NOT_FOUND);
  1634. return FALSE;
  1635. }
  1636. static
  1637. INTERNETAPI_(BOOL)
  1638. InternetSecurityProtocolToStringW(
  1639. IN DWORD dwProtocol,
  1640. IN LPWSTR lpstr,
  1641. IN OUT LPDWORD lpdwBufferLength,
  1642. IN DWORD dwReserved
  1643. )
  1644. {
  1645. return FALSE;
  1646. }
  1647. static
  1648. INTERNETAPI_(BOOL)
  1649. InternetAlgIdToStringW(
  1650. IN ALG_ID ai,
  1651. IN LPWSTR lpstr,
  1652. IN OUT LPDWORD lpdwBufferLength,
  1653. IN DWORD dwReserved
  1654. )
  1655. {
  1656. return FALSE;
  1657. }
  1658. static
  1659. INTERNETAPI_(BOOL)
  1660. WINAPI
  1661. InternetGetCertByURL(
  1662. IN LPSTR lpszURL,
  1663. IN OUT LPSTR lpszCertText,
  1664. OUT DWORD dwcbCertText
  1665. )
  1666. {
  1667. return FALSE;
  1668. }
  1669. //
  1670. // !! WARNING !! The entries below must be in order by ORDINAL
  1671. //
  1672. DEFINE_ORDINAL_ENTRIES(wininet)
  1673. {
  1674. DLOENTRY(110, ImportCookieFileW)
  1675. DLOENTRY(111, ExportCookieFileW)
  1676. DLOENTRY(112, IsProfilesEnabled)
  1677. DLOENTRY(117, IsDomainLegalCookieDomainW)
  1678. DLOENTRY(118, FindP3PPolicySymbol)
  1679. DLOENTRY(120, MapResourceToPolicy)
  1680. DLOENTRY(121, GetP3PPolicy)
  1681. DLOENTRY(122, FreeP3PObject)
  1682. DLOENTRY(123, GetP3PRequestStatus)
  1683. };
  1684. DEFINE_ORDINAL_MAP(wininet)
  1685. //
  1686. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  1687. //
  1688. DEFINE_PROCNAME_ENTRIES(wininet)
  1689. {
  1690. DLPENTRY(CommitUrlCacheEntryA)
  1691. DLPENTRY(CommitUrlCacheEntryW)
  1692. DLPENTRY(CreateUrlCacheContainerA)
  1693. DLPENTRY(CreateUrlCacheContainerW)
  1694. DLPENTRY(CreateUrlCacheEntryA)
  1695. DLPENTRY(CreateUrlCacheEntryW)
  1696. DLPENTRY(CreateUrlCacheGroup)
  1697. DLPENTRY(DeleteUrlCacheContainerA)
  1698. DLPENTRY(DeleteUrlCacheEntryA)
  1699. DLPENTRY(DeleteUrlCacheEntryW)
  1700. DLPENTRY(DeleteUrlCacheGroup)
  1701. DLPENTRY(FindCloseUrlCache)
  1702. DLPENTRY(FindFirstUrlCacheContainerA)
  1703. DLPENTRY(FindFirstUrlCacheContainerW)
  1704. DLPENTRY(FindFirstUrlCacheEntryA)
  1705. DLPENTRY(FindFirstUrlCacheEntryExA)
  1706. DLPENTRY(FindFirstUrlCacheEntryExW)
  1707. DLPENTRY(FindFirstUrlCacheEntryW)
  1708. DLPENTRY(FindNextUrlCacheContainerA)
  1709. DLPENTRY(FindNextUrlCacheContainerW)
  1710. DLPENTRY(FindNextUrlCacheEntryA)
  1711. DLPENTRY(FindNextUrlCacheEntryExA)
  1712. DLPENTRY(FindNextUrlCacheEntryExW)
  1713. DLPENTRY(FindNextUrlCacheEntryW)
  1714. DLPENTRY(FreeUrlCacheSpaceW)
  1715. DLPENTRY(FtpCommandA)
  1716. DLPENTRY(FtpCreateDirectoryA)
  1717. DLPENTRY(FtpCreateDirectoryW)
  1718. DLPENTRY(FtpDeleteFileA)
  1719. DLPENTRY(FtpDeleteFileW)
  1720. DLPENTRY(FtpFindFirstFileA)
  1721. DLPENTRY(FtpFindFirstFileW)
  1722. DLPENTRY(FtpGetCurrentDirectoryA)
  1723. DLPENTRY(FtpGetCurrentDirectoryW)
  1724. DLPENTRY(FtpGetFileEx)
  1725. DLPENTRY(FtpGetFileSize)
  1726. DLPENTRY(FtpOpenFileA)
  1727. DLPENTRY(FtpOpenFileW)
  1728. DLPENTRY(FtpPutFileEx)
  1729. DLPENTRY(FtpRemoveDirectoryA)
  1730. DLPENTRY(FtpRenameFileA)
  1731. DLPENTRY(FtpSetCurrentDirectoryA)
  1732. DLPENTRY(FtpSetCurrentDirectoryW)
  1733. DLPENTRY(GetUrlCacheConfigInfoA)
  1734. DLPENTRY(GetUrlCacheConfigInfoW)
  1735. DLPENTRY(GetUrlCacheEntryInfoA)
  1736. DLPENTRY(GetUrlCacheEntryInfoExA)
  1737. DLPENTRY(GetUrlCacheEntryInfoExW)
  1738. DLPENTRY(GetUrlCacheEntryInfoW)
  1739. DLPENTRY(HttpAddRequestHeadersA)
  1740. DLPENTRY(HttpAddRequestHeadersW)
  1741. DLPENTRY(HttpEndRequestA)
  1742. DLPENTRY(HttpEndRequestW)
  1743. DLPENTRY(HttpOpenRequestA)
  1744. DLPENTRY(HttpOpenRequestW)
  1745. DLPENTRY(HttpQueryInfoA)
  1746. DLPENTRY(HttpQueryInfoW)
  1747. DLPENTRY(HttpSendRequestA)
  1748. DLPENTRY(HttpSendRequestExA)
  1749. DLPENTRY(HttpSendRequestExW)
  1750. DLPENTRY(HttpSendRequestW)
  1751. DLPENTRY(InternetAlgIdToStringW)
  1752. DLPENTRY(InternetAttemptConnect)
  1753. DLPENTRY(InternetAutodial)
  1754. DLPENTRY(InternetAutodialCallback)
  1755. DLPENTRY(InternetAutodialHangup)
  1756. DLPENTRY(InternetCanonicalizeUrlA)
  1757. DLPENTRY(InternetCanonicalizeUrlW)
  1758. DLPENTRY(InternetCheckConnectionW)
  1759. DLPENTRY(InternetClearAllPerSiteCookieDecisions)
  1760. DLPENTRY(InternetCloseHandle)
  1761. DLPENTRY(InternetCombineUrlW)
  1762. DLPENTRY(InternetConfirmZoneCrossingW)
  1763. DLPENTRY(InternetConnectA)
  1764. DLPENTRY(InternetConnectW)
  1765. DLPENTRY(InternetCrackUrlA)
  1766. DLPENTRY(InternetCrackUrlW)
  1767. DLPENTRY(InternetCreateUrlA)
  1768. DLPENTRY(InternetCreateUrlW)
  1769. DLPENTRY(InternetEnumPerSiteCookieDecisionA)
  1770. DLPENTRY(InternetEnumPerSiteCookieDecisionW)
  1771. DLPENTRY(InternetErrorDlg)
  1772. DLPENTRY(InternetFindNextFileA)
  1773. DLPENTRY(InternetFindNextFileW)
  1774. DLPENTRY(InternetFortezzaCommand)
  1775. DLPENTRY(InternetGetCertByURL)
  1776. DLPENTRY(InternetGetConnectedState)
  1777. DLPENTRY(InternetGetConnectedStateExA)
  1778. DLPENTRY(InternetGetConnectedStateExW)
  1779. DLPENTRY(InternetGetCookieExW)
  1780. DLPENTRY(InternetGetLastResponseInfoA)
  1781. DLPENTRY(InternetGetLastResponseInfoW)
  1782. DLPENTRY(InternetGetPerSiteCookieDecisionW)
  1783. DLPENTRY(InternetGoOnlineW)
  1784. DLPENTRY(InternetInitializeAutoProxyDll)
  1785. DLPENTRY(InternetLockRequestFile)
  1786. DLPENTRY(InternetOpenA)
  1787. DLPENTRY(InternetOpenUrlA)
  1788. DLPENTRY(InternetOpenUrlW)
  1789. DLPENTRY(InternetOpenW)
  1790. DLPENTRY(InternetQueryDataAvailable)
  1791. DLPENTRY(InternetQueryFortezzaStatus)
  1792. DLPENTRY(InternetQueryOptionA)
  1793. DLPENTRY(InternetQueryOptionW)
  1794. DLPENTRY(InternetReadFile)
  1795. DLPENTRY(InternetReadFileExA)\
  1796. DLPENTRY(InternetSecurityProtocolToStringW)
  1797. DLPENTRY(InternetSetCookieExW)
  1798. DLPENTRY(InternetSetFilePointer)
  1799. DLPENTRY(InternetSetOptionA)
  1800. DLPENTRY(InternetSetOptionW)
  1801. DLPENTRY(InternetSetPerSiteCookieDecisionW)
  1802. DLPENTRY(InternetSetStatusCallbackA)
  1803. DLPENTRY(InternetSetStatusCallbackW)
  1804. DLPENTRY(InternetShowSecurityInfoByURLW)
  1805. DLPENTRY(InternetTimeFromSystemTimeA)
  1806. DLPENTRY(InternetTimeFromSystemTimeW)
  1807. DLPENTRY(InternetTimeToSystemTimeA)
  1808. DLPENTRY(InternetTimeToSystemTimeW)
  1809. DLPENTRY(InternetUnlockRequestFile)
  1810. DLPENTRY(InternetWriteFile)
  1811. DLPENTRY(IsHostInProxyBypassList)
  1812. DLPENTRY(IsUrlCacheEntryExpiredW)
  1813. DLPENTRY(LoadUrlCacheContent)
  1814. DLPENTRY(PrivacySetZonePreferenceW)
  1815. DLPENTRY(ReadUrlCacheEntryStream)
  1816. DLPENTRY(RegisterUrlCacheNotification)
  1817. DLPENTRY(ResumeSuspendedDownload)
  1818. DLPENTRY(RetrieveUrlCacheEntryFileA)
  1819. DLPENTRY(RetrieveUrlCacheEntryStreamW)
  1820. DLPENTRY(SetUrlCacheConfigInfoA)
  1821. DLPENTRY(SetUrlCacheEntryGroupW)
  1822. DLPENTRY(SetUrlCacheEntryInfoA)
  1823. DLPENTRY(SetUrlCacheEntryInfoW)
  1824. DLPENTRY(UnlockUrlCacheEntryFileA)
  1825. DLPENTRY(UnlockUrlCacheEntryStream)
  1826. };
  1827. DEFINE_PROCNAME_MAP(wininet)