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.

1176 lines
19 KiB

  1. #include "compch.h"
  2. #pragma hdrstop
  3. #define _OLEAUT32_
  4. #include <oleauto.h>
  5. #include <olectl.h>
  6. #undef WINOLEAUTAPI
  7. #define WINOLEAUTAPI HRESULT STDAPICALLTYPE
  8. #undef WINOLECTLAPI
  9. #define WINOLECTLAPI HRESULT STDAPICALLTYPE
  10. #undef WINOLEAUTAPI_
  11. #define WINOLEAUTAPI_(type) type STDAPICALLTYPE
  12. static
  13. STDMETHODIMP_(BSTR)
  14. SysAllocString(
  15. const OLECHAR * string
  16. )
  17. {
  18. return NULL;
  19. }
  20. static
  21. STDMETHODIMP_(void)
  22. SysFreeString(
  23. BSTR bstrString
  24. )
  25. {
  26. return;
  27. }
  28. static
  29. STDMETHODIMP_(void)
  30. VariantInit(
  31. VARIANTARG * pvarg
  32. )
  33. {
  34. pvarg->vt = VT_EMPTY;
  35. return;
  36. }
  37. static
  38. STDMETHODIMP
  39. VariantClear(
  40. VARIANTARG * pvarg
  41. )
  42. {
  43. pvarg->vt = VT_EMPTY;
  44. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  45. }
  46. static
  47. STDMETHODIMP_(BSTR)
  48. SysAllocStringByteLen(
  49. LPCSTR psz,
  50. UINT len
  51. )
  52. {
  53. return NULL;
  54. }
  55. static
  56. STDMETHODIMP_(UINT)
  57. SafeArrayGetDim(
  58. SAFEARRAY * psa
  59. )
  60. {
  61. return 0;
  62. }
  63. static
  64. STDMETHODIMP_(UINT)
  65. SysStringByteLen(
  66. BSTR bstr
  67. )
  68. {
  69. return 0;
  70. }
  71. static
  72. STDMETHODIMP_(SAFEARRAY *)
  73. SafeArrayCreateVector(
  74. VARTYPE vt,
  75. LONG lLbound,
  76. ULONG cElements
  77. )
  78. {
  79. return NULL;
  80. }
  81. static
  82. STDMETHODIMP_(SAFEARRAY *)
  83. SafeArrayCreate(
  84. VARTYPE vt,
  85. UINT cDims,
  86. SAFEARRAYBOUND * rgsabound
  87. )
  88. {
  89. return NULL;
  90. }
  91. static
  92. STDMETHODIMP
  93. SafeArrayCopy(
  94. SAFEARRAY * psa,
  95. SAFEARRAY ** ppsaOut
  96. )
  97. {
  98. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  99. }
  100. static
  101. STDMETHODIMP
  102. SafeArrayPutElement(
  103. SAFEARRAY * psa,
  104. LONG * rgIndices,
  105. void * pv
  106. )
  107. {
  108. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  109. }
  110. static
  111. STDMETHODIMP
  112. SafeArrayDestroy(
  113. SAFEARRAY * psa
  114. )
  115. {
  116. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  117. }
  118. static
  119. STDMETHODIMP
  120. SafeArrayAccessData(
  121. SAFEARRAY * psa,
  122. void HUGEP** ppvData
  123. )
  124. {
  125. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  126. }
  127. static
  128. STDMETHODIMP
  129. SafeArrayUnaccessData(
  130. SAFEARRAY * psa
  131. )
  132. {
  133. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  134. }
  135. static
  136. STDMETHODIMP_(INT)
  137. VariantTimeToSystemTime(
  138. DOUBLE vtime,
  139. LPSYSTEMTIME lpSystemTime
  140. )
  141. {
  142. return FALSE;
  143. }
  144. static
  145. STDMETHODIMP
  146. OleCreatePropertyFrame(
  147. HWND hwndOwner,
  148. UINT x,
  149. UINT y,
  150. LPCOLESTR lpszCaption,
  151. ULONG cObjects,
  152. LPUNKNOWN FAR* ppUnk,
  153. ULONG cPages,
  154. LPCLSID pPageClsID,
  155. LCID lcid,
  156. DWORD dwReserved,
  157. LPVOID pvReserved)
  158. {
  159. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  160. }
  161. static
  162. STDMETHODIMP_(UINT)
  163. SysStringLen(
  164. BSTR bstr
  165. )
  166. {
  167. return 0;
  168. }
  169. static
  170. STDMETHODIMP
  171. LoadRegTypeLib(
  172. REFGUID rguid,
  173. WORD wVerMajor,
  174. WORD wVerMinor,
  175. LCID lcid,
  176. ITypeLib ** pptlib
  177. )
  178. {
  179. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  180. }
  181. static
  182. STDMETHODIMP
  183. SetErrorInfo(
  184. ULONG dwReserved,
  185. IErrorInfo * perrinfo
  186. )
  187. {
  188. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  189. }
  190. static
  191. STDMETHODIMP_(INT)
  192. SystemTimeToVariantTime(
  193. LPSYSTEMTIME lpSystemTime,
  194. DOUBLE *pvtime
  195. )
  196. {
  197. return 0;
  198. }
  199. static
  200. STDMETHODIMP
  201. VariantCopy(
  202. VARIANTARG * pvargDest,
  203. VARIANTARG * pvargSrc
  204. )
  205. {
  206. return E_OUTOFMEMORY;
  207. }
  208. static
  209. STDMETHODIMP_(INT)
  210. DosDateTimeToVariantTime(
  211. USHORT wDosDate,
  212. USHORT wDosTime,
  213. DOUBLE * pvtime
  214. )
  215. {
  216. return 0;
  217. }
  218. static
  219. STDMETHODIMP_(INT)
  220. VariantTimeToDosDateTime(
  221. DOUBLE vtime,
  222. USHORT * pwDosDate,
  223. USHORT * pwDosTime
  224. )
  225. {
  226. return 0;
  227. }
  228. static
  229. STDMETHODIMP
  230. SafeArrayGetUBound(
  231. SAFEARRAY * psa,
  232. UINT nDim,
  233. LONG * plUbound
  234. )
  235. {
  236. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  237. }
  238. static
  239. STDMETHODIMP
  240. VarDiv(
  241. LPVARIANT pvarLeft,
  242. LPVARIANT pvarRight,
  243. LPVARIANT pvarResult)
  244. {
  245. // I bet people don't check the return value
  246. // so do a VariantClear just to be safe
  247. ZeroMemory(pvarResult, sizeof(*pvarResult));
  248. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  249. }
  250. static
  251. STDMETHODIMP
  252. VarNeg(
  253. LPVARIANT pvarIn,
  254. LPVARIANT pvarResult)
  255. {
  256. // I bet people don't check the return value
  257. // so do a VariantClear just to be safe
  258. ZeroMemory(pvarResult, sizeof(*pvarResult));
  259. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  260. }
  261. static
  262. STDMETHODIMP
  263. VarRound(
  264. LPVARIANT pvarIn,
  265. int cDecimals,
  266. LPVARIANT pvarResult)
  267. {
  268. // I bet people don't check the return value
  269. // so do a VariantClear just to be safe
  270. ZeroMemory(pvarResult, sizeof(*pvarResult));
  271. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  272. }
  273. static
  274. STDMETHODIMP
  275. VarCmp(
  276. LPVARIANT pvarLeft,
  277. LPVARIANT pvarRight,
  278. LCID lcid,
  279. ULONG dwFlags
  280. )
  281. {
  282. return VARCMP_NULL;
  283. }
  284. static
  285. STDMETHODIMP
  286. VarMul(
  287. LPVARIANT pvarLeft,
  288. LPVARIANT pvarRight,
  289. LPVARIANT pvarResult)
  290. {
  291. // I bet people don't check the return value
  292. // so do a VariantClear just to be safe
  293. ZeroMemory(pvarResult, sizeof(*pvarResult));
  294. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  295. }
  296. static
  297. STDMETHODIMP
  298. VarPow(
  299. LPVARIANT pvarLeft,
  300. LPVARIANT pvarRight,
  301. LPVARIANT pvarResult)
  302. {
  303. // I bet people don't check the return value
  304. // so do a VariantClear just to be safe
  305. ZeroMemory(pvarResult, sizeof(*pvarResult));
  306. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  307. }
  308. static
  309. STDMETHODIMP
  310. RegisterTypeLib(
  311. ITypeLib * ptlib,
  312. OLECHAR *szFullPath,
  313. OLECHAR *szHelpDir
  314. )
  315. {
  316. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  317. }
  318. static
  319. STDMETHODIMP
  320. LoadTypeLib(
  321. const OLECHAR *szFile,
  322. ITypeLib ** pptlib
  323. )
  324. {
  325. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  326. }
  327. static
  328. STDMETHODIMP
  329. LoadTypeLibEx(
  330. LPCOLESTR szFile,
  331. REGKIND regKind,
  332. ITypeLib ** pptlib
  333. )
  334. {
  335. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  336. }
  337. static
  338. STDMETHODIMP_(BSTR)
  339. SysAllocStringLen(
  340. const OLECHAR * strIn,
  341. UINT cch
  342. )
  343. {
  344. return NULL;
  345. }
  346. static
  347. STDMETHODIMP
  348. VariantChangeType(
  349. VARIANTARG * pvargDest,
  350. VARIANTARG * pvarSrc,
  351. USHORT wFlags,
  352. VARTYPE vt
  353. )
  354. {
  355. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  356. }
  357. static
  358. STDMETHODIMP
  359. SafeArrayGetLBound(
  360. SAFEARRAY * psa,
  361. UINT nDim,
  362. LONG * plLbound
  363. )
  364. {
  365. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  366. }
  367. static
  368. WINOLEAUTAPI
  369. DispInvoke(
  370. void * _this,
  371. ITypeInfo * ptinfo,
  372. DISPID dispidMember,
  373. WORD wFlags,
  374. DISPPARAMS * pparams,
  375. VARIANT * pvarResult,
  376. EXCEPINFO * pexcepinfo,
  377. UINT * puArgErr
  378. )
  379. {
  380. return E_OUTOFMEMORY;
  381. }
  382. static
  383. WINOLEAUTAPI
  384. DispGetIDsOfNames(
  385. ITypeInfo * ptinfo,
  386. OLECHAR ** rgszNames,
  387. UINT cNames,
  388. DISPID * rgdispid
  389. )
  390. {
  391. return E_OUTOFMEMORY;
  392. }
  393. static
  394. WINOLEAUTAPI
  395. SafeArrayGetElement(
  396. SAFEARRAY* psa,
  397. LONG* rgIndices,
  398. void* pv
  399. )
  400. {
  401. return E_OUTOFMEMORY;
  402. }
  403. static
  404. WINOLECTLAPI
  405. OleCreatePropertyFrameIndirect(
  406. LPOCPFIPARAMS lpParams
  407. )
  408. {
  409. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  410. }
  411. static
  412. WINOLEAUTAPI
  413. VariantCopyInd(
  414. VARIANT* pvarDest,
  415. VARIANTARG* pvargSrc
  416. )
  417. {
  418. return E_OUTOFMEMORY;
  419. }
  420. static
  421. WINOLEAUTAPI_(UINT)
  422. SafeArrayGetElemsize(
  423. SAFEARRAY * psa
  424. )
  425. {
  426. return 0;
  427. }
  428. static
  429. WINOLEAUTAPI
  430. VarI2FromI4(
  431. LONG lIn,
  432. SHORT * psOut
  433. )
  434. {
  435. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  436. }
  437. static
  438. WINOLEAUTAPI
  439. VarI2FromR4(
  440. FLOAT fltIn,
  441. SHORT * psOut
  442. )
  443. {
  444. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  445. }
  446. static
  447. WINOLEAUTAPI
  448. VarI2FromR8(
  449. DOUBLE dblIn,
  450. SHORT * psOut
  451. )
  452. {
  453. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  454. }
  455. static
  456. WINOLEAUTAPI
  457. VarI2FromCy(
  458. CY cyIn,
  459. SHORT * psOut
  460. )
  461. {
  462. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  463. }
  464. static
  465. WINOLEAUTAPI
  466. VarI2FromDate(
  467. DATE dateIn,
  468. SHORT * psOut
  469. )
  470. {
  471. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  472. }
  473. static
  474. WINOLEAUTAPI
  475. VarI2FromStr(
  476. OLECHAR * strIn,
  477. LCID lcid,
  478. ULONG dwFlags,
  479. SHORT * psOut
  480. )
  481. {
  482. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  483. }
  484. static
  485. WINOLEAUTAPI
  486. VarI4FromR4(
  487. FLOAT fltIn,
  488. LONG * plOut
  489. )
  490. {
  491. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  492. }
  493. static
  494. WINOLEAUTAPI
  495. VarI4FromR8(
  496. DOUBLE dblIn,
  497. LONG * plOut
  498. )
  499. {
  500. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  501. }
  502. static
  503. WINOLEAUTAPI
  504. VarI4FromCy(
  505. CY cyIn,
  506. LONG * plOut
  507. )
  508. {
  509. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  510. }
  511. static
  512. WINOLEAUTAPI
  513. VarI4FromDate(
  514. DATE dateIn,
  515. LONG * plOut
  516. )
  517. {
  518. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  519. }
  520. static
  521. WINOLEAUTAPI
  522. VarI4FromStr(
  523. OLECHAR * strIn,
  524. LCID lcid,
  525. ULONG dwFlags,
  526. LONG * plOut
  527. )
  528. {
  529. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  530. }
  531. static
  532. WINOLEAUTAPI
  533. VarUI4FromStr(
  534. OLECHAR * strIn,
  535. LCID lcid,
  536. ULONG dwFlags,
  537. ULONG * plOut
  538. )
  539. {
  540. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  541. }
  542. static
  543. WINOLEAUTAPI
  544. VarR4FromI4(
  545. LONG lIn,
  546. FLOAT * pfltOut
  547. )
  548. {
  549. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  550. }
  551. static
  552. WINOLEAUTAPI
  553. VarR4FromR8(
  554. DOUBLE dblIn,
  555. FLOAT * pfltOut
  556. )
  557. {
  558. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  559. }
  560. static
  561. WINOLEAUTAPI
  562. VarR4FromCy(
  563. CY cyIn,
  564. FLOAT * pfltOut
  565. )
  566. {
  567. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  568. }
  569. static
  570. WINOLEAUTAPI
  571. VarR4FromDate(
  572. DATE dateIn,
  573. FLOAT * pfltOut
  574. )
  575. {
  576. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  577. }
  578. static
  579. WINOLEAUTAPI
  580. VarR4FromStr(
  581. OLECHAR * strIn,
  582. LCID lcid,
  583. ULONG dwFlags,
  584. FLOAT *pfltOut
  585. )
  586. {
  587. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  588. }
  589. static
  590. WINOLEAUTAPI
  591. VarR8FromCy(
  592. CY cyIn,
  593. DOUBLE * pdblOut
  594. )
  595. {
  596. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  597. }
  598. static
  599. WINOLEAUTAPI
  600. VarR8FromDate(
  601. DATE dateIn,
  602. DOUBLE * pdblOut
  603. )
  604. {
  605. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  606. }
  607. static
  608. WINOLEAUTAPI
  609. VarR8FromStr(
  610. OLECHAR *strIn,
  611. LCID lcid,
  612. ULONG dwFlags,
  613. DOUBLE *pdblOut
  614. )
  615. {
  616. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  617. }
  618. static
  619. WINOLEAUTAPI
  620. VarDateFromI2(
  621. SHORT sIn,
  622. DATE * pdateOut
  623. )
  624. {
  625. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  626. }
  627. static
  628. WINOLEAUTAPI
  629. VarDateFromI4(
  630. LONG lIn,
  631. DATE * pdateOut
  632. )
  633. {
  634. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  635. }
  636. static
  637. WINOLEAUTAPI
  638. VarDateFromR4(
  639. FLOAT fltIn,
  640. DATE * pdateOut
  641. )
  642. {
  643. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  644. }
  645. static
  646. WINOLEAUTAPI
  647. VarDateFromR8(
  648. DOUBLE dblIn,
  649. DATE * pdateOut
  650. )
  651. {
  652. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  653. }
  654. static
  655. WINOLEAUTAPI
  656. VarDateFromCy(
  657. CY cyIn,
  658. DATE * pdateOut
  659. )
  660. {
  661. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  662. }
  663. static
  664. WINOLEAUTAPI
  665. VarDateFromStr(
  666. OLECHAR *strIn,
  667. LCID lcid,
  668. ULONG dwFlags,
  669. DATE *pdateOut
  670. )
  671. {
  672. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  673. }
  674. static
  675. WINOLEAUTAPI
  676. VarDateFromBool(
  677. VARIANT_BOOL boolIn,
  678. DATE * pdateOut
  679. )
  680. {
  681. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  682. }
  683. static
  684. WINOLEAUTAPI
  685. VarCyFromI2(
  686. SHORT sIn,
  687. CY * pcyOut
  688. )
  689. {
  690. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  691. }
  692. static
  693. WINOLEAUTAPI
  694. VarCyFromI4(
  695. LONG lIn,
  696. CY * pcyOut
  697. )
  698. {
  699. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  700. }
  701. static
  702. WINOLEAUTAPI
  703. VarCyFromR4(
  704. FLOAT fltIn,
  705. CY * pcyOut
  706. )
  707. {
  708. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  709. }
  710. static
  711. WINOLEAUTAPI
  712. VarCyFromR8(
  713. DOUBLE dblIn,
  714. CY * pcyOut
  715. )
  716. {
  717. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  718. }
  719. static
  720. WINOLEAUTAPI
  721. VarCyFromDate(
  722. DATE dateIn,
  723. CY * pcyOut
  724. )
  725. {
  726. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  727. }
  728. static
  729. WINOLEAUTAPI
  730. VarCyFromStr(
  731. OLECHAR * strIn,
  732. LCID lcid,
  733. ULONG dwFlags,
  734. CY * pcyOut
  735. )
  736. {
  737. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  738. }
  739. static
  740. WINOLEAUTAPI
  741. VarCyFromBool(
  742. VARIANT_BOOL boolIn,
  743. CY * pcyOut
  744. )
  745. {
  746. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  747. }
  748. static
  749. WINOLEAUTAPI
  750. VarBstrFromI2(
  751. SHORT iVal,
  752. LCID lcid,
  753. ULONG dwFlags,
  754. BSTR * pbstrOut
  755. )
  756. {
  757. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  758. }
  759. static
  760. WINOLEAUTAPI
  761. VarBstrFromI4(
  762. LONG lIn,
  763. LCID lcid,
  764. ULONG dwFlags,
  765. BSTR * pbstrOut
  766. )
  767. {
  768. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  769. }
  770. static
  771. WINOLEAUTAPI
  772. VarBstrFromR4(
  773. FLOAT fltIn,
  774. LCID lcid,
  775. ULONG dwFlags,
  776. BSTR * pbstrOut
  777. )
  778. {
  779. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  780. }
  781. static
  782. WINOLEAUTAPI
  783. VarBstrFromR8(
  784. DOUBLE dblIn,
  785. LCID lcid,
  786. ULONG dwFlags,
  787. BSTR * pbstrOut
  788. )
  789. {
  790. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  791. }
  792. static
  793. WINOLEAUTAPI
  794. VarBstrFromCy(
  795. CY cyIn,
  796. LCID lcid,
  797. ULONG dwFlags,
  798. BSTR * pbstrOut
  799. )
  800. {
  801. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  802. }
  803. static
  804. WINOLEAUTAPI
  805. VarBstrFromDate(
  806. DATE dateIn,
  807. LCID lcid,
  808. ULONG dwFlags,
  809. BSTR * pbstrOut
  810. )
  811. {
  812. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  813. }
  814. static
  815. WINOLEAUTAPI
  816. VarBstrFromBool(
  817. VARIANT_BOOL boolIn,
  818. LCID lcid,
  819. ULONG dwFlags,
  820. BSTR * pbstrOut
  821. )
  822. {
  823. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  824. }
  825. static
  826. WINOLEAUTAPI
  827. VarBoolFromI2(
  828. SHORT sIn,
  829. VARIANT_BOOL * pboolOut
  830. )
  831. {
  832. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  833. }
  834. static
  835. WINOLEAUTAPI
  836. VarBoolFromI4(
  837. LONG lIn,
  838. VARIANT_BOOL * pboolOut
  839. )
  840. {
  841. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  842. }
  843. static
  844. WINOLEAUTAPI
  845. VarBoolFromR4(
  846. FLOAT fltIn,
  847. VARIANT_BOOL * pboolOut
  848. )
  849. {
  850. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  851. }
  852. static
  853. WINOLEAUTAPI
  854. VarBoolFromR8(
  855. DOUBLE dblIn,
  856. VARIANT_BOOL * pboolOut
  857. )
  858. {
  859. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  860. }
  861. static
  862. WINOLEAUTAPI
  863. VarBoolFromDate(
  864. DATE dateIn,
  865. VARIANT_BOOL * pboolOut
  866. )
  867. {
  868. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  869. }
  870. static
  871. WINOLEAUTAPI
  872. VarBoolFromCy(
  873. CY cyIn,
  874. VARIANT_BOOL * pboolOut
  875. )
  876. {
  877. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  878. }
  879. static
  880. WINOLEAUTAPI
  881. VarBoolFromStr(
  882. OLECHAR * strIn,
  883. LCID lcid,
  884. ULONG dwFlags,
  885. VARIANT_BOOL * pboolOut
  886. )
  887. {
  888. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  889. }
  890. static
  891. WINOLEAUTAPI
  892. VarFormatCurrency(
  893. LPVARIANT pvarIn,
  894. int iNumDig,
  895. int iIncLead,
  896. int iUseParens,
  897. int iGroup,
  898. ULONG dwFlags,
  899. BSTR *pbstrOut
  900. )
  901. {
  902. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  903. }
  904. static
  905. WINOLEAUTAPI
  906. VariantChangeTypeEx(
  907. VARIANTARG * pvargDest,
  908. VARIANTARG * pvarSrc,
  909. LCID lcid,
  910. USHORT wFlags,
  911. VARTYPE vt
  912. )
  913. {
  914. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  915. }
  916. static
  917. WINOLEAUTAPI
  918. CreateTypeLib2(
  919. SYSKIND syskind,
  920. LPCOLESTR szFile,
  921. ICreateTypeLib2 **ppctlib
  922. )
  923. {
  924. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  925. }
  926. static
  927. WINOLEAUTAPI
  928. UnRegisterTypeLib(
  929. REFGUID libID,
  930. WORD wVerMajor,
  931. WORD wVerMinor,
  932. LCID lcid,
  933. SYSKIND syskind
  934. )
  935. {
  936. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  937. }
  938. static
  939. WINOLEAUTAPI
  940. GetErrorInfo(
  941. ULONG dwReserved,
  942. IErrorInfo ** pperrinfo
  943. )
  944. {
  945. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  946. }
  947. static
  948. WINOLEAUTAPI
  949. CreateErrorInfo(
  950. ICreateErrorInfo ** pperrinfo
  951. )
  952. {
  953. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  954. }
  955. static
  956. WINOLECTLAPI
  957. OleCreateFontIndirect(
  958. LPFONTDESC lpFontDesc,
  959. REFIID riid,
  960. LPVOID FAR* lplpvObj
  961. )
  962. {
  963. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  964. }
  965. //
  966. // !! WARNING !! The entries below must be in order by ORDINAL
  967. //
  968. DEFINE_ORDINAL_ENTRIES(oleaut32)
  969. {
  970. DLOENTRY( 2, SysAllocString)
  971. DLOENTRY( 4, SysAllocStringLen)
  972. DLOENTRY( 6, SysFreeString)
  973. DLOENTRY( 7, SysStringLen)
  974. DLOENTRY( 8, VariantInit)
  975. DLOENTRY( 9, VariantClear)
  976. DLOENTRY( 10, VariantCopy)
  977. DLOENTRY( 11, VariantCopyInd)
  978. DLOENTRY( 12, VariantChangeType)
  979. DLOENTRY( 13, VariantTimeToDosDateTime)
  980. DLOENTRY( 14, DosDateTimeToVariantTime)
  981. DLOENTRY( 15, SafeArrayCreate)
  982. DLOENTRY( 16, SafeArrayDestroy)
  983. DLOENTRY( 17, SafeArrayGetDim)
  984. DLOENTRY( 18, SafeArrayGetElemsize)
  985. DLOENTRY( 19, SafeArrayGetUBound)
  986. DLOENTRY( 20, SafeArrayGetLBound)
  987. DLOENTRY( 23, SafeArrayAccessData)
  988. DLOENTRY( 24, SafeArrayUnaccessData)
  989. DLOENTRY( 25, SafeArrayGetElement)
  990. DLOENTRY( 26, SafeArrayPutElement)
  991. DLOENTRY( 27, SafeArrayCopy)
  992. DLOENTRY( 29, DispGetIDsOfNames)
  993. DLOENTRY( 30, DispInvoke)
  994. DLOENTRY( 49, VarI2FromI4)
  995. DLOENTRY( 50, VarI2FromR4)
  996. DLOENTRY( 51, VarI2FromR8)
  997. DLOENTRY( 52, VarI2FromCy)
  998. DLOENTRY( 53, VarI2FromDate)
  999. DLOENTRY( 54, VarI2FromStr)
  1000. DLOENTRY( 60, VarI4FromR4)
  1001. DLOENTRY( 61, VarI4FromR8)
  1002. DLOENTRY( 62, VarI4FromCy)
  1003. DLOENTRY( 63, VarI4FromDate)
  1004. DLOENTRY( 64, VarI4FromStr)
  1005. DLOENTRY( 70, VarR4FromI4)
  1006. DLOENTRY( 71, VarR4FromR8)
  1007. DLOENTRY( 72, VarR4FromCy)
  1008. DLOENTRY( 73, VarR4FromDate)
  1009. DLOENTRY( 74, VarR4FromStr)
  1010. DLOENTRY( 82, VarR8FromCy)
  1011. DLOENTRY( 83, VarR8FromDate)
  1012. DLOENTRY( 84, VarR8FromStr)
  1013. DLOENTRY( 89, VarDateFromI2)
  1014. DLOENTRY( 90, VarDateFromI4)
  1015. DLOENTRY( 91, VarDateFromR4)
  1016. DLOENTRY( 92, VarDateFromR8)
  1017. DLOENTRY( 93, VarDateFromCy)
  1018. DLOENTRY( 94, VarDateFromStr)
  1019. DLOENTRY( 96, VarDateFromBool)
  1020. DLOENTRY( 99, VarCyFromI2)
  1021. DLOENTRY(100, VarCyFromI4)
  1022. DLOENTRY(101, VarCyFromR4)
  1023. DLOENTRY(102, VarCyFromR8)
  1024. DLOENTRY(103, VarCyFromDate)
  1025. DLOENTRY(104, VarCyFromStr)
  1026. DLOENTRY(106, VarCyFromBool)
  1027. DLOENTRY(109, VarBstrFromI2)
  1028. DLOENTRY(110, VarBstrFromI4)
  1029. DLOENTRY(111, VarBstrFromR4)
  1030. DLOENTRY(112, VarBstrFromR8)
  1031. DLOENTRY(113, VarBstrFromCy)
  1032. DLOENTRY(114, VarBstrFromDate)
  1033. DLOENTRY(116, VarBstrFromBool)
  1034. DLOENTRY(119, VarBoolFromI2)
  1035. DLOENTRY(120, VarBoolFromI4)
  1036. DLOENTRY(121, VarBoolFromR4)
  1037. DLOENTRY(122, VarBoolFromR8)
  1038. DLOENTRY(123, VarBoolFromDate)
  1039. DLOENTRY(124, VarBoolFromCy)
  1040. DLOENTRY(125, VarBoolFromStr)
  1041. DLOENTRY(127, VarFormatCurrency)
  1042. DLOENTRY(143, VarDiv)
  1043. DLOENTRY(147, VariantChangeTypeEx)
  1044. DLOENTRY(149, SysStringByteLen)
  1045. DLOENTRY(150, SysAllocStringByteLen)
  1046. DLOENTRY(156, VarMul)
  1047. DLOENTRY(158, VarPow)
  1048. DLOENTRY(161, LoadTypeLib)
  1049. DLOENTRY(162, LoadRegTypeLib)
  1050. DLOENTRY(163, RegisterTypeLib)
  1051. DLOENTRY(173, VarNeg)
  1052. DLOENTRY(175, VarRound)
  1053. DLOENTRY(176, VarCmp)
  1054. DLOENTRY(180, CreateTypeLib2)
  1055. DLOENTRY(183, LoadTypeLibEx)
  1056. DLOENTRY(184, SystemTimeToVariantTime)
  1057. DLOENTRY(185, VariantTimeToSystemTime)
  1058. DLOENTRY(186, UnRegisterTypeLib)
  1059. DLOENTRY(200, GetErrorInfo)
  1060. DLOENTRY(201, SetErrorInfo)
  1061. DLOENTRY(202, CreateErrorInfo)
  1062. DLOENTRY(277, VarUI4FromStr)
  1063. DLOENTRY(411, SafeArrayCreateVector)
  1064. DLOENTRY(416, OleCreatePropertyFrameIndirect)
  1065. DLOENTRY(417, OleCreatePropertyFrame)
  1066. DLOENTRY(420, OleCreateFontIndirect)
  1067. };
  1068. DEFINE_ORDINAL_MAP(oleaut32);