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.

217 lines
12 KiB

  1. /****************************** Module Header ******************************\
  2. * Module Name: pict.h
  3. *
  4. * PURPOSE: Private definitions file for presentation object related files
  5. *
  6. * Created: 1990
  7. *
  8. * Copyright (c) 1990, 1991 Microsoft Corporation
  9. *
  10. * History:
  11. * Raor, Srinik (../../90,91) Original
  12. * curts created portable version for WIN16/32
  13. *
  14. \***************************************************************************/
  15. /////////////////////////////////////////////////////////////////////////////
  16. // //
  17. // Routines in MF.C //
  18. // //
  19. /////////////////////////////////////////////////////////////////////////////
  20. OLESTATUS FARINTERNAL MfRelease (LPOLEOBJECT);
  21. OLESTATUS FARINTERNAL MfSaveToStream (LPOLEOBJECT, LPOLESTREAM);
  22. OLESTATUS FARINTERNAL MfClone (LPOLEOBJECT, LPOLECLIENT, LHCLIENTDOC, OLE_LPCSTR, LPOLEOBJECT FAR *);
  23. OLESTATUS FARINTERNAL MfEqual (LPOLEOBJECT, LPOLEOBJECT);
  24. OLESTATUS FARINTERNAL MfCopy (LPOLEOBJECT);
  25. OLESTATUS FARINTERNAL MfQueryBounds (LPOLEOBJECT, LPRECT);
  26. OLESTATUS FARINTERNAL MfGetData (LPOLEOBJECT, OLECLIPFORMAT, LPHANDLE);
  27. OLESTATUS FARINTERNAL MfSetData (LPOLEOBJECT, OLECLIPFORMAT, HANDLE);
  28. OLESTATUS FARINTERNAL MfChangeData (LPOLEOBJECT, HANDLE, LPOLECLIENT, BOOL);
  29. OLESTATUS INTERNAL MfCopyToClip (LPOBJECT_MF, HANDLE);
  30. void FARINTERNAL MfSetExtents (LPOBJECT_MF);
  31. DWORD INTERNAL MfGetSize (LPHANDLE);
  32. HANDLE INTERNAL GetHmfp (LPOBJECT_MF);
  33. OLESTATUS INTERNAL MfUpdateStruct (LPOBJECT_MF, LPOLECLIENT, HANDLE,
  34. LPMETAFILEPICT, HANDLE, BOOL);
  35. OLECLIPFORMAT FARINTERNAL MfEnumFormat (LPOLEOBJECT, OLECLIPFORMAT);
  36. /////////////////////////////////////////////////////////////////////////////
  37. // //
  38. // Routines in EMF.C //
  39. // //
  40. /////////////////////////////////////////////////////////////////////////////
  41. OLESTATUS FARINTERNAL EmfRelease (LPOLEOBJECT);
  42. OLESTATUS FARINTERNAL EmfSaveToStream (LPOLEOBJECT, LPOLESTREAM);
  43. OLESTATUS FARINTERNAL EmfClone (LPOLEOBJECT, LPOLECLIENT, LHCLIENTDOC, OLE_LPCSTR, LPOLEOBJECT FAR *);
  44. OLESTATUS FARINTERNAL EmfEqual (LPOLEOBJECT, LPOLEOBJECT);
  45. OLESTATUS FARINTERNAL EmfCopy (LPOLEOBJECT);
  46. OLESTATUS FARINTERNAL EmfQueryBounds (LPOLEOBJECT, LPRECT);
  47. OLESTATUS FARINTERNAL EmfGetData (LPOLEOBJECT, OLECLIPFORMAT, LPHANDLE);
  48. OLESTATUS FARINTERNAL EmfSetData (LPOLEOBJECT, OLECLIPFORMAT, HANDLE);
  49. OLESTATUS FARINTERNAL EmfChangeData (LPOLEOBJECT, HANDLE, LPOLECLIENT, BOOL);
  50. void FARINTERNAL EmfSetExtents (LPOBJECT_EMF);
  51. DWORD INTERNAL EmfGetSize (LPHANDLE);
  52. HANDLE INTERNAL GetHemfp (LPOBJECT_EMF);
  53. OLESTATUS INTERNAL EmfUpdateStruct (LPOBJECT_EMF, LPOLECLIENT, HANDLE,
  54. LPMETAFILEPICT, HANDLE, BOOL);
  55. OLECLIPFORMAT FARINTERNAL EmfEnumFormat (LPOLEOBJECT, OLECLIPFORMAT);
  56. /////////////////////////////////////////////////////////////////////////////
  57. // //
  58. // Routines in DIB.C //
  59. // //
  60. /////////////////////////////////////////////////////////////////////////////
  61. /* The DIB file will be of the following format: */
  62. /* */
  63. /* 0004 */
  64. /* "DIB" */
  65. /* 4 bytes of xExtent in MM_HIMETIRC units (or) 0 */
  66. /* 4 bytes of yExtent in MM_HIMETIRC units (or) 0 */
  67. /* 4 bytes of size of (BITMAPINFOHEADER + RBGQUAD + bit array) */
  68. /* BITMAPINFOHEADER structure */
  69. /* RBGQUAD array */
  70. /* array of DI bits */
  71. /* */
  72. OLESTATUS FARINTERNAL DibRelease (LPOLEOBJECT);
  73. OLESTATUS FARINTERNAL DibSaveToStream (LPOLEOBJECT, LPOLESTREAM);
  74. OLESTATUS FARINTERNAL DibClone (LPOLEOBJECT, LPOLECLIENT, LHCLIENTDOC, OLE_LPCSTR, LPOLEOBJECT FAR *);
  75. OLESTATUS FARINTERNAL DibEqual (LPOLEOBJECT, LPOLEOBJECT);
  76. OLESTATUS FARINTERNAL DibCopy (LPOLEOBJECT);
  77. OLESTATUS FARINTERNAL DibQueryBounds (LPOLEOBJECT, LPRECT);
  78. OLESTATUS FARINTERNAL DibGetData (LPOLEOBJECT, OLECLIPFORMAT, LPHANDLE);
  79. OLESTATUS FARINTERNAL DibChangeData (LPOLEOBJECT, HANDLE, LPOLECLIENT, BOOL);
  80. BOOL INTERNAL DibStreamRead (LPOLESTREAM,LPOBJECT_DIB);
  81. void INTERNAL DibUpdateStruct (LPOBJECT_DIB, LPOLECLIENT, HANDLE, LPBITMAPINFOHEADER, DWORD);
  82. OLECLIPFORMAT FARINTERNAL DibEnumFormat (LPOLEOBJECT, OLECLIPFORMAT);
  83. /////////////////////////////////////////////////////////////////////////////
  84. // //
  85. // Routines in BM.C //
  86. // //
  87. /////////////////////////////////////////////////////////////////////////////
  88. /* The BM file will be of the following format: */
  89. /* */
  90. /* 0007 */
  91. /* "BITMAP" */
  92. /* 4 bytes of xExtent in MM_HIMETIRC units (or) 0 */
  93. /* 4 bytes of yExtent in MM_HIMETIRC units (or) 0 */
  94. /* 4 bytes of size of (BITMAP + bits) */
  95. /* BITMAP structure */
  96. /* bitmap bits */
  97. /* */
  98. OLESTATUS FARINTERNAL BmRelease (LPOLEOBJECT);
  99. OLESTATUS FARINTERNAL BmSaveToStream (LPOLEOBJECT, LPOLESTREAM);
  100. OLESTATUS FARINTERNAL BmClone (LPOLEOBJECT, LPOLECLIENT, LHCLIENTDOC, OLE_LPCSTR, LPOLEOBJECT FAR *);
  101. OLESTATUS FARINTERNAL BmEqual (LPOLEOBJECT, LPOLEOBJECT);
  102. OLESTATUS FARINTERNAL BmCopy (LPOLEOBJECT);
  103. OLESTATUS FARINTERNAL BmQueryBounds (LPOLEOBJECT, LPRECT);
  104. OLESTATUS FARINTERNAL BmGetData (LPOLEOBJECT, OLECLIPFORMAT, LPHANDLE);
  105. OLESTATUS FARINTERNAL BmChangeData (LPOLEOBJECT, HANDLE, LPOLECLIENT, BOOL);
  106. OLESTATUS INTERNAL BmStreamWrite (LPOLESTREAM, LPOBJECT_BM);
  107. BOOL INTERNAL BmStreamRead (LPOLESTREAM, LPOBJECT_BM);
  108. void INTERNAL BmUpdateStruct (LPOBJECT_BM, LPOLECLIENT, HBITMAP, LPBITMAP, DWORD);
  109. OLECLIPFORMAT FARINTERNAL BmEnumFormat (LPOLEOBJECT, OLECLIPFORMAT);
  110. LPOBJECT_BM INTERNAL BmCreateObject (HBITMAP, LPOLECLIENT, BOOL,
  111. LHCLIENTDOC, LPCSTR, LONG);
  112. /////////////////////////////////////////////////////////////////////////////
  113. // //
  114. // Routines in GENERIC.C //
  115. // //
  116. /////////////////////////////////////////////////////////////////////////////
  117. /* The GENERIC file will be of the following format: */
  118. /* */
  119. /* 0007 */
  120. /* "GENERIC" */
  121. /* 4 bytes of cfFormat */
  122. OLESTATUS FARINTERNAL GenRelease (LPOLEOBJECT);
  123. OLESTATUS FARINTERNAL GenSaveToStream (LPOLEOBJECT, LPOLESTREAM);
  124. OLESTATUS FARINTERNAL GenEqual (LPOLEOBJECT, LPOLEOBJECT);
  125. OLESTATUS FARINTERNAL GenCopy (LPOLEOBJECT);
  126. OLESTATUS FARINTERNAL GenQueryBounds (LPOLEOBJECT, LPRECT);
  127. OLESTATUS FARINTERNAL GenGetData (LPOLEOBJECT, OLECLIPFORMAT, LPHANDLE);
  128. OLESTATUS FARINTERNAL GenSetData (LPOLEOBJECT, OLECLIPFORMAT, HANDLE);
  129. OLESTATUS FARINTERNAL GenChangeData (LPOLEOBJECT, HANDLE, LPOLECLIENT, BOOL);
  130. OLESTATUS INTERNAL GenDeleteData (HANDLE);
  131. OLESTATUS FARINTERNAL GenQueryType (LPOLEOBJECT, LPLONG);
  132. OLESTATUS FARINTERNAL GenClone(LPOLEOBJECT, LPOLECLIENT, LHCLIENTDOC, OLE_LPCSTR, LPOLEOBJECT FAR*);
  133. OLECLIPFORMAT FARINTERNAL GenEnumFormat (LPOLEOBJECT, OLECLIPFORMAT);
  134. LPOBJECT_GEN INTERNAL GenCreateObject (HANDLE, LPOLECLIENT, BOOL,
  135. LHCLIENTDOC, LPCSTR, LONG);
  136. /////////////////////////////////////////////////////////////////////////////
  137. // //
  138. // Routines in ERROR.C //
  139. // //
  140. /////////////////////////////////////////////////////////////////////////////
  141. OLESTATUS FARINTERNAL ErrPlay (LPOLEOBJECT, UINT, BOOL, BOOL);
  142. OLESTATUS FARINTERNAL ErrShow (LPOLEOBJECT, BOOL);
  143. OLESTATUS FARINTERNAL ErrSetHostNames (LPOLEOBJECT, OLE_LPCSTR, OLE_LPCSTR);
  144. OLESTATUS FARINTERNAL ErrSetTargetDevice (LPOLEOBJECT, HANDLE);
  145. OLESTATUS FARINTERNAL ErrSetColorScheme (LPOLEOBJECT, OLE_CONST LOGPALETTE FAR*);
  146. OLESTATUS FARINTERNAL ErrSetBounds (LPOLEOBJECT, OLE_CONST RECT FAR*);
  147. OLESTATUS FARINTERNAL ErrQueryOpen (LPOLEOBJECT);
  148. OLESTATUS FARINTERNAL ErrActivate (LPOLEOBJECT, UINT, BOOL, BOOL, HWND, OLE_CONST RECT FAR*);
  149. OLESTATUS FARINTERNAL ErrClose (LPOLEOBJECT);
  150. OLESTATUS FARINTERNAL ErrUpdate (LPOLEOBJECT);
  151. OLESTATUS FARINTERNAL ErrReconnect (LPOLEOBJECT);
  152. OLESTATUS FARINTERNAL ErrSetData (LPOLEOBJECT, OLECLIPFORMAT, HANDLE);
  153. OLESTATUS FARINTERNAL ErrQueryOutOfDate (LPOLEOBJECT);
  154. OLESTATUS FARINTERNAL ErrGetUpdateOptions (LPOLEOBJECT, OLEOPT_UPDATE FAR *);
  155. OLESTATUS FARINTERNAL ErrSetUpdateOptions (LPOLEOBJECT, OLEOPT_UPDATE);
  156. void FAR* FARINTERNAL ErrQueryProtocol (LPOLEOBJECT, OLE_LPCSTR);
  157. OLE_RELEASE_METHOD FARINTERNAL ErrQueryReleaseMethod (LPOLEOBJECT);
  158. OLESTATUS FARINTERNAL ErrQueryRelease (LPOLEOBJECT);
  159. OLESTATUS FARINTERNAL ErrAbort (LPOLEOBJECT);
  160. OLESTATUS FARINTERNAL ErrCopyFromLink (LPOLEOBJECT, LPOLECLIENT, LHCLIENTDOC, OLE_LPCSTR, LPOLEOBJECT FAR*);
  161. OLESTATUS FARINTERNAL ErrRequestData (LPOLEOBJECT, OLECLIPFORMAT);
  162. OLESTATUS FARINTERNAL ErrExecute (LPOLEOBJECT, HANDLE, UINT);
  163. OLESTATUS FARINTERNAL ErrObjectConvert (LPOLEOBJECT, OLE_LPCSTR, LPOLECLIENT, LHCLIENTDOC, OLE_LPCSTR, LPOLEOBJECT FAR*);
  164. OLESTATUS FARINTERNAL ErrObjectLong (LPOLEOBJECT, UINT, LPLONG);
  165. /////////////////////////////////////////////////////////////////////////////
  166. // //
  167. // Routines in DRAW.C //
  168. // //
  169. /////////////////////////////////////////////////////////////////////////////
  170. OLESTATUS FARINTERNAL DibDraw (LPOLEOBJECT, HDC, OLE_CONST RECT FAR*, OLE_CONST RECT FAR*, HDC);
  171. OLESTATUS FARINTERNAL BmDraw (LPOLEOBJECT, HDC, OLE_CONST RECT FAR*, OLE_CONST RECT FAR*, HDC);
  172. OLESTATUS FARINTERNAL GenDraw (LPOLEOBJECT, HDC, OLE_CONST RECT FAR*, OLE_CONST RECT FAR*, HDC);
  173. OLESTATUS FARINTERNAL MfDraw (LPOLEOBJECT, HDC, OLE_CONST RECT FAR*, OLE_CONST RECT FAR*, HDC);
  174. void INTERNAL MfInterruptiblePaint (LPOBJECT_MF, HDC);
  175. BOOL APIENTRY MfCallbackFunc (HDC, LPHANDLETABLE, LPMETARECORD, int, LPVOID);
  176. OLESTATUS FARINTERNAL EmfDraw (LPOLEOBJECT, HDC, OLE_CONST RECT FAR*, OLE_CONST RECT FAR*, HDC);
  177. void INTERNAL EmfInterruptiblePaint (LPOBJECT_EMF, HDC, LPRECT);
  178. int FARINTERNAL EmfCallbackFunc (HDC, LPHANDLETABLE, LPENHMETARECORD, int, LPVOID);