pmwin.pas 166 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813
  1. {****************************************************************************
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Florian Klaempfl
  5. Copyright (c) 1999-2000 by Ramon Bosque
  6. Copyrigth (c) 2003 by Yuri Prokushev
  7. OS/2 Presentation Manager windowing functions, plus common
  8. PM constants and types (PMWIN.DLL interface unit).
  9. See the file COPYING.FPC, included in this distribution,
  10. for details about the copyright.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. ****************************************************************************}
  15. unit pmwin;
  16. {$mode objfpc}
  17. {$MACRO ON}
  18. interface
  19. uses
  20. os2def;
  21. const
  22. MaxMB2DText = 70;
  23. type
  24. proc=function (hwnd,msg : cardinal;mp1,mp2 : pointer) : pointer; cdecl;
  25. QVERSDATA = record
  26. environment : word;
  27. version : word;
  28. end;
  29. PQVERSDATA = ^QVERSDATA;
  30. SWP = record
  31. fl : cardinal;
  32. cy : longint;
  33. cx : longint;
  34. y : longint;
  35. x : longint;
  36. hwndInsertBehind : cardinal;
  37. hwnd : cardinal;
  38. ulReserved1 : cardinal;
  39. ulReserved2 : cardinal;
  40. end;
  41. PSWP = ^SWP;
  42. CREATESTRUCT = record
  43. pPresParams : pointer;
  44. pCtlData : pointer;
  45. id : cardinal;
  46. hwndInsertBehind : cardinal;
  47. hwndOwner : cardinal;
  48. cy : longint;
  49. cx : longint;
  50. y : longint;
  51. x : longint;
  52. flStyle : cardinal;
  53. pszText : pchar;
  54. pszClass : pchar;
  55. hwndParent : cardinal;
  56. end;
  57. PCREATESTRUCT = ^CREATESTRUCT;
  58. CLASSINFO = record
  59. flClassStyle : cardinal;
  60. pfnWindowProc : proc;
  61. cbWindowData : cardinal;
  62. end;
  63. PCLASSINFO = ^CLASSINFO;
  64. QMSG = record
  65. hwnd : cardinal;
  66. msg : cardinal;
  67. mp1 : pointer;
  68. mp2 : pointer;
  69. time : cardinal;
  70. ptl : POINTL;
  71. reserved : cardinal;
  72. end;
  73. PQMSG = ^QMSG;
  74. MQINFO = record
  75. cb : cardinal;
  76. pid : cardinal;
  77. tid : cardinal;
  78. cmsgs : cardinal;
  79. pReserved : pointer;
  80. end;
  81. PMQINFO = ^MQINFO;
  82. WNDPARAMS = record
  83. fsStatus : cardinal;
  84. cchText : cardinal;
  85. pszText : pchar;
  86. cbPresParams : cardinal;
  87. pPresParams : pointer;
  88. cbCtlData : cardinal;
  89. pCtlData : pointer;
  90. end;
  91. PWNDPARAMS = ^WNDPARAMS;
  92. USERBUTTON = record
  93. hwnd : cardinal;
  94. hps : cardinal;
  95. fsState : cardinal;
  96. fsStateOld : cardinal;
  97. end;
  98. PUSERBUTTON = ^USERBUTTON;
  99. OWNERITEM = record
  100. hwnd : cardinal;
  101. hps : cardinal;
  102. fsState : cardinal;
  103. fsAttribute : cardinal;
  104. fsStateOld : cardinal;
  105. fsAttributeOld : cardinal;
  106. rclItem : TRectl;
  107. idItem : longint;
  108. hItem : cardinal;
  109. end;
  110. POWNERITEM = ^OWNERITEM;
  111. PARAM = record
  112. id : cardinal;
  113. cb : cardinal;
  114. ab : array[0..1-1] of BYTE;
  115. end;
  116. PPARAM = ^PARAM;
  117. PRESPARAMS = record
  118. cb : cardinal;
  119. aparam : array[0..1-1] of PARAM;
  120. end;
  121. PPRESPARAMS = ^PRESPARAMS;
  122. TRACKINFO = record
  123. cxBorder : longint;
  124. cyBorder : longint;
  125. cxGrid : longint;
  126. cyGrid : longint;
  127. cxKeyboard : longint;
  128. cyKeyboard : longint;
  129. rclTrack : TRectl;
  130. rclBoundary : TRectl;
  131. ptlMinTrackSize : POINTL;
  132. ptlMaxTrackSize : POINTL;
  133. fs : cardinal;
  134. end;
  135. PTRACKINFO = ^TRACKINFO;
  136. CURSORINFO = record
  137. hwnd : cardinal;
  138. x : longint;
  139. y : longint;
  140. cx : longint;
  141. cy : longint;
  142. fs : cardinal;
  143. rclClip : TRectl;
  144. end;
  145. PCURSORINFO = ^CURSORINFO;
  146. POINTERINFO = record
  147. fPointer : cardinal;
  148. xHotspot : longint;
  149. yHotspot : longint;
  150. hbmPointer : cardinal;
  151. hbmColor : cardinal;
  152. hbmMiniPointer : cardinal;
  153. hbmMiniColor : cardinal;
  154. end;
  155. PPOINTERINFO = ^POINTERINFO;
  156. SMHSTRUCT = record
  157. mp2 : pointer;
  158. mp1 : pointer;
  159. msg : cardinal;
  160. hwnd : cardinal;
  161. model : cardinal;
  162. end;
  163. PSMHSTRUCT = ^SMHSTRUCT;
  164. ERRINFO = record
  165. cbFixedErrInfo : cardinal;
  166. idError : cardinal;
  167. cDetailLevel : cardinal;
  168. offaoffszMsg : cardinal;
  169. offBinaryData : cardinal;
  170. end;
  171. PERRINFO = ^ERRINFO;
  172. CONVCONTEXT = record
  173. cb : cardinal;
  174. fsContext : cardinal;
  175. idCountry : cardinal;
  176. usCodepage : cardinal;
  177. usLangID : cardinal;
  178. usSubLangID : cardinal;
  179. end;
  180. PCONVCONTEXT = ^CONVCONTEXT;
  181. DDEINIT = record
  182. cb : cardinal;
  183. pszAppName : pchar;
  184. pszTopic : pchar;
  185. offConvContext : cardinal;
  186. end;
  187. PDDEINIT = ^DDEINIT;
  188. DDESTRUCT = record
  189. cbData : cardinal;
  190. fsStatus : word;
  191. usFormat : word;
  192. offszItemName : word;
  193. offabData : word;
  194. end;
  195. PDDESTRUCT = ^DDESTRUCT;
  196. DESKTOP = record
  197. cbSize : cardinal;
  198. hbm : cardinal;
  199. x : longint;
  200. y : longint;
  201. fl : cardinal;
  202. lTileCount : longint;
  203. szFile : array[0..260-1] of shortint;
  204. end;
  205. PDESKTOP = ^DESKTOP;
  206. {$PACKRECORDS 1}
  207. CMDMSG = record
  208. cmd : word;
  209. unused : word;
  210. source : word;
  211. fMouse : word;
  212. end;
  213. PCMDMSG = ^CMDMSG;
  214. MSEMSG = record
  215. x : integer;
  216. y : integer;
  217. codeHitTest : word;
  218. fsInp : word;
  219. end;
  220. PMSEMSG = ^MSEMSG;
  221. CHRMSG = record
  222. fs : word;
  223. cRepeat : byte;
  224. scancode : byte;
  225. chr : word;
  226. vkey : word;
  227. end;
  228. PCHRMSG = ^CHRMSG;
  229. {$PACKRECORDS NORMAL}
  230. {$PACKRECORDS 2}
  231. DLGTITEM = record
  232. fsItemStatus : word;
  233. cChildren : word;
  234. cchClassName : word;
  235. offClassName : word;
  236. cchText : word;
  237. offText : word;
  238. flStyle : cardinal;
  239. x : integer;
  240. y : integer;
  241. cx : integer;
  242. cy : integer;
  243. id : word;
  244. offPresParams : word;
  245. offCtlData : word;
  246. end;
  247. PDLGTITEM = ^DLGTITEM;
  248. DLGTEMPLATE = record
  249. cbTemplate : word;
  250. _type : word;
  251. codepage : word;
  252. offadlgti : word;
  253. fsTemplateStatus : word;
  254. iItemFocus : word;
  255. coffPresParams : word;
  256. adlgti : array[0..0] of DLGTITEM;
  257. end;
  258. PDLGTEMPLATE = ^DLGTEMPLATE;
  259. BTNCDATA = record
  260. cb : word;
  261. fsCheckState : word;
  262. fsHiliteState : word;
  263. hImage : cardinal;
  264. end;
  265. PBTNCDATA = ^BTNCDATA;
  266. ENTRYFDATA = record
  267. cb : word;
  268. cchEditLimit : word;
  269. ichMinSel : word;
  270. ichMaxSel : word;
  271. end;
  272. PENTRYFDATA = ^ENTRYFDATA;
  273. MENUITEM = record
  274. iPosition : integer;
  275. afStyle : word;
  276. afAttribute : word;
  277. id : word;
  278. hwndSubMenu : cardinal;
  279. hItem : cardinal;
  280. end;
  281. PMENUITEM = ^MENUITEM;
  282. SBCDATA = record
  283. cb : word;
  284. sHilite : word;
  285. posFirst : integer;
  286. posLast : integer;
  287. posThumb : integer;
  288. cVisible : integer;
  289. cTotal : integer;
  290. end;
  291. PSBCDATA = ^SBCDATA;
  292. FRAMECDATA = record
  293. cb : word;
  294. flCreateFlags : cardinal;
  295. hmodResources : word;
  296. idResources : word;
  297. end;
  298. PFRAMECDATA = ^FRAMECDATA;
  299. ACCEL = record
  300. fs : word;
  301. key : word;
  302. cmd : word;
  303. end;
  304. PACCEL = ^ACCEL;
  305. ACCELTABLE = record
  306. cAccel : word;
  307. codepage : word;
  308. aaccel : array[0..1-1] of ACCEL;
  309. end;
  310. PACCELTABLE = ^ACCELTABLE;
  311. MFP = record
  312. sizeBounds : POINTL;
  313. sizeMM : POINTL;
  314. cbLength : cardinal;
  315. mapMode : word;
  316. reserved : word;
  317. abData : array[0..1-1] of BYTE;
  318. end;
  319. PMFP = ^MFP;
  320. CPTEXT = record
  321. idCountry : word;
  322. usCodepage : word;
  323. usLangID : word;
  324. usSubLangID : word;
  325. abText : array[0..1-1] of BYTE;
  326. end;
  327. PCPTEXT = ^CPTEXT;
  328. (* Type definitions for WinMessageBox2 *)
  329. MB2D = record
  330. achText: array [0..MaxMB2DText] of char;
  331. idButtons: cardinal;
  332. flStyle: cardinal;
  333. end;
  334. TMB2D = MB2D;
  335. PMB2D = ^TMB2D;
  336. MB2Info = record
  337. cb: cardinal; (* size of data *)
  338. hIcon: cardinal; (* icon handle *)
  339. cButtons: cardinal; (* number of buttons *)
  340. flStyle: cardinal; (* icon style flags *)
  341. hwndNotify: cardinal; (* owner notification handle *)
  342. MB2D: array [0..0] of TMB2D; (* button definitions *)
  343. end;
  344. TMB2Info = MB2Info;
  345. PMB2Info = ^TMB2Info;
  346. //***************************************************************************\
  347. //* FontRangeEntry
  348. //*
  349. //* ulRun = number of consecutive glyphs contained in the font
  350. //* ulSkip = number of consecutive glyphs skipped in the font,
  351. //* ulSkip == 0 --> Last FontRangeEntry in table
  352. //***************************************************************************/
  353. type
  354. FONTRANGEENTRY=record // fre
  355. ulRun: Cardinal;
  356. ulSkip: Cardinal;
  357. end;
  358. PFONTRANGEENTRY=^FONTRANGEENTRY;
  359. //***************************************************************************\
  360. //* FontCharDef
  361. //*
  362. //* ulGlyphOffset = offset to rendered character bitmap (0 from driver)
  363. //* sAspace = pre-character space
  364. //* sBspace = character width (always non-zero)
  365. //* sCspace = post-character space
  366. //***************************************************************************/
  367. type
  368. FONTCHARDEF=record // fcd
  369. ulGlyphOffset: Cardinal;
  370. sAspace: Integer;
  371. sBspace: Word;
  372. sCspace: integer;
  373. end;
  374. PFONTCHARDEF=^FONTCHARDEF;
  375. //***************************************************************************\
  376. //* FocaMetricsExtension
  377. //***************************************************************************/
  378. type
  379. FOCAMETRICSEXT=record // fme
  380. ulSize: Cardinal; // Total size of extension
  381. ulFlags: Cardinal; // Reserved, must be 0
  382. ulGlyphCount: Cardinal;
  383. ulDefaultIndex: Cardinal;
  384. ulRangeTableEntries: Cardinal;
  385. afreRangeTable: Array[1..1] of FONTRANGEENTRY;
  386. end;
  387. PFOCAMETRICSEXT=^FOCAMETRICSEXT;
  388. //**************************************************************************
  389. type
  390. FOCAMETRICS=record // foca
  391. ulIdentity: Cardinal;
  392. ulSize: Cardinal;
  393. szFamilyname: Array[1..32] of Char;
  394. szFacename: Array[1..32] of Char;
  395. usRegistryId: Integer;
  396. usCodePage: Integer;
  397. yEmHeight: Integer;
  398. yXHeight: Integer;
  399. yMaxAscender: Integer;
  400. yMaxDescender: Integer;
  401. yLowerCaseAscent: Integer;
  402. yLowerCaseDescent: Integer;
  403. yInternalLeading: Integer;
  404. yExternalLeading: Integer;
  405. xAveCharWidth: Integer;
  406. xMaxCharInc: Integer;
  407. xEmInc: Integer;
  408. yMaxBaselineExt: Integer;
  409. sCharSlope: Integer;
  410. sInlineDir: Integer;
  411. sCharRot: Integer;
  412. usWeightClass: Word;
  413. usWidthClass: Word;
  414. xDeviceRes: Integer;
  415. yDeviceRes: Integer;
  416. usFirstChar: Integer;
  417. usLastChar: Integer;
  418. usDefaultChar: Integer;
  419. usBreakChar: Integer;
  420. usNominalPointSize: Integer;
  421. usMinimumPointSize: Integer;
  422. usMaximumPointSize: Integer;
  423. fsTypeFlags: Integer;
  424. fsDefn: Integer;
  425. fsSelectionFlags: Integer;
  426. fsCapabilities: Integer;
  427. ySubscriptXSize: Integer;
  428. ySubscriptYSize: Integer;
  429. ySubscriptXOffset: Integer;
  430. ySubscriptYOffset: Integer;
  431. ySuperscriptXSize: Integer;
  432. ySuperscriptYSize: Integer;
  433. ySuperscriptXOffset: Integer;
  434. ySuperscriptYOffset: Integer;
  435. yUnderscoreSize: Integer;
  436. yUnderscorePosition: Integer;
  437. yStrikeoutSize: Integer;
  438. yStrikeoutPosition: Integer;
  439. usKerningPairs: Integer;
  440. sFamilyClass: Integer;
  441. pszDeviceNameOffset: PChar;
  442. end;
  443. PFOCAMETRICS=^FOCAMETRICS;
  444. // REUSE - long offset to extension relative to FocaMetrics
  445. {$define loffExtension:=pszDeviceNameOffset}
  446. type
  447. FONTFILEMETRICS=record // ffm
  448. ulIdentity: Cardinal;
  449. ulSize: Cardinal;
  450. szFamilyname: Array[0..32-1] of Char;
  451. szFacename: Array[0..32-1] of Char;
  452. usRegistryId: Integer;
  453. usCodePage: Integer;
  454. yEmHeight: Integer;
  455. yXHeight: Integer;
  456. yMaxAscender: Integer;
  457. yMaxDescender: Integer;
  458. yLowerCaseAscent: Integer;
  459. yLowerCaseDescent: Integer;
  460. yInternalLeading: Integer;
  461. yExternalLeading: Integer;
  462. xAveCharWidth: Integer;
  463. xMaxCharInc: Integer;
  464. xEmInc: Integer;
  465. yMaxBaselineExt: Integer;
  466. sCharSlope: Integer;
  467. sInlineDir: Integer;
  468. sCharRot: Integer;
  469. usWeightClass: Word;
  470. usWidthClass: Word;
  471. xDeviceRes: Integer;
  472. yDeviceRes: Integer;
  473. usFirstChar: Integer;
  474. usLastChar: Integer;
  475. usDefaultChar: Integer;
  476. usBreakChar: Integer;
  477. usNominalPointSize: Integer;
  478. usMinimumPointSize: Integer;
  479. usMaximumPointSize: Integer;
  480. fsTypeFlags: Integer;
  481. fsDefn: Integer;
  482. fsSelectionFlags: Integer;
  483. fsCapabilities: Integer;
  484. ySubscriptXSize: Integer;
  485. ySubscriptYSize: Integer;
  486. ySubscriptXOffset: Integer;
  487. ySubscriptYOffset: Integer;
  488. ySuperscriptXSize: Integer;
  489. ySuperscriptYSize: Integer;
  490. ySuperscriptXOffset: Integer;
  491. ySuperscriptYOffset: Integer;
  492. yUnderscoreSize: Integer;
  493. yUnderscorePosition: Integer;
  494. yStrikeoutSize: Integer;
  495. yStrikeoutPosition: Integer;
  496. usKerningPairs: Integer;
  497. sFamilyClass: Integer;
  498. ulReserved: Cardinal;
  499. anose: PANOSE;
  500. end;
  501. PFONTFILEMETRICS=^FONTFILEMETRICS;
  502. FONTDEFINITIONHEADER=record // fdh
  503. ulIdentity: Cardinal;
  504. ulSize: Cardinal;
  505. fsFontdef: Integer;
  506. fsChardef: Integer;
  507. usCellSize: Integer;
  508. xCellWidth: Integer;
  509. yCellHeight: Integer;
  510. xCellIncrement: Integer;
  511. xCellA: Integer;
  512. xCellB: Integer;
  513. xCellC: Integer;
  514. pCellBaseOffset: Integer;
  515. end;
  516. PFONTDEFINITIONHEADER=^FONTDEFINITIONHEADER;
  517. const
  518. FONTDEFFONT1 =$0047; // set width, height, inc. & base offset
  519. FONTDEFFONT2 =$0042; // set height & base offset
  520. FONTDEFFONT3 =$0042; // set height & base offset
  521. FONTDEFCHAR1 =$0081; // set char offset and width
  522. FONTDEFCHAR2 =$0081; // set char offset and width
  523. FONTDEFCHAR3 =$00b8; // set char offset, A, B, and C space
  524. SPACE_UNDEF =$8000; // space undefined = take default
  525. FONTDEFFOCA32 =$4000;
  526. FONTDEFDEVFONT =$2000; // Device or Downloadable font
  527. type
  528. FONTSIGNATURE=record // fs
  529. ulIdentity: Cardinal;
  530. ulSize: Cardinal;
  531. achSignature: Array[0..12-1] of Char;
  532. end;
  533. PFONTSIGNATURE=^FONTSIGNATURE;
  534. ADDITIONALMETRICS=record // am
  535. ulIdentity: Cardinal;
  536. ulSize: Cardinal;
  537. anose: PANOSE;
  538. end;
  539. PADDITIONALMETRICS=^ADDITIONALMETRICS;
  540. FOCAFONT=record // ff
  541. fsSignature: FONTSIGNATURE;
  542. fmMetrics: FOCAMETRICS;
  543. fdDefinitions: FONTDEFINITIONHEADER;
  544. end;
  545. PFOCAFONT=^FOCAFONT;
  546. const
  547. FONT_SIGNATURE =$fffffffe;// Identity header start
  548. FONT_METRICS =$00000001;// Identity metrics
  549. FONT_DEFINITION =$00000002;// Identity definition
  550. FONT_KERNPAIRS =$00000003;// Identity Kern Pairs
  551. FONT_ADDITIONALMETRICS =$00000004;// Identity Additional Metrics
  552. FONT_ENDRECORD =$ffffffff;// Identity record end
  553. type
  554. FOCAFONT32=FOCAFONT;
  555. PFOCAFONT32=^FOCAFONT32;
  556. // Options for QueryFonts
  557. const
  558. QUERY_PUBLIC_FONTS =$0001;
  559. QUERY_PRIVATE_FONTS =$0002;
  560. CDEF_GENERIC =$0001;
  561. CDEF_BOLD =$0002;
  562. CDEF_ITALIC =$0004;
  563. CDEF_UNDERSCORE =$0008;
  564. CDEF_STRIKEOUT =$0010;
  565. CDEF_OUTLINE =$0020;
  566. const
  567. //*************************************************************************
  568. //* MLE Window styles ( in addition to WS_* )
  569. //*************************************************************************/
  570. MLS_WORDWRAP = $00000001;
  571. MLS_BORDER = $00000002;
  572. MLS_VSCROLL = $00000004;
  573. MLS_HSCROLL = $00000008;
  574. MLS_READONLY = $00000010;
  575. MLS_IGNORETAB = $00000020;
  576. MLS_DISABLEUNDO = $00000040;
  577. MLS_LIMITVSCROLL = $00000080;
  578. //*************************************************************************
  579. //* MLE External Data Types
  580. //*************************************************************************/
  581. type
  582. IPT=Longint; // insertion point
  583. PIPT=^IPT; // insertion point
  584. PIX=Longint; // pixel
  585. LINE=Cardinal; // Line number
  586. FORMATRECT=record // MLEFRD
  587. cxFormat: Longint; // format rectangle width
  588. cyFormat: Longint; // format rectangle height
  589. end;
  590. PMLEFORMATRECT=^FORMATRECT;
  591. MLECTLDATA=record // MLECTL
  592. cbCtlData: Word; // Length of the MLECTLDATA structure
  593. afIEFormat: Word; // import/export format
  594. cchText: Cardinal; // text limit
  595. iptAnchor: IPT; // beginning of selection
  596. iptCursor: IPT; // ending of selection
  597. cxFormat: Longint; // format rectangle width
  598. cyFormat: Longint; // format rectangle height
  599. afFormatFlags: Cardinal; // formatting rectangle flags
  600. pHWXCtlData: Pointer; // reserved for Pen CtlData (penpm.h)
  601. end;
  602. PMLECTLDATA=^MLECTLDATA;
  603. //*************************************************************************
  604. //* afFormatFlags mask
  605. //*************************************************************************/
  606. const
  607. MLFFMTRECT_LIMITHORZ =$00000001;
  608. MLFFMTRECT_LIMITVERT =$00000002;
  609. MLFFMTRECT_MATCHWINDOW =$00000004;
  610. MLFFMTRECT_FORMATRECT =$00000007;
  611. //************************************************************************
  612. //* afIEFormat - Import/Export Format flags
  613. //************************************************************************
  614. MLFIE_CFTEXT = 0;
  615. MLFIE_NOTRANS = 1;
  616. MLFIE_WINFMT = 2;
  617. MLFIE_RTF = 3;
  618. //*************************************************************************
  619. //* MLE color types: MLM_QUERY(TEXT/BACK)COLOR, MLM_SET(TEXT/BACK)COLOR
  620. //*************************************************************************/
  621. MLE_INDEX = 0;
  622. MLE_RGB = 1;
  623. //*************************************************************************
  624. //* MLN_OVERFLOW structure
  625. //*************************************************************************/
  626. type
  627. MLEOVERFLOW=record // overflow
  628. afErrInd: Cardinal; // see mask below
  629. nBytesOver: Longint; // number of bytes overflowed
  630. pixHorzOver: Longint; // number of pixels horizontally overflow
  631. pixVertOver: Longint; // number of pixels vertically overflowed
  632. end;
  633. POVERFLOW=^MLEOVERFLOW;
  634. //*************************************************************************
  635. //* afErrInd - error format rectangle flags
  636. //*************************************************************************/
  637. const
  638. MLFEFR_RESIZE = $00000001;
  639. MLFEFR_TABSTOP = $00000002;
  640. MLFEFR_FONT = $00000004;
  641. MLFEFR_TEXT = $00000008;
  642. MLFEFR_WORDWRAP = $00000010;
  643. MLFETL_TEXTBYTES = $00000020;
  644. //*************************************************************************
  645. //* MLN_MARGIN structure
  646. //*************************************************************************/
  647. type
  648. MLEMARGSTRUCT=record // margin
  649. afMargins: Word; // margin indicator
  650. usMouMsg: Word; // mouse message
  651. iptNear: IPT; // the geometrically nearest insertion point
  652. end;
  653. PMARGSTRUCT=^MLEMARGSTRUCT;
  654. //*************************************************************************
  655. //* afFlags - margin notification indicators
  656. //*************************************************************************/
  657. const
  658. MLFMARGIN_LEFT =$0001;
  659. MLFMARGIN_BOTTOM =$0002;
  660. MLFMARGIN_RIGHT =$0003;
  661. MLFMARGIN_TOP =$0004;
  662. //*************************************************************************
  663. // MLM_QUERYSELECTION flags
  664. //************************************************************************/
  665. MLFQS_MINMAXSEL = 0;
  666. MLFQS_MINSEL = 1;
  667. MLFQS_MAXSEL = 2;
  668. MLFQS_ANCHORSEL = 3;
  669. MLFQS_CURSORSEL = 4;
  670. //*************************************************************************
  671. //* MLN_CLPBDFAIL flags
  672. //*************************************************************************/
  673. MLFCLPBD_TOOMUCHTEXT =$00000001;
  674. MLFCLPBD_ERROR =$00000002;
  675. //*************************************************************************
  676. //* MLM_SEARCH structure
  677. //*************************************************************************/
  678. type
  679. MLE_SEARCHDATA=record // search
  680. cb: Word; // size of search spec structure
  681. pchFind: PChar; // string to search for
  682. pchReplace: PChar; // string to replace with
  683. cchFind: Integer; // length of pchFindString
  684. cchReplace: Integer; // length of replace string
  685. iptStart: IPT; // point at which to start search
  686. // (negative indicates cursor pt)
  687. // becomes pt where string found
  688. iptStop: IPT; // point at which to stop search
  689. // (negative indicates EOT)
  690. cchFound: Word; // Length of found string at iptStart
  691. end;
  692. PMLE_SEARCHDATA=^MLE_SEARCHDATA;
  693. //*************************************************************************
  694. //* MLM_SEARCH style flags
  695. //*************************************************************************/
  696. const
  697. MLFSEARCH_CASESENSITIVE =$00000001;
  698. MLFSEARCH_SELECTMATCH =$00000002;
  699. MLFSEARCH_CHANGEALL =$00000004;
  700. //*************************************************************************
  701. //* MLE messages - MLM from 0x01b0 to 0x01de; MLN from 0x0001 to 0x000f
  702. //*************************************************************************/
  703. // formatting messages
  704. MLM_SETTEXTLIMIT =$01b0;
  705. MLM_QUERYTEXTLIMIT =$01b1;
  706. MLM_SETFORMATRECT =$01b2;
  707. MLM_QUERYFORMATRECT =$01b3;
  708. MLM_SETWRAP =$01b4;
  709. MLM_QUERYWRAP =$01b5;
  710. MLM_SETTABSTOP =$01b6;
  711. MLM_QUERYTABSTOP =$01b7;
  712. MLM_SETREADONLY =$01b8;
  713. MLM_QUERYREADONLY =$01b9;
  714. // text content manipulation and queries messages
  715. MLM_QUERYCHANGED =$01ba;
  716. MLM_SETCHANGED =$01bb;
  717. MLM_QUERYLINECOUNT =$01bc;
  718. MLM_CHARFROMLINE =$01bd;
  719. MLM_LINEFROMCHAR =$01be;
  720. MLM_QUERYLINELENGTH =$01bf;
  721. MLM_QUERYTEXTLENGTH =$01c0;
  722. // text import and export messages
  723. MLM_FORMAT =$01c1;
  724. MLM_SETIMPORTEXPORT =$01c2;
  725. MLM_IMPORT =$01c3;
  726. MLM_EXPORT =$01c4;
  727. MLM_DELETE =$01c6;
  728. MLM_QUERYFORMATLINELENGTH =$01c7;
  729. MLM_QUERYFORMATTEXTLENGTH =$01c8;
  730. MLM_INSERT =$01c9;
  731. // selection messages
  732. MLM_SETSEL =$01ca;
  733. MLM_QUERYSEL =$01cb;
  734. MLM_QUERYSELTEXT =$01cc;
  735. // undo and redo messages
  736. MLM_QUERYUNDO =$01cd;
  737. MLM_UNDO =$01ce;
  738. MLM_RESETUNDO =$01cf;
  739. // text attributes messages
  740. MLM_QUERYFONT =$01d0;
  741. MLM_SETFONT =$01d1;
  742. MLM_SETTEXTCOLOR =$01d2;
  743. MLM_QUERYTEXTCOLOR =$01d3;
  744. MLM_SETBACKCOLOR =$01d4;
  745. MLM_QUERYBACKCOLOR =$01d5;
  746. // scrolling messages
  747. MLM_QUERYFIRSTCHAR =$01d6;
  748. MLM_SETFIRSTCHAR =$01d7;
  749. // clipboard messages
  750. MLM_CUT =$01d8;
  751. MLM_COPY =$01d9;
  752. MLM_PASTE =$01da;
  753. MLM_CLEAR =$01db;
  754. // display manipulation messages
  755. MLM_ENABLEREFRESH =$01dc;
  756. MLM_DISABLEREFRESH =$01dd;
  757. // search message
  758. MLM_SEARCH =$01de;
  759. MLM_QUERYIMPORTEXPORT =$01df;
  760. // notification messages
  761. MLN_OVERFLOW =$0001;
  762. MLN_PIXHORZOVERFLOW =$0002;
  763. MLN_PIXVERTOVERFLOW =$0003;
  764. MLN_TEXTOVERFLOW =$0004;
  765. MLN_VSCROLL =$0005;
  766. MLN_HSCROLL =$0006;
  767. MLN_CHANGE =$0007;
  768. MLN_SETFOCUS =$0008;
  769. MLN_KILLFOCUS =$0009;
  770. MLN_MARGIN =$000a;
  771. MLN_SEARCHPAUSE =$000b;
  772. MLN_MEMERROR =$000c;
  773. MLN_UNDOOVERFLOW =$000d;
  774. MLN_CLPBDFAIL =$000f;
  775. const
  776. DTYP_USER =(16384);
  777. DTYP_CTL_ARRAY =(1);
  778. DTYP_CTL_PARRAY =(-1);
  779. DTYP_CTL_OFFSET =(2);
  780. DTYP_CTL_LENGTH =(3);
  781. //**********************************************************************/
  782. //* Ordinary datatypes */
  783. //**********************************************************************/
  784. DTYP_ACCEL =(28);
  785. DTYP_ACCELTABLE =(29);
  786. DTYP_ARCPARAMS =(38);
  787. DTYP_AREABUNDLE =(139);
  788. DTYP_ATOM =(90);
  789. DTYP_BITMAPINFO =(60);
  790. DTYP_BITMAPINFOHEADER =(61);
  791. DTYP_BITMAPINFO2 =(170);
  792. DTYP_BITMAPINFOHEADER2 =(171);
  793. DTYP_BIT16 =(20);
  794. DTYP_BIT32 =(21);
  795. DTYP_BIT8 =(19);
  796. DTYP_BOOL =(18);
  797. DTYP_BTNCDATA =(35);
  798. DTYP_BYTE =(13);
  799. DTYP_CATCHBUF =(141);
  800. DTYP_CHAR =(15);
  801. DTYP_CHARBUNDLE =(135);
  802. DTYP_CLASSINFO =(95);
  803. DTYP_COUNT2 =(93);
  804. DTYP_COUNT2B =(70);
  805. DTYP_COUNT2CH =(82);
  806. DTYP_COUNT4 =(152);
  807. DTYP_COUNT4B =(42);
  808. DTYP_CPID =(57);
  809. DTYP_CREATESTRUCT =(98);
  810. DTYP_CURSORINFO =(34);
  811. DTYP_DEVOPENSTRUC =(124);
  812. DTYP_DLGTEMPLATE =(96);
  813. DTYP_DLGTITEM =(97);
  814. DTYP_ENTRYFDATA =(127);
  815. DTYP_ERRORID =(45);
  816. DTYP_FATTRS =(75);
  817. DTYP_FFDESCS =(142);
  818. DTYP_FIXED =(99);
  819. DTYP_FONTMETRICS =(74);
  820. DTYP_FRAMECDATA =(144);
  821. DTYP_GRADIENTL =(48);
  822. DTYP_HAB =(10);
  823. DTYP_HACCEL =(30);
  824. DTYP_HAPP =(146);
  825. DTYP_HATOMTBL =(91);
  826. DTYP_HBITMAP =(62);
  827. DTYP_HCINFO =(46);
  828. DTYP_HDC =(132);
  829. DTYP_HENUM =(117);
  830. DTYP_HHEAP =(109);
  831. DTYP_HINI =(53);
  832. DTYP_HLIB =(147);
  833. DTYP_HMF =(85);
  834. DTYP_HMQ =(86);
  835. DTYP_HPOINTER =(106);
  836. DTYP_HPROGRAM =(131);
  837. DTYP_HPS =(12);
  838. DTYP_HRGN =(116);
  839. DTYP_HSEM =(140);
  840. DTYP_HSPL =(32);
  841. DTYP_HSWITCH =(66);
  842. DTYP_HVPS =(58);
  843. DTYP_HWND =(11);
  844. DTYP_IDENTITY =(133);
  845. DTYP_IDENTITY4 =(169);
  846. DTYP_IMAGEBUNDLE =(136);
  847. DTYP_INDEX2 =(81);
  848. DTYP_IPT =(155);
  849. DTYP_KERNINGPAIRS =(118);
  850. DTYP_LENGTH2 =(68);
  851. DTYP_LENGTH4 =(69);
  852. DTYP_LINEBUNDLE =(137);
  853. DTYP_LONG =(25);
  854. DTYP_MARKERBUNDLE =(138);
  855. DTYP_MATRIXLF =(113);
  856. DTYP_MLECTLDATA =(161);
  857. DTYP_MLEMARGSTRUCT =(157);
  858. DTYP_MLEOVERFLOW =(158);
  859. DTYP_OFFSET2B =(112);
  860. DTYP_OWNERITEM =(154);
  861. DTYP_PID =(92);
  862. DTYP_PIX =(156);
  863. DTYP_POINTERINFO =(105);
  864. DTYP_POINTL =(77);
  865. DTYP_PROGCATEGORY =(129);
  866. DTYP_PROGRAMENTRY =(128);
  867. DTYP_PROGTYPE =(130);
  868. DTYP_PROPERTY2 =(88);
  869. DTYP_PROPERTY4 =(89);
  870. DTYP_QMSG =(87);
  871. DTYP_RECTL =(121);
  872. DTYP_RESID =(125);
  873. DTYP_RGB =(111);
  874. DTYP_RGNRECT =(115);
  875. DTYP_SBCDATA =(159);
  876. DTYP_SEGOFF =(126);
  877. DTYP_SHORT =(23);
  878. DTYP_SIZEF =(101);
  879. DTYP_SIZEL =(102);
  880. DTYP_STRL =(17);
  881. DTYP_STR16 =(40);
  882. DTYP_STR32 =(37);
  883. DTYP_STR64 =(47);
  884. DTYP_STR8 =(33);
  885. DTYP_SWBLOCK =(63);
  886. DTYP_SWCNTRL =(64);
  887. DTYP_SWENTRY =(65);
  888. DTYP_SWP =(31);
  889. DTYP_TID =(104);
  890. DTYP_TIME =(107);
  891. DTYP_TRACKINFO =(73);
  892. DTYP_UCHAR =(22);
  893. DTYP_ULONG =(26);
  894. DTYP_USERBUTTON =(36);
  895. DTYP_USHORT =(24);
  896. DTYP_WIDTH4 =(108);
  897. DTYP_WNDPARAMS =(83);
  898. DTYP_WNDPROC =(84);
  899. DTYP_WPOINT =(59);
  900. DTYP_WRECT =(55);
  901. DTYP_XYWINSIZE =(52);
  902. //**********************************************************************/
  903. //* Pointer datatypes */
  904. //**********************************************************************/
  905. DTYP_PACCEL =(-28);
  906. DTYP_PACCELTABLE =(-29);
  907. DTYP_PARCPARAMS =(-38);
  908. DTYP_PAREABUNDLE =(-139);
  909. DTYP_PATOM =(-90);
  910. DTYP_PBITMAPINFO =(-60);
  911. DTYP_PBITMAPINFOHEADER =(-61);
  912. DTYP_PBITMAPINFO2 =(-170);
  913. DTYP_PBITMAPINFOHEADER2=(-171);
  914. DTYP_PBIT16 =(-20);
  915. DTYP_PBIT32 =(-21);
  916. DTYP_PBIT8 =(-19);
  917. DTYP_PBOOL =(-18);
  918. DTYP_PBTNCDATA =(-35);
  919. DTYP_PBYTE =(-13);
  920. DTYP_PCATCHBUF =(-141);
  921. DTYP_PCHAR =(-15);
  922. DTYP_PCHARBUNDLE =(-135);
  923. DTYP_PCLASSINFO =(-95);
  924. DTYP_PCOUNT2 =(-93);
  925. DTYP_PCOUNT2B =(-70);
  926. DTYP_PCOUNT2CH =(-82);
  927. DTYP_PCOUNT4 =(-152);
  928. DTYP_PCOUNT4B =(-42);
  929. DTYP_PCPID =(-57);
  930. DTYP_PCREATESTRUCT =(-98);
  931. DTYP_PCURSORINFO =(-34);
  932. DTYP_PDEVOPENSTRUC =(-124);
  933. DTYP_PDLGTEMPLATE =(-96);
  934. DTYP_PDLGTITEM =(-97);
  935. DTYP_PENTRYFDATA =(-127);
  936. DTYP_PERRORID =(-45);
  937. DTYP_PFATTRS =(-75);
  938. DTYP_PFFDESCS =(-142);
  939. DTYP_PFIXED =(-99);
  940. DTYP_PFONTMETRICS =(-74);
  941. DTYP_PFRAMECDATA =(-144);
  942. DTYP_PGRADIENTL =(-48);
  943. DTYP_PHAB =(-10);
  944. DTYP_PHACCEL =(-30);
  945. DTYP_PHAPP =(-146);
  946. DTYP_PHATOMTBL =(-91);
  947. DTYP_PHBITMAP =(-62);
  948. DTYP_PHCINFO =(-46);
  949. DTYP_PHDC =(-132);
  950. DTYP_PHENUM =(-117);
  951. DTYP_PHHEAP =(-109);
  952. DTYP_PHINI =(-53);
  953. DTYP_PHLIB =(-147);
  954. DTYP_PHMF =(-85);
  955. DTYP_PHMQ =(-86);
  956. DTYP_PHPOINTER =(-106);
  957. DTYP_PHPROGRAM =(-131);
  958. DTYP_PHPS =(-12);
  959. DTYP_PHRGN =(-116);
  960. DTYP_PHSEM =(-140);
  961. DTYP_PHSPL =(-32);
  962. DTYP_PHSWITCH =(-66);
  963. DTYP_PHVPS =(-58);
  964. DTYP_PHWND =(-11);
  965. DTYP_PIDENTITY =(-133);
  966. DTYP_PIDENTITY4 =(-169);
  967. DTYP_PIMAGEBUNDLE =(-136);
  968. DTYP_PINDEX2 =(-81);
  969. DTYP_PIPT =(-155);
  970. DTYP_PKERNINGPAIRS =(-118);
  971. DTYP_PLENGTH2 =(-68);
  972. DTYP_PLENGTH4 =(-69);
  973. DTYP_PLINEBUNDLE =(-137);
  974. DTYP_PLONG =(-25);
  975. DTYP_PMARKERBUNDLE =(-138);
  976. DTYP_PMATRIXLF =(-113);
  977. DTYP_PMLECTLDATA =(-161);
  978. DTYP_PMLEMARGSTRUCT =(-157);
  979. DTYP_PMLEOVERFLOW =(-158);
  980. DTYP_POFFSET2B =(-112);
  981. DTYP_POWNERITEM =(-154);
  982. DTYP_PPID =(-92);
  983. DTYP_PPIX =(-156);
  984. DTYP_PPOINTERINFO =(-105);
  985. DTYP_PPOINTL =(-77);
  986. DTYP_PPROGCATEGORY =(-129);
  987. DTYP_PPROGRAMENTRY =(-128);
  988. DTYP_PPROGTYPE =(-130);
  989. DTYP_PPROPERTY2 =(-88);
  990. DTYP_PPROPERTY4 =(-89);
  991. DTYP_PQMSG =(-87);
  992. DTYP_PRECTL =(-121);
  993. DTYP_PRESID =(-125);
  994. DTYP_PRGB =(-111);
  995. DTYP_PRGNRECT =(-115);
  996. DTYP_PSBCDATA =(-159);
  997. DTYP_PSEGOFF =(-126);
  998. DTYP_PSHORT =(-23);
  999. DTYP_PSIZEF =(-101);
  1000. DTYP_PSIZEL =(-102);
  1001. DTYP_PSTRL =(-17);
  1002. DTYP_PSTR16 =(-40);
  1003. DTYP_PSTR32 =(-37);
  1004. DTYP_PSTR64 =(-47);
  1005. DTYP_PSTR8 =(-33);
  1006. DTYP_PSWBLOCK =(-63);
  1007. DTYP_PSWCNTRL =(-64);
  1008. DTYP_PSWENTRY =(-65);
  1009. DTYP_PSWP =(-31);
  1010. DTYP_PTID =(-104);
  1011. DTYP_PTIME =(-107);
  1012. DTYP_PTRACKINFO =(-73);
  1013. DTYP_PUCHAR =(-22);
  1014. DTYP_PULONG =(-26);
  1015. DTYP_PUSERBUTTON =(-36);
  1016. DTYP_PUSHORT =(-24);
  1017. DTYP_PWIDTH4 =(-108);
  1018. DTYP_PWNDPARAMS =(-83);
  1019. DTYP_PWNDPROC =(-84);
  1020. DTYP_PWPOINT =(-59);
  1021. DTYP_PWRECT =(-55);
  1022. DTYP_PXYWINSIZE =(-52);
  1023. {$PACKRECORDS NORMAL}
  1024. {Names beginning with T for compatibility}
  1025. type
  1026. TQVERSDATA = QVERSDATA;
  1027. TSWP = SWP;
  1028. TCREATESTRUCT = CREATESTRUCT;
  1029. TCLASSINFO = CLASSINFO;
  1030. TQMSG = QMSG;
  1031. TMQINFO = MQINFO;
  1032. TWNDPARAMS = WNDPARAMS;
  1033. TUSERBUTTON = USERBUTTON;
  1034. TOWNERITEM = OWNERITEM;
  1035. TPARAM = PARAM;
  1036. TPRESPARAMS = PRESPARAMS;
  1037. TTRACKINFO = TRACKINFO;
  1038. TCURSORINFO = CURSORINFO;
  1039. TPOINTERINFO = POINTERINFO;
  1040. TSMHSTRUCT = SMHSTRUCT;
  1041. TERRINFO = ERRINFO;
  1042. TCONVCONTEXT = CONVCONTEXT;
  1043. TDDEINIT = DDEINIT;
  1044. TDDESTRUCT = DDESTRUCT;
  1045. TDESKTOP = DESKTOP;
  1046. TCMDMSG = CMDMSG;
  1047. TMSEMSG = MSEMSG;
  1048. TCHRMSG = CHRMSG;
  1049. TDLGTITEM = DLGTITEM;
  1050. TDLGTEMPLATE = DLGTEMPLATE;
  1051. TBTNCDATA = BTNCDATA;
  1052. TENTRYFDATA = ENTRYFDATA;
  1053. TMENUITEM = MENUITEM;
  1054. TSBCDATA = SBCDATA;
  1055. TFRAMECDATA = FRAMECDATA;
  1056. TACCEL = ACCEL;
  1057. TACCELTABLE = ACCELTABLE;
  1058. TMPF = MFP;
  1059. TCPTEXT = CPTEXT;
  1060. const
  1061. WS_VISIBLE = $80000000;
  1062. WS_DISABLED = $40000000;
  1063. WS_CLIPCHILDREN = $20000000;
  1064. WS_CLIPSIBLINGS = $10000000;
  1065. WS_PARENTCLIP = $08000000;
  1066. WS_SAVEBITS = $04000000;
  1067. WS_SYNCPAINT = $02000000;
  1068. WS_MINIMIZED = $01000000;
  1069. WS_MAXIMIZED = $00800000;
  1070. WS_ANIMATE = $00400000;
  1071. WS_GROUP = $00010000;
  1072. WS_TABSTOP = $00020000;
  1073. WS_MULTISELECT = $00040000;
  1074. CS_MOVENOTIFY = $00000001;
  1075. CS_SIZEREDRAW = $00000004;
  1076. CS_HITTEST = $00000008;
  1077. CS_PUBLIC = $00000010;
  1078. CS_FRAME = $00000020;
  1079. CS_CLIPCHILDREN = $20000000;
  1080. CS_CLIPSIBLINGS = $10000000;
  1081. CS_PARENTCLIP = $08000000;
  1082. CS_SAVEBITS = $04000000;
  1083. CS_SYNCPAINT = $02000000;
  1084. HWND_DESKTOP = 1;
  1085. HWND_OBJECT = 2;
  1086. HWND_TOP = 3;
  1087. HWND_BOTTOM = 4;
  1088. HWND_THREADCAPTURE = 5;
  1089. PSF_LOCKWINDOWUPDATE = $0001;
  1090. PSF_CLIPUPWARDS = $0002;
  1091. PSF_CLIPDOWNWARDS = $0004;
  1092. PSF_CLIPSIBLINGS = $0008;
  1093. PSF_CLIPCHILDREN = $0010;
  1094. PSF_PARENTCLIP = $0020;
  1095. SW_SCROLLCHILDREN = $0001;
  1096. SW_INVALIDATERGN = $0002;
  1097. QV_OS2 = $0000;
  1098. QV_CMS = $0001;
  1099. QV_TSO = $0002;
  1100. QV_TSOBATCH = $0003;
  1101. QV_OS400 = $0004;
  1102. QW_NEXT = 0;
  1103. QW_PREV = 1;
  1104. QW_TOP = 2;
  1105. QW_BOTTOM = 3;
  1106. QW_OWNER = 4;
  1107. QW_PARENT = 5;
  1108. QW_NEXTTOP = 6;
  1109. QW_PREVTOP = 7;
  1110. QW_FRAMEOWNER = 8;
  1111. AWP_MINIMIZED = $00010000;
  1112. AWP_MAXIMIZED = $00020000;
  1113. AWP_RESTORED = $00040000;
  1114. AWP_ACTIVATE = $00080000;
  1115. AWP_DEACTIVATE = $00100000;
  1116. SWP_SIZE = $0001;
  1117. SWP_MOVE = $0002;
  1118. SWP_ZORDER = $0004;
  1119. SWP_SHOW = $0008;
  1120. SWP_HIDE = $0010;
  1121. SWP_NOREDRAW = $0020;
  1122. SWP_NOADJUST = $0040;
  1123. SWP_ACTIVATE = $0080;
  1124. SWP_DEACTIVATE = $0100;
  1125. SWP_EXTSTATECHANGE = $0200;
  1126. SWP_MINIMIZE = $0400;
  1127. SWP_MAXIMIZE = $0800;
  1128. SWP_RESTORE = $1000;
  1129. SWP_FOCUSACTIVATE = $2000;
  1130. SWP_FOCUSDEACTIVATE = $4000;
  1131. SWP_NOAUTOCLOSE = $8000;
  1132. DBM_NORMAL = $0000;
  1133. DBM_INVERT = $0001;
  1134. DBM_HALFTONE = $0002;
  1135. DBM_STRETCH = $0004;
  1136. DBM_IMAGEATTRS = $0008;
  1137. DT_LEFT = $0000;
  1138. DT_QUERYEXTENT = $0002;
  1139. DT_UNDERSCORE = $0010;
  1140. DT_STRIKEOUT = $0020;
  1141. DT_TEXTATTRS = $0040;
  1142. DT_EXTERNALLEADING = $0080;
  1143. DT_CENTER = $0100;
  1144. DT_RIGHT = $0200;
  1145. DT_TOP = $0000;
  1146. DT_VCENTER = $0400;
  1147. DT_BOTTOM = $0800;
  1148. DT_HALFTONE = $1000;
  1149. DT_MNEMONIC = $2000;
  1150. DT_WORDBREAK = $4000;
  1151. DT_ERASERECT = $8000;
  1152. DB_PATCOPY = $0000;
  1153. DB_PATINVERT = $0001;
  1154. DB_DESTINVERT = $0002;
  1155. DB_AREAMIXMODE = $0003;
  1156. DB_ROP = $0007;
  1157. DB_INTERIOR = $0008;
  1158. DB_AREAATTRS = $0010;
  1159. DB_STANDARD = $0100;
  1160. DB_DLGBORDER = $0200;
  1161. QWS_USER = 0;
  1162. QWS_ID = -1;
  1163. QWS_MIN = -1;
  1164. QWL_USER = 0;
  1165. QWL_STYLE = -2;
  1166. QWP_PFNWP = -3;
  1167. QWL_HMQ = -4;
  1168. QWL_RESERVED = -5;
  1169. QWL_MIN = -6;
  1170. QWL_HHEAP = $0004;
  1171. QWL_HWNDFOCUSSAVE = $0018;
  1172. QWL_DEFBUTTON = $0040;
  1173. QWL_PSSCBLK = $0048;
  1174. QWL_PFEPBLK = $004c;
  1175. QWL_PSTATBLK = $0050;
  1176. QWS_FLAGS = $0008;
  1177. QWS_RESULT = $000a;
  1178. QWS_XRESTORE = $000c;
  1179. QWS_YRESTORE = $000e;
  1180. QWS_CXRESTORE = $0010;
  1181. QWS_CYRESTORE = $0012;
  1182. QWS_XMINIMIZE = $0014;
  1183. QWS_YMINIMIZE = $0016;
  1184. WM_NULL = $0000;
  1185. WM_CREATE = $0001;
  1186. WM_DESTROY = $0002;
  1187. WM_ENABLE = $0004;
  1188. WM_SHOW = $0005;
  1189. WM_MOVE = $0006;
  1190. WM_SIZE = $0007;
  1191. WM_ADJUSTWINDOWPOS = $0008;
  1192. WM_CALCVALIDRECTS = $0009;
  1193. WM_SETWINDOWPARAMS = $000a;
  1194. WM_QUERYWINDOWPARAMS = $000b;
  1195. WM_HITTEST = $000c;
  1196. WM_ACTIVATE = $000d;
  1197. WM_SETFOCUS = $000f;
  1198. WM_SETSELECTION = $0010;
  1199. WM_PPAINT = $0011;
  1200. WM_PSETFOCUS = $0012;
  1201. WM_PSYSCOLORCHANGE = $0013;
  1202. WM_PSIZE = $0014;
  1203. WM_PACTIVATE = $0015;
  1204. WM_PCONTROL = $0016;
  1205. WM_COMMAND = $0020;
  1206. WM_SYSCOMMAND = $0021;
  1207. WM_HELP = $0022;
  1208. WM_PAINT = $0023;
  1209. WM_TIMER = $0024;
  1210. WM_SEM1 = $0025;
  1211. WM_SEM2 = $0026;
  1212. WM_SEM3 = $0027;
  1213. WM_SEM4 = $0028;
  1214. WM_CLOSE = $0029;
  1215. WM_QUIT = $002a;
  1216. WM_SYSCOLORCHANGE = $002b;
  1217. WM_SYSVALUECHANGED = $002d;
  1218. WM_APPTERMINATENOTIFY = $002e;
  1219. WM_PRESPARAMCHANGED = $002f;
  1220. WM_CONTROL = $0030;
  1221. WM_VSCROLL = $0031;
  1222. WM_HSCROLL = $0032;
  1223. WM_INITMENU = $0033;
  1224. WM_MENUSELECT = $0034;
  1225. WM_MENUEND = $0035;
  1226. WM_DRAWITEM = $0036;
  1227. WM_MEASUREITEM = $0037;
  1228. WM_CONTROLPOINTER = $0038;
  1229. WM_QUERYDLGCODE = $003a;
  1230. WM_INITDLG = $003b;
  1231. WM_SUBSTITUTESTRING = $003c;
  1232. WM_MATCHMNEMONIC = $003d;
  1233. WM_SAVEAPPLICATION = $003e;
  1234. WM_HELPBASE = $0F00;
  1235. WM_HELPTOP = $0FFF;
  1236. WM_USER = $1000;
  1237. CMDSRC_PUSHBUTTON = 1;
  1238. CMDSRC_MENU = 2;
  1239. CMDSRC_ACCELERATOR = 3;
  1240. CMDSRC_FONTDLG = 4;
  1241. CMDSRC_FILEDLG = 5;
  1242. CMDSRC_PRINTDLG = 6;
  1243. CMDSRC_COLORDLG = 7;
  1244. CMDSRC_OTHER = 0;
  1245. PM_REMOVE = $0001;
  1246. PM_NOREMOVE = $0000;
  1247. RUM_IN = 1;
  1248. RUM_OUT = 2;
  1249. RUM_INOUT = 3;
  1250. SMD_DELAYED = $0001;
  1251. SMD_IMMEDIATE = $0002;
  1252. SSM_SYNCHRONOUS = $0001;
  1253. SSM_ASYNCHRONOUS = $0002;
  1254. SSM_MIXED = $0003;
  1255. CVR_ALIGNLEFT = $0001;
  1256. CVR_ALIGNBOTTOM = $0002;
  1257. CVR_ALIGNRIGHT = $0004;
  1258. CVR_ALIGNTOP = $0008;
  1259. CVR_REDRAW = $0010;
  1260. HT_NORMAL = 0;
  1261. HT_TRANSPARENT = (-1);
  1262. HT_DISCARD = (-2);
  1263. HT_ERROR = (-3);
  1264. WPM_TEXT = $0001;
  1265. WPM_CTLDATA = $0002;
  1266. WPM_PRESPARAMS = $0004;
  1267. WPM_CCHTEXT = $0008;
  1268. WPM_CBCTLDATA = $0010;
  1269. WPM_CBPRESPARAMS = $0020;
  1270. BMSG_POST = $0000;
  1271. BMSG_SEND = $0001;
  1272. BMSG_POSTQUEUE = $0002;
  1273. BMSG_DESCENDANTS = $0004;
  1274. BMSG_FRAMEONLY = $0008;
  1275. QS_KEY = $0001;
  1276. QS_MOUSEBUTTON = $0002;
  1277. QS_MOUSEMOVE = $0004;
  1278. QS_MOUSE = $0006;
  1279. QS_TIMER = $0008;
  1280. QS_PAINT = $0010;
  1281. QS_POSTMSG = $0020;
  1282. QS_SEM1 = $0040;
  1283. QS_SEM2 = $0080;
  1284. QS_SEM3 = $0100;
  1285. QS_SEM4 = $0200;
  1286. QS_SENDMSG = $0400;
  1287. SMIM_ALL = $0EFF;
  1288. SMI_NOINTEREST = $0001;
  1289. SMI_INTEREST = $0002;
  1290. SMI_RESET = $0004;
  1291. SMI_AUTODISPATCH = $0008;
  1292. FC_NOSETFOCUS = $0001;
  1293. FC_NOBRINGTOTOP = FC_NOSETFOCUS;
  1294. FC_NOLOSEFOCUS = $0002;
  1295. FC_NOBRINGTOPFIRSTWINDOW = FC_NOLOSEFOCUS;
  1296. FC_NOSETACTIVE = $0004;
  1297. FC_NOLOSEACTIVE = $0008;
  1298. FC_NOSETSELECTION = $0010;
  1299. FC_NOLOSESELECTION = $0020;
  1300. QFC_NEXTINCHAIN = $0001;
  1301. QFC_ACTIVE = $0002;
  1302. QFC_FRAME = $0003;
  1303. QFC_SELECTACTIVE = $0004;
  1304. QFC_PARTOFCHAIN = $0005;
  1305. WM_MOUSEFIRST = $0070;
  1306. WM_MOUSELAST = $0079;
  1307. WM_BUTTONCLICKFIRST = $0071;
  1308. WM_BUTTONCLICKLAST = $0079;
  1309. WM_MOUSEMOVE = $0070;
  1310. WM_BUTTON1DOWN = $0071;
  1311. WM_BUTTON1UP = $0072;
  1312. WM_BUTTON1DBLCLK = $0073;
  1313. WM_BUTTON2DOWN = $0074;
  1314. WM_BUTTON2UP = $0075;
  1315. WM_BUTTON2DBLCLK = $0076;
  1316. WM_BUTTON3DOWN = $0077;
  1317. WM_BUTTON3UP = $0078;
  1318. WM_BUTTON3DBLCLK = $0079;
  1319. WM_EXTMOUSEFIRST = $0410;
  1320. WM_EXTMOUSELAST = $0419;
  1321. WM_CHORD = $0410;
  1322. WM_BUTTON1MOTIONSTART = $0411;
  1323. WM_BUTTON1MOTIONEND = $0412;
  1324. WM_BUTTON1CLICK = $0413;
  1325. WM_BUTTON2MOTIONSTART = $0414;
  1326. WM_BUTTON2MOTIONEND = $0415;
  1327. WM_BUTTON2CLICK = $0416;
  1328. WM_BUTTON3MOTIONSTART = $0417;
  1329. WM_BUTTON3MOTIONEND = $0418;
  1330. WM_BUTTON3CLICK = $0419;
  1331. WM_MOUSETRANSLATEFIRST = $0420;
  1332. WM_MOUSETRANSLATELAST = $0428;
  1333. WM_BEGINDRAG = $0420;
  1334. WM_ENDDRAG = $0421;
  1335. WM_SINGLESELECT = $0422;
  1336. WM_OPEN = $0423;
  1337. WM_CONTEXTMENU = $0424;
  1338. WM_CONTEXTHELP = $0425;
  1339. WM_TEXTEDIT = $0426;
  1340. WM_BEGINSELECT = $0427;
  1341. WM_ENDSELECT = $0428;
  1342. WM_CHAR = $007a;
  1343. WM_VIOCHAR = $007b;
  1344. KC_NONE = $0000;
  1345. KC_CHAR = $0001;
  1346. KC_VIRTUALKEY = $0002;
  1347. KC_SCANCODE = $0004;
  1348. KC_SHIFT = $0008;
  1349. KC_CTRL = $0010;
  1350. KC_ALT = $0020;
  1351. KC_KEYUP = $0040;
  1352. KC_PREVDOWN = $0080;
  1353. KC_LONEKEY = $0100;
  1354. KC_DEADKEY = $0200;
  1355. KC_COMPOSITE = $0400;
  1356. KC_INVALIDCOMP = $0800;
  1357. KC_TOGGLE = $1000;
  1358. KC_INVALIDCHAR = $2000;
  1359. KC_DBCSRSRVD1 = $4000;
  1360. KC_DBCSRSRVD2 = $8000;
  1361. INP_NONE = $0000;
  1362. INP_KBD = $0001;
  1363. INP_MULT = $0002;
  1364. INP_RES2 = $0004;
  1365. INP_SHIFT = $0008;
  1366. INP_CTRL = $0010;
  1367. INP_ALT = $0020;
  1368. INP_RES3 = $0040;
  1369. INP_RES4 = $0080;
  1370. INP_IGNORE = $FFFF;
  1371. VK_BUTTON1 = $01;
  1372. VK_BUTTON2 = $02;
  1373. VK_BUTTON3 = $03;
  1374. VK_BREAK = $04;
  1375. VK_BACKSPACE = $05;
  1376. VK_TAB = $06;
  1377. VK_BACKTAB = $07;
  1378. VK_NEWLINE = $08;
  1379. VK_SHIFT = $09;
  1380. VK_CTRL = $0A;
  1381. VK_ALT = $0B;
  1382. VK_ALTGRAF = $0C;
  1383. VK_PAUSE = $0D;
  1384. VK_CAPSLOCK = $0E;
  1385. VK_ESC = $0F;
  1386. VK_SPACE = $10;
  1387. VK_PAGEUP = $11;
  1388. VK_PAGEDOWN = $12;
  1389. VK_END = $13;
  1390. VK_HOME = $14;
  1391. VK_LEFT = $15;
  1392. VK_UP = $16;
  1393. VK_RIGHT = $17;
  1394. VK_DOWN = $18;
  1395. VK_PRINTSCRN = $19;
  1396. VK_INSERT = $1A;
  1397. VK_DELETE = $1B;
  1398. VK_SCRLLOCK = $1C;
  1399. VK_NUMLOCK = $1D;
  1400. VK_ENTER = $1E;
  1401. VK_SYSRQ = $1F;
  1402. VK_F1 = $20;
  1403. VK_F2 = $21;
  1404. VK_F3 = $22;
  1405. VK_F4 = $23;
  1406. VK_F5 = $24;
  1407. VK_F6 = $25;
  1408. VK_F7 = $26;
  1409. VK_F8 = $27;
  1410. VK_F9 = $28;
  1411. VK_F10 = $29;
  1412. VK_F11 = $2A;
  1413. VK_F12 = $2B;
  1414. VK_F13 = $2C;
  1415. VK_F14 = $2D;
  1416. VK_F15 = $2E;
  1417. VK_F16 = $2F;
  1418. VK_F17 = $30;
  1419. VK_F18 = $31;
  1420. VK_F19 = $32;
  1421. VK_F20 = $33;
  1422. VK_F21 = $34;
  1423. VK_F22 = $35;
  1424. VK_F23 = $36;
  1425. VK_F24 = $37;
  1426. VK_ENDDRAG = $38;
  1427. VK_MENU = VK_F10;
  1428. VK_DBCSFIRST = $0080;
  1429. VK_DBCSLAST = $00ff;
  1430. VK_USERFIRST = $0100;
  1431. VK_USERLAST = $01ff;
  1432. WM_JOURNALNOTIFY = $007c;
  1433. JRN_QUEUESTATUS = $00000001;
  1434. JRN_PHYSKEYSTATE = $00000002;
  1435. DID_OK = 1;
  1436. DID_CANCEL = 2;
  1437. DID_ERROR = $ffff;
  1438. WA_WARNING = 0;
  1439. WA_NOTE = 1;
  1440. WA_ERROR = 2;
  1441. WA_CWINALARMS = 3;
  1442. MB_OK = $0000;
  1443. MB_OKCANCEL = $0001;
  1444. MB_RETRYCANCEL = $0002;
  1445. MB_ABORTRETRYIGNORE = $0003;
  1446. MB_YESNO = $0004;
  1447. MB_YESNOCANCEL = $0005;
  1448. MB_CANCEL = $0006;
  1449. MB_ENTER = $0007;
  1450. MB_ENTERCANCEL = $0008;
  1451. MB_NOICON = $0000;
  1452. MB_CUANOTIFICATION = $0000;
  1453. MB_ICONQUESTION = $0010;
  1454. MB_ICONEXCLAMATION = $0020;
  1455. MB_CUAWARNING = $0020;
  1456. MB_ICONASTERISK = $0030;
  1457. MB_ICONHAND = $0040;
  1458. MB_CUACRITICAL = $0040;
  1459. MB_QUERY = MB_ICONQUESTION;
  1460. MB_WARNING = MB_CUAWARNING;
  1461. MB_INFORMATION = MB_ICONASTERISK;
  1462. MB_CRITICAL = MB_CUACRITICAL;
  1463. MB_ERROR = MB_CRITICAL;
  1464. MB_DEFBUTTON1 = $0000;
  1465. MB_DEFBUTTON2 = $0100;
  1466. MB_DEFBUTTON3 = $0200;
  1467. MB_APPLMODAL = $0000;
  1468. MB_SYSTEMMODAL = $1000;
  1469. MB_HELP = $2000;
  1470. MB_MOVEABLE = $4000;
  1471. MBID_OK = 1;
  1472. MBID_CANCEL = 2;
  1473. MBID_ABORT = 3;
  1474. MBID_RETRY = 4;
  1475. MBID_IGNORE = 5;
  1476. MBID_YES = 6;
  1477. MBID_NO = 7;
  1478. MBID_HELP = 8;
  1479. MBID_ENTER = 9;
  1480. MBID_ERROR = $ffff;
  1481. DLGC_ENTRYFIELD = $0001;
  1482. DLGC_BUTTON = $0002;
  1483. DLGC_RADIOBUTTON = $0004;
  1484. DLGC_STATIC = $0008;
  1485. DLGC_DEFAULT = $0010;
  1486. DLGC_PUSHBUTTON = $0020;
  1487. DLGC_CHECKBOX = $0040;
  1488. DLGC_SCROLLBAR = $0080;
  1489. DLGC_MENU = $0100;
  1490. DLGC_TABONCLICK = $0200;
  1491. DLGC_MLE = $0400;
  1492. EDI_FIRSTTABITEM = 0;
  1493. EDI_LASTTABITEM = 1;
  1494. EDI_NEXTTABITEM = 2;
  1495. EDI_PREVTABITEM = 3;
  1496. EDI_FIRSTGROUPITEM = 4;
  1497. EDI_LASTGROUPITEM = 5;
  1498. EDI_NEXTGROUPITEM = 6;
  1499. EDI_PREVGROUPITEM = 7;
  1500. SS_TEXT = $0001;
  1501. SS_GROUPBOX = $0002;
  1502. SS_ICON = $0003;
  1503. SS_BITMAP = $0004;
  1504. SS_FGNDRECT = $0005;
  1505. SS_HALFTONERECT = $0006;
  1506. SS_BKGNDRECT = $0007;
  1507. SS_FGNDFRAME = $0008;
  1508. SS_HALFTONEFRAME = $0009;
  1509. SS_BKGNDFRAME = $000a;
  1510. SS_SYSICON = $000b;
  1511. SS_AUTOSIZE = $0040;
  1512. SM_SETHANDLE = $0100;
  1513. SM_QUERYHANDLE = $0101;
  1514. BS_PUSHBUTTON = 0;
  1515. BS_CHECKBOX = 1;
  1516. BS_AUTOCHECKBOX = 2;
  1517. BS_RADIOBUTTON = 3;
  1518. BS_AUTORADIOBUTTON = 4;
  1519. BS_3STATE = 5;
  1520. BS_AUTO3STATE = 6;
  1521. BS_USERBUTTON = 7;
  1522. BS_PRIMARYSTYLES = $000f;
  1523. BS_BITMAP = $0040;
  1524. BS_ICON = $0080;
  1525. BS_HELP = $0100;
  1526. BS_SYSCOMMAND = $0200;
  1527. BS_DEFAULT = $0400;
  1528. BS_NOPOINTERFOCUS = $0800;
  1529. BS_NOBORDER = $1000;
  1530. BS_NOCURSORSELECT = $2000;
  1531. BS_AUTOSIZE = $4000;
  1532. BM_CLICK = $0120;
  1533. BM_QUERYCHECKINDEX = $0121;
  1534. BM_QUERYHILITE = $0122;
  1535. BM_SETHILITE = $0123;
  1536. BM_QUERYCHECK = $0124;
  1537. BM_SETCHECK = $0125;
  1538. BM_SETDEFAULT = $0126;
  1539. BN_CLICKED = 1;
  1540. BN_DBLCLICKED = 2;
  1541. BN_PAINT = 3;
  1542. BDS_HILITED = $0100;
  1543. BDS_DISABLED = $0200;
  1544. BDS_DEFAULT = $0400;
  1545. ES_LEFT = $00000000;
  1546. ES_CENTER = $00000001;
  1547. ES_RIGHT = $00000002;
  1548. ES_AUTOSCROLL = $00000004;
  1549. ES_MARGIN = $00000008;
  1550. ES_AUTOTAB = $00000010;
  1551. ES_READONLY = $00000020;
  1552. ES_COMMAND = $00000040;
  1553. ES_UNREADABLE = $00000080;
  1554. ES_AUTOSIZE = $00000200;
  1555. ES_ANY = $00000000;
  1556. ES_SBCS = $00001000;
  1557. ES_DBCS = $00002000;
  1558. ES_MIXED = $00003000;
  1559. CBS_SIMPLE = $0001;
  1560. CBS_DROPDOWN = $0002;
  1561. CBS_DROPDOWNLIST = $0004;
  1562. CBS_COMPATIBLE = $0008;
  1563. CBID_LIST = $029A;
  1564. CBID_EDIT = $029B;
  1565. CBM_SHOWLIST = $0170;
  1566. CBM_HILITE = $0171;
  1567. CBM_ISLISTSHOWING = $0172;
  1568. CBN_EFCHANGE = 1;
  1569. CBN_EFSCROLL = 2;
  1570. CBN_MEMERROR = 3;
  1571. CBN_LBSELECT = 4;
  1572. CBN_LBSCROLL = 5;
  1573. CBN_SHOWLIST = 6;
  1574. CBN_ENTER = 7;
  1575. EM_QUERYCHANGED = $0140;
  1576. EM_QUERYSEL = $0141;
  1577. EM_SETSEL = $0142;
  1578. EM_SETTEXTLIMIT = $0143;
  1579. EM_CUT = $0144;
  1580. EM_COPY = $0145;
  1581. EM_CLEAR = $0146;
  1582. EM_PASTE = $0147;
  1583. EM_QUERYFIRSTCHAR = $0148;
  1584. EM_SETFIRSTCHAR = $0149;
  1585. EM_QUERYREADONLY = $014a;
  1586. EM_SETREADONLY = $014b;
  1587. EM_SETINSERTMODE = $014c;
  1588. EN_SETFOCUS = $0001;
  1589. EN_KILLFOCUS = $0002;
  1590. EN_CHANGE = $0004;
  1591. EN_SCROLL = $0008;
  1592. EN_MEMERROR = $0010;
  1593. EN_OVERFLOW = $0020;
  1594. EN_INSERTMODETOGGLE = $0040;
  1595. LS_MULTIPLESEL = $00000001;
  1596. LS_OWNERDRAW = $00000002;
  1597. LS_NOADJUSTPOS = $00000004;
  1598. LS_HORZSCROLL = $00000008;
  1599. LS_EXTENDEDSEL = $00000010;
  1600. LN_SELECT = 1;
  1601. LN_SETFOCUS = 2;
  1602. LN_KILLFOCUS = 3;
  1603. LN_SCROLL = 4;
  1604. LN_ENTER = 5;
  1605. LM_QUERYITEMCOUNT = $0160;
  1606. LM_INSERTITEM = $0161;
  1607. LM_SETTOPINDEX = $0162;
  1608. LM_DELETEITEM = $0163;
  1609. LM_SELECTITEM = $0164;
  1610. LM_QUERYSELECTION = $0165;
  1611. LM_SETITEMTEXT = $0166;
  1612. LM_QUERYITEMTEXTLENGTH = $0167;
  1613. LM_QUERYITEMTEXT = $0168;
  1614. LM_SETITEMHANDLE = $0169;
  1615. LM_QUERYITEMHANDLE = $016a;
  1616. LM_SEARCHSTRING = $016b;
  1617. LM_SETITEMHEIGHT = $016c;
  1618. LM_QUERYTOPINDEX = $016d;
  1619. LM_DELETEALL = $016e;
  1620. LIT_CURSOR = (-4);
  1621. LIT_ERROR = (-3);
  1622. LIT_MEMERROR = (-2);
  1623. LIT_NONE = (-1);
  1624. LIT_FIRST = (-1);
  1625. LIT_END = (-1);
  1626. LIT_SORTASCENDING = (-2);
  1627. LIT_SORTDESCENDING = (-3);
  1628. LSS_SUBSTRING = $0001;
  1629. LSS_PREFIX = $0002;
  1630. LSS_CASESENSITIVE = $0004;
  1631. MS_ACTIONBAR = $00000001;
  1632. MS_TITLEBUTTON = $00000002;
  1633. MS_VERTICALFLIP = $00000004;
  1634. MS_CONDITIONALCASCADE = $00000040;
  1635. // Menu control messages
  1636. MM_INSERTITEM = $0180;
  1637. MM_DELETEITEM = $0181;
  1638. MM_QUERYITEM = $0182;
  1639. MM_SETITEM = $0183;
  1640. MM_QUERYITEMCOUNT = $0184;
  1641. MM_STARTMENUMODE = $0185;
  1642. MM_ENDMENUMODE = $0186;
  1643. MM_REMOVEITEM = $0188;
  1644. MM_SELECTITEM = $0189;
  1645. MM_QUERYSELITEMID = $018a;
  1646. MM_QUERYITEMTEXT = $018b;
  1647. MM_QUERYITEMTEXTLENGTH = $018c;
  1648. MM_SETITEMHANDLE = $018d;
  1649. MM_SETITEMTEXT = $018e;
  1650. MM_ITEMPOSITIONFROMID = $018f;
  1651. MM_ITEMIDFROMPOSITION = $0190;
  1652. MM_QUERYITEMATTR = $0191;
  1653. MM_SETITEMATTR = $0192;
  1654. MM_ISITEMVALID = $0193;
  1655. MM_QUERYITEMRECT = $0194;
  1656. MM_DELETEITEMBYPOS = $01f1; //UNDOCUMENTED
  1657. MM_QUERYDEFAULTITEMID = $0431;
  1658. MM_SETDEFAULTITEMID = $0432;
  1659. MIT_END = (-1);
  1660. MIT_NONE = (-1);
  1661. MIT_MEMERROR = (-1);
  1662. MIT_ERROR = (-1);
  1663. MIT_FIRST = (-2);
  1664. MIT_LAST = (-3);
  1665. MID_NONE = MIT_NONE;
  1666. MID_ERROR = (-1);
  1667. MIS_TEXT = $0001;
  1668. MIS_BITMAP = $0002;
  1669. MIS_SEPARATOR = $0004;
  1670. MIS_OWNERDRAW = $0008;
  1671. MIS_SUBMENU = $0010;
  1672. MIS_MULTMENU = $0020;
  1673. MIS_SYSCOMMAND = $0040;
  1674. MIS_HELP = $0080;
  1675. MIS_STATIC = $0100;
  1676. MIS_BUTTONSEPARATOR = $0200;
  1677. MIS_BREAK = $0400;
  1678. MIS_BREAKSEPARATOR = $0800;
  1679. MIS_GROUP = $1000;
  1680. MIS_SINGLE = $2000;
  1681. MIA_NODISMISS = $0020;
  1682. MIA_FRAMED = $1000;
  1683. MIA_CHECKED = $2000;
  1684. MIA_DISABLED = $4000;
  1685. MIA_HILITED = $8000;
  1686. PU_POSITIONONITEM = $0001;
  1687. PU_HCONSTRAIN = $0002;
  1688. PU_VCONSTRAIN = $0004;
  1689. PU_NONE = $0000;
  1690. PU_MOUSEBUTTON1DOWN = $0008;
  1691. PU_MOUSEBUTTON2DOWN = $0010;
  1692. PU_MOUSEBUTTON3DOWN = $0018;
  1693. PU_SELECTITEM = $0020;
  1694. PU_MOUSEBUTTON1 = $0040;
  1695. PU_MOUSEBUTTON2 = $0080;
  1696. PU_MOUSEBUTTON3 = $0100;
  1697. PU_KEYBOARD = $0200;
  1698. SBS_HORZ = 0;
  1699. SBS_VERT = 1;
  1700. SBS_THUMBSIZE = 2;
  1701. SBS_AUTOTRACK = 4;
  1702. SBS_AUTOSIZE = $2000;
  1703. SBM_SETSCROLLBAR = $01a0;
  1704. SBM_SETPOS = $01a1;
  1705. SBM_QUERYPOS = $01a2;
  1706. SBM_QUERYRANGE = $01a3;
  1707. SBM_SETTHUMBSIZE = $01a6;
  1708. SB_LINEUP = 1;
  1709. SB_LINEDOWN = 2;
  1710. SB_LINELEFT = 1;
  1711. SB_LINERIGHT = 2;
  1712. SB_PAGEUP = 3;
  1713. SB_PAGEDOWN = 4;
  1714. SB_PAGELEFT = 3;
  1715. SB_PAGERIGHT = 4;
  1716. SB_SLIDERTRACK = 5;
  1717. SB_SLIDERPOSITION = 6;
  1718. SB_ENDSCROLL = 7;
  1719. FCF_TITLEBAR = $00000001;
  1720. FCF_SYSMENU = $00000002;
  1721. FCF_MENU = $00000004;
  1722. FCF_SIZEBORDER = $00000008;
  1723. FCF_MINBUTTON = $00000010;
  1724. FCF_MAXBUTTON = $00000020;
  1725. FCF_MINMAX = $00000030;
  1726. FCF_VERTSCROLL = $00000040;
  1727. FCF_HORZSCROLL = $00000080;
  1728. FCF_DLGBORDER = $00000100;
  1729. FCF_BORDER = $00000200;
  1730. FCF_SHELLPOSITION = $00000400;
  1731. FCF_TASKLIST = $00000800;
  1732. FCF_NOBYTEALIGN = $00001000;
  1733. FCF_NOMOVEWITHOWNER = $00002000;
  1734. FCF_ICON = $00004000;
  1735. FCF_ACCELTABLE = $00008000;
  1736. FCF_SYSMODAL = $00010000;
  1737. FCF_SCREENALIGN = $00020000;
  1738. FCF_MOUSEALIGN = $00040000;
  1739. FCF_HIDEBUTTON = $01000000;
  1740. FCF_HIDEMAX = $01000020;
  1741. FCF_DBE_APPSTAT = $80000000;
  1742. FCF_AUTOICON = $40000000;
  1743. FCF_STANDARD = $0000CC3F;
  1744. FS_ICON = $00000001;
  1745. FS_ACCELTABLE = $00000002;
  1746. FS_SHELLPOSITION = $00000004;
  1747. FS_TASKLIST = $00000008;
  1748. FS_NOBYTEALIGN = $00000010;
  1749. FS_NOMOVEWITHOWNER = $00000020;
  1750. FS_SYSMODAL = $00000040;
  1751. FS_DLGBORDER = $00000080;
  1752. FS_BORDER = $00000100;
  1753. FS_SCREENALIGN = $00000200;
  1754. FS_MOUSEALIGN = $00000400;
  1755. FS_SIZEBORDER = $00000800;
  1756. FS_AUTOICON = $00001000;
  1757. FS_DBE_APPSTAT = $00008000;
  1758. FS_STANDARD = $0000000F;
  1759. FF_FLASHWINDOW = $0001;
  1760. FF_ACTIVE = $0002;
  1761. FF_FLASHHILITE = $0004;
  1762. FF_OWNERHIDDEN = $0008;
  1763. FF_DLGDISMISSED = $0010;
  1764. FF_OWNERDISABLED = $0020;
  1765. FF_SELECTED = $0040;
  1766. FF_NOACTIVATESWP = $0080;
  1767. WM_FLASHWINDOW = $0040;
  1768. WM_FORMATFRAME = $0041;
  1769. WM_UPDATEFRAME = $0042;
  1770. WM_FOCUSCHANGE = $0043;
  1771. WM_SETBORDERSIZE = $0044;
  1772. WM_TRACKFRAME = $0045;
  1773. WM_MINMAXFRAME = $0046;
  1774. WM_SETICON = $0047;
  1775. WM_QUERYICON = $0048;
  1776. WM_SETACCELTABLE = $0049;
  1777. WM_QUERYACCELTABLE = $004a;
  1778. WM_TRANSLATEACCEL = $004b;
  1779. WM_QUERYTRACKINFO = $004c;
  1780. WM_QUERYBORDERSIZE = $004d;
  1781. WM_NEXTMENU = $004e;
  1782. WM_ERASEBACKGROUND = $004f;
  1783. WM_QUERYFRAMEINFO = $0050;
  1784. WM_QUERYFOCUSCHAIN = $0051;
  1785. WM_OWNERPOSCHANGE = $0052;
  1786. WM_CALCFRAMERECT = $0053;
  1787. WM_WINDOWPOSCHANGED = $0055;
  1788. WM_ADJUSTFRAMEPOS = $0056;
  1789. WM_QUERYFRAMECTLCOUNT = $0059;
  1790. WM_QUERYHELPINFO = $005B;
  1791. WM_SETHELPINFO = $005C;
  1792. WM_ERROR = $005D;
  1793. WM_REALIZEPALETTE = $005E;
  1794. FI_FRAME = $00000001;
  1795. FI_OWNERHIDE = $00000002;
  1796. FI_ACTIVATEOK = $00000004;
  1797. FI_NOMOVEWITHOWNER = $00000008;
  1798. FID_SYSMENU = $8002;
  1799. FID_TITLEBAR = $8003;
  1800. FID_MINMAX = $8004;
  1801. FID_MENU = $8005;
  1802. FID_VERTSCROLL = $8006;
  1803. FID_HORZSCROLL = $8007;
  1804. FID_CLIENT = $8008;
  1805. FID_DBE_APPSTAT = $8010;
  1806. FID_DBE_KBDSTAT = $8011;
  1807. FID_DBE_PECIC = $8012;
  1808. FID_DBE_KKPOPUP = $8013;
  1809. SC_SIZE = $8000;
  1810. SC_MOVE = $8001;
  1811. SC_MINIMIZE = $8002;
  1812. SC_MAXIMIZE = $8003;
  1813. SC_CLOSE = $8004;
  1814. SC_NEXT = $8005;
  1815. SC_APPMENU = $8006;
  1816. SC_SYSMENU = $8007;
  1817. SC_RESTORE = $8008;
  1818. SC_NEXTFRAME = $8009;
  1819. SC_NEXTWINDOW = $8010;
  1820. SC_TASKMANAGER = $8011;
  1821. SC_HELPKEYS = $8012;
  1822. SC_HELPINDEX = $8013;
  1823. SC_HELPEXTENDED = $8014;
  1824. SC_SWITCHPANELIDS = $8015;
  1825. SC_DBE_FIRST = $8018;
  1826. SC_DBE_LAST = $801F;
  1827. SC_BEGINDRAG = $8020;
  1828. SC_ENDDRAG = $8021;
  1829. SC_SELECT = $8022;
  1830. SC_OPEN = $8023;
  1831. SC_CONTEXTMENU = $8024;
  1832. SC_CONTEXTHELP = $8025;
  1833. SC_TEXTEDIT = $8026;
  1834. SC_BEGINSELECT = $8027;
  1835. SC_ENDSELECT = $8028;
  1836. SC_WINDOW = $8029;
  1837. SC_HIDE = $802a;
  1838. TBM_SETHILITE = $01e3;
  1839. TBM_QUERYHILITE = $01e4;
  1840. SV_SWAPBUTTON = 0;
  1841. SV_DBLCLKTIME = 1;
  1842. SV_CXDBLCLK = 2;
  1843. SV_CYDBLCLK = 3;
  1844. SV_CXSIZEBORDER = 4;
  1845. SV_CYSIZEBORDER = 5;
  1846. SV_ALARM = 6;
  1847. SV_RESERVEDFIRST1 = 7;
  1848. SV_RESERVEDLAST1 = 8;
  1849. SV_CURSORRATE = 9;
  1850. SV_FIRSTSCROLLRATE = 10;
  1851. SV_SCROLLRATE = 11;
  1852. SV_NUMBEREDLISTS = 12;
  1853. SV_WARNINGFREQ = 13;
  1854. SV_NOTEFREQ = 14;
  1855. SV_ERRORFREQ = 15;
  1856. SV_WARNINGDURATION = 16;
  1857. SV_NOTEDURATION = 17;
  1858. SV_ERRORDURATION = 18;
  1859. SV_RESERVEDFIRST = 19;
  1860. SV_RESERVEDLAST = 19;
  1861. SV_CXSCREEN = 20;
  1862. SV_CYSCREEN = 21;
  1863. SV_CXVSCROLL = 22;
  1864. SV_CYHSCROLL = 23;
  1865. SV_CYVSCROLLARROW = 24;
  1866. SV_CXHSCROLLARROW = 25;
  1867. SV_CXBORDER = 26;
  1868. SV_CYBORDER = 27;
  1869. SV_CXDLGFRAME = 28;
  1870. SV_CYDLGFRAME = 29;
  1871. SV_CYTITLEBAR = 30;
  1872. SV_CYVSLIDER = 31;
  1873. SV_CXHSLIDER = 32;
  1874. SV_CXMINMAXBUTTON = 33;
  1875. SV_CYMINMAXBUTTON = 34;
  1876. SV_CYMENU = 35;
  1877. SV_CXFULLSCREEN = 36;
  1878. SV_CYFULLSCREEN = 37;
  1879. SV_CXICON = 38;
  1880. SV_CYICON = 39;
  1881. SV_CXPOINTER = 40;
  1882. SV_CYPOINTER = 41;
  1883. SV_DEBUG = 42;
  1884. SV_CMOUSEBUTTONS = 43;
  1885. SV_CPOINTERBUTTONS = 43;
  1886. SV_POINTERLEVEL = 44;
  1887. SV_CURSORLEVEL = 45;
  1888. SV_TRACKRectlEVEL = 46;
  1889. SV_CTIMERS = 47;
  1890. SV_MOUSEPRESENT = 48;
  1891. SV_CXBYTEALIGN = 49;
  1892. SV_CXALIGN = 49;
  1893. SV_CYBYTEALIGN = 50;
  1894. SV_CYALIGN = 50;
  1895. SV_NOTRESERVED = 56;
  1896. SV_EXTRAKEYBEEP = 57;
  1897. SV_SETLIGHTS = 58;
  1898. SV_INSERTMODE = 59;
  1899. SV_MENUROLLDOWNDELAY = 64;
  1900. SV_MENUROLLUPDELAY = 65;
  1901. SV_ALTMNEMONIC = 66;
  1902. SV_TASKLISTMOUSEACCESS = 67;
  1903. SV_CXICONTEXTWIDTH = 68;
  1904. SV_CICONTEXTLINES = 69;
  1905. SV_CHORDTIME = 70;
  1906. SV_CXCHORD = 71;
  1907. SV_CYCHORD = 72;
  1908. SV_CXMOTION = 73;
  1909. SV_CYMOTION = 74;
  1910. SV_BEGINDRAG = 75;
  1911. SV_ENDDRAG = 76;
  1912. SV_SINGLESELECT = 77;
  1913. SV_OPEN = 78;
  1914. SV_CONTEXTMENU = 79;
  1915. SV_CONTEXTHELP = 80;
  1916. SV_TEXTEDIT = 81;
  1917. SV_BEGINSELECT = 82;
  1918. SV_ENDSELECT = 83;
  1919. SV_BEGINDRAGKB = 84;
  1920. SV_ENDDRAGKB = 85;
  1921. SV_SELECTKB = 86;
  1922. SV_OPENKB = 87;
  1923. SV_CONTEXTMENUKB = 88;
  1924. SV_CONTEXTHELPKB = 89;
  1925. SV_TEXTEDITKB = 90;
  1926. SV_BEGINSELECTKB = 91;
  1927. SV_ENDSELECTKB = 92;
  1928. SV_ANIMATION = 93;
  1929. SV_ANIMATIONSPEED = 94;
  1930. SV_MONOICONS = 95;
  1931. SV_KBDALTERED = 96;
  1932. SV_PRINTSCREEN = 97;
  1933. SV_CSYSVALUES = 98;
  1934. PP_FOREGROUNDCOLOR = 1;
  1935. PP_FOREGROUNDCOLORINDEX = 2;
  1936. PP_BACKGROUNDCOLOR = 3;
  1937. PP_BACKGROUNDCOLORINDEX = 4;
  1938. PP_HILITEFOREGROUNDCOLOR = 5;
  1939. PP_HILITEFOREGROUNDCOLORINDEX = 6;
  1940. PP_HILITEBACKGROUNDCOLOR = 7;
  1941. PP_HILITEBACKGROUNDCOLORINDEX = 8;
  1942. PP_DISABLEDFOREGROUNDCOLOR = 9;
  1943. PP_DISABLEDFOREGROUNDCOLORINDEX = 10;
  1944. PP_DISABLEDBACKGROUNDCOLOR = 11;
  1945. PP_DISABLEDBACKGROUNDCOLORINDEX = 12;
  1946. PP_BORDERCOLOR = 13;
  1947. PP_BORDERCOLORINDEX = 14;
  1948. PP_FONTNAMESIZE = 15;
  1949. PP_FONTHANDLE = 16;
  1950. PP_RESERVED = 17;
  1951. PP_ACTIVECOLOR = 18;
  1952. PP_ACTIVECOLORINDEX = 19;
  1953. PP_INACTIVECOLOR = 20;
  1954. PP_INACTIVECOLORINDEX = 21;
  1955. PP_ACTIVETEXTFGNDCOLOR = 22;
  1956. PP_ACTIVETEXTFGNDCOLORINDEX = 23;
  1957. PP_ACTIVETEXTBGNDCOLOR = 24;
  1958. PP_ACTIVETEXTBGNDCOLORINDEX = 25;
  1959. PP_INACTIVETEXTFGNDCOLOR = 26;
  1960. PP_INACTIVETEXTFGNDCOLORINDEX = 27;
  1961. PP_INACTIVETEXTBGNDCOLOR = 28;
  1962. PP_INACTIVETEXTBGNDCOLORINDEX = 29;
  1963. PP_SHADOW = 30;
  1964. PP_MENUFOREGROUNDCOLOR = 31;
  1965. PP_MENUFOREGROUNDCOLORINDEX = 32;
  1966. PP_MENUBACKGROUNDCOLOR = 33;
  1967. PP_MENUBACKGROUNDCOLORINDEX = 34;
  1968. PP_MENUHILITEFGNDCOLOR = 35;
  1969. PP_MENUHILITEFGNDCOLORINDEX = 36;
  1970. PP_MENUHILITEBGNDCOLOR = 37;
  1971. PP_MENUHILITEBGNDCOLORINDEX = 38;
  1972. PP_MENUDISABLEDFGNDCOLOR = 39;
  1973. PP_MENUDISABLEDFGNDCOLORINDEX = 40;
  1974. PP_MENUDISABLEDBGNDCOLOR = 41;
  1975. PP_MENUDISABLEDBGNDCOLORINDEX = 42;
  1976. PP_USER = $8000;
  1977. QPF_NOINHERIT = $0001;
  1978. QPF_ID1COLORINDEX = $0002;
  1979. QPF_ID2COLORINDEX = $0004;
  1980. QPF_PURERGBCOLOR = $0008;
  1981. QPF_VALIDFLAGS = $000F;
  1982. SYSCLR_SHADOWHILITEBGND = (-50);
  1983. SYSCLR_SHADOWHILITEFGND = (-49);
  1984. SYSCLR_SHADOWTEXT = (-48);
  1985. SYSCLR_ENTRYFIELD = (-47);
  1986. SYSCLR_MENUDISABLEDTEXT = (-46);
  1987. SYSCLR_MENUHILITE = (-45);
  1988. SYSCLR_MENUHILITEBGND = (-44);
  1989. SYSCLR_PAGEBACKGROUND = (-43);
  1990. SYSCLR_FIELDBACKGROUND = (-42);
  1991. SYSCLR_BUTTONLIGHT = (-41);
  1992. SYSCLR_BUTTONMIDDLE = (-40);
  1993. SYSCLR_BUTTONDARK = (-39);
  1994. SYSCLR_BUTTONDEFAULT = (-38);
  1995. SYSCLR_TITLEBOTTOM = (-37);
  1996. SYSCLR_SHADOW = (-36);
  1997. SYSCLR_ICONTEXT = (-35);
  1998. SYSCLR_DIALOGBACKGROUND = (-34);
  1999. SYSCLR_HILITEFOREGROUND = (-33);
  2000. SYSCLR_HILITEBACKGROUND = (-32);
  2001. SYSCLR_INACTIVETITLETEXTBGND = (-31);
  2002. SYSCLR_ACTIVETITLETEXTBGND = (-30);
  2003. SYSCLR_INACTIVETITLETEXT = (-29);
  2004. SYSCLR_ACTIVETITLETEXT = (-28);
  2005. SYSCLR_OUTPUTTEXT = (-27);
  2006. SYSCLR_WINDOWSTATICTEXT = (-26);
  2007. SYSCLR_SCROLLBAR = (-25);
  2008. SYSCLR_BACKGROUND = (-24);
  2009. SYSCLR_ACTIVETITLE = (-23);
  2010. SYSCLR_INACTIVETITLE = (-22);
  2011. SYSCLR_MENU = (-21);
  2012. SYSCLR_WINDOW = (-20);
  2013. SYSCLR_WINDOWFRAME = (-19);
  2014. SYSCLR_MENUTEXT = (-18);
  2015. SYSCLR_WINDOWTEXT = (-17);
  2016. SYSCLR_TITLETEXT = (-16);
  2017. SYSCLR_ACTIVEBORDER = (-15);
  2018. SYSCLR_INACTIVEBORDER = (-14);
  2019. SYSCLR_APPWORKSPACE = (-13);
  2020. SYSCLR_HELPBACKGROUND = (-12);
  2021. SYSCLR_HELPTEXT = (-11);
  2022. SYSCLR_HELPHILITE = (-10);
  2023. SYSCLR_CSYSCOLORS = 41;
  2024. TID_CURSOR = $ffff;
  2025. TID_SCROLL = $fffe;
  2026. TID_FLASHWINDOW = $fffd;
  2027. TID_USERMAX = $7fff;
  2028. AF_CHAR = $0001;
  2029. AF_VIRTUALKEY = $0002;
  2030. AF_SCANCODE = $0004;
  2031. AF_SHIFT = $0008;
  2032. AF_CONTROL = $0010;
  2033. AF_ALT = $0020;
  2034. AF_LONEKEY = $0040;
  2035. AF_SYSCOMMAND = $0100;
  2036. AF_HELP = $0200;
  2037. EAF_DEFAULTOWNER = $0001;
  2038. EAF_UNCHANGEABLE = $0002;
  2039. EAF_REUSEICON = $0004;
  2040. TF_LEFT = $0001;
  2041. TF_TOP = $0002;
  2042. TF_RIGHT = $0004;
  2043. TF_BOTTOM = $0008;
  2044. TF_MOVE = $000F;
  2045. TF_SETPOINTERPOS = $0010;
  2046. TF_GRID = $0020;
  2047. TF_STANDARD = $0040;
  2048. TF_ALLINBOUNDARY = $0080;
  2049. TF_VALIDATETRACKRECT = $0100;
  2050. TF_PARTINBOUNDARY = $0200;
  2051. WM_RENDERFMT = $0060;
  2052. WM_RENDERALLFMTS = $0061;
  2053. WM_DESTROYCLIPBOARD = $0062;
  2054. WM_PAINTCLIPBOARD = $0063;
  2055. WM_SIZECLIPBOARD = $0064;
  2056. WM_HSCROLLCLIPBOARD = $0065;
  2057. WM_VSCROLLCLIPBOARD = $0066;
  2058. WM_DRAWCLIPBOARD = $0067;
  2059. CF_TEXT = 1;
  2060. CF_BITMAP = 2;
  2061. CF_DSPTEXT = 3;
  2062. CF_DSPBITMAP = 4;
  2063. CF_METAFILE = 5;
  2064. CF_DSPMETAFILE = 6;
  2065. CF_PALETTE = 9;
  2066. SZFMT_TEXT = '#1';
  2067. SZFMT_BITMAP = '#2';
  2068. SZFMT_DSPTEXT = '#3';
  2069. SZFMT_DSPBITMAP = '#4';
  2070. SZFMT_METAFILE = '#5';
  2071. SZFMT_DSPMETAFILE = '#6';
  2072. SZFMT_PALETTE = '#9';
  2073. SZFMT_SYLK = 'Sylk';
  2074. SZFMT_DIF = 'Dif';
  2075. SZFMT_TIFF = 'Tiff';
  2076. SZFMT_OEMTEXT = 'OemText';
  2077. SZFMT_DIB = 'Dib';
  2078. SZFMT_OWNERDISPLAY = 'OwnerDisplay';
  2079. SZFMT_LINK = 'Link';
  2080. SZFMT_METAFILEPICT = 'MetaFilePict';
  2081. SZFMT_DSPMETAFILEPICT = 'DspMetaFilePict';
  2082. SZFMT_CPTEXT = 'Codepage Text';
  2083. SZDDEFMT_RTF = 'Rich Text Format';
  2084. SZDDEFMT_PTRPICT = 'Printer_Picture';
  2085. CFI_OWNERFREE = $0001;
  2086. CFI_OWNERDISPLAY = $0002;
  2087. CFI_POINTER = $0400;
  2088. CFI_HANDLE = $0200;
  2089. CURSOR_SOLID = $0000;
  2090. CURSOR_HALFTONE = $0001;
  2091. CURSOR_FRAME = $0002;
  2092. CURSOR_FLASH = $0004;
  2093. CURSOR_SETPOS = $8000;
  2094. SPTR_ARROW = 1;
  2095. SPTR_TEXT = 2;
  2096. SPTR_WAIT = 3;
  2097. SPTR_SIZE = 4;
  2098. SPTR_MOVE = 5;
  2099. SPTR_SIZENWSE = 6;
  2100. SPTR_SIZENESW = 7;
  2101. SPTR_SIZEWE = 8;
  2102. SPTR_SIZENS = 9;
  2103. SPTR_APPICON = 10;
  2104. SPTR_ICONINFORMATION = 11;
  2105. SPTR_ICONQUESTION = 12;
  2106. SPTR_ICONERROR = 13;
  2107. SPTR_ICONWARNING = 14;
  2108. SPTR_CPTR = 14;
  2109. SPTR_ILLEGAL = 18;
  2110. SPTR_FILE = 19;
  2111. SPTR_FOLDER = 20;
  2112. SPTR_MULTFILE = 21;
  2113. SPTR_PROGRAM = 22;
  2114. SPTR_HANDICON = SPTR_ICONERROR;
  2115. SPTR_QUESICON = SPTR_ICONQUESTION;
  2116. SPTR_BANGICON = SPTR_ICONWARNING;
  2117. SPTR_NOTEICON = SPTR_ICONINFORMATION;
  2118. DP_NORMAL = $0000;
  2119. DP_HALFTONED = $0001;
  2120. DP_INVERTED = $0002;
  2121. SBMP_OLD_SYSMENU = 1;
  2122. SBMP_OLD_SBUPARROW = 2;
  2123. SBMP_OLD_SBDNARROW = 3;
  2124. SBMP_OLD_SBRGARROW = 4;
  2125. SBMP_OLD_SBLFARROW = 5;
  2126. SBMP_MENUCHECK = 6;
  2127. SBMP_OLD_CHECKBOXES = 7;
  2128. SBMP_BTNCORNERS = 8;
  2129. SBMP_OLD_MINBUTTON = 9;
  2130. SBMP_OLD_MAXBUTTON = 10;
  2131. SBMP_OLD_RESTOREBUTTON = 11;
  2132. SBMP_OLD_CHILDSYSMENU = 12;
  2133. SBMP_DRIVE = 15;
  2134. SBMP_FILE = 16;
  2135. SBMP_FOLDER = 17;
  2136. SBMP_TREEPLUS = 18;
  2137. SBMP_TREEMINUS = 19;
  2138. SBMP_PROGRAM = 22;
  2139. SBMP_MENUATTACHED = 23;
  2140. SBMP_SIZEBOX = 24;
  2141. SBMP_SYSMENU = 25;
  2142. SBMP_MINBUTTON = 26;
  2143. SBMP_MAXBUTTON = 27;
  2144. SBMP_RESTOREBUTTON = 28;
  2145. SBMP_CHILDSYSMENU = 29;
  2146. SBMP_SYSMENUDEP = 30;
  2147. SBMP_MINBUTTONDEP = 31;
  2148. SBMP_MAXBUTTONDEP = 32;
  2149. SBMP_RESTOREBUTTONDEP = 33;
  2150. SBMP_CHILDSYSMENUDEP = 34;
  2151. SBMP_SBUPARROW = 35;
  2152. SBMP_SBDNARROW = 36;
  2153. SBMP_SBLFARROW = 37;
  2154. SBMP_SBRGARROW = 38;
  2155. SBMP_SBUPARROWDEP = 39;
  2156. SBMP_SBDNARROWDEP = 40;
  2157. SBMP_SBLFARROWDEP = 41;
  2158. SBMP_SBRGARROWDEP = 42;
  2159. SBMP_SBUPARROWDIS = 43;
  2160. SBMP_SBDNARROWDIS = 44;
  2161. SBMP_SBLFARROWDIS = 45;
  2162. SBMP_SBRGARROWDIS = 46;
  2163. SBMP_COMBODOWN = 47;
  2164. SBMP_CHECKBOXES = 48;
  2165. HK_SENDMSG = 0;
  2166. HK_INPUT = 1;
  2167. HK_MSGFILTER = 2;
  2168. HK_JOURNALRECORD = 3;
  2169. HK_JOURNALPLAYBACK = 4;
  2170. HK_HELP = 5;
  2171. HK_LOADER = 6;
  2172. HK_REGISTERUSERMSG = 7;
  2173. HK_MSGCONTROL = 8;
  2174. HK_PLIST_ENTRY = 9;
  2175. HK_PLIST_EXIT = 10;
  2176. HK_FINDWORD = 11;
  2177. HK_CODEPAGECHANGED = 12;
  2178. HK_WINDOWDC = 15;
  2179. HK_DESTROYWINDOW = 16;
  2180. HK_CHECKMSGFILTER = 20;
  2181. HMQ_CURRENT = 1;
  2182. MSGF_DIALOGBOX = 1;
  2183. MSGF_MESSAGEBOX = 2;
  2184. MSGF_TRACK = 8;
  2185. MSGF_DDEPOSTMSG = 3;
  2186. HLPM_FRAME = (-1);
  2187. HLPM_WINDOW = (-2);
  2188. HLPM_MENU = (-3);
  2189. PM_MODEL_1X = 0;
  2190. PM_MODEL_2X = 1;
  2191. LHK_DELETEPROC = 1;
  2192. LHK_DELETELIB = 2;
  2193. LHK_LOADPROC = 3;
  2194. LHK_LOADLIB = 4;
  2195. MCHK_MSGINTEREST = 1;
  2196. MCHK_CLASSMSGINTEREST = 2;
  2197. MCHK_SYNCHRONISATION = 3;
  2198. MCHK_MSGMODE = 4;
  2199. RUMHK_DATATYPE = 1;
  2200. RUMHK_MSG = 2;
  2201. {WinCompareStrings}
  2202. WCS_ERROR = 0;
  2203. WCS_EQ = 1;
  2204. WCS_LT = 2;
  2205. WCS_GT = 3;
  2206. WINDBG_HWND_NOT_DESTROYED = $1022;
  2207. WINDBG_HPTR_NOT_DESTROYED = $1023;
  2208. WINDBG_HACCEL_NOT_DESTROYED = $1024;
  2209. WINDBG_HENUM_NOT_DESTROYED = $1025;
  2210. WINDBG_VISRGN_SEM_BUSY = $1026;
  2211. WINDBG_USER_SEM_BUSY = $1027;
  2212. WINDBG_DC_CACHE_BUSY = $1028;
  2213. WINDBG_HOOK_STILL_INSTALLED = $1029;
  2214. WINDBG_WINDOW_STILL_LOCKED = $102a;
  2215. WINDBG_UPDATEPS_ASSERTION_FAIL = $102b;
  2216. WINDBG_SENDMSG_WITHIN_USER_SEM = $102c;
  2217. WINDBG_USER_SEM_NOT_ENTERED = $102d;
  2218. WINDBG_PROC_NOT_EXPORTED = $102e;
  2219. WINDBG_BAD_SENDMSG_cardinal = $102f;
  2220. WINDBG_ABNORMAL_EXIT = $1030;
  2221. WINDBG_INTERNAL_REVISION = $1031;
  2222. WINDBG_INITSYSTEM_FAILED = $1032;
  2223. WINDBG_HATOMTBL_NOT_DESTROYED = $1033;
  2224. WINDBG_WINDOW_UNLOCK_WAIT = $1035;
  2225. SZDDESYS_TOPIC = 'System';
  2226. SZDDESYS_ITEM_TOPICS = 'Topics';
  2227. SZDDESYS_ITEM_SYSITEMS = 'SysItems';
  2228. SZDDESYS_ITEM_RTNMSG = 'ReturnMessage';
  2229. SZDDESYS_ITEM_STATUS = 'Status';
  2230. SZDDESYS_ITEM_FORMATS = 'Formats';
  2231. SZDDESYS_ITEM_SECURITY = 'Security';
  2232. SZDDESYS_ITEM_ITEMFORMATS = 'ItemFormats';
  2233. SZDDESYS_ITEM_HELP = 'Help';
  2234. SZDDESYS_ITEM_PROTOCOLS = 'Protocols';
  2235. SZDDESYS_ITEM_RESTART = 'Restart';
  2236. DDECTXT_CASESENSITIVE = $0001;
  2237. {DDE}
  2238. DDE_FACK = $0001;
  2239. DDE_FBUSY = $0002;
  2240. DDE_FNODATA = $0004;
  2241. DDE_FACKREQ = $0008;
  2242. DDE_FRESPONSE = $0010;
  2243. DDE_NOTPROCESSED = $0020;
  2244. DDE_FRESERVED = $00C0;
  2245. DDE_FAPPSTATUS = $FF00;
  2246. DDEFMT_TEXT = $0001;
  2247. DDEPM_RETRY = $00000001;
  2248. DDEPM_NOFREE = $00000002;
  2249. WM_DDE_FIRST = $00A0;
  2250. WM_DDE_INITIATE = $00A0;
  2251. WM_DDE_REQUEST = $00A1;
  2252. WM_DDE_ACK = $00A2;
  2253. WM_DDE_DATA = $00A3;
  2254. WM_DDE_ADVISE = $00A4;
  2255. WM_DDE_UNADVISE = $00A5;
  2256. WM_DDE_POKE = $00A6;
  2257. WM_DDE_EXECUTE = $00A7;
  2258. WM_DDE_TERMINATE = $00A8;
  2259. WM_DDE_INITIATEACK = $00A9;
  2260. WM_DDE_LAST = $00AF;
  2261. WM_QUERYCONVERTPOS = $00b0;
  2262. QCP_CONVERT = $0001;
  2263. QCP_NOCONVERT = $0000;
  2264. SDT_DESTROY = $0001;
  2265. SDT_NOBKGND = $0002;
  2266. SDT_TILE = $0004;
  2267. SDT_SCALE = $0008;
  2268. SDT_PATTERN = $0010;
  2269. SDT_CENTER = $0020;
  2270. SDT_RETAIN = $0040;
  2271. SDT_LOADFILE = $0080;
  2272. STR_DLLNAME = 'keyremap';
  2273. WM_DBCSFIRST = $00b0;
  2274. WM_DBCSLAST = $00cf;
  2275. { Standard Window Classes - for WinCreateWCWindow }
  2276. WC_FRAME =$ffff0001;
  2277. WC_COMBOBOX =$ffff0002;
  2278. WC_BUTTON =$ffff0003;
  2279. WC_MENU =$ffff0004;
  2280. WC_STATIC =$ffff0005;
  2281. WC_ENTRYFIELD =$ffff0006;
  2282. WC_LISTBOX =$ffff0007;
  2283. WC_SCROLLBAR =$ffff0008;
  2284. WC_TITLEBAR =$ffff0009;
  2285. WC_MLE =$ffff000A;
  2286. { 000B to 000F reserved }
  2287. WC_APPSTAT =$ffff0010;
  2288. WC_KBDSTAT =$ffff0011;
  2289. WC_PECIC =$ffff0012;
  2290. WC_DBE_KKPOPUP =$ffff0013;
  2291. { 0014 to 001F reserved }
  2292. WC_SPINBUTTON =$ffff0020;
  2293. { 0021 to 0024 reserved }
  2294. WC_CONTAINER =$ffff0025;
  2295. WC_SLIDER =$ffff0026;
  2296. WC_VALUESET =$ffff0027;
  2297. WC_NOTEBOOK =$ffff0028;
  2298. { 0029 to 002C used by PEN }
  2299. WC_PENFIRST =$ffff0029;
  2300. WC_PENLAST =$ffff002C;
  2301. { 002D to 0030 reserved }
  2302. { 0030 to 003F reserved }
  2303. WC_MMPMFIRST =$ffff0040;
  2304. WC_MMPMLAST =$ffff004f;
  2305. { PM error constants }
  2306. PMERR_INVALID_HWND = $1001;
  2307. PMERR_INVALID_HMQ = $1002;
  2308. PMERR_PARAMETER_OUT_OF_RANGE = $1003;
  2309. PMERR_WINDOW_LOCK_UNDERFLOW = $1004;
  2310. PMERR_WINDOW_LOCK_OVERFLOW = $1005;
  2311. PMERR_BAD_WINDOW_LOCK_COUNT = $1006;
  2312. PMERR_WINDOW_NOT_LOCKED = $1007;
  2313. PMERR_INVALID_SELECTOR = $1008;
  2314. PMERR_CALL_FROM_WRONG_THREAD = $1009;
  2315. PMERR_RESOURCE_NOT_FOUND = $100A;
  2316. PMERR_INVALID_STRING_PARM = $100B;
  2317. PMERR_INVALID_HHEAP = $100C;
  2318. PMERR_INVALID_HEAP_POINTER = $100D;
  2319. PMERR_INVALID_HEAP_SIZE_PARM = $100E;
  2320. PMERR_INVALID_HEAP_SIZE = $100F;
  2321. PMERR_INVALID_HEAP_SIZE_WORD = $1010;
  2322. PMERR_HEAP_OUT_OF_MEMORY = $1011;
  2323. PMERR_HEAP_MAX_SIZE_REACHED = $1012;
  2324. PMERR_INVALID_HATOMTBL = $1013;
  2325. PMERR_INVALID_ATOM = $1014;
  2326. PMERR_INVALID_ATOM_NAME = $1015;
  2327. PMERR_INVALID_INTEGER_ATOM = $1016;
  2328. PMERR_ATOM_NAME_NOT_FOUND = $1017;
  2329. PMERR_QUEUE_TOO_LARGE = $1018;
  2330. PMERR_INVALID_FLAG = $1019;
  2331. PMERR_INVALID_HACCEL = $101A;
  2332. PMERR_INVALID_HPTR = $101B;
  2333. PMERR_INVALID_HENUM = $101C;
  2334. PMERR_INVALID_SRC_CODEPAGE = $101D;
  2335. PMERR_INVALID_DST_CODEPAGE = $101E;
  2336. PMERR_UNKNOWN_COMPONENT_ID = $101f;
  2337. PMERR_UNKNOWN_ERROR_CODE = $1020;
  2338. PMERR_SEVERITY_LEVELS = $1021;
  2339. PMERR_INVALID_RESOURCE_FORMAT = $1034;
  2340. PMERR_NO_MSG_QUEUE = $1036;
  2341. PMERR_WIN_DEBUGMSG = $1037;
  2342. PMERR_QUEUE_FULL = $1038;
  2343. PMERR_LIBRARY_LOAD_FAILED = $1039;
  2344. PMERR_PROCEDURE_LOAD_FAILED = $103A;
  2345. PMERR_LIBRARY_DELETE_FAILED = $103B;
  2346. PMERR_PROCEDURE_DELETE_FAILED = $103C;
  2347. PMERR_ARRAY_TOO_LARGE = $103D;
  2348. PMERR_ARRAY_TOO_SMALL = $103E;
  2349. PMERR_DATATYPE_ENTRY_BAD_INDEX = $103F;
  2350. PMERR_DATATYPE_ENTRY_CTL_BAD = $1040;
  2351. PMERR_DATATYPE_ENTRY_CTL_MISS = $1041;
  2352. PMERR_DATATYPE_ENTRY_INVALID = $1042;
  2353. PMERR_DATATYPE_ENTRY_NOT_NUM = $1043;
  2354. PMERR_DATATYPE_ENTRY_NOT_OFF = $1044;
  2355. PMERR_DATATYPE_INVALID = $1045;
  2356. PMERR_DATATYPE_NOT_UNIQUE = $1046;
  2357. PMERR_DATATYPE_TOO_LONG = $1047;
  2358. PMERR_DATATYPE_TOO_SMALL = $1048;
  2359. PMERR_DIRECTION_INVALID = $1049;
  2360. PMERR_INVALID_HAB = $104A;
  2361. PMERR_INVALID_HSTRUCT = $104D;
  2362. PMERR_LENGTH_TOO_SMALL = $104E;
  2363. PMERR_MSGID_TOO_SMALL = $104F;
  2364. PMERR_NO_HANDLE_ALLOC = $1050;
  2365. PMERR_NOT_IN_A_PM_SESSION = $1051;
  2366. PMERR_MSG_QUEUE_ALREADY_EXISTS = $1052;
  2367. PMERR_OLD_RESOURCE = $1055;
  2368. PMERR_INVALID_PIB = $1101;
  2369. PMERR_INSUFF_SPACE_TO_ADD = $1102;
  2370. PMERR_INVALID_GROUP_HANDLE = $1103;
  2371. PMERR_DUPLICATE_TITLE = $1104;
  2372. PMERR_INVALID_TITLE = $1105;
  2373. PMERR_HANDLE_NOT_IN_GROUP = $1107;
  2374. PMERR_INVALID_TARGET_HANDLE = $1106;
  2375. PMERR_INVALID_PATH_STATEMENT = $1108;
  2376. PMERR_NO_PROGRAM_FOUND = $1109;
  2377. PMERR_INVALID_BUFFER_SIZE = $110A;
  2378. PMERR_BUFFER_TOO_SMALL = $110B;
  2379. PMERR_PL_INITIALISATION_FAIL = $110C;
  2380. PMERR_CANT_DESTROY_SYS_GROUP = $110D;
  2381. PMERR_INVALID_TYPE_CHANGE = $110E;
  2382. PMERR_INVALID_PROGRAM_HANDLE = $110F;
  2383. PMERR_NOT_CURRENT_PL_VERSION = $1110;
  2384. PMERR_INVALID_CIRCULAR_REF = $1111;
  2385. PMERR_MEMORY_ALLOCATION_ERR = $1112;
  2386. PMERR_MEMORY_DEALLOCATION_ERR = $1113;
  2387. PMERR_TASK_HEADER_TOO_BIG = $1114;
  2388. PMERR_INVALID_INI_FILE_HANDLE = $1115;
  2389. PMERR_MEMORY_SHARE = $1116;
  2390. PMERR_OPEN_QUEUE = $1117;
  2391. PMERR_CREATE_QUEUE = $1118;
  2392. PMERR_WRITE_QUEUE = $1119;
  2393. PMERR_READ_QUEUE = $111A;
  2394. PMERR_CALL_NOT_EXECUTED = $111B;
  2395. PMERR_UNKNOWN_APIPKT = $111C;
  2396. PMERR_INITHREAD_EXISTS = $111D;
  2397. PMERR_CREATE_THREAD = $111E;
  2398. PMERR_NO_HK_PROFILE_INSTALLED = $111F;
  2399. PMERR_INVALID_DIRECTORY = $1120;
  2400. PMERR_WILDCARD_IN_FILENAME = $1121;
  2401. PMERR_FILENAME_BUFFER_FULL = $1122;
  2402. PMERR_FILENAME_TOO_LONG = $1123;
  2403. PMERR_INI_FILE_IS_SYS_OR_USER = $1124;
  2404. PMERR_BROADCAST_PLMSG = $1125;
  2405. PMERR_190_INIT_DONE = $1126;
  2406. PMERR_HMOD_FOR_PMSHAPI = $1127;
  2407. PMERR_SET_HK_PROFILE = $1128;
  2408. PMERR_API_NOT_ALLOWED = $1129;
  2409. PMERR_INI_STILL_OPEN = $112A;
  2410. PMERR_PROGDETAILS_NOT_IN_INI = $112B;
  2411. PMERR_PIBSTRUCT_NOT_IN_INI = $112C;
  2412. PMERR_INVALID_DISKPROGDETAILS = $112D;
  2413. PMERR_PROGDETAILS_READ_FAILURE = $112E;
  2414. PMERR_PROGDETAILS_WRITE_FAILURE = $112F;
  2415. PMERR_PROGDETAILS_QSIZE_FAILURE = $1130;
  2416. PMERR_INVALID_PROGDETAILS = $1131;
  2417. PMERR_SHEPROFILEHOOK_NOT_FOUND = $1132;
  2418. PMERR_190PLCONVERTED = $1133;
  2419. PMERR_FAILED_TO_CONVERT_INI_PL = $1134;
  2420. PMERR_PMSHAPI_NOT_INITIALISED = $1135;
  2421. PMERR_INVALID_SHELL_API_HOOK_ID = $1136;
  2422. PMERR_DOS_ERROR = $1200;
  2423. PMERR_NO_SPACE = $1201;
  2424. PMERR_INVALID_SWITCH_HANDLE = $1202;
  2425. PMERR_NO_HANDLE = $1203;
  2426. PMERR_INVALID_PROCESS_ID = $1204;
  2427. PMERR_NOT_SHELL = $1205;
  2428. PMERR_INVALID_WINDOW = $1206;
  2429. PMERR_INVALID_POST_MSG = $1207;
  2430. PMERR_INVALID_PARAMETERS = $1208;
  2431. PMERR_INVALID_PROGRAM_TYPE = $1209;
  2432. PMERR_NOT_EXTENDED_FOCUS = $120A;
  2433. PMERR_INVALID_SESSION_ID = $120B;
  2434. PMERR_SMG_INVALID_ICON_FILE = $120C;
  2435. PMERR_SMG_ICON_NOT_CREATED = $120D;
  2436. PMERR_SHL_DEBUG = $120E;
  2437. PMERR_OPENING_INI_FILE = $1301;
  2438. PMERR_INI_FILE_CORRUPT = $1302;
  2439. PMERR_INVALID_PARM = $1303;
  2440. PMERR_NOT_IN_IDX = $1304;
  2441. PMERR_NO_ENTRIES_IN_GROUP = $1305;
  2442. PMERR_INI_WRITE_FAIL = $1306;
  2443. PMERR_IDX_FULL = $1307;
  2444. PMERR_INI_PROTECTED = $1308;
  2445. PMERR_MEMORY_ALLOC = $1309;
  2446. PMERR_INI_INIT_ALREADY_DONE = $130A;
  2447. PMERR_INVALID_INTEGER = $130B;
  2448. PMERR_INVALID_ASCIIZ = $130C;
  2449. PMERR_CAN_NOT_CALL_SPOOLER = $130D;
  2450. PMERR_VALIDATION_REJECTED = PMERR_CAN_NOT_CALL_SPOOLER;
  2451. PMERR_WARNING_WINDOW_NOT_KILLED = $1401;
  2452. PMERR_ERROR_INVALID_WINDOW = $1402;
  2453. PMERR_ALREADY_INITIALIZED = $1403;
  2454. PMERR_MSG_PROG_NO_MOU = $1405;
  2455. PMERR_MSG_PROG_NON_RECOV = $1406;
  2456. PMERR_WINCONV_INVALID_PATH = $1407;
  2457. PMERR_PI_NOT_INITIALISED = $1408;
  2458. PMERR_PL_NOT_INITIALISED = $1409;
  2459. PMERR_NO_TASK_MANAGER = $140A;
  2460. PMERR_SAVE_NOT_IN_PROGRESS = $140B;
  2461. PMERR_NO_STACK_SPACE = $140C;
  2462. PMERR_INVALID_COLR_FIELD = $140d;
  2463. PMERR_INVALID_COLR_VALUE = $140e;
  2464. PMERR_COLR_WRITE = $140f;
  2465. PMERR_TARGET_FILE_EXISTS = $1501;
  2466. PMERR_SOURCE_SAME_AS_TARGET = $1502;
  2467. PMERR_SOURCE_FILE_NOT_FOUND = $1503;
  2468. PMERR_INVALID_NEW_PATH = $1504;
  2469. PMERR_TARGET_FILE_NOT_FOUND = $1505;
  2470. PMERR_INVALID_DRIVE_NUMBER = $1506;
  2471. PMERR_NAME_TOO_LONG = $1507;
  2472. PMERR_NOT_ENOUGH_ROOM_ON_DISK = $1508;
  2473. PMERR_NOT_ENOUGH_MEM = $1509;
  2474. PMERR_LOG_DRV_DOES_NOT_EXIST = $150B;
  2475. PMERR_INVALID_DRIVE = $150C;
  2476. PMERR_ACCESS_DENIED = $150D;
  2477. PMERR_NO_FIRST_SLASH = $150E;
  2478. PMERR_READ_ONLY_FILE = $150F;
  2479. PMERR_GROUP_PROTECTED = $151F;
  2480. PMERR_INVALID_PROGRAM_CATEGORY = $152F;
  2481. PMERR_INVALID_APPL = $1530;
  2482. PMERR_CANNOT_START = $1531;
  2483. PMERR_STARTED_IN_BACKGROUND = $1532;
  2484. PMERR_INVALID_HAPP = $1533;
  2485. PMERR_CANNOT_STOP = $1534;
  2486. PMERR_INTERNAL_ERROR_1 = $1601;
  2487. PMERR_INTERNAL_ERROR_2 = $1602;
  2488. PMERR_INTERNAL_ERROR_3 = $1603;
  2489. PMERR_INTERNAL_ERROR_4 = $1604;
  2490. PMERR_INTERNAL_ERROR_5 = $1605;
  2491. PMERR_INTERNAL_ERROR_6 = $1606;
  2492. PMERR_INTERNAL_ERROR_7 = $1607;
  2493. PMERR_INTERNAL_ERROR_8 = $1608;
  2494. PMERR_INTERNAL_ERROR_9 = $1609;
  2495. PMERR_INTERNAL_ERROR_10 = $160A;
  2496. PMERR_INTERNAL_ERROR_11 = $160B;
  2497. PMERR_INTERNAL_ERROR_12 = $160C;
  2498. PMERR_INTERNAL_ERROR_13 = $160D;
  2499. PMERR_INTERNAL_ERROR_14 = $160E;
  2500. PMERR_INTERNAL_ERROR_15 = $160F;
  2501. PMERR_INTERNAL_ERROR_16 = $1610;
  2502. PMERR_INTERNAL_ERROR_17 = $1611;
  2503. PMERR_INTERNAL_ERROR_18 = $1612;
  2504. PMERR_INTERNAL_ERROR_19 = $1613;
  2505. PMERR_INTERNAL_ERROR_20 = $1614;
  2506. PMERR_INTERNAL_ERROR_21 = $1615;
  2507. PMERR_INTERNAL_ERROR_22 = $1616;
  2508. PMERR_INTERNAL_ERROR_23 = $1617;
  2509. PMERR_INTERNAL_ERROR_24 = $1618;
  2510. PMERR_INTERNAL_ERROR_25 = $1619;
  2511. PMERR_INTERNAL_ERROR_26 = $161A;
  2512. PMERR_INTERNAL_ERROR_27 = $161B;
  2513. PMERR_INTERNAL_ERROR_28 = $161C;
  2514. PMERR_INTERNAL_ERROR_29 = $161D;
  2515. PMERR_INVALID_FREE_MESSAGE_ID = $1630;
  2516. PMERR_FUNCTION_NOT_SUPPORTED = $1641;
  2517. PMERR_INVALID_ARRAY_COUNT = $1642;
  2518. PMERR_INVALID_LENGTH = $1643;
  2519. PMERR_INVALID_BUNDLE_TYPE = $1644;
  2520. PMERR_INVALID_PARAMETER = $1645;
  2521. PMERR_INVALID_NUMBER_OF_PARMS = $1646;
  2522. PMERR_GREATER_THAN_64K = $1647;
  2523. PMERR_INVALID_PARAMETER_TYPE = $1648;
  2524. PMERR_NEGATIVE_STRCOND_DIM = $1649;
  2525. PMERR_INVALID_NUMBER_OF_TYPES = $164A;
  2526. PMERR_INCORRECT_HSTRUCT = $164B;
  2527. PMERR_INVALID_ARRAY_SIZE = $164C;
  2528. PMERR_INVALID_CONTROL_DATATYPE = $164D;
  2529. PMERR_INCOMPLETE_CONTROL_SEQU = $164E;
  2530. PMERR_INVALID_DATATYPE = $164F;
  2531. PMERR_INCORRECT_DATATYPE = $1650;
  2532. PMERR_NOT_SELF_DESCRIBING_DTYP = $1651;
  2533. PMERR_INVALID_CTRL_SEQ_INDEX = $1652;
  2534. PMERR_INVALID_TYPE_FOR_LENGTH = $1653;
  2535. PMERR_INVALID_TYPE_FOR_OFFSET = $1654;
  2536. PMERR_INVALID_TYPE_FOR_MPARAM = $1655;
  2537. PMERR_INVALID_MESSAGE_ID = $1656;
  2538. PMERR_C_LENGTH_TOO_SMALL = $1657;
  2539. PMERR_APPL_STRUCTURE_TOO_SMALL = $1658;
  2540. PMERR_INVALID_ERRORINFO_HANDLE = $1659;
  2541. PMERR_INVALID_CHARACTER_INDEX = $165A;
  2542. WPERR_PROTECTED_CLASS = $1700;
  2543. WPERR_INVALID_CLASS = $1701;
  2544. WPERR_INVALID_SUPERCLASS = $1702;
  2545. WPERR_NO_MEMORY = $1703;
  2546. WPERR_SEMAPHORE_ERROR = $1704;
  2547. WPERR_BUFFER_TOO_SMALL = $1705;
  2548. WPERR_CLSLOADMOD_FAILED = $1706;
  2549. WPERR_CLSPROCADDR_FAILED = $1707;
  2550. WPERR_OBJWORD_LOCATION = $1708;
  2551. WPERR_INVALID_OBJECT = $1709;
  2552. WPERR_MEMORY_CLEANUP = $170A;
  2553. WPERR_INVALID_MODULE = $170B;
  2554. WPERR_INVALID_OLDCLASS = $170C;
  2555. WPERR_INVALID_NEWCLASS = $170D;
  2556. WPERR_NOT_IMMEDIATE_CHILD = $170E;
  2557. WPERR_NOT_WORKPLACE_CLASS = $170F;
  2558. WPERR_CANT_REPLACE_METACLS = $1710;
  2559. WPERR_INI_FILE_WRITE = $1711;
  2560. WPERR_INVALID_FOLDER = $1712;
  2561. WPERR_BUFFER_OVERFLOW = $1713;
  2562. WPERR_OBJECT_NOT_FOUND = $1714;
  2563. WPERR_INVALID_HFIND = $1715;
  2564. WPERR_INVALID_COUNT = $1716;
  2565. WPERR_INVALID_BUFFER = $1717;
  2566. WPERR_ALREADY_EXISTS = $1718;
  2567. WPERR_INVALID_FLAGS = $1719;
  2568. WPERR_INVALID_OBJECTID = $1720;
  2569. PMERR_OK = $0000;
  2570. PMERR_ALREADY_IN_AREA = $2001;
  2571. PMERR_ALREADY_IN_ELEMENT = $2002;
  2572. PMERR_ALREADY_IN_PATH = $2003;
  2573. PMERR_ALREADY_IN_SEG = $2004;
  2574. PMERR_AREA_INCOMPLETE = $2005;
  2575. PMERR_BASE_ERROR = $2006;
  2576. PMERR_BITBLT_LENGTH_EXCEEDED = $2007;
  2577. PMERR_BITMAP_IN_USE = $2008;
  2578. PMERR_BITMAP_IS_SELECTED = $2009;
  2579. PMERR_BITMAP_NOT_FOUND = $200A;
  2580. PMERR_BITMAP_NOT_SELECTED = $200B;
  2581. PMERR_BOUNDS_OVERFLOW = $200C;
  2582. PMERR_CALLED_SEG_IS_CHAINED = $200D;
  2583. PMERR_CALLED_SEG_IS_CURRENT = $200E;
  2584. PMERR_CALLED_SEG_NOT_FOUND = $200F;
  2585. PMERR_CANNOT_DELETE_ALL_DATA = $2010;
  2586. PMERR_CANNOT_REPLACE_ELEMENT_0 = $2011;
  2587. PMERR_COL_TABLE_NOT_REALIZABLE = $2012;
  2588. PMERR_COL_TABLE_NOT_REALIZED = $2013;
  2589. PMERR_COORDINATE_OVERFLOW = $2014;
  2590. PMERR_CORR_FORMAT_MISMATCH = $2015;
  2591. PMERR_DATA_TOO_LONG = $2016;
  2592. PMERR_DC_IS_ASSOCIATED = $2017;
  2593. PMERR_DESC_STRING_TRUNCATED = $2018;
  2594. PMERR_DEVICE_DRIVER_ERROR_1 = $2019;
  2595. PMERR_DEVICE_DRIVER_ERROR_2 = $201A;
  2596. PMERR_DEVICE_DRIVER_ERROR_3 = $201B;
  2597. PMERR_DEVICE_DRIVER_ERROR_4 = $201C;
  2598. PMERR_DEVICE_DRIVER_ERROR_5 = $201D;
  2599. PMERR_DEVICE_DRIVER_ERROR_6 = $201E;
  2600. PMERR_DEVICE_DRIVER_ERROR_7 = $201F;
  2601. PMERR_DEVICE_DRIVER_ERROR_8 = $2020;
  2602. PMERR_DEVICE_DRIVER_ERROR_9 = $2021;
  2603. PMERR_DEVICE_DRIVER_ERROR_10 = $2022;
  2604. PMERR_DEV_FUNC_NOT_INSTALLED = $2023;
  2605. PMERR_DOSOPEN_FAILURE = $2024;
  2606. PMERR_DOSREAD_FAILURE = $2025;
  2607. PMERR_DRIVER_NOT_FOUND = $2026;
  2608. PMERR_DUP_SEG = $2027;
  2609. PMERR_DYNAMIC_SEG_SEQ_ERROR = $2028;
  2610. PMERR_DYNAMIC_SEG_ZERO_INV = $2029;
  2611. PMERR_ELEMENT_INCOMPLETE = $202A;
  2612. PMERR_ESC_CODE_NOT_SUPPORTED = $202B;
  2613. PMERR_EXCEEDS_MAX_SEG_LENGTH = $202C;
  2614. PMERR_FONT_AND_MODE_MISMATCH = $202D;
  2615. PMERR_FONT_FILE_NOT_LOADED = $202E;
  2616. PMERR_FONT_NOT_LOADED = $202F;
  2617. PMERR_FONT_TOO_BIG = $2030;
  2618. PMERR_HARDWARE_INIT_FAILURE = $2031;
  2619. PMERR_HBITMAP_BUSY = $2032;
  2620. PMERR_HDC_BUSY = $2033;
  2621. PMERR_HRGN_BUSY = $2034;
  2622. PMERR_HUGE_FONTS_NOT_SUPPORTED = $2035;
  2623. PMERR_ID_HAS_NO_BITMAP = $2036;
  2624. PMERR_IMAGE_INCOMPLETE = $2037;
  2625. PMERR_INCOMPAT_COLOR_FORMAT = $2038;
  2626. PMERR_INCOMPAT_COLOR_OPTIONS = $2039;
  2627. PMERR_INCOMPATIBLE_BITMAP = $203A;
  2628. PMERR_INCOMPATIBLE_METAFILE = $203B;
  2629. PMERR_INCORRECT_DC_TYPE = $203C;
  2630. PMERR_INSUFFICIENT_DISK_SPACE = $203D;
  2631. PMERR_INSUFFICIENT_MEMORY = $203E;
  2632. PMERR_INV_ANGLE_PARM = $203F;
  2633. PMERR_INV_ARC_CONTROL = $2040;
  2634. PMERR_INV_AREA_CONTROL = $2041;
  2635. PMERR_INV_ARC_POINTS = $2042;
  2636. PMERR_INV_ATTR_MODE = $2043;
  2637. PMERR_INV_BACKGROUND_COL_ATTR = $2044;
  2638. PMERR_INV_BACKGROUND_MIX_ATTR = $2045;
  2639. PMERR_INV_BITBLT_MIX = $2046;
  2640. PMERR_INV_BITBLT_STYLE = $2047;
  2641. PMERR_INV_BITMAP_DIMENSION = $2048;
  2642. PMERR_INV_BOX_CONTROL = $2049;
  2643. PMERR_INV_BOX_ROUNDING_PARM = $204A;
  2644. PMERR_INV_CHAR_ANGLE_ATTR = $204B;
  2645. PMERR_INV_CHAR_DIRECTION_ATTR = $204C;
  2646. PMERR_INV_CHAR_MODE_ATTR = $204D;
  2647. PMERR_INV_CHAR_POS_OPTIONS = $204E;
  2648. PMERR_INV_CHAR_SET_ATTR = $204F;
  2649. PMERR_INV_CHAR_SHEAR_ATTR = $2050;
  2650. PMERR_INV_CLIP_PATH_OPTIONS = $2051;
  2651. PMERR_INV_CODEPAGE = $2052;
  2652. PMERR_INV_COLOR_ATTR = $2053;
  2653. PMERR_INV_COLOR_DATA = $2054;
  2654. PMERR_INV_COLOR_FORMAT = $2055;
  2655. PMERR_INV_COLOR_INDEX = $2056;
  2656. PMERR_INV_COLOR_OPTIONS = $2057;
  2657. PMERR_INV_COLOR_START_INDEX = $2058;
  2658. PMERR_INV_COORD_OFFSET = $2059;
  2659. PMERR_INV_COORD_SPACE = $205A;
  2660. PMERR_INV_COORDINATE = $205B;
  2661. PMERR_INV_CORRELATE_DEPTH = $205C;
  2662. PMERR_INV_CORRELATE_TYPE = $205D;
  2663. PMERR_INV_CURSOR_BITMAP = $205E;
  2664. PMERR_INV_DC_DATA = $205F;
  2665. PMERR_INV_DC_TYPE = $2060;
  2666. PMERR_INV_DEVICE_NAME = $2061;
  2667. PMERR_INV_DEV_MODES_OPTIONS = $2062;
  2668. PMERR_INV_DRAW_CONTROL = $2063;
  2669. PMERR_INV_DRAW_VALUE = $2064;
  2670. PMERR_INV_DRAWING_MODE = $2065;
  2671. PMERR_INV_DRIVER_DATA = $2066;
  2672. PMERR_INV_DRIVER_NAME = $2067;
  2673. PMERR_INV_DRAW_BORDER_OPTION = $2068;
  2674. PMERR_INV_EDIT_MODE = $2069;
  2675. PMERR_INV_ELEMENT_OFFSET = $206A;
  2676. PMERR_INV_ELEMENT_POINTER = $206B;
  2677. PMERR_INV_END_PATH_OPTIONS = $206C;
  2678. PMERR_INV_ESC_CODE = $206D;
  2679. PMERR_INV_ESCAPE_DATA = $206E;
  2680. PMERR_INV_EXTENDED_LCID = $206F;
  2681. PMERR_INV_FILL_PATH_OPTIONS = $2070;
  2682. PMERR_INV_FIRST_CHAR = $2071;
  2683. PMERR_INV_FONT_ATTRS = $2072;
  2684. PMERR_INV_FONT_FILE_DATA = $2073;
  2685. PMERR_INV_FOR_THIS_DC_TYPE = $2074;
  2686. PMERR_INV_FORMAT_CONTROL = $2075;
  2687. PMERR_INV_FORMS_CODE = $2076;
  2688. PMERR_INV_FONTDEF = $2077;
  2689. PMERR_INV_GEOM_LINE_WIDTH_ATTR = $2078;
  2690. PMERR_INV_GETDATA_CONTROL = $2079;
  2691. PMERR_INV_GRAPHICS_FIELD = $207A;
  2692. PMERR_INV_HBITMAP = $207B;
  2693. PMERR_INV_HDC = $207C;
  2694. PMERR_INV_HJOURNAL = $207D;
  2695. PMERR_INV_HMF = $207E;
  2696. PMERR_INV_HPS = $207F;
  2697. PMERR_INV_HRGN = $2080;
  2698. PMERR_INV_ID = $2081;
  2699. PMERR_INV_IMAGE_DATA_LENGTH = $2082;
  2700. PMERR_INV_IMAGE_DIMENSION = $2083;
  2701. PMERR_INV_IMAGE_FORMAT = $2084;
  2702. PMERR_INV_IN_AREA = $2085;
  2703. PMERR_INV_IN_CALLED_SEG = $2086;
  2704. PMERR_INV_IN_CURRENT_EDIT_MODE = $2087;
  2705. PMERR_INV_IN_DRAW_MODE = $2088;
  2706. PMERR_INV_IN_ELEMENT = $2089;
  2707. PMERR_INV_IN_IMAGE = $208A;
  2708. PMERR_INV_IN_PATH = $208B;
  2709. PMERR_INV_IN_RETAIN_MODE = $208C;
  2710. PMERR_INV_IN_SEG = $208D;
  2711. PMERR_INV_IN_VECTOR_SYMBOL = $208E;
  2712. PMERR_INV_INFO_TABLE = $208F;
  2713. PMERR_INV_JOURNAL_OPTION = $2090;
  2714. PMERR_INV_KERNING_FLAGS = $2091;
  2715. PMERR_INV_LENGTH_OR_COUNT = $2092;
  2716. PMERR_INV_LINE_END_ATTR = $2093;
  2717. PMERR_INV_LINE_JOIN_ATTR = $2094;
  2718. PMERR_INV_LINE_TYPE_ATTR = $2095;
  2719. PMERR_INV_LINE_WIDTH_ATTR = $2096;
  2720. PMERR_INV_LOGICAL_ADDRESS = $2097;
  2721. PMERR_INV_MARKER_BOX_ATTR = $2098;
  2722. PMERR_INV_MARKER_SET_ATTR = $2099;
  2723. PMERR_INV_MARKER_SYMBOL_ATTR = $209A;
  2724. PMERR_INV_MATRIX_ELEMENT = $209B;
  2725. PMERR_INV_MAX_HITS = $209C;
  2726. PMERR_INV_METAFILE = $209D;
  2727. PMERR_INV_METAFILE_LENGTH = $209E;
  2728. PMERR_INV_METAFILE_OFFSET = $209F;
  2729. PMERR_INV_MICROPS_DRAW_CONTROL = $20A0;
  2730. PMERR_INV_MICROPS_FUNCTION = $20A1;
  2731. PMERR_INV_MICROPS_ORDER = $20A2;
  2732. PMERR_INV_MIX_ATTR = $20A3;
  2733. PMERR_INV_MODE_FOR_OPEN_DYN = $20A4;
  2734. PMERR_INV_MODE_FOR_REOPEN_SEG = $20A5;
  2735. PMERR_INV_MODIFY_PATH_MODE = $20A6;
  2736. PMERR_INV_MULTIPLIER = $20A7;
  2737. PMERR_INV_NESTED_FIGURES = $20A8;
  2738. PMERR_INV_OR_INCOMPAT_OPTIONS = $20A9;
  2739. PMERR_INV_ORDER_LENGTH = $20AA;
  2740. PMERR_INV_ORDERING_PARM = $20AB;
  2741. PMERR_INV_OUTSIDE_DRAW_MODE = $20AC;
  2742. PMERR_INV_PAGE_VIEWPORT = $20AD;
  2743. PMERR_INV_PATH_ID = $20AE;
  2744. PMERR_INV_PATH_MODE = $20AF;
  2745. PMERR_INV_PATTERN_ATTR = $20B0;
  2746. PMERR_INV_PATTERN_REF_PT_ATTR = $20B1;
  2747. PMERR_INV_PATTERN_SET_ATTR = $20B2;
  2748. PMERR_INV_PATTERN_SET_FONT = $20B3;
  2749. PMERR_INV_PICK_APERTURE_OPTION = $20B4;
  2750. PMERR_INV_PICK_APERTURE_POSN = $20B5;
  2751. PMERR_INV_PICK_APERTURE_SIZE = $20B6;
  2752. PMERR_INV_PICK_NUMBER = $20B7;
  2753. PMERR_INV_PLAY_METAFILE_OPTION = $20B8;
  2754. PMERR_INV_PRIMITIVE_TYPE = $20B9;
  2755. PMERR_INV_PS_SIZE = $20BA;
  2756. PMERR_INV_PUTDATA_FORMAT = $20BB;
  2757. PMERR_INV_QUERY_ELEMENT_NO = $20BC;
  2758. PMERR_INV_RECT = $20BD;
  2759. PMERR_INV_REGION_CONTROL = $20BE;
  2760. PMERR_INV_REGION_MIX_MODE = $20BF;
  2761. PMERR_INV_REPLACE_MODE_FUNC = $20C0;
  2762. PMERR_INV_RESERVED_FIELD = $20C1;
  2763. PMERR_INV_RESET_OPTIONS = $20C2;
  2764. PMERR_INV_RGBCOLOR = $20C3;
  2765. PMERR_INV_SCAN_START = $20C4;
  2766. PMERR_INV_SEG_ATTR = $20C5;
  2767. PMERR_INV_SEG_ATTR_VALUE = $20C6;
  2768. PMERR_INV_SEG_CH_LENGTH = $20C7;
  2769. PMERR_INV_SEG_NAME = $20C8;
  2770. PMERR_INV_SEG_OFFSET = $20C9;
  2771. PMERR_INV_SETID = $20CA;
  2772. PMERR_INV_SETID_TYPE = $20CB;
  2773. PMERR_INV_SET_VIEWPORT_OPTION = $20CC;
  2774. PMERR_INV_SHARPNESS_PARM = $20CD;
  2775. PMERR_INV_SOURCE_OFFSET = $20CE;
  2776. PMERR_INV_STOP_DRAW_VALUE = $20CF;
  2777. PMERR_INV_TRANSFORM_TYPE = $20D0;
  2778. PMERR_INV_USAGE_PARM = $20D1;
  2779. PMERR_INV_VIEWING_LIMITS = $20D2;
  2780. PMERR_JFILE_BUSY = $20D3;
  2781. PMERR_JNL_FUNC_DATA_TOO_LONG = $20D4;
  2782. PMERR_KERNING_NOT_SUPPORTED = $20D5;
  2783. PMERR_LABEL_NOT_FOUND = $20D6;
  2784. PMERR_MATRIX_OVERFLOW = $20D7;
  2785. PMERR_METAFILE_INTERNAL_ERROR = $20D8;
  2786. PMERR_METAFILE_IN_USE = $20D9;
  2787. PMERR_METAFILE_LIMIT_EXCEEDED = $20DA;
  2788. PMERR_NAME_STACK_FULL = $20DB;
  2789. PMERR_NOT_CREATED_BY_DEVOPENDC = $20DC;
  2790. PMERR_NOT_IN_AREA = $20DD;
  2791. PMERR_NOT_IN_DRAW_MODE = $20DE;
  2792. PMERR_NOT_IN_ELEMENT = $20DF;
  2793. PMERR_NOT_IN_IMAGE = $20E0;
  2794. PMERR_NOT_IN_PATH = $20E1;
  2795. PMERR_NOT_IN_RETAIN_MODE = $20E2;
  2796. PMERR_NOT_IN_SEG = $20E3;
  2797. PMERR_NO_BITMAP_SELECTED = $20E4;
  2798. PMERR_NO_CURRENT_ELEMENT = $20E5;
  2799. PMERR_NO_CURRENT_SEG = $20E6;
  2800. PMERR_NO_METAFILE_RECORD_HANDLE = $20E7;
  2801. PMERR_ORDER_TOO_BIG = $20E8;
  2802. PMERR_OTHER_SET_ID_REFS = $20E9;
  2803. PMERR_OVERRAN_SEG = $20EA;
  2804. PMERR_OWN_SET_ID_REFS = $20EB;
  2805. PMERR_PATH_INCOMPLETE = $20EC;
  2806. PMERR_PATH_LIMIT_EXCEEDED = $20ED;
  2807. PMERR_PATH_UNKNOWN = $20EE;
  2808. PMERR_PEL_IS_CLIPPED = $20EF;
  2809. PMERR_PEL_NOT_AVAILABLE = $20F0;
  2810. PMERR_PRIMITIVE_STACK_EMPTY = $20F1;
  2811. PMERR_PROLOG_ERROR = $20F2;
  2812. PMERR_PROLOG_SEG_ATTR_NOT_SET = $20F3;
  2813. PMERR_PS_BUSY = $20F4;
  2814. PMERR_PS_IS_ASSOCIATED = $20F5;
  2815. PMERR_RAM_JNL_FILE_TOO_SMALL = $20F6;
  2816. PMERR_REALIZE_NOT_SUPPORTED = $20F7;
  2817. PMERR_REGION_IS_CLIP_REGION = $20F8;
  2818. PMERR_RESOURCE_DEPLETION = $20F9;
  2819. PMERR_SEG_AND_REFSEG_ARE_SAME = $20FA;
  2820. PMERR_SEG_CALL_RECURSIVE = $20FB;
  2821. PMERR_SEG_CALL_STACK_EMPTY = $20FC;
  2822. PMERR_SEG_CALL_STACK_FULL = $20FD;
  2823. PMERR_SEG_IS_CURRENT = $20FE;
  2824. PMERR_SEG_NOT_CHAINED = $20FF;
  2825. PMERR_SEG_NOT_FOUND = $2100;
  2826. PMERR_SEG_STORE_LIMIT_EXCEEDED = $2101;
  2827. PMERR_SETID_IN_USE = $2102;
  2828. PMERR_SETID_NOT_FOUND = $2103;
  2829. PMERR_STARTDOC_NOT_ISSUED = $2104;
  2830. PMERR_STOP_DRAW_OCCURRED = $2105;
  2831. PMERR_TOO_MANY_METAFILES_IN_USE = $2106;
  2832. PMERR_TRUNCATED_ORDER = $2107;
  2833. PMERR_UNCHAINED_SEG_ZERO_INV = $2108;
  2834. PMERR_UNSUPPORTED_ATTR = $2109;
  2835. PMERR_UNSUPPORTED_ATTR_VALUE = $210A;
  2836. PMERR_ENDDOC_NOT_ISSUED = $210B;
  2837. PMERR_PS_NOT_ASSOCIATED = $210C;
  2838. PMERR_INV_FLOOD_FILL_OPTIONS = $210D;
  2839. PMERR_INV_FACENAME = $210E;
  2840. PMERR_PALETTE_SELECTED = $210F;
  2841. PMERR_NO_PALETTE_SELECTED = $2110;
  2842. PMERR_INV_HPAL = $2111;
  2843. PMERR_PALETTE_BUSY = $2112;
  2844. PMERR_START_POINT_CLIPPED = $2113;
  2845. PMERR_NO_FILL = $2114;
  2846. PMERR_INV_FACENAMEDESC = $2115;
  2847. PMERR_INV_BITMAP_DATA = $2116;
  2848. PMERR_INV_CHAR_ALIGN_ATTR = $2117;
  2849. PMERR_INV_HFONT = $2118;
  2850. PMERR_HFONT_IS_SELECTED = $2119;
  2851. PMERR_SPL_DRIVER_ERROR = $4001;
  2852. PMERR_SPL_DEVICE_ERROR = $4002;
  2853. PMERR_SPL_DEVICE_NOT_INSTALLED = $4003;
  2854. PMERR_SPL_QUEUE_ERROR = $4004;
  2855. PMERR_SPL_INV_HSPL = $4005;
  2856. PMERR_SPL_NO_DISK_SPACE = $4006;
  2857. PMERR_SPL_NO_MEMORY = $4007;
  2858. PMERR_SPL_PRINT_ABORT = $4008;
  2859. PMERR_SPL_SPOOLER_NOT_INSTALLED = $4009;
  2860. PMERR_SPL_INV_FORMS_CODE = $400A;
  2861. PMERR_SPL_INV_PRIORITY = $400B;
  2862. PMERR_SPL_NO_FREE_JOB_ID = $400C;
  2863. PMERR_SPL_NO_DATA = $400D;
  2864. PMERR_SPL_INV_TOKEN = $400E;
  2865. PMERR_SPL_INV_DATATYPE = $400F;
  2866. PMERR_SPL_PROCESSOR_ERROR = $4010;
  2867. PMERR_SPL_INV_JOB_ID = $4011;
  2868. PMERR_SPL_JOB_NOT_PRINTING = $4012;
  2869. PMERR_SPL_JOB_PRINTING = $4013;
  2870. PMERR_SPL_QUEUE_ALREADY_EXISTS = $4014;
  2871. PMERR_SPL_INV_QUEUE_NAME = $4015;
  2872. PMERR_SPL_QUEUE_NOT_EMPTY = $4016;
  2873. PMERR_SPL_DEVICE_ALREADY_EXISTS = $4017;
  2874. PMERR_SPL_DEVICE_LIMIT_REACHED = $4018;
  2875. PMERR_SPL_STATUS_STRING_TRUNC = $4019;
  2876. PMERR_SPL_INV_LENGTH_OR_COUNT = $401A;
  2877. PMERR_SPL_FILE_NOT_FOUND = $401B;
  2878. PMERR_SPL_CANNOT_OPEN_FILE = $401C;
  2879. PMERR_SPL_DRIVER_NOT_INSTALLED = $401D;
  2880. PMERR_SPL_INV_PROCESSOR_DATTYPE = $401E;
  2881. PMERR_SPL_INV_DRIVER_DATATYPE = $401F;
  2882. PMERR_SPL_PROCESSOR_NOT_INST = $4020;
  2883. PMERR_SPL_NO_SUCH_LOG_ADDRESS = $4021;
  2884. PMERR_SPL_PRINTER_NOT_FOUND = $4022;
  2885. PMERR_SPL_DD_NOT_FOUND = $4023;
  2886. PMERR_SPL_QUEUE_NOT_FOUND = $4024;
  2887. PMERR_SPL_MANY_QUEUES_ASSOC = $4025;
  2888. PMERR_SPL_NO_QUEUES_ASSOCIATED = $4026;
  2889. PMERR_SPL_INI_FILE_ERROR = $4027;
  2890. PMERR_SPL_NO_DEFAULT_QUEUE = $4028;
  2891. PMERR_SPL_NO_CURRENT_FORMS_CODE = $4029;
  2892. PMERR_SPL_NOT_AUTHORISED = $402A;
  2893. PMERR_SPL_TEMP_NETWORK_ERROR = $402B;
  2894. PMERR_SPL_HARD_NETWORK_ERROR = $402C;
  2895. PMERR_DEL_NOT_ALLOWED = $402D;
  2896. PMERR_CANNOT_DEL_QP_REF = $402E;
  2897. PMERR_CANNOT_DEL_QNAME_REF = $402F;
  2898. PMERR_CANNOT_DEL_PRINTER_DD_REF = $4030;
  2899. PMERR_CANNOT_DEL_PRN_NAME_REF = $4031;
  2900. PMERR_CANNOT_DEL_PRN_ADDR_REF = $4032;
  2901. PMERR_SPOOLER_QP_NOT_DEFINED = $4033;
  2902. PMERR_PRN_NAME_NOT_DEFINED = $4034;
  2903. PMERR_PRN_ADDR_NOT_DEFINED = $4035;
  2904. PMERR_PRINTER_DD_NOT_DEFINED = $4036;
  2905. PMERR_PRINTER_QUEUE_NOT_DEFINED = $4037;
  2906. PMERR_PRN_ADDR_IN_USE = $4038;
  2907. PMERR_SPL_TOO_MANY_OPEN_FILES = $4039;
  2908. PMERR_SPL_CP_NOT_REQD = $403A;
  2909. PMERR_UNABLE_TO_CLOSE_DEVICE = $4040;
  2910. PMERR_SPL_ERROR_1 = (SPLERR_BASE+4001);
  2911. PMERR_SPL_ERROR_2 = (SPLERR_BASE+4002);
  2912. PMERR_SPL_ERROR_3 = (SPLERR_BASE+4003);
  2913. PMERR_SPL_ERROR_4 = (SPLERR_BASE+4004);
  2914. PMERR_SPL_ERROR_5 = (SPLERR_BASE+4005);
  2915. PMERR_SPL_ERROR_6 = (SPLERR_BASE+4006);
  2916. PMERR_SPL_ERROR_7 = (SPLERR_BASE+4007);
  2917. PMERR_SPL_ERROR_8 = (SPLERR_BASE+4008);
  2918. PMERR_SPL_ERROR_9 = (SPLERR_BASE+4009);
  2919. PMERR_SPL_ERROR_10 = (SPLERR_BASE+4010);
  2920. PMERR_SPL_ERROR_11 = (SPLERR_BASE+4011);
  2921. PMERR_SPL_ERROR_12 = (SPLERR_BASE+4012);
  2922. PMERR_SPL_ERROR_13 = (SPLERR_BASE+4013);
  2923. PMERR_SPL_ERROR_14 = (SPLERR_BASE+4014);
  2924. PMERR_SPL_ERROR_15 = (SPLERR_BASE+4015);
  2925. PMERR_SPL_ERROR_16 = (SPLERR_BASE+4016);
  2926. PMERR_SPL_ERROR_17 = (SPLERR_BASE+4017);
  2927. PMERR_SPL_ERROR_18 = (SPLERR_BASE+4018);
  2928. PMERR_SPL_ERROR_19 = (SPLERR_BASE+4019);
  2929. PMERR_SPL_ERROR_20 = (SPLERR_BASE+4020);
  2930. PMERR_SPL_ERROR_21 = (SPLERR_BASE+4021);
  2931. PMERR_SPL_ERROR_22 = (SPLERR_BASE+4022);
  2932. PMERR_SPL_ERROR_23 = (SPLERR_BASE+4023);
  2933. PMERR_SPL_ERROR_24 = (SPLERR_BASE+4024);
  2934. PMERR_SPL_ERROR_25 = (SPLERR_BASE+4025);
  2935. PMERR_SPL_ERROR_26 = (SPLERR_BASE+4026);
  2936. PMERR_SPL_ERROR_27 = (SPLERR_BASE+4027);
  2937. PMERR_SPL_ERROR_28 = (SPLERR_BASE+4028);
  2938. PMERR_SPL_ERROR_29 = (SPLERR_BASE+4029);
  2939. PMERR_SPL_ERROR_30 = (SPLERR_BASE+4030);
  2940. PMERR_SPL_ERROR_31 = (SPLERR_BASE+4031);
  2941. PMERR_SPL_ERROR_32 = (SPLERR_BASE+4032);
  2942. PMERR_SPL_ERROR_33 = (SPLERR_BASE+4033);
  2943. PMERR_SPL_ERROR_34 = (SPLERR_BASE+4034);
  2944. PMERR_SPL_ERROR_35 = (SPLERR_BASE+4035);
  2945. PMERR_SPL_ERROR_36 = (SPLERR_BASE+4036);
  2946. PMERR_SPL_ERROR_37 = (SPLERR_BASE+4037);
  2947. PMERR_SPL_ERROR_38 = (SPLERR_BASE+4038);
  2948. PMERR_SPL_ERROR_39 = (SPLERR_BASE+4039);
  2949. PMERR_SPL_ERROR_40 = (SPLERR_BASE+4040);
  2950. PMERR_SPLMSGBOX_INFO_CAPTION = (SPLERR_BASE+4041);
  2951. PMERR_SPLMSGBOX_WARNING_CAPTION = (SPLERR_BASE+4042);
  2952. PMERR_SPLMSGBOX_ERROR_CAPTION = (SPLERR_BASE+4043);
  2953. PMERR_SPLMSGBOX_SEVERE_CAPTION = (SPLERR_BASE+4044);
  2954. PMERR_SPLMSGBOX_JOB_DETAILS = (SPLERR_BASE+4045);
  2955. PMERR_SPLMSGBOX_ERROR_ACTION = (SPLERR_BASE+4046);
  2956. PMERR_SPLMSGBOX_SEVERE_ACTION = (SPLERR_BASE+4047);
  2957. PMERR_SPLMSGBOX_BIT_0_TEXT = (SPLERR_BASE+4048);
  2958. PMERR_SPLMSGBOX_BIT_1_TEXT = (SPLERR_BASE+4049);
  2959. PMERR_SPLMSGBOX_BIT_2_TEXT = (SPLERR_BASE+4050);
  2960. PMERR_SPLMSGBOX_BIT_3_TEXT = (SPLERR_BASE+4051);
  2961. PMERR_SPLMSGBOX_BIT_4_TEXT = (SPLERR_BASE+4052);
  2962. PMERR_SPLMSGBOX_BIT_5_TEXT = (SPLERR_BASE+4053);
  2963. PMERR_SPLMSGBOX_BIT_15_TEXT = (SPLERR_BASE+4054);
  2964. PMERR_SPL_NOPATHBUFFER = (SPLERR_BASE+4055);
  2965. PMERR_SPL_ALREADY_INITIALISED = (SPLERR_BASE+4093);
  2966. PMERR_SPL_ERROR = (SPLERR_BASE+4095);
  2967. PMERR_INV_TYPE = $5001;
  2968. PMERR_INV_CONV = $5002;
  2969. PMERR_INV_SEGLEN = $5003;
  2970. PMERR_DUP_SEGNAME = $5004;
  2971. PMERR_INV_XFORM = $5005;
  2972. PMERR_INV_VIEWLIM = $5006;
  2973. PMERR_INV_3DCOORD = $5007;
  2974. PMERR_SMB_OVFLOW = $5008;
  2975. PMERR_SEG_OVFLOW = $5009;
  2976. PMERR_PIC_DUP_FILENAME = $5010;
  2977. function WinRegisterClass(hab : cardinal;pszClassName : pchar;pfnWndProc : proc;flStyle,cbWindowData : cardinal) : longbool; cdecl;
  2978. function WinDefWindowProc(hwnd,msg : cardinal;mp1,mp2 : pointer) : pointer; cdecl;
  2979. function WinDestroyWindow(hwnd : cardinal) : longbool; cdecl;
  2980. function WinShowWindow(hwnd : cardinal;fShow : longbool) : longbool; cdecl;
  2981. function WinQueryWindowRect(hwnd : cardinal;var rclDest : TRectl) : longbool; cdecl;
  2982. function WinQueryWindowRect(hwnd : cardinal;prclDest : PRectl) : longbool; cdecl;
  2983. function WinGetPS(hwnd : cardinal) : cardinal; cdecl;
  2984. function WinReleasePS(hps : cardinal) : longbool; cdecl;
  2985. function WinEndPaint(hps : cardinal) : longbool; cdecl;
  2986. function WinGetClipPS(hwnd,hwndClip,fl : cardinal) : cardinal; cdecl;
  2987. function WinIsWindowShowing(hwnd : cardinal) : longbool; cdecl;
  2988. function WinBeginPaint(hwnd,hps : cardinal;var rclPaint : TRectl) : cardinal; cdecl;
  2989. function WinBeginPaint(hwnd,hps : cardinal;prclPaint: PRectl) : cardinal; cdecl;
  2990. function WinOpenWindowDC(hwnd : cardinal) : cardinal; cdecl;
  2991. function WinScrollWindow(hwnd : cardinal;dx,dy : longint;var rclScroll,rclClip : TRectl;hrgnUpdate : cardinal;var rclUpdate : TRectl;rgfsw : cardinal) : longint; cdecl;
  2992. function WinScrollWindow(hwnd : cardinal;dx,dy : longint;prclScroll,prclClip : PRectl;hrgnUpdate : cardinal;prclUpdate : PRectl;rgfsw : cardinal) : longint; cdecl;
  2993. function WinFillRect(hps : cardinal;var rcl : TRectl;lColor : longint) : longbool; cdecl;
  2994. function WinFillRect(hps : cardinal;prcl : PRectl;lColor : longint) : longbool; cdecl;
  2995. function WinQueryVersion(hab : cardinal) : cardinal; cdecl;
  2996. function WinInitialize(flOptions : cardinal) : cardinal; cdecl;
  2997. function WinTerminate(hab : cardinal) : longbool; cdecl;
  2998. function WinQueryAnchorBlock(hwnd : cardinal) : cardinal; cdecl;
  2999. function WinCreateWindow(hwndParent : cardinal;pszClass,pszName : pchar;flStyle : cardinal;x,y,cx,cy : longint;hwndOwner,hwndInsertBehind,id : cardinal;pCtlData,pPresParams : pointer) : cardinal; cdecl;
  3000. function WinCreateWindow(hwndParent : cardinal;pszClass : cardinal;pszName : pchar;flStyle : cardinal;x,y,cx,cy : longint;hwndOwner,hwndInsertBehind,id : cardinal;pCtlData,pPresParams : pointer) : cardinal; cdecl;
  3001. function WinCreateWCWindow(hwndParent : cardinal;pszClass : cardinal;pszName : pchar;flStyle : cardinal;x,y,cx,cy : longint;hwndOwner,hwndInsertBehind,id : cardinal;pCtlData,pPresParams : pointer) : cardinal; cdecl;
  3002. function WinEnableWindow(hwnd : cardinal;fEnable : longbool) : longbool; cdecl;
  3003. function WinIsWindowEnabled(hwnd : cardinal) : longbool; cdecl;
  3004. function WinEnableWindowUpdate(hwnd : cardinal;fEnable : longbool) : longbool; cdecl;
  3005. function WinIsWindowVisible(hwnd : cardinal) : longbool; cdecl;
  3006. function WinQueryWindowText(hwnd : cardinal;cchBufferMax : longint;pchBuffer : pchar) : longint; cdecl;
  3007. function WinSetWindowText(hwnd : cardinal;pszText : pchar) : longbool; cdecl;
  3008. function WinQueryWindowTextLength(hwnd : cardinal) : longint; cdecl;
  3009. function WinWindowFromID(hwndParent,id : cardinal) : cardinal; cdecl;
  3010. function WinIsWindow(hab,hwnd : cardinal) : longbool; cdecl;
  3011. function WinQueryWindow(hwnd : cardinal;cmd : longint) : cardinal; cdecl;
  3012. function WinMultWindowFromIDs(hwndParent : cardinal;var prghwnd : cardinal;idFirst,idLast : cardinal) : longint; cdecl;
  3013. function WinMultWindowFromIDs(hwndParent : cardinal;prghwnd : PCardinal;idFirst,idLast : cardinal) : longint; cdecl;
  3014. function WinSetParent(hwnd,hwndNewParent : cardinal;fRedraw : longbool) : longbool; cdecl;
  3015. function WinIsChild(hwnd,hwndParent : cardinal) : longbool; cdecl;
  3016. function WinSetOwner(hwnd,hwndNewOwner : cardinal) : longbool; cdecl;
  3017. function WinQueryWindowProcess(hwnd : cardinal;var _pid,_tid : cardinal) : longbool; cdecl;
  3018. function WinQueryWindowProcess(hwnd : cardinal;_ppid,_ptid : PCardinal) : longbool; cdecl;
  3019. function WinQueryObjectWindow(hwndDesktop : cardinal) : cardinal; cdecl;
  3020. function WinQueryDesktopWindow(hab,hdc : cardinal) : cardinal; cdecl;
  3021. function WinSetWindowPos(hwnd,hwndInsertBehind : cardinal;x,y,cx,cy : longint;fl : cardinal) : longbool; cdecl;
  3022. function WinSetMultWindowPos(hab : cardinal;var _swp : TSWP;cswp : cardinal) : longbool; cdecl;
  3023. function WinSetMultWindowPos(hab : cardinal;_pswp : PSWP;cswp : cardinal) : longbool; cdecl;
  3024. function WinQueryWindowPos(hwnd : cardinal;var _swp : TSWP) : longbool; cdecl;
  3025. function WinQueryWindowPos(hwnd : cardinal;_pswp : PSWP) : longbool; cdecl;
  3026. function WinUpdateWindow(hwnd : cardinal) : longbool; cdecl;
  3027. function WinInvalidateRect(hwnd : cardinal;var wrc : TRectl;fIncludeChildren : longbool) : longbool; cdecl;
  3028. function WinInvalidateRect(hwnd : cardinal;pwrc : PRectl;fIncludeChildren : longbool) : longbool; cdecl;
  3029. function WinInvalidateRegion(hwnd,hrgn : cardinal;fIncludeChildren : longbool) : longbool; cdecl;
  3030. function WinInvertRect(hps : cardinal;var rcl : TRectl) : longbool; cdecl;
  3031. function WinInvertRect(hps : cardinal;prcl : PRectl) : longbool; cdecl;
  3032. function WinDrawBitmap(hpsDst,hbm : cardinal;var wrcSrc : TRectl;var ptlDst : POINTL;clrFore : longint;clrBack : longint;fl : cardinal) : longbool; cdecl;
  3033. function WinDrawBitmap(hpsDst,hbm : cardinal;pwrcSrc : PRectl;pptlDst : PPOINTL;clrFore : longint;clrBack : longint;fl : cardinal) : longbool; cdecl;
  3034. function WinDrawText(hps : cardinal;cchText : longint;lpchText : pchar;var rcl : TRectl;clrFore,clrBack : longint;flCmd : cardinal) : longint; cdecl;
  3035. function WinDrawText(hps : cardinal;cchText : longint;lpchText : pchar;prcl : PRectl;clrFore,clrBack : longint;flCmd : cardinal) : longint; cdecl;
  3036. function WinDrawBorder(hps : cardinal;var rcl : TRectl;cx,cy : longint;clrFore,clrBack : longint;flCmd : cardinal) : longbool; cdecl;
  3037. function WinDrawBorder(hps : cardinal;prcl : PRectl;cx,cy : longint;clrFore,clrBack : longint;flCmd : cardinal) : longbool; cdecl;
  3038. function WinLoadString(hab,hmod,id : cardinal;cchMax : longint;pchBuffer : pchar) : longint; cdecl;
  3039. function WinLoadMessage(hab,hmod,id : cardinal;cchMax : longint;pchBuffer : pchar) : longint; cdecl;
  3040. function WinSetActiveWindow(hwndDesktop,hwnd : cardinal) : longbool; cdecl;
  3041. function WinSubclassWindow(hwnd : cardinal;pfnwp : proc) : proc; cdecl;
  3042. function WinQueryClassName(hwnd : cardinal;cchMax : longint;pch : pchar) : longint; cdecl;
  3043. function WinQueryClassInfo(hab : cardinal;pszClassName : pchar;var _ClassInfo : TClassInfo) : longbool; cdecl;
  3044. function WinQueryClassInfo(hab : cardinal;pszClassName : pchar;_PClassInfo : PClassInfo) : longbool; cdecl;
  3045. function WinQueryActiveWindow(hwndDesktop : cardinal) : cardinal; cdecl;
  3046. function WinIsThreadActive(hab : cardinal) : longbool; cdecl;
  3047. function WinQuerySysModalWindow(hwndDesktop : cardinal) : cardinal; cdecl;
  3048. function WinSetSysModalWindow(hwndDesktop,hwnd : cardinal) : longbool; cdecl;
  3049. function WinQueryWindowUShort(hwnd : cardinal;index : longint) : word; cdecl;
  3050. function WinSetWindowUShort(hwnd : cardinal;index : longint;us : word) : longbool; cdecl;
  3051. function WinQueryWindowULong(hwnd : cardinal;index : longint) : cardinal; cdecl;
  3052. function WinSetWindowULong(hwnd : cardinal;index : longint;ul : cardinal) : longbool; cdecl;
  3053. function WinQueryWindowPtr(hwnd : cardinal;index : longint) : pointer; cdecl;
  3054. function WinSetWindowPtr(hwnd : cardinal;index : longint;p : pointer) : longbool; cdecl;
  3055. function WinSetWindowBits(hwnd : cardinal;index : longint;flData,flMask : cardinal) : longbool; cdecl;
  3056. function WinBeginEnumWindows(hwnd : cardinal) : cardinal; cdecl;
  3057. function WinGetNextWindow(henum : cardinal) : cardinal; cdecl;
  3058. function WinEndEnumWindows(henum : cardinal) : longbool; cdecl;
  3059. function WinWindowFromPoint(hwnd : cardinal;var ptl : TPointL;fChildren : longbool) : cardinal; cdecl;
  3060. function WinWindowFromPoint(hwnd : cardinal;pptl : PPointL;fChildren : longbool) : cardinal; cdecl;
  3061. function WinMapWindowPoints(hwndFrom,hwndTo : cardinal;var prgptl : TPointL;cwpt : longint) : longbool; cdecl;
  3062. function WinMapWindowPoints(hwndFrom,hwndTo : cardinal;prgptl : PPointL;cwpt : longint) : longbool; cdecl;
  3063. function WinValidateRect(hwnd : cardinal;var rcl : TRectl;fIncludeChildren : longbool) : longbool; cdecl;
  3064. function WinValidateRect(hwnd : cardinal;prcl : PRectl;fIncludeChildren : longbool) : longbool; cdecl;
  3065. function WinValidateRegion(hwnd,hrgn : cardinal;fIncludeChildren : longbool) : longbool; cdecl;
  3066. function WinWindowFromDC(hdc : cardinal) : cardinal; cdecl;
  3067. function WinQueryWindowDC(hwnd : cardinal) : cardinal; cdecl;
  3068. function WinGetScreenPS(hwndDesktop : cardinal) : cardinal; cdecl;
  3069. function WinLockWindowUpdate(hwndDesktop,hwndLockUpdate : cardinal) : longbool; cdecl;
  3070. function WinLockVisRegions(hwndDesktop : cardinal;fLock : longbool) : longbool; cdecl;
  3071. function WinQueryUpdateRect(hwnd : cardinal;var rcl : TRectl) : longbool; cdecl;
  3072. function WinQueryUpdateRect(hwnd : cardinal;prcl : PRectl) : longbool; cdecl;
  3073. function WinQueryUpdateRegion(hwnd,hrgn : cardinal) : longint; cdecl;
  3074. function WinExcludeUpdateRegion(hps,hwnd : cardinal) : longint; cdecl;
  3075. function WinSendMsg(hwnd,msg : cardinal;mp1,mp2 : pointer) : pointer; cdecl;
  3076. function WinCreateMsgQueue(hab : cardinal;cmsg : longint) : cardinal; cdecl;
  3077. function WinDestroyMsgQueue(hmq : cardinal) : longbool; cdecl;
  3078. function WinQueryQueueInfo(hmq : cardinal;var mqi : TMQInfo;cbCopy : cardinal) : longbool; cdecl;
  3079. function WinQueryQueueInfo(hmq : cardinal;pmqi : PMQInfo;cbCopy : cardinal) : longbool; cdecl;
  3080. function WinCancelShutdown(hmq : cardinal;fCancelAlways : longbool) : longbool; cdecl;
  3081. function WinGetMsg(hab : cardinal;var _qmsg : TQMsg;hwndFilter,msgFilterFirst,msgFilterLast : cardinal) : longbool; cdecl;
  3082. function WinGetMsg(hab : cardinal;_pqmsg : PQMsg;hwndFilter,msgFilterFirst,msgFilterLast : cardinal) : longbool; cdecl;
  3083. function WinPeekMsg(hab : cardinal;var _qmsg : TQMsg;hwndFilter,msgFilterFirst,msgFilterLast,fl : cardinal) : longbool; cdecl;
  3084. function WinPeekMsg(hab : cardinal;_pqmsg : PQMsg;hwndFilter,msgFilterFirst,msgFilterLast,fl : cardinal) : longbool; cdecl;
  3085. function WinDispatchMsg(hab : cardinal;var _qmsg : TQMsg) : pointer; cdecl;
  3086. function WinDispatchMsg(hab : cardinal;_pqmsg : PQMsg) : pointer; cdecl;
  3087. function WinPostMsg(hwnd,msg : cardinal;mp1,mp2 : pointer) : longbool; cdecl;
  3088. function WinRegisterUserMsg(hab,msgid : cardinal;datatype1,dir1,datatype2,dir2,datatyper : longint) : longbool; cdecl;
  3089. function WinRegisterUserDatatype(hab : cardinal;datatype,count : longint;var types : longint) : longbool; cdecl;
  3090. function WinSetMsgMode(hab : cardinal;classname : pchar;control : longint) : longbool; cdecl;
  3091. function WinSetSynchroMode(hab : cardinal;mode : longint) : longbool; cdecl;
  3092. function WinInSendMsg(hab : cardinal) : longbool; cdecl;
  3093. function WinBroadcastMsg(hwnd,msg : cardinal;mp1,mp2 : pointer;rgf : cardinal) : longbool; cdecl;
  3094. function WinWaitMsg(hab,msgFirst,msgLast : cardinal) : longbool; cdecl;
  3095. function WinQueryQueueStatus(hwndDesktop : cardinal) : cardinal; cdecl;
  3096. function WinQueryMsgPos(hab : cardinal;var ptl : TPointL) : longbool; cdecl;
  3097. function WinQueryMsgPos(hab : cardinal;pptl : PPointL) : longbool; cdecl;
  3098. function WinQueryMsgTime(hab : cardinal) : cardinal; cdecl;
  3099. function WinWaitEventSem(hev,ulTimeout : cardinal) : cardinal; cdecl;
  3100. function WinRequestMutexSem(hmtx,ulTimeout : cardinal) : cardinal; cdecl;
  3101. function WinWaitMuxWaitSem(hmux,ulTimeout:cardinal;var ulUser : cardinal) : cardinal; cdecl;
  3102. function WinWaitMuxWaitSem(hmux,ulTimeout:cardinal;pulUser : PCardinal) : cardinal; cdecl;
  3103. function WinPostQueueMsg(hmq,msg : cardinal;mp1,mp2 : pointer) : longbool; cdecl;
  3104. function WinSetMsgInterest(hwnd,msg_class : cardinal;control : longint) : longbool; cdecl;
  3105. function WinSetClassMsgInterest(hab : cardinal;pszClassName : pchar;msg_class : cardinal;control : longint) : longbool; cdecl;
  3106. function WinSetFocus(hwndDesktop,hwndSetFocus : cardinal) : longbool; cdecl;
  3107. function WinFocusChange(hwndDesktop,hwndSetFocus,flFocusChange : cardinal) : longbool; cdecl;
  3108. function WinSetCapture(hwndDesktop,hwnd : cardinal) : longbool; cdecl;
  3109. function WinQueryCapture(hwndDesktop : cardinal) : cardinal; cdecl;
  3110. function WinQueryFocus(hwndDesktop : cardinal) : cardinal; cdecl;
  3111. function WinGetKeyState(hwndDesktop : cardinal;vkey : longint) : longint; cdecl;
  3112. function WinGetPhysKeyState(hwndDesktop : cardinal;sc : longint) : longint; cdecl;
  3113. function WinEnablePhysInput(hwndDesktop : cardinal;fEnable : longbool) : longbool; cdecl;
  3114. function WinIsPhysInputEnabled(hwndDesktop : cardinal) : longbool; cdecl;
  3115. function WinSetKeyboardStateTable(hwndDesktop : cardinal;var KeyStateTable;fSet : longbool) : longbool; cdecl;
  3116. function WinSetKeyboardStateTable(hwndDesktop : cardinal;pKeyStateTable : pointer;fSet : longbool) : longbool; cdecl;
  3117. function WinGetDlgMsg(hwndDlg : cardinal;var _qmsg : TQMsg) : longbool; cdecl;
  3118. function WinGetDlgMsg(hwndDlg : cardinal;_pqmsg : PQMsg) : longbool; cdecl;
  3119. function WinLoadDlg(hwndParent,hwndOwner : cardinal;pfnDlgProc : proc;hmod,idDlg : cardinal;pCreateParams : pointer) : cardinal; cdecl;
  3120. function WinDlgBox(hwndParent,hwndOwner : cardinal;pfnDlgProc : proc;hmod,idDlg : cardinal;pCreateParams : pointer) : cardinal; cdecl;
  3121. function WinDismissDlg(hwndDlg,usResult : cardinal) : longbool; cdecl;
  3122. function WinQueryDlgItemShort(hwndDlg,idItem : cardinal;var _Result : integer;fSigned : longbool) : longbool; cdecl;
  3123. function WinQueryDlgItemShort(hwndDlg,idItem : cardinal;PResult : PInteger;fSigned : longbool) : longbool; cdecl;
  3124. function WinSetDlgItemShort(hwndDlg,idItem : cardinal;usValue : word;fSigned : longbool) : longbool; cdecl;
  3125. function WinSetDlgItemText(hwndDlg,idItem : cardinal;pszText : pchar) : longbool; cdecl;
  3126. function WinQueryDlgItemText(hwndDlg,idItem : cardinal;cchBufferMax : longint;pchBuffer : pchar) : cardinal; cdecl;
  3127. function WinQueryDlgItemTextLength(hwndDlg,idItem : cardinal) : longint; cdecl;
  3128. function WinDefDlgProc(hwndDlg,msg : cardinal;mp1,mp2 : pointer) : pointer; cdecl;
  3129. function WinAlarm(hwndDesktop,rgfType : cardinal) : longbool; cdecl;
  3130. function WinMessageBox(hwndParent,hwndOwner : cardinal;pszText,pszCaption : pchar;idWindow,flStyle : cardinal) : cardinal; cdecl;
  3131. (*
  3132. function WinMessageBox2(hwndParent,hwndOwner: cardinal;pszText,pszCaption: PChar; idWindow: cardinal; MBInfo: PMB2Info): cardinal; cdecl;
  3133. *)
  3134. function WinProcessDlg(hwndDlg : cardinal) : cardinal; cdecl;
  3135. function WinSendDlgItemMsg(hwndDlg,idItem,msg : cardinal;mp1,mp2 : pointer) : pointer; cdecl;
  3136. function WinMapDlgPoints(hwndDlg : cardinal;var prgwptl : TPointL;cwpt : cardinal;fCalcWindowCoords : longbool) : longbool; cdecl;
  3137. function WinMapDlgPoints(hwndDlg : cardinal;prgwptl : PPointL;cwpt : cardinal;fCalcWindowCoords : longbool) : longbool; cdecl;
  3138. function WinEnumDlgItem(hwndDlg,hwnd,code : cardinal) : cardinal; cdecl;
  3139. function WinSubstituteStrings(hwnd : cardinal;pszSrc : pchar;cchDstMax : longint;pszDst : pchar) : longint; cdecl;
  3140. function WinCreateDlg(hwndParent,hwndOwner : cardinal;pfnDlgProc : proc;var dlgt : TDlgTemplate;pCreateParams : pointer) : cardinal; cdecl;
  3141. function WinCreateDlg(hwndParent,hwndOwner : cardinal;pfnDlgProc : proc;pdlgt : PDlgTemplate;pCreateParams : pointer) : cardinal; cdecl;
  3142. function WinLoadMenu(hwndFrame,hmod,idMenu : cardinal) : cardinal; cdecl;
  3143. function WinCreateMenu(hwndParent : cardinal;lpmt : pointer) : cardinal; cdecl;
  3144. function WinPopupMenu(hwndParent,hwndOwner,hwndMenu : cardinal;x,y,idItem : longint;fs : cardinal) : longbool; cdecl;
  3145. function WinCreateStdWindow(hwndParent,flStyle : cardinal;var flCreateFlags : cardinal;pszClientClass,pszTitle : pchar;styleClient,hmod,idResources : cardinal;var hwndClient : cardinal) : cardinal; cdecl;
  3146. function WinCreateStdWindow(hwndParent,flStyle : cardinal;pflCreateFlags : PCardinal;pszClientClass,pszTitle : pchar;styleClient,hmod,idResources : cardinal;phwndClient : PCardinal) : cardinal; cdecl;
  3147. function WinFlashWindow(hwndFrame : cardinal;fFlash : longbool) : longbool; cdecl;
  3148. function WinCreateFrameControls(hwndFrame : cardinal;var fcdata : TFrameCData;pszTitle : pchar) : longbool; cdecl;
  3149. function WinCreateFrameControls(hwndFrame : cardinal;pfcdata : PFrameCData;pszTitle : pchar) : longbool; cdecl;
  3150. function WinCalcFrameRect(hwndFrame : cardinal;var rcl : TRectl;fClient : longbool) : longbool; cdecl;
  3151. function WinCalcFrameRect(hwndFrame : cardinal;prcl : PRectl;fClient : longbool) : longbool; cdecl;
  3152. function WinGetMinPosition(hwnd : cardinal;var _swp : TSWP;var pptl : POINTL) : longbool; cdecl;
  3153. function WinGetMinPosition(hwnd : cardinal;_pswp : PSWP;var pptl : POINTL) : longbool; cdecl;
  3154. function WinGetMaxPosition(hwnd : cardinal;var _swp : TSWP) : longbool; cdecl;
  3155. function WinGetMaxPosition(hwnd : cardinal;_pswp : PSWP) : longbool; cdecl;
  3156. function WinSaveWindowPos(hsvwp : cardinal;var _swp : TSWP;cswp : cardinal) : longbool; cdecl;
  3157. function WinSaveWindowPos(hsvwp : cardinal;_pswp : PSWP;cswp : cardinal) : longbool; cdecl;
  3158. function WinCopyRect(hab : cardinal;var rclDst, rclSrc : TRectl) : longbool; cdecl;
  3159. function WinCopyRect(hab : cardinal;prclDst, prclSrc : PRectl) : longbool; cdecl;
  3160. function WinSetRect(hab : cardinal;var rcl : TRectl;xLeft,yBottom,xRight,yTop : longint) : longbool; cdecl;
  3161. function WinSetRect(hab : cardinal;_prcl : PRectl;xLeft,yBottom,xRight,yTop : longint) : longbool; cdecl;
  3162. function WinIsRectEmpty(hab : cardinal;var rcl : TRectl) : longbool; cdecl;
  3163. function WinIsRectEmpty(hab : cardinal;prcl : PRectl) : longbool; cdecl;
  3164. function WinEqualRect(hab : cardinal;var rcl1,rcl2 : TRectl) : longbool; cdecl;
  3165. function WinEqualRect(hab : cardinal;prcl1,prcl2 : PRectl) : longbool; cdecl;
  3166. function WinSetRectEmpty(hab : cardinal;var rcl : TRectl) : longbool; cdecl;
  3167. function WinSetRectEmpty(hab : cardinal;prcl : PRectl) : longbool; cdecl;
  3168. function WinOffsetRect(hab : cardinal;var rcl : TRectl;cx,cy : longint) : longbool; cdecl;
  3169. function WinOffsetRect(hab : cardinal;prcl : PRectl;cx,cy : longint) : longbool; cdecl;
  3170. function WinInflateRect(hab : cardinal;var rcl : TRectl;cx,cy : longint) : longbool; cdecl;
  3171. function WinInflateRect(hab : cardinal;prcl : PRectl;cx,cy : longint) : longbool; cdecl;
  3172. function WinPtInRect(hab : cardinal;var rcl : TRectl;var ptl : TPointL) : longbool; cdecl;
  3173. function WinPtInRect(hab : cardinal;prcl : PRectl;pptl : PPointL) : longbool; cdecl;
  3174. function WinIntersectRect(hab : cardinal;var rclDst,rclSrc1,rclSrc2 : TRectl) : longbool; cdecl;
  3175. function WinIntersectRect(hab : cardinal;prclDst,prclSrc1,prclSrc2 : PRectl) : longbool; cdecl;
  3176. function WinUnionRect(hab : cardinal;var rclDst,rclSrc1,rclSrc2 : TRectl) : longbool; cdecl;
  3177. function WinUnionRect(hab : cardinal;prclDst,prclSrc1,prclSrc2 : PRectl) : longbool; cdecl;
  3178. function WinSubtractRect(hab : cardinal;var rclDst,rclSrc1,rclSrc2 : TRectl) : longbool; cdecl;
  3179. function WinSubtractRect(hab : cardinal;prclDst,prclSrc1,prclSrc2 : PRectl) : longbool; cdecl;
  3180. function WinMakeRect(hab : cardinal;var wrc : TRectl) : longbool; cdecl;
  3181. function WinMakeRect(hab : cardinal;pwrc : PRectl) : longbool; cdecl;
  3182. function WinMakePoints(hab : cardinal;var wpt : TPointL;cwpt : cardinal) : longbool; cdecl;
  3183. function WinMakePoints(hab : cardinal;pwpt : PPointL;cwpt : cardinal) : longbool; cdecl;
  3184. function WinQuerySysValue(hwndDesktop : cardinal;iSysValue : longint) : longint; cdecl;
  3185. function WinSetSysValue(hwndDesktop : cardinal;iSysValue,lValue : longint) : longbool; cdecl;
  3186. function WinSetPresParam(hwnd,id,cbParam : cardinal;pbParam : pointer) : longbool; cdecl;
  3187. function WinQueryPresParam(hwnd,id1,id2 : cardinal;var ulId : cardinal;cbBuf : cardinal;pbBuf : pointer;fs : cardinal) : cardinal; cdecl;
  3188. function WinQueryPresParam(hwnd,id1,id2 : cardinal;pulId : PCardinal;cbBuf : cardinal;pbBuf : pointer;fs : cardinal) : cardinal; cdecl;
  3189. function WinRemovePresParam(hwnd,id : cardinal) : longbool; cdecl;
  3190. function WinQuerySysColor(hwndDesktop : cardinal;clr,lReserved : longint) : longint; cdecl;
  3191. function WinSetSysColors(hwndDesktop,flOptions,flFormat : cardinal;clrFirst : longint;cclr : cardinal;var clr : longint) : longbool; cdecl;
  3192. function WinSetSysColors(hwndDesktop,flOptions,flFormat : cardinal;clrFirst : longint;cclr : cardinal;pclr : PLongint) : longbool; cdecl;
  3193. function WinStartTimer(hab,hwnd,idTimer,dtTimeout : cardinal) : cardinal; cdecl;
  3194. function WinStopTimer(hab,hwnd,idTimer : cardinal) : longbool; cdecl;
  3195. function WinGetCurrentTime(hab : cardinal) : cardinal; cdecl;
  3196. function WinLoadAccelTable(hab,hmod,idAccelTable : cardinal) : cardinal; cdecl;
  3197. function WinCopyAccelTable(haccel : cardinal;var _AccelTable : TAccelTable;cbCopyMax : cardinal) : cardinal; cdecl;
  3198. function WinCopyAccelTable(haccel : cardinal;_pAccelTable : PAccelTable;cbCopyMax : cardinal) : cardinal; cdecl;
  3199. function WinCreateAccelTable(hab : cardinal;var _AccelTable : TAccelTable) : cardinal; cdecl;
  3200. function WinCreateAccelTable(hab : cardinal;_pAccelTable : PAccelTable) : cardinal; cdecl;
  3201. function WinDestroyAccelTable(haccel : cardinal) : longbool; cdecl;
  3202. function WinTranslateAccel(hab,hwnd,haccel : cardinal;var _qmsg : TQMsg) : longbool; cdecl;
  3203. function WinTranslateAccel(hab,hwnd,haccel : cardinal;_pqmsg : PQMsg) : longbool; cdecl;
  3204. function WinSetAccelTable(hab,haccel,hwndFrame : cardinal) : longbool; cdecl;
  3205. function WinQueryAccelTable(hab,hwndFrame : cardinal) : cardinal; cdecl;
  3206. function WinTrackRect(hwnd,hps : cardinal;var ti : TTrackInfo) : longbool; cdecl;
  3207. function WinTrackRect(hwnd,hps : cardinal;pti : PTrackInfo) : longbool; cdecl;
  3208. function WinShowTrackRect(hwnd : cardinal;fShow : longbool) : longbool; cdecl;
  3209. function WinSetClipbrdOwner(hab,hwnd : cardinal) : longbool; cdecl;
  3210. function WinSetClipbrdData(hab,ulData,fmt,rgfFmtInfo : cardinal) : longbool; cdecl;
  3211. function WinQueryClipbrdData(hab,fmt : cardinal) : cardinal; cdecl;
  3212. function WinQueryClipbrdFmtInfo(hab,fmt : cardinal;var prgfFmtInfo : cardinal) : longbool; cdecl;
  3213. function WinQueryClipbrdFmtInfo(hab,fmt : cardinal;prgfFmtInfo : PCardinal) : longbool; cdecl;
  3214. function WinSetClipbrdViewer(hab,hwndNewClipViewer : cardinal) : longbool; cdecl;
  3215. function WinEnumClipbrdFmts(hab,fmt : cardinal) : cardinal; cdecl;
  3216. function WinEmptyClipbrd(hab : cardinal) : longbool; cdecl;
  3217. function WinOpenClipbrd(hab : cardinal) : longbool; cdecl;
  3218. function WinCloseClipbrd(hab : cardinal) : longbool; cdecl;
  3219. function WinQueryClipbrdOwner(hab : cardinal) : cardinal; cdecl;
  3220. function WinQueryClipbrdViewer(hab : cardinal) : cardinal; cdecl;
  3221. function WinDestroyCursor(hwnd : cardinal) : longbool; cdecl;
  3222. function WinShowCursor(hwnd : cardinal;fShow : longbool) : longbool; cdecl;
  3223. function WinCreateCursor(hwnd : cardinal;x,y,cx,cy : longint;fs : cardinal;var rclClip : TRectl) : longbool; cdecl;
  3224. function WinCreateCursor(hwnd : cardinal;x,y,cx,cy : longint;fs : cardinal;prclClip : PRectl) : longbool; cdecl;
  3225. function WinQueryCursorInfo(hwndDesktop : cardinal;var _CursorInfo : TCursorInfo) : longbool; cdecl;
  3226. function WinQueryCursorInfo(hwndDesktop : cardinal;_pCursorInfo : PCursorInfo) : longbool; cdecl;
  3227. function WinSetPointer(hwndDesktop,hptrNew : cardinal) : longbool; cdecl;
  3228. function WinSetPointerOwner(hptr,pid : cardinal;fDestroy : longbool) : longbool; cdecl;
  3229. function WinShowPointer(hwndDesktop : cardinal;fShow : longbool) : longbool; cdecl;
  3230. function WinQuerySysPointer(hwndDesktop : cardinal;iptr : longint;fLoad : longbool) : cardinal; cdecl;
  3231. function WinLoadPointer(hwndDesktop,hmod,idres : cardinal) : cardinal; cdecl;
  3232. function WinCreatePointer(hwndDesktop,hbmPointer : cardinal;fPointer : longbool;xHotspot,yHotspot : longint) : cardinal; cdecl;
  3233. function WinSetPointerPos(hwndDesktop : cardinal;x,y : longint) : longbool; cdecl;
  3234. function WinDestroyPointer(hptr : cardinal) : longbool; cdecl;
  3235. function WinQueryPointer(hwndDesktop : cardinal) : cardinal; cdecl;
  3236. function WinQueryPointerPos(hwndDesktop : cardinal;var ptl : TPointL) : longbool; cdecl;
  3237. function WinQueryPointerPos(hwndDesktop : cardinal;pptl : PPointL) : longbool; cdecl;
  3238. function WinCreatePointerIndirect(hwndDesktop : cardinal;var ptri : TPointerInfo) : cardinal; cdecl;
  3239. function WinCreatePointerIndirect(hwndDesktop : cardinal;pptri : PPointerInfo) : cardinal; cdecl;
  3240. function WinQueryPointerInfo(hptr : cardinal;var _PointerInfo : TPointerInfo) : longbool; cdecl;
  3241. function WinQueryPointerInfo(hptr : cardinal;_pPointerInfo : PPointerInfo) : longbool; cdecl;
  3242. function WinDrawPointer(hps : cardinal;x,y : longint;hptr,fs : cardinal) : longbool; cdecl;
  3243. function WinGetSysBitmap(hwndDesktop,ibm : cardinal) : cardinal; cdecl;
  3244. function WinSetHook(hab : cardinal;hmq : cardinal;iHook : longint;pfnHook : pointer;hmod : cardinal) : longbool; cdecl;
  3245. function WinReleaseHook(hab,hmq : cardinal;iHook : longint;pfnHook : pointer;hmod : cardinal) : longbool; cdecl;
  3246. function WinCallMsgFilter(hab : cardinal;var _qmsg : TQMsg;msgf : cardinal) : longbool; cdecl;
  3247. function WinCallMsgFilter(hab : cardinal;_pqmsg : PQMsg;msgf : cardinal) : longbool; cdecl;
  3248. function WinSetClassThunkProc(pszClassname : pchar;pfnThunkProc : pointer) : longbool; cdecl;
  3249. function WinQueryClassThunkProc(pszClassname : pchar) : pointer; cdecl;
  3250. function WinSetWindowThunkProc(hwnd : cardinal;pfnThunkProc : pointer) : longbool; cdecl;
  3251. function WinQueryWindowThunkProc(hwnd : cardinal) : pointer; cdecl;
  3252. function WinQueryWindowModel(hwnd : cardinal) : longint; cdecl;
  3253. function WinQueryCp(hmq : cardinal) : cardinal; cdecl;
  3254. function WinSetCp(hmq,idCodePage : cardinal) : longbool; cdecl;
  3255. function WinQueryCpList(hab,ccpMax : cardinal;var prgcp : cardinal) : cardinal; cdecl;
  3256. function WinQueryCpList(hab,ccpMax : cardinal;prgcp : PCardinal) : cardinal; cdecl;
  3257. function WinCpTranslateString(hab,cpSrc : cardinal;pszSrc : pchar;cpDst,cchDestMax : cardinal;pchDest : pchar) : longbool; cdecl;
  3258. function WinCpTranslateChar(hab,cpSrc : cardinal;chSrc : byte;cpDst : cardinal) : byte; cdecl;
  3259. function WinUpper(hab,idcp,idcc : cardinal;psz : pchar) : cardinal; cdecl;
  3260. function WinUpperChar(hab,idcp,idcc,c : cardinal) : cardinal; cdecl;
  3261. function WinNextChar(hab,idcp,idcc : cardinal;psz : pchar) : pchar; cdecl;
  3262. function WinPrevChar(hab,idcp,idcc : cardinal;pszStart,psz : pchar) : pchar; cdecl;
  3263. function WinCompareStrings(hab,idcp,idcc : cardinal;psz1,psz2 : pchar;reserved : cardinal) : cardinal; cdecl;
  3264. function WinCreateAtomTable(cbInitial,cBuckets : cardinal) : cardinal; cdecl;
  3265. function WinDestroyAtomTable(hAtomTbl : cardinal) : cardinal; cdecl;
  3266. function WinAddAtom(hAtomTbl : cardinal;pszAtomName : pchar) : cardinal; cdecl;
  3267. function WinFindAtom(hAtomTbl : cardinal;pszAtomName : pchar) : cardinal; cdecl;
  3268. function WinDeleteAtom(hAtomTbl,atom : cardinal) : cardinal; cdecl;
  3269. function WinQueryAtomUsage(hAtomTbl,atom : cardinal) : cardinal; cdecl;
  3270. function WinQueryAtomLength(hAtomTbl,atom : cardinal) : cardinal; cdecl;
  3271. function WinQueryAtomName(hAtomTbl,atom : cardinal;pchBuffer : pchar;cchBufferMax : cardinal) : cardinal; cdecl;
  3272. function WinGetLastError(hab : cardinal) : cardinal; cdecl;
  3273. function WinGetErrorInfo(hab : cardinal) : PERRINFO; cdecl;
  3274. function WinFreeErrorInfo(var perrinfo : ERRINFO) : longbool; cdecl;
  3275. {DDE Functions}
  3276. function WinDdeInitiate(hwndClient : cardinal;pszAppName,pszTopicName : pchar;var cctxt : TConvContext) : longbool; cdecl;
  3277. function WinDdeInitiate(hwndClient : cardinal;pszAppName,pszTopicName : pchar;pcctxt : PConvContext) : longbool; cdecl;
  3278. function WinDdeRespond(hwndClient,hwndServer : cardinal;pszAppName,pszTopicName : pchar;var cctxt : TConvContext) : pointer; cdecl;
  3279. function WinDdeRespond(hwndClient,hwndServer : cardinal;pszAppName,pszTopicName : pchar;pcctxt : PConvContext) : pointer; cdecl;
  3280. function WinDdePostMsg(hwndTo,hwndFrom,wm : cardinal;var ddest : TDDEStruct;flOptions : cardinal) : longbool; cdecl;
  3281. function WinDdePostMsg(hwndTo,hwndFrom,wm : cardinal;pddest : PDDEStruct;flOptions : cardinal) : longbool; cdecl;
  3282. {Library related functions}
  3283. function WinDeleteProcedure(hab : cardinal;wndproc : proc) : longbool; cdecl;
  3284. function WinDeleteLibrary(hab,libhandle : cardinal) : longbool; cdecl;
  3285. function WinLoadProcedure(hab,libhandle : cardinal;procname : pchar) : proc; cdecl;
  3286. function WinLoadLibrary(hab : cardinal;libname : pchar) : cardinal; cdecl;
  3287. function WinSetDesktopBkgnd(hwndDesktop : cardinal;var dskNew : TDesktop) : cardinal; cdecl;
  3288. function WinSetDesktopBkgnd(hwndDesktop : cardinal;pdskNew : PDesktop) : cardinal; cdecl;
  3289. function WinQueryDesktopBkgnd(hwndDesktop : cardinal;var dsk : TDesktop) : longbool; cdecl;
  3290. function WinQueryDesktopBkgnd(hwndDesktop : cardinal;pdsk : PDesktop) : longbool; cdecl;
  3291. function WinRealizePalette(hwnd,hps : cardinal;var cclr : cardinal) : longint; cdecl;
  3292. function WinRealizePalette(hwnd,hps : cardinal;pcclr : PCardinal) : longint; cdecl;
  3293. function WinQuerySystemAtomTable: cardinal; cdecl;
  3294. function CardinalFromMP (MP: pointer): cardinal; cdecl;
  3295. function Integer1FromMP (MP: pointer): word; cdecl;
  3296. function Integer2FromMP (MP: pointer): word; cdecl;
  3297. const
  3298. SEI_BREAKPOINT =$8000; // Always enter an INT 3 breakpt
  3299. SEI_NOBEEP =$4000; // Do not call DosBeep
  3300. SEI_NOPROMPT =$2000; // Do not prompt the user
  3301. SEI_DBGRSRVD =$1000; // Reserved for debug use
  3302. SEI_STACKTRACE =$0001; // save the stack trace
  3303. SEI_REGISTERS =$0002; // save the registers
  3304. SEI_ARGCOUNT =$0004; // first USHORT in args is arg count
  3305. SEI_DOSERROR =$0008; // first USHORT in args is OS2 error code
  3306. SEI_RESERVED =$0FE0; // Reserved for future use
  3307. SEI_DEBUGONLY = (SEI_BREAKPOINT or SEI_NOBEEP or SEI_NOPROMPT or SEI_RESERVED);
  3308. //****************************************************************************
  3309. //* Note that when SEI_ARGCOUNT, SEI_DOSERROR are specified
  3310. //* together, then the implied order of the parameters is:
  3311. //*
  3312. //*
  3313. //* WinSetErrorInfo( MAKEERRORID( .... ),
  3314. //* SEI_ARGCOUNT | SEI_DOSERROR,
  3315. //* argCount,
  3316. //* dosErrorCode);
  3317. //*
  3318. //****************************************************************************/
  3319. //ERRORID APIENTRY WinSetErrorInfo(ERRORID, ULONG, ...);
  3320. Function WinSetErrorInfo(ErrID: ErrorID; Flags: Cardinal; Params: Array of const): ErrorID; external 'pmwin' index 263;
  3321. implementation
  3322. function WinRegisterClass(hab : cardinal;pszClassName : pchar;pfnWndProc : proc;flStyle,cbWindowData : cardinal) : longbool; cdecl;external 'pmwin' index 926;
  3323. function WinDefWindowProc(hwnd,msg : cardinal;mp1,mp2 : pointer) : pointer; cdecl;external 'pmwin' index 911;
  3324. function WinDestroyWindow(hwnd : cardinal) : longbool; cdecl;external 'pmwin' index 728;
  3325. function WinShowWindow(hwnd : cardinal;fShow : longbool) : longbool; cdecl;external 'pmwin' index 883;
  3326. function WinQueryWindowRect(hwnd : cardinal;var rclDest : TRectl) : longbool; cdecl;external 'pmwin' index 840;
  3327. function WinQueryWindowRect(hwnd : cardinal;prclDest : PRectl) : longbool; cdecl;external 'pmwin' index 840;
  3328. function WinGetPS(hwnd : cardinal) : cardinal; cdecl;external 'pmwin' index 757;
  3329. function WinReleasePS(hps : cardinal) : longbool; cdecl;external 'pmwin' index 848;
  3330. function WinEndPaint(hps : cardinal) : longbool; cdecl;external 'pmwin' index 738;
  3331. function WinGetClipPS(hwnd,hwndClip,fl : cardinal) : cardinal; cdecl;external 'pmwin' index 749;
  3332. function WinIsWindowShowing(hwnd : cardinal) : longbool; cdecl;external 'pmwin' index 774;
  3333. function WinBeginPaint(hwnd,hps : cardinal; var rclPaint : TRectl) : cardinal; cdecl;external 'pmwin' index 703;
  3334. function WinBeginPaint(hwnd,hps : cardinal; prclPaint : PRectl) : cardinal; cdecl;external 'pmwin' index 703;
  3335. function WinOpenWindowDC(hwnd : cardinal) : cardinal; cdecl;external 'pmwin' index 794;
  3336. function WinScrollWindow(hwnd : cardinal;dx,dy : longint;var rclScroll,rclClip : TRectl;hrgnUpdate : cardinal;var rclUpdate : TRectl;rgfsw : cardinal) : longint; cdecl;external 'pmwin' index 849;
  3337. function WinScrollWindow(hwnd : cardinal;dx,dy : longint;prclScroll,prclClip : PRectl;hrgnUpdate : cardinal;prclUpdate : PRectl;rgfsw : cardinal) : longint; cdecl;external 'pmwin' index 849;
  3338. function WinFillRect(hps : cardinal;var rcl : TRectl;lColor : longint) : longbool; cdecl;external 'pmwin' index 743;
  3339. function WinFillRect(hps : cardinal;prcl : PRectl;lColor : longint) : longbool; cdecl;external 'pmwin' index 743;
  3340. function WinQueryVersion(hab : cardinal) : cardinal; cdecl;external 'pmwin' index 833;
  3341. function WinInitialize(flOptions : cardinal) : cardinal; cdecl;external 'pmwin' index 763;
  3342. function WinTerminate(hab : cardinal) : longbool; cdecl;external 'pmwin' index 888;
  3343. function WinQueryAnchorBlock(hwnd : cardinal) : cardinal; cdecl;external 'pmwin' index 800;
  3344. function WinCreateWindow(hwndParent : cardinal;pszClass,pszName : pchar;flStyle : cardinal;x,y,cx,cy : longint;hwndOwner,hwndInsertBehind,id : cardinal;pCtlData,pPresParams : pointer) : cardinal; cdecl;external 'pmwin' index 909;
  3345. function WinCreateWindow(hwndParent : cardinal;pszClass : cardinal;pszName : pchar;flStyle : cardinal;x,y,cx,cy : longint;hwndOwner,hwndInsertBehind,id : cardinal;pCtlData,pPresParams : pointer) : cardinal; cdecl;external 'pmwin' index 909;
  3346. function WinCreateWCWindow(hwndParent : cardinal;pszClass : cardinal;pszName : pchar;flStyle : cardinal;x,y,cx,cy : longint;hwndOwner,hwndInsertBehind,id : cardinal;pCtlData,pPresParams : pointer) : cardinal; cdecl;external 'pmwin' index 909;
  3347. function WinEnableWindow(hwnd : cardinal;fEnable : longbool) : longbool; cdecl;external 'pmwin' index 735;
  3348. function WinIsWindowEnabled(hwnd : cardinal) : longbool; cdecl;external 'pmwin' index 773;
  3349. function WinEnableWindowUpdate(hwnd : cardinal;fEnable : longbool) : longbool; cdecl;external 'pmwin' index 736;
  3350. function WinIsWindowVisible(hwnd : cardinal) : longbool; cdecl;external 'pmwin' index 775;
  3351. function WinQueryWindowText(hwnd : cardinal;cchBufferMax : longint; pchBuffer : pchar) : longint; cdecl;external 'pmwin' index 841;
  3352. function WinSetWindowText(hwnd : cardinal;pszText : pchar) : longbool; cdecl;external 'pmwin' index 877;
  3353. function WinQueryWindowTextLength(hwnd : cardinal) : longint; cdecl;external 'pmwin' index 842;
  3354. function WinWindowFromID(hwndParent,id : cardinal) : cardinal; cdecl;external 'pmwin' index 899;
  3355. function WinIsWindow(hab,hwnd : cardinal) : longbool; cdecl;external 'pmwin' index 772;
  3356. function WinQueryWindow(hwnd : cardinal;cmd : longint) : cardinal; cdecl;external 'pmwin' index 834;
  3357. function WinMultWindowFromIDs(hwndParent : cardinal;var prghwnd : cardinal;idFirst,idLast : cardinal) : longint; cdecl;external 'pmwin' index 917;
  3358. function WinMultWindowFromIDs(hwndParent : cardinal;prghwnd : PCardinal;idFirst,idLast : cardinal) : longint; cdecl;external 'pmwin' index 917;
  3359. function WinSetParent(hwnd,hwndNewParent : cardinal;fRedraw : longbool) : longbool; cdecl;external 'pmwin' index 865;
  3360. function WinIsChild(hwnd,hwndParent : cardinal) : longbool; cdecl;external 'pmwin' index 768;
  3361. function WinSetOwner(hwnd,hwndNewOwner : cardinal) : longbool; cdecl;external 'pmwin' index 864;
  3362. function WinQueryWindowProcess(hwnd : cardinal;var _pid,_tid : cardinal) : longbool; cdecl;external 'pmwin' index 838;
  3363. function WinQueryWindowProcess(hwnd : cardinal;_ppid,_ptid : PCardinal) : longbool; cdecl;external 'pmwin' index 838;
  3364. function WinQueryObjectWindow(hwndDesktop : cardinal) : cardinal; cdecl;external 'pmwin' index 820;
  3365. function WinQueryDesktopWindow(hab,hdc : cardinal) : cardinal; cdecl;external 'pmwin' index 813;
  3366. function WinSetWindowPos(hwnd,hwndInsertBehind : cardinal;x,y,cx,cy : longint;fl : cardinal) : longbool; cdecl;external 'pmwin' index 875;
  3367. function WinSetMultWindowPos(hab : cardinal;var _swp : TSWP;cswp : cardinal) : longbool; cdecl;external 'pmwin' index 863;
  3368. function WinSetMultWindowPos(hab : cardinal;_pswp : PSWP;cswp : cardinal) : longbool; cdecl;external 'pmwin' index 863;
  3369. function WinQueryWindowPos(hwnd : cardinal;var _swp : TSWP) : longbool; cdecl;external 'pmwin' index 837;
  3370. function WinQueryWindowPos(hwnd : cardinal;_pswp : PSWP) : longbool; cdecl;external 'pmwin' index 837;
  3371. function WinUpdateWindow(hwnd : cardinal) : longbool; cdecl;external 'pmwin' index 892;
  3372. function WinInvalidateRect(hwnd : cardinal;var wrc : TRectl;fIncludeChildren : longbool) : longbool; cdecl;external 'pmwin' index 765;
  3373. function WinInvalidateRect(hwnd : cardinal;pwrc : PRectl;fIncludeChildren : longbool) : longbool; cdecl;external 'pmwin' index 765;
  3374. function WinInvalidateRegion(hwnd,hrgn : cardinal;fIncludeChildren : longbool) : longbool; cdecl;external 'pmwin' index 766;
  3375. function WinInvertRect(hps : cardinal;var rcl : TRectl) : longbool; cdecl;external 'pmwin' index 767;
  3376. function WinInvertRect(hps : cardinal;prcl : PRectl) : longbool; cdecl;external 'pmwin' index 767;
  3377. function WinDrawBitmap(hpsDst,hbm : cardinal;var wrcSrc : TRectl;var ptlDst : TPointL;clrFore,clrBack : longint;fl : cardinal) : longbool; cdecl;external 'pmwin' index 730;
  3378. function WinDrawBitmap(hpsDst,hbm : cardinal;pwrcSrc : PRectl;pptlDst : PPointL;clrFore,clrBack : longint;fl : cardinal) : longbool; cdecl;external 'pmwin' index 730;
  3379. function WinDrawText(hps : cardinal;cchText : longint;lpchText : pchar;var rcl : TRectl;clrFore,clrBack : longint;flCmd : cardinal) : longint; cdecl;external 'pmwin' index 913;
  3380. function WinDrawText(hps : cardinal;cchText : longint;lpchText : pchar;prcl : PRectl;clrFore,clrBack : longint;flCmd : cardinal) : longint; cdecl;external 'pmwin' index 913;
  3381. function WinDrawBorder(hps : cardinal;var rcl : TRectl;cx,cy,clrFore,clrBack : longint;flCmd : cardinal) : longbool; cdecl;external 'pmwin' index 731;
  3382. function WinDrawBorder(hps : cardinal;prcl : PRectl;cx,cy,clrFore,clrBack : longint;flCmd : cardinal) : longbool; cdecl;external 'pmwin' index 731;
  3383. function WinLoadString(hab,hmod,id : cardinal;cchMax : longint;pchBuffer : pchar) : longint; cdecl;external 'pmwin' index 781;
  3384. function WinLoadMessage(hab,hmod,id : cardinal;cchMax : longint;pchBuffer : pchar) : longint; cdecl;external 'pmwin' index 779;
  3385. function WinSetActiveWindow(hwndDesktop,hwnd : cardinal) : longbool; cdecl;external 'pmwin' index 851;
  3386. function WinSubclassWindow(hwnd : cardinal;pfnwp : proc) : proc; cdecl;external 'pmwin' index 929;
  3387. function WinQueryClassName(hwnd : cardinal;cchMax : longint; pch : pchar) : longint; cdecl;external 'pmwin' index 805;
  3388. function WinQueryClassInfo(hab : cardinal;pszClassName : pchar;var _ClassInfo : TClassInfo) : longbool; cdecl;external 'pmwin' index 925;
  3389. function WinQueryClassInfo(hab : cardinal;pszClassName : pchar;_pClassInfo : PClassInfo) : longbool; cdecl;external 'pmwin' index 925;
  3390. function WinQueryActiveWindow(hwndDesktop : cardinal) : cardinal; cdecl;external 'pmwin' index 799;
  3391. function WinIsThreadActive(hab : cardinal) : longbool; cdecl;external 'pmwin' index 771;
  3392. function WinQuerySysModalWindow(hwndDesktop : cardinal) : cardinal; cdecl;external 'pmwin' index 827;
  3393. function WinSetSysModalWindow(hwndDesktop,hwnd : cardinal) : longbool; cdecl;external 'pmwin' index 872;
  3394. function WinQueryWindowUShort(hwnd : cardinal;index : longint) : word; cdecl;external 'pmwin' index 844;
  3395. function WinSetWindowUShort(hwnd : cardinal;index : longint;us : word) : longbool; cdecl;external 'pmwin' index 879;
  3396. function WinQueryWindowULong(hwnd : cardinal;index : longint) : cardinal; cdecl;external 'pmwin' index 843;
  3397. function WinSetWindowULong(hwnd : cardinal;index : longint;ul : cardinal) : longbool; cdecl;external 'pmwin' index 878;
  3398. function WinQueryWindowPtr(hwnd : cardinal;index : longint) : pointer; cdecl;external 'pmwin' index 839;
  3399. function WinSetWindowPtr(hwnd : cardinal;index : longint;p : pointer) : longbool; cdecl;external 'pmwin' index 876;
  3400. function WinSetWindowBits(hwnd : cardinal;index : longint;flData,flMask : cardinal) : longbool; cdecl;external 'pmwin' index 874;
  3401. function WinBeginEnumWindows(hwnd : cardinal) : cardinal; cdecl;external 'pmwin' index 702;
  3402. function WinGetNextWindow(henum : cardinal) : cardinal; cdecl;external 'pmwin' index 756;
  3403. function WinEndEnumWindows(henum : cardinal) : longbool; cdecl;external 'pmwin' index 737;
  3404. function WinWindowFromPoint(hwnd : cardinal;var ptl : TPointL;fChildren : longbool) : cardinal; cdecl;external 'pmwin' index 900;
  3405. function WinWindowFromPoint(hwnd : cardinal;pptl : PPointL;fChildren : longbool) : cardinal; cdecl;external 'pmwin' index 900;
  3406. function WinMapWindowPoints(hwndFrom,hwndTo : cardinal;var prgptl : TPointL;cwpt : longint) : longbool; cdecl;external 'pmwin' index 788;
  3407. function WinMapWindowPoints(hwndFrom,hwndTo : cardinal;prgptl : PPointL;cwpt : longint) : longbool; cdecl;external 'pmwin' index 788;
  3408. function WinValidateRect(hwnd : cardinal;var rcl : TRectl;fIncludeChildren : longbool) : longbool; cdecl;external 'pmwin' index 895;
  3409. function WinValidateRect(hwnd : cardinal;prcl : PRectl;fIncludeChildren : longbool) : longbool; cdecl;external 'pmwin' index 895;
  3410. function WinValidateRegion(hwnd,hrgn : cardinal;fIncludeChildren : longbool) : longbool; cdecl;external 'pmwin' index 896;
  3411. function WinWindowFromDC(hdc : cardinal) : cardinal; cdecl;external 'pmwin' index 898;
  3412. function WinQueryWindowDC(hwnd : cardinal) : cardinal; cdecl;external 'pmwin' index 835;
  3413. function WinGetScreenPS(hwndDesktop : cardinal) : cardinal; cdecl;external 'pmwin' index 759;
  3414. function WinLockWindowUpdate(hwndDesktop,hwndLockUpdate : cardinal) : longbool; cdecl;external 'pmwin' index 784;
  3415. function WinLockVisRegions(hwndDesktop : cardinal;fLock : longbool) : longbool; cdecl;external 'pmwin' index 782;
  3416. function WinQueryUpdateRect(hwnd : cardinal;var rcl : TRectl) : longbool; cdecl;external 'pmwin' index 831;
  3417. function WinQueryUpdateRect(hwnd : cardinal;prcl : PRectl) : longbool; cdecl;external 'pmwin' index 831;
  3418. function WinQueryUpdateRegion(hwnd,hrgn : cardinal) : longint; cdecl;external 'pmwin' index 832;
  3419. function WinExcludeUpdateRegion(hps,hwnd : cardinal) : longint; cdecl;external 'pmwin' index 742;
  3420. function WinSendMsg(hwnd,msg : cardinal;mp1,mp2 : pointer) : pointer; cdecl;external 'pmwin' index 920;
  3421. function WinCreateMsgQueue(hab : cardinal;cmsg : longint) : cardinal; cdecl;external 'pmwin' index 716;
  3422. function WinDestroyMsgQueue(hmq : cardinal) : longbool; cdecl;external 'pmwin' index 726;
  3423. function WinQueryQueueInfo(hmq : cardinal;var mqi : TMQInfo;cbCopy : cardinal) : longbool; cdecl;external 'pmwin' index 824;
  3424. function WinQueryQueueInfo(hmq : cardinal;pmqi : PMQInfo;cbCopy : cardinal) : longbool; cdecl;external 'pmwin' index 824;
  3425. function WinCancelShutdown(hmq : cardinal;fCancelAlways : longbool) : longbool; cdecl;external 'pmwin' index 705;
  3426. function WinGetMsg(hab : cardinal;var _qmsg : TQMsg;hwndFilter,msgFilterFirst,msgFilterLast : cardinal) : longbool; cdecl;external 'pmwin' index 915;
  3427. function WinGetMsg(hab : cardinal;_pqmsg : PQMsg;hwndFilter,msgFilterFirst,msgFilterLast : cardinal) : longbool; cdecl;external 'pmwin' index 915;
  3428. function WinPeekMsg(hab : cardinal;var _qmsg : TQMsg;hwndFilter,msgFilterFirst,msgFilterLast,fl : cardinal) : longbool; cdecl;external 'pmwin' index 918;
  3429. function WinPeekMsg(hab : cardinal;_pqmsg : PQMsg;hwndFilter,msgFilterFirst,msgFilterLast,fl : cardinal) : longbool; cdecl;external 'pmwin' index 918;
  3430. function WinDispatchMsg(hab : cardinal;var _qmsg : TQMsg) : pointer; cdecl;external 'pmwin' index 912;
  3431. function WinDispatchMsg(hab : cardinal;_pqmsg : PQMsg) : pointer; cdecl;external 'pmwin' index 912;
  3432. function WinPostMsg(hwnd,msg : cardinal;mp1,mp2 : pointer) : longbool; cdecl;external 'pmwin' index 919;
  3433. function WinRegisterUserMsg(hab,msgid : cardinal;datatype1,dir1,datatype2,dir2,datatyper : longint) : longbool; cdecl;external 'pmwin' index 846;
  3434. function WinRegisterUserDatatype(hab : cardinal;datatype,count : longint;var types : longint) : longbool; cdecl;external 'pmwin' index 845;
  3435. function WinSetMsgMode(hab : cardinal;classname :pchar;control : longint) : longbool; cdecl;external 'pmwin' index 862;
  3436. function WinSetSynchroMode(hab : cardinal;mode : longint) : longbool; cdecl;external 'pmwin' index 870;
  3437. function WinInSendMsg(hab : cardinal) : longbool; cdecl;external 'pmwin' index 761;
  3438. function WinBroadcastMsg(hwnd,msg : cardinal;mp1,mp2 : pointer;rgf : cardinal) : longbool; cdecl;external 'pmwin' index 901;
  3439. function WinWaitMsg(hab,msgFirst,msgLast : cardinal) : longbool; cdecl;external 'pmwin' index 897;
  3440. function WinQueryQueueStatus(hwndDesktop : cardinal) : cardinal; cdecl;external 'pmwin' index 825;
  3441. function WinQueryMsgPos(hab : cardinal;var ptl : TPointL) : longbool; cdecl;external 'pmwin' index 818;
  3442. function WinQueryMsgPos(hab : cardinal;pptl : PPointL) : longbool; cdecl;external 'pmwin' index 818;
  3443. function WinQueryMsgTime(hab : cardinal) : cardinal; cdecl;external 'pmwin' index 819;
  3444. function WinWaitEventSem(hev,ulTimeout : cardinal) : cardinal; cdecl;external 'pmwin' index 978;
  3445. function WinRequestMutexSem(hmtx,ulTimeout : cardinal) : cardinal; cdecl;external 'pmwin' index 979;
  3446. function WinWaitMuxWaitSem(hmux,ulTimeout : cardinal;var ulUser : cardinal) : cardinal; cdecl;external 'pmwin' index 980;
  3447. function WinWaitMuxWaitSem(hmux,ulTimeout : cardinal;pulUser : PCardinal) : cardinal; cdecl;external 'pmwin' index 980;
  3448. function WinPostQueueMsg(hmq,msg : cardinal;mp1,mp2 : pointer) : longbool; cdecl;external 'pmwin' index 902;
  3449. function WinSetMsgInterest(hwnd,msg_class : cardinal;control : longint) : longbool; cdecl;external 'pmwin' index 861;
  3450. function WinSetClassMsgInterest(hab : cardinal;pszClassName : pchar;msg_class : cardinal;control : longint) : longbool; cdecl;external 'pmwin' index 853;
  3451. function WinSetFocus(hwndDesktop,hwndSetFocus : cardinal) : longbool; cdecl;external 'pmwin' index 860;
  3452. function WinFocusChange(hwndDesktop,hwndSetFocus,flFocusChange : cardinal) : longbool; cdecl;external 'pmwin' index 746;
  3453. function WinSetCapture(hwndDesktop,hwnd : cardinal) : longbool; cdecl;external 'pmwin' index 852;
  3454. function WinQueryCapture(hwndDesktop : cardinal) : cardinal; cdecl;external 'pmwin' index 804;
  3455. function WinQueryFocus(hwndDesktop : cardinal) : cardinal; cdecl;external 'pmwin' index 817;
  3456. function WinGetKeyState(hwndDesktop : cardinal;vkey : longint) : longint; cdecl;external 'pmwin' index 752;
  3457. function WinGetPhysKeyState(hwndDesktop : cardinal;sc : longint) : longint; cdecl;external 'pmwin' index 758;
  3458. function WinEnablePhysInput(hwndDesktop : cardinal;fEnable : longbool) : longbool; cdecl;external 'pmwin' index 734;
  3459. function WinIsPhysInputEnabled(hwndDesktop : cardinal) : longbool; cdecl;external 'pmwin' index 769;
  3460. function WinSetKeyboardStateTable(hwndDesktop : cardinal;var KeyStateTable;fSet : longbool) : longbool; cdecl;external 'pmwin' index 921;
  3461. function WinSetKeyboardStateTable(hwndDesktop : cardinal;pKeyStateTable : pointer;fSet : longbool) : longbool; cdecl;external 'pmwin' index 921;
  3462. function WinGetDlgMsg(hwndDlg : cardinal;var _qmsg : TQMsg) : longbool; cdecl;external 'pmwin' index 914;
  3463. function WinGetDlgMsg(hwndDlg : cardinal;_pqmsg : PQMsg) : longbool; cdecl;external 'pmwin' index 914;
  3464. function WinLoadDlg(hwndParent,hwndOwner : cardinal;pfnDlgProc : proc;hmod,idDlg : cardinal;pCreateParams : pointer) : cardinal; cdecl;external 'pmwin' index 924;
  3465. function WinDlgBox(hwndParent,hwndOwner : cardinal;pfnDlgProc : proc;hmod,idDlg : cardinal;pCreateParams : pointer) : cardinal; cdecl;external 'pmwin' index 923;
  3466. function WinDismissDlg(hwndDlg,usResult : cardinal) : longbool; cdecl;external 'pmwin' index 729;
  3467. function WinQueryDlgItemShort(hwndDlg,idItem : cardinal;var _Result : integer;fSigned : longbool) : longbool; cdecl;external 'pmwin' index 814;
  3468. function WinQueryDlgItemShort(hwndDlg,idItem : cardinal;pResult : PInteger;fSigned : longbool) : longbool; cdecl;external 'pmwin' index 814;
  3469. function WinSetDlgItemShort(hwndDlg,idItem : cardinal;usValue : word;fSigned : longbool) : longbool; cdecl;external 'pmwin' index 858;
  3470. function WinSetDlgItemText(hwndDlg,idItem : cardinal;pszText : pchar) : longbool; cdecl;external 'pmwin' index 859;
  3471. function WinQueryDlgItemText(hwndDlg,idItem : cardinal;cchBufferMax : longint;pchBuffer : pchar) : cardinal; cdecl;external 'pmwin' index 815;
  3472. function WinQueryDlgItemTextLength(hwndDlg,idItem : cardinal) : longint; cdecl;external 'pmwin' index 816;
  3473. function WinDefDlgProc(hwndDlg,msg : cardinal;mp1,mp2 : pointer) : pointer; cdecl;external 'pmwin' index 910;
  3474. function WinAlarm(hwndDesktop,rgfType : cardinal) : longbool; cdecl;external 'pmwin' index 701;
  3475. function WinMessageBox(hwndParent,hwndOwner : cardinal;pszText,pszCaption : pchar;idWindow,flStyle : cardinal) : cardinal; cdecl;external 'pmwin' index 789;
  3476. (* Only available in later OS/2 versions probably???
  3477. function WinMessageBox2(hwndParent,hwndOwner: cardinal;pszText,pszCaption: PChar; idWindow: cardinal; MBInfo: PMB2Info): cardinal; cdecl; external 'pmwin' index 1015;
  3478. *)
  3479. function WinProcessDlg(hwndDlg : cardinal) : cardinal; cdecl;external 'pmwin' index 796;
  3480. function WinSendDlgItemMsg(hwndDlg,idItem,msg : cardinal;mp1,mp2 : pointer) : pointer; cdecl;external 'pmwin' index 903;
  3481. function WinMapDlgPoints(hwndDlg : cardinal;var prgwptl : TPointL;cwpt : cardinal;fCalcWindowCoords : longbool) : longbool; cdecl;external 'pmwin' index 787;
  3482. function WinMapDlgPoints(hwndDlg : cardinal;prgwptl : PPointL;cwpt : cardinal;fCalcWindowCoords : longbool) : longbool; cdecl;external 'pmwin' index 787;
  3483. function WinEnumDlgItem(hwndDlg,hwnd,code : cardinal) : cardinal; cdecl;external 'pmwin' index 740;
  3484. function WinSubstituteStrings(hwnd : cardinal;pszSrc : pchar;cchDstMax : longint;pszDst : pchar) : longint; cdecl;external 'pmwin' index 886;
  3485. function WinCreateDlg(hwndParent,hwndOwner : cardinal;pfnDlgProc : proc;var dlgt : TDlgTemplate;pCreateParams : pointer) : cardinal; cdecl;external 'pmwin' index 922;
  3486. function WinCreateDlg(hwndParent,hwndOwner : cardinal;pfnDlgProc : proc;pdlgt : PDlgTemplate;pCreateParams : pointer) : cardinal; cdecl;external 'pmwin' index 922;
  3487. function WinLoadMenu(hwndFrame,hmod,idMenu : cardinal) : cardinal; cdecl;external 'pmwin' index 778;
  3488. function WinCreateMenu(hwndParent : cardinal;lpmt : pointer) : cardinal; cdecl;external 'pmwin' index 907;
  3489. function WinPopupMenu(hwndParent,hwndOwner,hwndMenu : cardinal;x,y,idItem : longint;fs : cardinal) : longbool; cdecl;external 'pmwin' index 937;
  3490. function WinCreateStdWindow(hwndParent,flStyle : cardinal;var flCreateFlags : cardinal;pszClientClass,pszTitle : pchar;styleClient,hmod,idResources : cardinal;var hwndClient : cardinal) : cardinal; cdecl;external 'pmwin' index 908;
  3491. function WinCreateStdWindow(hwndParent,flStyle : cardinal;pflCreateFlags : PCardinal;pszClientClass,pszTitle : pchar;styleClient,hmod,idResources : cardinal;phwndClient : PCardinal) : cardinal; cdecl;external 'pmwin' index 908;
  3492. function WinFlashWindow(hwndFrame : cardinal;fFlash : longbool) : longbool; cdecl;external 'pmwin' index 745;
  3493. function WinCreateFrameControls(hwndFrame : cardinal;var fcdata : TFrameCData;pszTitle : pchar) : longbool; cdecl;external 'pmwin' index 906;
  3494. function WinCreateFrameControls(hwndFrame : cardinal;pfcdata : PFrameCData;pszTitle : pchar) : longbool; cdecl;external 'pmwin' index 906;
  3495. function WinCalcFrameRect(hwndFrame : cardinal;var rcl : TRectl;fClient : longbool) : longbool; cdecl;external 'pmwin' index 704;
  3496. function WinCalcFrameRect(hwndFrame : cardinal;prcl : PRectl;fClient : longbool) : longbool; cdecl;external 'pmwin' index 704;
  3497. function WinGetMinPosition(hwnd : cardinal;var _swp : TSWP;var pptl : POINTL) : longbool; cdecl;external 'pmwin' index 755;
  3498. function WinGetMinPosition(hwnd : cardinal;_pswp : PSWP;var pptl : POINTL) : longbool; cdecl;external 'pmwin' index 755;
  3499. function WinGetMaxPosition(hwnd : cardinal;var _swp : TSWP) : longbool; cdecl;external 'pmwin' index 754;
  3500. function WinGetMaxPosition(hwnd : cardinal;_pswp : PSWP) : longbool; cdecl;external 'pmwin' index 754;
  3501. function WinSaveWindowPos(hsvwp : cardinal;var _swp : TSWP;cswp : cardinal) : longbool; cdecl;external 'pmwin' index 943;
  3502. function WinSaveWindowPos(hsvwp : cardinal;_pswp : PSWP;cswp : cardinal) : longbool; cdecl;external 'pmwin' index 943;
  3503. function WinCopyRect(hab : cardinal;var rclDst,rclSrc : TRectl) : longbool; cdecl;external 'pmwin' index 710;
  3504. function WinCopyRect(hab : cardinal;prclDst,prclSrc : PRectl) : longbool; cdecl;external 'pmwin' index 710;
  3505. function WinSetRect(hab : cardinal;var rcl : TRectl;xLeft,yBottom,xRight,yTop : longint) : longbool; cdecl;external 'pmwin' index 868;
  3506. function WinSetRect(hab : cardinal;_prcl : PRectl;xLeft,yBottom,xRight,yTop : longint) : longbool; cdecl;external 'pmwin' index 868;
  3507. function WinIsRectEmpty(hab : cardinal;var rcl : TRectl) : longbool; cdecl;external 'pmwin' index 770;
  3508. function WinIsRectEmpty(hab : cardinal;prcl : PRectl) : longbool; cdecl;external 'pmwin' index 770;
  3509. function WinEqualRect(hab : cardinal;var rcl1,rcl2 : TRectl) : longbool; cdecl;external 'pmwin' index 741;
  3510. function WinEqualRect(hab : cardinal;prcl1,prcl2 : PRectl) : longbool; cdecl;external 'pmwin' index 741;
  3511. function WinSetRectEmpty(hab : cardinal;var rcl : TRectl) : longbool; cdecl;external 'pmwin' index 869;
  3512. function WinSetRectEmpty(hab : cardinal;prcl : PRectl) : longbool; cdecl;external 'pmwin' index 869;
  3513. function WinOffsetRect(hab : cardinal;var rcl : TRectl;cx,cy : longint) : longbool; cdecl;external 'pmwin' index 792;
  3514. function WinOffsetRect(hab : cardinal;prcl : PRectl;cx,cy : longint) : longbool; cdecl;external 'pmwin' index 792;
  3515. function WinInflateRect(hab : cardinal;var rcl : TRectl;cx,cy : longint) : longbool; cdecl;external 'pmwin' index 762;
  3516. function WinInflateRect(hab : cardinal;prcl : PRectl;cx,cy : longint) : longbool; cdecl;external 'pmwin' index 762;
  3517. function WinPtInRect(hab : cardinal;var rcl : TRectl;var ptl : TPointL) : longbool; cdecl;external 'pmwin' index 797;
  3518. function WinPtInRect(hab : cardinal;prcl : PRectl;pptl : PPointL) : longbool; cdecl;external 'pmwin' index 797;
  3519. function WinIntersectRect(hab : cardinal;var rclDst,rclSrc1,rclSrc2 : TRectl) : longbool; cdecl;external 'pmwin' index 764;
  3520. function WinIntersectRect(hab : cardinal;prclDst,prclSrc1,prclSrc2 : PRectl) : longbool; cdecl;external 'pmwin' index 764;
  3521. function WinUnionRect(hab : cardinal;var rclDst,rclSrc1,rclSrc2 : TRectl) : longbool; cdecl;external 'pmwin' index 891;
  3522. function WinUnionRect(hab : cardinal;prclDst,prclSrc1,prclSrc2 : PRectl) : longbool; cdecl;external 'pmwin' index 891;
  3523. function WinSubtractRect(hab : cardinal;var rclDst,rclSrc1,rclSrc2 : TRectl) : longbool; cdecl;external 'pmwin' index 887;
  3524. function WinSubtractRect(hab : cardinal;prclDst,prclSrc1,prclSrc2 : PRectl) : longbool; cdecl;external 'pmwin' index 887;
  3525. function WinMakeRect(hab : cardinal;var wrc : TRectl) : longbool; cdecl;external 'pmwin' index 786;
  3526. function WinMakeRect(hab : cardinal;pwrc : PRectl) : longbool; cdecl;external 'pmwin' index 786;
  3527. function WinMakePoints(hab : cardinal;var wpt : TPointL;cwpt : cardinal) : longbool; cdecl;external 'pmwin' index 785;
  3528. function WinMakePoints(hab : cardinal;pwpt : PPointL;cwpt : cardinal) : longbool; cdecl;external 'pmwin' index 785;
  3529. function WinQuerySysValue(hwndDesktop : cardinal;iSysValue : longint) : longint; cdecl;external 'pmwin' index 829;
  3530. function WinSetSysValue(hwndDesktop : cardinal;iSysValue,lValue : longint) : longbool; cdecl;external 'pmwin' index 873;
  3531. function WinSetPresParam(hwnd,id,cbParam : cardinal;pbParam : pointer) : longbool; cdecl;external 'pmwin' index 938;
  3532. function WinQueryPresParam(hwnd,id1,id2 : cardinal;var ulId : cardinal;cbBuf : cardinal;pbBuf : pointer;fs : cardinal) : cardinal; cdecl;external 'pmwin' index 939;
  3533. function WinQueryPresParam(hwnd,id1,id2 : cardinal;pulId : PCardinal;cbBuf : cardinal;pbBuf : pointer;fs : cardinal) : cardinal; cdecl;external 'pmwin' index 939;
  3534. function WinRemovePresParam(hwnd,id : cardinal) : longbool; cdecl;external 'pmwin' index 940;
  3535. function WinQuerySysColor(hwndDesktop : cardinal;clr,lReserved : longint) : longint; cdecl;external 'pmwin' index 826;
  3536. function WinSetSysColors(hwndDesktop,flOptions,flFormat : cardinal;clrFirst : longint;cclr : cardinal;var clr : longint) : longbool; cdecl;external 'pmwin' index 871;
  3537. function WinSetSysColors(hwndDesktop,flOptions,flFormat : cardinal;clrFirst : longint;cclr : cardinal;pclr : PLongint) : longbool; cdecl;external 'pmwin' index 871;
  3538. function WinStartTimer(hab,hwnd,idTimer,dtTimeout : cardinal) : cardinal; cdecl;external 'pmwin' index 884;
  3539. function WinStopTimer(hab,hwnd,idTimer : cardinal) : longbool; cdecl;external 'pmwin' index 885;
  3540. function WinGetCurrentTime(hab : cardinal) : cardinal; cdecl;external 'pmwin' index 750;
  3541. function WinLoadAccelTable(hab,hmod,idAccelTable : cardinal) : cardinal; cdecl;external 'pmwin' index 776;
  3542. function WinCopyAccelTable(haccel : cardinal;var _AccelTable : TAccelTable;cbCopyMax : cardinal) : cardinal; cdecl;external 'pmwin' index 709;
  3543. function WinCopyAccelTable(haccel : cardinal;_pAccelTable : PAccelTable;cbCopyMax : cardinal) : cardinal; cdecl;external 'pmwin' index 709;
  3544. function WinCreateAccelTable(hab : cardinal;var _AccelTable : TAccelTable) : cardinal; cdecl;external 'pmwin' index 713;
  3545. function WinCreateAccelTable(hab : cardinal;_pAccelTable : PAccelTable) : cardinal; cdecl;external 'pmwin' index 713;
  3546. function WinDestroyAccelTable(haccel : cardinal) : longbool; cdecl;external 'pmwin' index 723;
  3547. function WinTranslateAccel(hab,hwnd,haccel : cardinal;var _qmsg : TQMsg) : longbool; cdecl;external 'pmwin' index 904;
  3548. function WinTranslateAccel(hab,hwnd,haccel : cardinal;_pqmsg : PQMsg) : longbool; cdecl;external 'pmwin' index 904;
  3549. function WinSetAccelTable(hab,haccel,hwndFrame : cardinal) : longbool; cdecl;external 'pmwin' index 850;
  3550. function WinQueryAccelTable(hab,hwndFrame : cardinal) : cardinal; cdecl;external 'pmwin' index 798;
  3551. function WinTrackRect(hwnd,hps : cardinal;var ti : TTrackInfo) : longbool; cdecl;external 'pmwin' index 890;
  3552. function WinTrackRect(hwnd,hps : cardinal;pti : PTrackInfo) : longbool; cdecl;external 'pmwin' index 890;
  3553. function WinShowTrackRect(hwnd : cardinal;fShow : longbool) : longbool; cdecl;external 'pmwin' index 882;
  3554. function WinSetClipbrdOwner(hab,hwnd : cardinal) : longbool; cdecl;external 'pmwin' index 855;
  3555. function WinSetClipbrdData(hab,ulData,fmt,rgfFmtInfo : cardinal) : longbool; cdecl;external 'pmwin' index 854;
  3556. function WinQueryClipbrdData(hab,fmt : cardinal) : cardinal; cdecl;external 'pmwin' index 806;
  3557. function WinQueryClipbrdFmtInfo(hab,fmt : cardinal;var prgfFmtInfo : cardinal) : longbool; cdecl;external 'pmwin' index 807;
  3558. function WinQueryClipbrdFmtInfo(hab,fmt : cardinal;prgfFmtInfo : PCardinal) : longbool; cdecl;external 'pmwin' index 807;
  3559. function WinSetClipbrdViewer(hab,hwndNewClipViewer : cardinal) : longbool; cdecl;external 'pmwin' index 856;
  3560. function WinEnumClipbrdFmts(hab,fmt : cardinal) : cardinal; cdecl;external 'pmwin' index 739;
  3561. function WinEmptyClipbrd(hab : cardinal) : longbool; cdecl;external 'pmwin' index 733;
  3562. function WinOpenClipbrd(hab : cardinal) : longbool; cdecl;external 'pmwin' index 793;
  3563. function WinCloseClipbrd(hab : cardinal) : longbool; cdecl;external 'pmwin' index 707;
  3564. function WinQueryClipbrdOwner(hab : cardinal) : cardinal; cdecl;external 'pmwin' index 808;
  3565. function WinQueryClipbrdViewer(hab : cardinal) : cardinal; cdecl;external 'pmwin' index 809;
  3566. function WinDestroyCursor(hwnd : cardinal) : longbool; cdecl;external 'pmwin' index 725;
  3567. function WinShowCursor(hwnd : cardinal;fShow : longbool) : longbool; cdecl;external 'pmwin' index 880;
  3568. function WinCreateCursor(hwnd : cardinal;x,y,cx,cy : longint;fs : cardinal;var rclClip : TRectl) : longbool; cdecl;external 'pmwin' index 715;
  3569. function WinCreateCursor(hwnd : cardinal;x,y,cx,cy : longint;fs : cardinal;prclClip : PRectl) : longbool; cdecl;external 'pmwin' index 715;
  3570. function WinQueryCursorInfo(hwndDesktop : cardinal;var _CursorInfo : TCursorInfo) : longbool; cdecl;external 'pmwin' index 812;
  3571. function WinQueryCursorInfo(hwndDesktop : cardinal;_pCursorInfo : PCursorInfo) : longbool; cdecl;external 'pmwin' index 812;
  3572. function WinSetPointer(hwndDesktop,hptrNew : cardinal) : longbool; cdecl;external 'pmwin' index 866;
  3573. function WinSetPointerOwner(hptr,pid : cardinal;fDestroy : longbool) : longbool; cdecl;external 'pmwin' index 971;
  3574. function WinShowPointer(hwndDesktop : cardinal;fShow : longbool) : longbool; cdecl;external 'pmwin' index 881;
  3575. function WinQuerySysPointer(hwndDesktop : cardinal;iptr : longint;fLoad : longbool) : cardinal; cdecl;external 'pmwin' index 828;
  3576. function WinLoadPointer(hwndDesktop,hmod,idres : cardinal) : cardinal; cdecl;external 'pmwin' index 780;
  3577. function WinCreatePointer(hwndDesktop,hbmPointer : cardinal;fPointer : longbool;xHotspot,yHotspot : longint) : cardinal; cdecl;external 'pmwin' index 717;
  3578. function WinSetPointerPos(hwndDesktop : cardinal;x,y : longint) : longbool; cdecl;external 'pmwin' index 867;
  3579. function WinDestroyPointer(hptr : cardinal) : longbool; cdecl;external 'pmwin' index 727;
  3580. function WinQueryPointer(hwndDesktop : cardinal) : cardinal; cdecl;external 'pmwin' index 821;
  3581. function WinQueryPointerPos(hwndDesktop : cardinal;var ptl : TPointL) : longbool; cdecl;external 'pmwin' index 823;
  3582. function WinQueryPointerPos(hwndDesktop : cardinal;pptl : PPointL) : longbool; cdecl;external 'pmwin' index 823;
  3583. function WinCreatePointerIndirect(hwndDesktop : cardinal;var ptri : TPointerInfo) : cardinal; cdecl;external 'pmwin' index 942;
  3584. function WinCreatePointerIndirect(hwndDesktop : cardinal;pptri : PPointerInfo) : cardinal; cdecl;external 'pmwin' index 942;
  3585. function WinQueryPointerInfo(hptr : cardinal;var _PointerInfo : TPointerInfo) : longbool; cdecl;external 'pmwin' index 822;
  3586. function WinQueryPointerInfo(hptr : cardinal;_pPointerInfo : PPointerInfo) : longbool; cdecl;external 'pmwin' index 822;
  3587. function WinDrawPointer(hps : cardinal;x,y : longint;hptr,fs : cardinal) : longbool; cdecl;external 'pmwin' index 732;
  3588. function WinGetSysBitmap(hwndDesktop,ibm : cardinal) : cardinal; cdecl;external 'pmwin' index 760;
  3589. function WinSetHook(hab,hmq : cardinal;iHook : longint;pfnHook : pointer;hmod : cardinal) : longbool; cdecl;external 'pmwin' index 928;
  3590. function WinReleaseHook(hab,hmq : cardinal;iHook : longint;pfnHook : pointer;hmod : cardinal) : longbool; cdecl;external 'pmwin' index 927;
  3591. function WinCallMsgFilter(hab : cardinal;var _qmsg : TQMsg;msgf : cardinal) : longbool; cdecl;external 'pmwin' index 905;
  3592. function WinCallMsgFilter(hab : cardinal;_pqmsg : PQMsg;msgf : cardinal) : longbool; cdecl;external 'pmwin' index 905;
  3593. function WinSetClassThunkProc(pszClassname : pchar;pfnThunkProc : pointer) : longbool; cdecl;external 'pmwin' index 959;
  3594. function WinQueryClassThunkProc(pszClassname : pchar) : pointer; cdecl;external 'pmwin' index 960;
  3595. function WinSetWindowThunkProc(hwnd : cardinal;pfnThunkProc : pointer) : longbool; cdecl;external 'pmwin' index 961;
  3596. function WinQueryWindowThunkProc(hwnd : cardinal) : pointer; cdecl;external 'pmwin' index 962;
  3597. function WinQueryWindowModel(hwnd : cardinal) : longint; cdecl;external 'pmwin' index 934;
  3598. function WinQueryCp(hmq : cardinal) : cardinal; cdecl;external 'pmwin' index 810;
  3599. function WinSetCp(hmq,idCodePage : cardinal) : longbool; cdecl;external 'pmwin' index 857;
  3600. function WinQueryCpList(hab,ccpMax : cardinal;var prgcp : cardinal) : cardinal; cdecl;external 'pmwin' index 811;
  3601. function WinQueryCpList(hab,ccpMax : cardinal;prgcp : PCardinal) : cardinal; cdecl;external 'pmwin' index 811;
  3602. function WinCpTranslateString(hab,cpSrc : cardinal;pszSrc : pchar;cpDst,cchDestMax : cardinal;pchDest : pchar) : longbool; cdecl;external 'pmwin' index 712;
  3603. function WinCpTranslateChar(hab,cpSrc : cardinal;chSrc : byte;cpDst : cardinal) : byte; cdecl;external 'pmwin' index 711;
  3604. function WinUpper(hab,idcp,idcc : cardinal;psz : pchar) : cardinal; cdecl;external 'pmwin' index 893;
  3605. function WinUpperChar(hab,idcp,idcc,c : cardinal) : cardinal; cdecl;external 'pmwin' index 894;
  3606. function WinNextChar(hab,idcp,idcc : cardinal;psz : pchar) : pchar; cdecl;external 'pmwin' index 791;
  3607. function WinPrevChar(hab,idcp,idcc : cardinal;pszStart,psz : pchar) : pchar; cdecl;external 'pmwin' index 795;
  3608. function WinCompareStrings(hab,idcp,idcc : cardinal;psz1,psz2 : pchar;reserved : cardinal) : cardinal; cdecl;external 'pmwin' index 708;
  3609. function WinCreateAtomTable(cbInitial,cBuckets : cardinal) : cardinal; cdecl;external 'pmwin' index 714;
  3610. function WinDestroyAtomTable(hAtomTbl : cardinal) : cardinal; cdecl;external 'pmwin' index 724;
  3611. function WinAddAtom(hAtomTbl : cardinal;pszAtomName : pchar) : cardinal; cdecl;external 'pmwin' index 700;
  3612. function WinFindAtom(hAtomTbl : cardinal;pszAtomName : pchar) : cardinal; cdecl;external 'pmwin' index 744;
  3613. function WinDeleteAtom(hAtomTbl,atom : cardinal) : cardinal; cdecl;external 'pmwin' index 721;
  3614. function WinQueryAtomUsage(hAtomTbl,atom : cardinal) : cardinal; cdecl;external 'pmwin' index 803;
  3615. function WinQueryAtomLength(hAtomTbl,atom : cardinal) : cardinal; cdecl;external 'pmwin' index 801;
  3616. function WinQueryAtomName(hAtomTbl,atom : cardinal;pchBuffer : pchar;cchBufferMax : cardinal) : cardinal; cdecl;external 'pmwin' index 802;
  3617. function WinGetLastError(hab : cardinal) : cardinal; cdecl;external 'pmwin' index 753;
  3618. function WinGetErrorInfo(hab : cardinal) : PERRINFO; cdecl;external 'pmwin' index 751;
  3619. function WinFreeErrorInfo(var perrinfo : ERRINFO) : longbool; cdecl;external 'pmwin' index 748;
  3620. function WinDdeInitiate(hwndClient : cardinal;pszAppName,pszTopicName : pchar;var cctxt : TConvContext) : longbool; cdecl;external 'pmwin' index 718;
  3621. function WinDdeInitiate(hwndClient : cardinal;pszAppName,pszTopicName : pchar;pcctxt : PConvContext) : longbool; cdecl;external 'pmwin' index 718;
  3622. function WinDdeRespond(hwndClient,hwndServer : cardinal;pszAppName,pszTopicName : pchar;var cctxt : TConvContext) : pointer; cdecl;external 'pmwin' index 720;
  3623. function WinDdeRespond(hwndClient,hwndServer : cardinal;pszAppName,pszTopicName : pchar;pcctxt : PConvContext) : pointer; cdecl;external 'pmwin' index 720;
  3624. function WinDdePostMsg(hwndTo,hwndFrom,wm : cardinal;var ddest : DDEStruct;flOptions : cardinal) : longbool; cdecl;external 'pmwin' index 719;
  3625. function WinDdePostMsg(hwndTo,hwndFrom,wm : cardinal;pddest : PDDEStruct;flOptions : cardinal) : longbool; cdecl;external 'pmwin' index 719;
  3626. function WinDeleteProcedure(hab : cardinal;wndproc : proc) : longbool; cdecl;external 'pmwin' index 987;
  3627. function WinDeleteLibrary(hab,libhandle : cardinal) : longbool; cdecl;external 'pmwin' index 722;
  3628. function WinLoadProcedure(hab,libhandle : cardinal;procname : pchar) : proc; cdecl;external 'pmwin' index 986;
  3629. function WinLoadLibrary(hab : cardinal;libname : pchar) : cardinal; cdecl;external 'pmwin' index 777;
  3630. function WinSetDesktopBkgnd(hwndDesktop : cardinal;var dskNew : TDesktop) : cardinal; cdecl;external 'pmwin' index 935;
  3631. function WinSetDesktopBkgnd(hwndDesktop : cardinal;pdskNew : PDesktop) : cardinal; cdecl;external 'pmwin' index 935;
  3632. function WinQueryDesktopBkgnd(hwndDesktop : cardinal;var dsk : TDesktop) : longbool; cdecl;external 'pmwin' index 936;
  3633. function WinQueryDesktopBkgnd(hwndDesktop : cardinal;pdsk : PDesktop) : longbool; cdecl;external 'pmwin' index 936;
  3634. function WinRealizePalette(hwnd,hps : cardinal;var cclr : cardinal) : longint; cdecl;external 'pmwin' index 941;
  3635. function WinRealizePalette(hwnd,hps : cardinal;pcclr : PCardinal) : longint; cdecl;external 'pmwin' index 941;
  3636. function WinQuerySystemAtomTable: cardinal; cdecl; external 'pmwin' index 830;
  3637. function CardinalFromMP (MP: pointer): cardinal; cdecl;
  3638. begin
  3639. CardinalFromMP := cardinal (MP);
  3640. end;
  3641. function Integer1FromMP (MP: pointer): word; cdecl;
  3642. begin
  3643. Integer1FromMP := Lo (cardinal (MP));
  3644. end;
  3645. function Integer2FromMP (MP: pointer): word; cdecl;
  3646. begin
  3647. Integer2FromMP := Hi (cardinal (MP));
  3648. end;
  3649. end.
  3650. {
  3651. $Log$
  3652. Revision 1.13 2003-08-11 10:43:17 yuri
  3653. + WinSetErrorInfo constants and function added
  3654. Revision 1.12 2003/03/27 18:09:23 yuri
  3655. MLE types and various constants added
  3656. Revision 1.11 2003/01/27 17:57:36 hajny
  3657. * additions by Yuri Prokushev (WC_* constants a.o.)
  3658. Revision 1.10 2002/12/07 20:56:35 hajny
  3659. * WinMessageBox2 commented out temporarily
  3660. Revision 1.9 2002/12/07 20:21:38 hajny
  3661. * mistyping fixed
  3662. Revision 1.8 2002/12/07 17:50:17 hajny
  3663. + (Commented) WinMessageBox2 added
  3664. Revision 1.7 2002/11/11 20:55:22 hajny
  3665. * WinCreateWindow correction + overloaded variant added
  3666. Revision 1.6 2002/10/05 19:12:55 hajny
  3667. * PMERR constants made available from outside
  3668. Revision 1.5 2002/09/07 16:01:25 peter
  3669. * old logs removed and tabs fixed
  3670. }