jediapilib.inc 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. {$IFNDEF JEDIAPILIB_INC}
  2. {$DEFINE JEDIAPILIB_INC}
  3. {******************************************************************************}
  4. { }
  5. { Windows Version Unit for Object Pascal }
  6. { }
  7. { Portions created by Robert Marquardt are Copyright (C) 2004 }
  8. { Robert Marquardt. All Rights Reserved. }
  9. { }
  10. { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
  11. { }
  12. { You may retrieve the latest version of this file at the Project JEDI }
  13. { APILIB home page, located at http://jedi-apilib.sourceforge.net }
  14. { }
  15. { The contents of this file are used with permission, subject to the Mozilla }
  16. { Public License Version 1.1 (the "License"); you may not use this file except }
  17. { in compliance with the License. You may obtain a copy of the License at }
  18. { http://www.mozilla.org/MPL/MPL-1.1.html }
  19. { }
  20. { Software distributed under the License is distributed on an "AS IS" basis, }
  21. { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
  22. { the specific language governing rights and limitations under the License. }
  23. { }
  24. { Alternatively, the contents of this file may be used under the terms of the }
  25. { GNU Lesser General Public License (the "LGPL License"), in which case the }
  26. { provisions of the LGPL License are applicable instead of those above. }
  27. { If you wish to allow use of your version of this file only under the terms }
  28. { of the LGPL License and not to allow others to use your version of this file }
  29. { under the MPL, indicate your decision by deleting the provisions above and }
  30. { replace them with the notice and other provisions required by the LGPL }
  31. { License. If you do not delete the provisions above, a recipient may use }
  32. { your version of this file under either the MPL or the LGPL License. }
  33. { }
  34. { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
  35. { }
  36. {******************************************************************************}
  37. {$A+,Z4}
  38. // This file is intended for C header conversions.
  39. // It defines several mutually exclusive IFDEFs which determine
  40. // the Windows version the API conversion is usable with.
  41. {$I jedi.inc}
  42. {$IFNDEF JEDI_INC}
  43. ALERT_jedi_inc_incompatible
  44. // secure against old versions of jedi.inc.
  45. {$ENDIF !JEDI_INC}
  46. // activate standalone feature for files
  47. {$IFNDEF JWA_INCLUDEMODE}
  48. {$DEFINE JWA_INTERFACESECTION}
  49. {$DEFINE JWA_IMPLEMENTATIONSECTION}
  50. {$ENDIF !JWA_INCLUDEMODE}
  51. // Global switch to enable dynamic linking of some APIs
  52. {.DEFINE DYNAMIC_LINK}
  53. {$IFDEF DYNAMIC_LINK}
  54. {$STACKFRAMES ON}
  55. {$WARNINGS OFF}
  56. {$ENDIF DYNAMIC_LINK}
  57. // Global switch to make UNICODE versions of API functions default
  58. {.DEFINE UNICODE}
  59. // Global switch to activate the use of the original basic types of
  60. // Delphi Windows.pas. Either indirectly in JwaWinType.pas or
  61. // directly through the use of Windows.pas instead of JwaWinType.pas.
  62. {$DEFINE USE_DELPHI_TYPES}
  63. // Global switch for the Windows version the files are compatible with
  64. // ONLY A SINGLE ONE IS ALLOWED TO BE ACTIVATED BY CHANGING THE DOT TO A DOLLAR SIGN!
  65. // Default is WINXP
  66. {.DEFINE WIN95}
  67. {.DEFINE WIN98}
  68. {.DEFINE WIN98SE}
  69. {.DEFINE WIN98ME}
  70. {.DEFINE WINNT4}
  71. {.DEFINE WIN2000}
  72. {$DEFINE WINXP}
  73. {.DEFINE WIN2003}
  74. // Global switch for the Windows Internet Explorer versions
  75. // ONLY A SINGLE ONE IS ALLOWED TO BE ACTIVATED BY CHANGING THE DOT TO A DOLLAR SIGN!
  76. // Default is IE600
  77. {.DEFINE IE300}
  78. {.DEFINE IE400}
  79. {.DEFINE IE401}
  80. {.DEFINE IE500}
  81. {.DEFINE IE501}
  82. {.DEFINE IE560}
  83. {$DEFINE IE600}
  84. // Global switch for the MSI (Microsoft Installer) versions
  85. // ONLY A SINGLE ONE IS ALLOWED TO BE ACTIVATED BY CHANGING THE DOT TO A DOLLAR SIGN!
  86. // if none is set a default is determined from the Windows version IFDEFs
  87. {.DEFINE MSI100}
  88. {.DEFINE MSI110}
  89. {.DEFINE MSI200}
  90. // Global switch for the HtmlHelp versions
  91. // ONLY A SINGLE ONE IS ALLOWED TO BE ACTIVATED BY CHANGING THE DOT TO A DOLLAR SIGN!
  92. // default is HTMLHELP12
  93. {.DEFINE HTMLHELP11}
  94. {$DEFINE HTMLHELP12}
  95. // secondary IFDEFs for "_UP" which means also any later OS version
  96. {$IFDEF WIN2003}
  97. {$DEFINE WIN95_UP}
  98. {$DEFINE WIN98_UP}
  99. {$DEFINE WIN98SE_UP}
  100. {$DEFINE WIN98ME_UP}
  101. {$DEFINE WINNT4_UP}
  102. {$DEFINE WIN2000_UP}
  103. {$DEFINE WINXP_UP}
  104. {$DEFINE WIN2003_UP}
  105. {$ENDIF WIN2003}
  106. {$IFDEF WINXP}
  107. {$DEFINE WIN95_UP}
  108. {$DEFINE WIN98_UP}
  109. {$DEFINE WIN98SE_UP}
  110. {$DEFINE WIN98ME_UP}
  111. {$DEFINE WINNT4_UP}
  112. {$DEFINE WIN2000_UP}
  113. {$DEFINE WINXP_UP}
  114. {$ENDIF WINXP}
  115. {$IFDEF WIN2000}
  116. {$DEFINE WIN95_UP}
  117. {$DEFINE WIN98_UP}
  118. {$DEFINE WIN98SE_UP}
  119. {$DEFINE WIN98ME_UP}
  120. {$DEFINE WINNT4_UP}
  121. {$DEFINE WIN2000_UP}
  122. {$ENDIF WIN2000}
  123. {$IFDEF WINNT4}
  124. {$DEFINE WIN95_UP}
  125. {$DEFINE WIN98_UP}
  126. {$DEFINE WIN98SE_UP}
  127. {$DEFINE WIN98ME_UP}
  128. {$DEFINE WINNT4_UP}
  129. {$ENDIF WINNT4}
  130. {$IFDEF WIN98ME}
  131. {$DEFINE WIN95_UP}
  132. {$DEFINE WIN98_UP}
  133. {$DEFINE WIN98SE_UP}
  134. {$DEFINE WIN98ME_UP}
  135. {$ENDIF WIN98ME}
  136. {$IFDEF WIN98SE}
  137. {$DEFINE WIN95_UP}
  138. {$DEFINE WIN98_UP}
  139. {$DEFINE WIN98SE_UP}
  140. {$ENDIF WIN98SE}
  141. {$IFDEF WIN98}
  142. {$DEFINE WIN95_UP}
  143. {$DEFINE WIN98_UP}
  144. {$ENDIF WIN98}
  145. {$IFDEF WIN95}
  146. {$DEFINE WIN95_UP}
  147. {$ENDIF WIN95}
  148. // secondary IFDEFs for "_UP" which means also any later IE version
  149. {$IFDEF IE600}
  150. {$DEFINE IE300_UP}
  151. {$DEFINE IE400_UP}
  152. {$DEFINE IE401_UP}
  153. {$DEFINE IE500_UP}
  154. {$DEFINE IE501_UP}
  155. {$DEFINE IE560_UP}
  156. {$DEFINE IE600_UP}
  157. {$ENDIF IE600}
  158. {$IFDEF IE560}
  159. {$DEFINE IE300_UP}
  160. {$DEFINE IE400_UP}
  161. {$DEFINE IE401_UP}
  162. {$DEFINE IE500_UP}
  163. {$DEFINE IE501_UP}
  164. {$DEFINE IE560_UP}
  165. {$ENDIF IE560}
  166. {$IFDEF IE501}
  167. {$DEFINE IE300_UP}
  168. {$DEFINE IE400_UP}
  169. {$DEFINE IE401_UP}
  170. {$DEFINE IE500_UP}
  171. {$DEFINE IE501_UP}
  172. {$ENDIF IE501}
  173. {$IFDEF IE500}
  174. {$DEFINE IE300_UP}
  175. {$DEFINE IE400_UP}
  176. {$DEFINE IE401_UP}
  177. {$DEFINE IE500_UP}
  178. {$ENDIF IE500}
  179. {$IFDEF IE401}
  180. {$DEFINE IE300_UP}
  181. {$DEFINE IE400_UP}
  182. {$DEFINE IE401_UP}
  183. {$ENDIF IE401}
  184. {$IFDEF IE400}
  185. {$DEFINE IE300_UP}
  186. {$DEFINE IE400_UP}
  187. {$ENDIF IE400}
  188. {$IFDEF IE300}
  189. {$DEFINE IE300_UP}
  190. {$ENDIF IE300}
  191. // IFDEF defaults for MSI (Microsoft Installer)
  192. {$IFNDEF MSI200}
  193. {$IFNDEF MSI110}
  194. {$IFNDEF MSI100}
  195. {$IFDEF WINXP_UP}
  196. {$DEFINE MSI200}
  197. {$ELSE}
  198. {$IFDEF WIN2000_UP}
  199. {$DEFINE MSI110}
  200. {$ELSE}
  201. {$DEFINE MSI100}
  202. {$ENDIF WIN2000_UP}
  203. {$ENDIF WINXP_UP}
  204. {$ENDIF !MSI100}
  205. {$ENDIF !MSI110}
  206. {$ENDIF !MSI200}
  207. // secondary IFDEFs for MSI (Microsoft Installer)
  208. {$IFDEF MSI200}
  209. {$DEFINE MSI200_UP}
  210. {$DEFINE MSI110_UP}
  211. {$DEFINE MSI100_UP}
  212. {$ENDIF MSI200}
  213. {$IFDEF MSI110}
  214. {$DEFINE MSI110_UP}
  215. {$DEFINE MSI100_UP}
  216. {$ENDIF MSI110}
  217. {$IFDEF MSI100}
  218. {$DEFINE MSI100_UP}
  219. {$ENDIF MSI100}
  220. // secondary IFDEFs for HtmlHelp
  221. {$IFDEF HTMLHELP12}
  222. {$DEFINE HTMLHELP12_UP}
  223. {$DEFINE HTMLHELP11_UP}
  224. {$ENDIF HTMLHELP12}
  225. {$IFDEF HTMLHELP11}
  226. {$DEFINE HTMLHELP11_UP}
  227. {$ENDIF HTMLHELP11}
  228. {$ENDIF ~JEDIAPILIB_INC}