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.

903 lines
17 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. rpcwdt.h
  5. Abstract:
  6. Optional prototypes definitions for user marshal routines related to WDT
  7. (Windows Data Types). Routines are exposed by ole32.dll.
  8. Environment:
  9. Win32, Win64
  10. Revision History:
  11. --*/
  12. #ifndef __RPCWDT_H__
  13. #define __RPCWDT_H__
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /* Windows Data Type support */
  21. unsigned long __RPC_USER
  22. HGLOBAL_UserSize(
  23. unsigned long *,
  24. unsigned long,
  25. HGLOBAL * );
  26. unsigned char * __RPC_USER
  27. HGLOBAL_UserMarshal(
  28. unsigned long *,
  29. unsigned char *,
  30. HGLOBAL * );
  31. unsigned char * __RPC_USER
  32. HGLOBAL_UserUnmarshal(
  33. unsigned long *,
  34. unsigned char *,
  35. HGLOBAL * );
  36. void __RPC_USER
  37. HGLOBAL_UserFree(
  38. unsigned long *,
  39. HGLOBAL * );
  40. unsigned long __RPC_USER
  41. HBITMAP_UserSize(
  42. unsigned long *,
  43. unsigned long,
  44. HBITMAP * );
  45. unsigned char * __RPC_USER
  46. HBITMAP_UserMarshal(
  47. unsigned long *,
  48. unsigned char *,
  49. HBITMAP * );
  50. unsigned char * __RPC_USER
  51. HBITMAP_UserUnmarshal(
  52. unsigned long *,
  53. unsigned char *,
  54. HBITMAP * );
  55. void __RPC_USER
  56. HBITMAP_UserFree(
  57. unsigned long *,
  58. HBITMAP * );
  59. unsigned long __RPC_USER
  60. HENHMETAFILE_UserSize(
  61. unsigned long *,
  62. unsigned long,
  63. HENHMETAFILE * );
  64. unsigned char * __RPC_USER
  65. HENHMETAFILE_UserMarshal(
  66. unsigned long *,
  67. unsigned char *,
  68. HENHMETAFILE * );
  69. unsigned char * __RPC_USER
  70. HENHMETAFILE_UserUnmarshal(
  71. unsigned long *,
  72. unsigned char *,
  73. HENHMETAFILE * );
  74. void __RPC_USER
  75. HENHMETAFILE_UserFree(
  76. unsigned long *,
  77. HENHMETAFILE * );
  78. unsigned long __RPC_USER
  79. HMETAFILE_UserSize(
  80. unsigned long *,
  81. unsigned long,
  82. HMETAFILE * );
  83. unsigned char * __RPC_USER
  84. HMETAFILE_UserMarshal(
  85. unsigned long *,
  86. unsigned char *,
  87. HMETAFILE * );
  88. unsigned char * __RPC_USER
  89. HMETAFILE_UserUnmarshal(
  90. unsigned long *,
  91. unsigned char *,
  92. HMETAFILE * );
  93. void __RPC_USER
  94. HMETAFILE_UserFree(
  95. unsigned long *,
  96. HMETAFILE * );
  97. unsigned long __RPC_USER
  98. HMETAFILEPICT_UserSize(
  99. unsigned long *,
  100. unsigned long,
  101. HMETAFILEPICT * );
  102. unsigned char * __RPC_USER
  103. HMETAFILEPICT_UserMarshal(
  104. unsigned long *,
  105. unsigned char *,
  106. HMETAFILEPICT * );
  107. unsigned char * __RPC_USER
  108. HMETAFILEPICT_UserUnmarshal(
  109. unsigned long *,
  110. unsigned char *,
  111. HMETAFILEPICT * );
  112. void __RPC_USER
  113. HMETAFILEPICT_UserFree(
  114. unsigned long *,
  115. HMETAFILEPICT * );
  116. unsigned long __RPC_USER
  117. HPALETTE_UserSize(
  118. unsigned long *,
  119. unsigned long,
  120. HPALETTE * );
  121. unsigned char * __RPC_USER
  122. HPALETTE_UserMarshal(
  123. unsigned long *,
  124. unsigned char *,
  125. HPALETTE * );
  126. unsigned char * __RPC_USER
  127. HPALETTE_UserUnmarshal(
  128. unsigned long *,
  129. unsigned char *,
  130. HPALETTE * );
  131. void __RPC_USER
  132. HPALETTE_UserFree(
  133. unsigned long *,
  134. HPALETTE * );
  135. unsigned long __RPC_USER
  136. STGMEDIUM_UserSize(
  137. unsigned long *,
  138. unsigned long,
  139. STGMEDIUM * );
  140. unsigned char * __RPC_USER
  141. STGMEDIUM_UserMarshal(
  142. unsigned long *,
  143. unsigned char *,
  144. STGMEDIUM * );
  145. unsigned char * __RPC_USER
  146. STGMEDIUM_UserUnmarshal(
  147. unsigned long *,
  148. unsigned char *,
  149. STGMEDIUM * );
  150. void __RPC_USER
  151. STGMEDIUM_UserFree(
  152. unsigned long *,
  153. STGMEDIUM * );
  154. unsigned long __RPC_USER
  155. SNB_UserSize(
  156. unsigned long *,
  157. unsigned long,
  158. SNB * );
  159. unsigned char * __RPC_USER
  160. SNB_UserMarshal(
  161. unsigned long *,
  162. unsigned char *,
  163. SNB * );
  164. unsigned char * __RPC_USER
  165. SNB_UserUnmarshal(
  166. unsigned long *,
  167. unsigned char *,
  168. SNB * );
  169. /* OLE automation Data Type support */
  170. unsigned long __RPC_USER
  171. BSTR_UserSize(
  172. unsigned long *,
  173. unsigned long,
  174. BSTR * );
  175. unsigned char * __RPC_USER
  176. BSTR_UserMarshal(
  177. unsigned long *,
  178. unsigned char *,
  179. BSTR * );
  180. unsigned char * __RPC_USER
  181. BSTR_UserUnmarshal(
  182. unsigned long *,
  183. unsigned char *,
  184. BSTR * );
  185. void __RPC_USER
  186. BSTR_UserFree(
  187. unsigned long *,
  188. BSTR * );
  189. unsigned long __RPC_USER
  190. LPSAFEARRAY_UserSize(
  191. unsigned long *,
  192. unsigned long,
  193. LPSAFEARRAY * );
  194. unsigned char * __RPC_USER
  195. LPSAFEARRAY_UserMarshal(
  196. unsigned long *,
  197. unsigned char *,
  198. LPSAFEARRAY * );
  199. unsigned char * __RPC_USER
  200. LPSAFEARRAY_UserUnmarshal(
  201. unsigned long *,
  202. unsigned char *,
  203. LPSAFEARRAY * );
  204. void __RPC_USER
  205. LPSAFEARRAY_UserFree(
  206. unsigned long *,
  207. LPSAFEARRAY * );
  208. unsigned long __RPC_USER
  209. VARIANT_UserSize(
  210. unsigned long *,
  211. unsigned long,
  212. VARIANT * );
  213. unsigned char * __RPC_USER
  214. VARIANT_UserMarshal(
  215. unsigned long *,
  216. unsigned char *,
  217. VARIANT * );
  218. unsigned char * __RPC_USER
  219. VARIANT_UserUnmarshal(
  220. unsigned long *,
  221. unsigned char *,
  222. VARIANT * );
  223. void __RPC_USER
  224. VARIANT_UserFree(
  225. unsigned long *,
  226. VARIANT * );
  227. unsigned long __RPC_USER
  228. EXCEPINFO_UserSize(
  229. unsigned long *,
  230. unsigned long,
  231. EXCEPINFO * );
  232. unsigned char * __RPC_USER
  233. EXCEPINFO_UserMarshal(
  234. unsigned long *,
  235. unsigned char *,
  236. EXCEPINFO * );
  237. unsigned char * __RPC_USER
  238. EXCEPINFO_UserUnmarshal(
  239. unsigned long *,
  240. unsigned char *,
  241. EXCEPINFO * );
  242. void __RPC_USER
  243. EXCEPINFO_UserFree(
  244. unsigned long *,
  245. EXCEPINFO * );
  246. unsigned long __RPC_USER
  247. DISPPARAMS_UserSize(
  248. unsigned long *,
  249. unsigned long,
  250. DISPPARAMS * );
  251. unsigned char * __RPC_USER
  252. DISPPARAMS_UserMarshal(
  253. unsigned long *,
  254. unsigned char *,
  255. DISPPARAMS * );
  256. unsigned char * __RPC_USER
  257. DISPPARAMS_UserUnmarshal(
  258. unsigned long *,
  259. unsigned char *,
  260. DISPPARAMS * );
  261. void __RPC_USER
  262. DISPPARAMS_UserFree(
  263. unsigned long *,
  264. DISPPARAMS * );
  265. /* Other types: valid inproc only */
  266. unsigned long __RPC_USER
  267. HWND_UserSize(
  268. unsigned long *,
  269. unsigned long,
  270. HWND * );
  271. unsigned char * __RPC_USER
  272. HWND_UserMarshal(
  273. unsigned long *,
  274. unsigned char *,
  275. HWND * );
  276. unsigned char * __RPC_USER
  277. HWND_UserUnmarshal(
  278. unsigned long *,
  279. unsigned char *,
  280. HWND * );
  281. void __RPC_USER
  282. HWND_UserFree(
  283. unsigned long *,
  284. HWND * );
  285. unsigned long __RPC_USER
  286. HACCEL_UserSize(
  287. unsigned long *,
  288. unsigned long,
  289. HACCEL * );
  290. unsigned char * __RPC_USER
  291. HACCEL_UserMarshal(
  292. unsigned long *,
  293. unsigned char *,
  294. HACCEL * );
  295. unsigned char * __RPC_USER
  296. HACCEL_UserUnmarshal(
  297. unsigned long *,
  298. unsigned char *,
  299. HACCEL * );
  300. void __RPC_USER
  301. HACCEL_UserFree(
  302. unsigned long *,
  303. HACCEL * );
  304. unsigned long __RPC_USER
  305. HMENU_UserSize(
  306. unsigned long *,
  307. unsigned long,
  308. HMENU * );
  309. unsigned char * __RPC_USER
  310. HMENU_UserMarshal(
  311. unsigned long *,
  312. unsigned char *,
  313. HMENU * );
  314. unsigned char * __RPC_USER
  315. HMENU_UserUnmarshal(
  316. unsigned long *,
  317. unsigned char *,
  318. HMENU * );
  319. void __RPC_USER
  320. HMENU_UserFree(
  321. unsigned long *,
  322. HMENU * );
  323. unsigned long __RPC_USER
  324. HBRUSH_UserSize(
  325. unsigned long *,
  326. unsigned long,
  327. HBRUSH * );
  328. unsigned char * __RPC_USER
  329. HBRUSH_UserMarshal(
  330. unsigned long *,
  331. unsigned char *,
  332. HBRUSH * );
  333. unsigned char * __RPC_USER
  334. HBRUSH_UserUnmarshal(
  335. unsigned long *,
  336. unsigned char *,
  337. HBRUSH * );
  338. void __RPC_USER
  339. HBRUSH_UserFree(
  340. unsigned long *,
  341. HBRUSH * );
  342. // ----------------------------------------------------------------------------
  343. //
  344. // The NDR64 versions of the same routines.
  345. // Make them available on 32b and 64b platforms.
  346. //
  347. unsigned long __RPC_USER
  348. HGLOBAL_UserSize64(
  349. unsigned long *,
  350. unsigned long,
  351. HGLOBAL * );
  352. unsigned char * __RPC_USER
  353. HGLOBAL_UserMarshal64(
  354. unsigned long *,
  355. unsigned char *,
  356. HGLOBAL * );
  357. unsigned char * __RPC_USER
  358. HGLOBAL_UserUnmarshal64(
  359. unsigned long *,
  360. unsigned char *,
  361. HGLOBAL * );
  362. void __RPC_USER
  363. HGLOBAL_UserFree64(
  364. unsigned long *,
  365. HGLOBAL * );
  366. unsigned long __RPC_USER
  367. HBITMAP_UserSize64(
  368. unsigned long *,
  369. unsigned long,
  370. HBITMAP * );
  371. unsigned char * __RPC_USER
  372. HBITMAP_UserMarshal64(
  373. unsigned long *,
  374. unsigned char *,
  375. HBITMAP * );
  376. unsigned char * __RPC_USER
  377. HBITMAP_UserUnmarshal64(
  378. unsigned long *,
  379. unsigned char *,
  380. HBITMAP * );
  381. void __RPC_USER
  382. HBITMAP_UserFree64(
  383. unsigned long *,
  384. HBITMAP * );
  385. unsigned long __RPC_USER
  386. HENHMETAFILE_UserSize64(
  387. unsigned long *,
  388. unsigned long,
  389. HENHMETAFILE * );
  390. unsigned char * __RPC_USER
  391. HENHMETAFILE_UserMarshal64(
  392. unsigned long *,
  393. unsigned char *,
  394. HENHMETAFILE * );
  395. unsigned char * __RPC_USER
  396. HENHMETAFILE_UserUnmarshal64(
  397. unsigned long *,
  398. unsigned char *,
  399. HENHMETAFILE * );
  400. void __RPC_USER
  401. HENHMETAFILE_UserFree64(
  402. unsigned long *,
  403. HENHMETAFILE * );
  404. unsigned long __RPC_USER
  405. HMETAFILE_UserSize64(
  406. unsigned long *,
  407. unsigned long,
  408. HMETAFILE * );
  409. unsigned char * __RPC_USER
  410. HMETAFILE_UserMarshal64(
  411. unsigned long *,
  412. unsigned char *,
  413. HMETAFILE * );
  414. unsigned char * __RPC_USER
  415. HMETAFILE_UserUnmarshal64(
  416. unsigned long *,
  417. unsigned char *,
  418. HMETAFILE * );
  419. void __RPC_USER
  420. HMETAFILE_UserFree64(
  421. unsigned long *,
  422. HMETAFILE * );
  423. unsigned long __RPC_USER
  424. HMETAFILEPICT_UserSize64(
  425. unsigned long *,
  426. unsigned long,
  427. HMETAFILEPICT * );
  428. unsigned char * __RPC_USER
  429. HMETAFILEPICT_UserMarshal64(
  430. unsigned long *,
  431. unsigned char *,
  432. HMETAFILEPICT * );
  433. unsigned char * __RPC_USER
  434. HMETAFILEPICT_UserUnmarshal64(
  435. unsigned long *,
  436. unsigned char *,
  437. HMETAFILEPICT * );
  438. void __RPC_USER
  439. HMETAFILEPICT_UserFree64(
  440. unsigned long *,
  441. HMETAFILEPICT * );
  442. unsigned long __RPC_USER
  443. HPALETTE_UserSize64(
  444. unsigned long *,
  445. unsigned long,
  446. HPALETTE * );
  447. unsigned char * __RPC_USER
  448. HPALETTE_UserMarshal64(
  449. unsigned long *,
  450. unsigned char *,
  451. HPALETTE * );
  452. unsigned char * __RPC_USER
  453. HPALETTE_UserUnmarshal64(
  454. unsigned long *,
  455. unsigned char *,
  456. HPALETTE * );
  457. void __RPC_USER
  458. HPALETTE_UserFree64(
  459. unsigned long *,
  460. HPALETTE * );
  461. unsigned long __RPC_USER
  462. STGMEDIUM_UserSize64(
  463. unsigned long *,
  464. unsigned long,
  465. STGMEDIUM * );
  466. unsigned char * __RPC_USER
  467. STGMEDIUM_UserMarshal64(
  468. unsigned long *,
  469. unsigned char *,
  470. STGMEDIUM * );
  471. unsigned char * __RPC_USER
  472. STGMEDIUM_UserUnmarshal64(
  473. unsigned long *,
  474. unsigned char *,
  475. STGMEDIUM * );
  476. void __RPC_USER
  477. STGMEDIUM_UserFree64(
  478. unsigned long *,
  479. STGMEDIUM * );
  480. unsigned long __RPC_USER
  481. SNB_UserSize64(
  482. unsigned long *,
  483. unsigned long,
  484. SNB * );
  485. unsigned char * __RPC_USER
  486. SNB_UserMarshal64(
  487. unsigned long *,
  488. unsigned char *,
  489. SNB * );
  490. unsigned char * __RPC_USER
  491. SNB_UserUnmarshal64(
  492. unsigned long *,
  493. unsigned char *,
  494. SNB * );
  495. void __RPC_USER
  496. SNB_UserFree64(
  497. unsigned long *,
  498. SNB * );
  499. unsigned long __RPC_USER
  500. CLIPFORMAT_UserSize64(
  501. unsigned long * ,
  502. unsigned long ,
  503. CLIPFORMAT * );
  504. unsigned char * __RPC_USER
  505. CLIPFORMAT_UserMarshal64(
  506. unsigned long *,
  507. unsigned char *,
  508. CLIPFORMAT * );
  509. unsigned char * __RPC_USER
  510. CLIPFORMAT_UserUnmarshal64(
  511. unsigned long *,
  512. unsigned char *,
  513. CLIPFORMAT * );
  514. void __RPC_USER
  515. CLIPFORMAT_UserFree64(
  516. unsigned long * ,
  517. CLIPFORMAT * );
  518. unsigned long __RPC_USER
  519. HDC_UserSize64(
  520. unsigned long *,
  521. unsigned long ,
  522. HDC * );
  523. unsigned char * __RPC_USER
  524. HDC_UserMarshal64(
  525. unsigned long *,
  526. unsigned char * ,
  527. HDC * );
  528. unsigned char * __RPC_USER
  529. HDC_UserUnmarshal64(
  530. unsigned long *,
  531. unsigned char * ,
  532. HDC * );
  533. void __RPC_USER
  534. HDC_UserFree64(
  535. unsigned long *,
  536. HDC * );
  537. unsigned long __RPC_USER
  538. HICON_UserSize64(
  539. unsigned long *,
  540. unsigned long ,
  541. HICON * );
  542. unsigned char * __RPC_USER
  543. HICON_UserMarshal64(
  544. unsigned long *,
  545. unsigned char *,
  546. HICON * );
  547. unsigned char * __RPC_USER
  548. HICON_UserUnmarshal64(
  549. unsigned long *,
  550. unsigned char *,
  551. HICON * );
  552. void __RPC_USER
  553. HICON_UserFree64(
  554. unsigned long *,
  555. HICON * );
  556. /* OLE automation Data Type support */
  557. unsigned long __RPC_USER
  558. BSTR_UserSize64(
  559. unsigned long *,
  560. unsigned long,
  561. BSTR * );
  562. unsigned char * __RPC_USER
  563. BSTR_UserMarshal64(
  564. unsigned long *,
  565. unsigned char *,
  566. BSTR * );
  567. unsigned char * __RPC_USER
  568. BSTR_UserUnmarshal64(
  569. unsigned long *,
  570. unsigned char *,
  571. BSTR * );
  572. void __RPC_USER
  573. BSTR_UserFree64(
  574. unsigned long *,
  575. BSTR * );
  576. unsigned long __RPC_USER
  577. LPSAFEARRAY_UserSize64(
  578. unsigned long *,
  579. unsigned long,
  580. LPSAFEARRAY * );
  581. unsigned char * __RPC_USER
  582. LPSAFEARRAY_UserMarshal64(
  583. unsigned long *,
  584. unsigned char *,
  585. LPSAFEARRAY * );
  586. unsigned char * __RPC_USER
  587. LPSAFEARRAY_UserUnmarshal64(
  588. unsigned long *,
  589. unsigned char *,
  590. LPSAFEARRAY * );
  591. void __RPC_USER
  592. LPSAFEARRAY_UserFree64(
  593. unsigned long *,
  594. LPSAFEARRAY * );
  595. unsigned long __RPC_USER
  596. VARIANT_UserSize64(
  597. unsigned long *,
  598. unsigned long,
  599. VARIANT * );
  600. unsigned char * __RPC_USER
  601. VARIANT_UserMarshal64(
  602. unsigned long *,
  603. unsigned char *,
  604. VARIANT * );
  605. unsigned char * __RPC_USER
  606. VARIANT_UserUnmarshal64(
  607. unsigned long *,
  608. unsigned char *,
  609. VARIANT * );
  610. void __RPC_USER
  611. VARIANT_UserFree64(
  612. unsigned long *,
  613. VARIANT * );
  614. unsigned long __RPC_USER
  615. EXCEPINFO_UserSize64(
  616. unsigned long *,
  617. unsigned long,
  618. EXCEPINFO * );
  619. unsigned char * __RPC_USER
  620. EXCEPINFO_UserMarshal64(
  621. unsigned long *,
  622. unsigned char *,
  623. EXCEPINFO * );
  624. unsigned char * __RPC_USER
  625. EXCEPINFO_UserUnmarshal64(
  626. unsigned long *,
  627. unsigned char *,
  628. EXCEPINFO * );
  629. void __RPC_USER
  630. EXCEPINFO_UserFree64(
  631. unsigned long *,
  632. EXCEPINFO * );
  633. unsigned long __RPC_USER
  634. DISPPARAMS_UserSize64(
  635. unsigned long *,
  636. unsigned long,
  637. DISPPARAMS * );
  638. unsigned char * __RPC_USER
  639. DISPPARAMS_UserMarshal64(
  640. unsigned long *,
  641. unsigned char *,
  642. DISPPARAMS * );
  643. unsigned char * __RPC_USER
  644. DISPPARAMS_UserUnmarshal64(
  645. unsigned long *,
  646. unsigned char *,
  647. DISPPARAMS * );
  648. void __RPC_USER
  649. DISPPARAMS_UserFree64(
  650. unsigned long *,
  651. DISPPARAMS * );
  652. /* Other types: valid inproc only */
  653. unsigned long __RPC_USER
  654. HWND_UserSize64(
  655. unsigned long *,
  656. unsigned long,
  657. HWND * );
  658. unsigned char * __RPC_USER
  659. HWND_UserMarshal64(
  660. unsigned long *,
  661. unsigned char *,
  662. HWND * );
  663. unsigned char * __RPC_USER
  664. HWND_UserUnmarshal64(
  665. unsigned long *,
  666. unsigned char *,
  667. HWND * );
  668. void __RPC_USER
  669. HWND_UserFree64(
  670. unsigned long *,
  671. HWND * );
  672. unsigned long __RPC_USER
  673. HACCEL_UserSize64(
  674. unsigned long *,
  675. unsigned long,
  676. HACCEL * );
  677. unsigned char * __RPC_USER
  678. HACCEL_UserMarshal64(
  679. unsigned long *,
  680. unsigned char *,
  681. HACCEL * );
  682. unsigned char * __RPC_USER
  683. HACCEL_UserUnmarshal64(
  684. unsigned long *,
  685. unsigned char *,
  686. HACCEL * );
  687. void __RPC_USER
  688. HACCEL_UserFree64(
  689. unsigned long *,
  690. HACCEL * );
  691. unsigned long __RPC_USER
  692. HMENU_UserSize64(
  693. unsigned long *,
  694. unsigned long,
  695. HMENU * );
  696. unsigned char * __RPC_USER
  697. HMENU_UserMarshal64(
  698. unsigned long *,
  699. unsigned char *,
  700. HMENU * );
  701. unsigned char * __RPC_USER
  702. HMENU_UserUnmarshal64(
  703. unsigned long *,
  704. unsigned char *,
  705. HMENU * );
  706. void __RPC_USER
  707. HMENU_UserFree64(
  708. unsigned long *,
  709. HMENU * );
  710. unsigned long __RPC_USER
  711. HBRUSH_UserSize64(
  712. unsigned long *,
  713. unsigned long,
  714. HBRUSH * );
  715. unsigned char * __RPC_USER
  716. HBRUSH_UserMarshal64(
  717. unsigned long *,
  718. unsigned char *,
  719. HBRUSH * );
  720. unsigned char * __RPC_USER
  721. HBRUSH_UserUnmarshal64(
  722. unsigned long *,
  723. unsigned char *,
  724. HBRUSH * );
  725. void __RPC_USER
  726. HBRUSH_UserFree64(
  727. unsigned long *,
  728. HBRUSH * );
  729. #ifdef __cplusplus
  730. }
  731. #endif
  732. #endif