OS2DEF.LST 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. Listing:
  2. 1 (* Release 3.10 *)
  3. 2 (*-------------------------------------------------------------------------*
  4. 3 * *
  5. 4 * OS2DEF.DEF - Modula-2 OS/2 Common Definitions file *
  6. 5 * *
  7. 6 * COPYRIGHT (C) 1989..1992 Clarion Software Corporation. *
  8. 7 * Copyright (c) 1988 Microsoft Corporation *
  9. 8 * All Rights Reserved *
  10. 9 * This file is compatible with OS/2 version 1.2. *
  11. 10 * *
  12. 11 *--------------------------------------------------------------------------*)
  13. 12
  14. 13 (*# call(o_a_size => off,
  15. 14 o_a_copy=>off,
  16. 15 result_optional=>on,
  17. 16 reg_saved => (si, di, es, ds, st1, st2),
  18. 17 reg_param => (),
  19. 18 seg_name => none,
  20. 19 near_call => off,
  21. 20 ds_eq_ss => off) *)
  22. 21 (*# module(implementation=>off, init_code => off) *)
  23. 22 (*# name(prefix => os2_lib) *)
  24. 23 (*# data(near_ptr => off) *)
  25. 24
  26. 25 DEFINITION MODULE OS2DEF;
  27. 26
  28. 27 TYPE
  29. 28 SHANDLE = CARDINAL;
  30. 29 LHANDLE = LONGCARD;
  31. ***** ^ undeclared identifier
  32. 30 SEL = CARDINAL;
  33. 31 ERRORID = LONGCARD;
  34. ***** ^ undeclared identifier
  35. 32 LSET = SET OF [0..31];
  36. ***** ^ not supported yet
  37. 33 (*# save, data(var_enum_size=>off) *)
  38. 34 BOOL = (B_FALSE,B_TRUE); (* ie 2 byte BOOLEAN for parameters *)
  39. 35 (*# restore *)
  40. 36 CONST
  41. 37 SEVERITY_NOERROR = 00H;
  42. 38 SEVERITY_WARNING = 04H;
  43. 39 SEVERITY_ERROR = 08H;
  44. 40 SEVERITY_SEVERE = 0CH;
  45. 41 SEVERITY_UNRECOVERABLE = 010H;
  46. 42
  47. 43 TYPE
  48. 44
  49. 45 HMODULE = CARDINAL;
  50. 46 PID = CARDINAL;
  51. 47 TID = CARDINAL;
  52. 48 HSEM = FarADDRESS;
  53. ***** ^ undeclared identifier
  54. 49 HAB = LHANDLE;
  55. 50 HPS = LHANDLE;
  56. 51 PHPS = FarADDRESS;
  57. ***** ^ undeclared identifier
  58. 52 HDC = LHANDLE;
  59. 53 HRGN = LHANDLE;
  60. 54 HBITMAP = LHANDLE;
  61. 55 HMF = LHANDLE;
  62. 56 COLOR = LONGINT;
  63. 57 POINTL = RECORD
  64. 58 x,y : LONGINT;
  65. 59 END;
  66. ***** ^ not supported yet
  67. 60 POINTS = RECORD
  68. 61 x,y : INTEGER;
  69. 62 END;
  70. ***** ^ not supported yet
  71. 63 WPOINT = RECORD
  72. 64 x : INTEGER;
  73. 65 dummy1 : WORD;
  74. ***** ^ undeclared identifier
  75. 66 y : INTEGER;
  76. 67 dummy2 : WORD;
  77. ***** ^ undeclared identifier
  78. 68 END; (*WPOINT*)
  79. ***** ^ not supported yet
  80. 69 RECTL = RECORD
  81. 70 xLeft : LONGINT;
  82. 71 yBottom : LONGINT;
  83. 72 xRight : LONGINT;
  84. 73 yTop : LONGINT;
  85. 74 END;
  86. ***** ^ not supported yet
  87. 75 WRECT = RECORD
  88. 76 xLeft : INTEGER;
  89. 77 dummy1 : WORD;
  90. ***** ^ undeclared identifier
  91. 78 yBottom : INTEGER;
  92. 79 dummy2 : WORD;
  93. ***** ^ undeclared identifier
  94. 80 xRight : INTEGER;
  95. 81 dummy3 : WORD;
  96. ***** ^ undeclared identifier
  97. 82 yTop : INTEGER;
  98. 83 dummy4 : WORD;
  99. ***** ^ undeclared identifier
  100. 84 END; (*WRECT*)
  101. ***** ^ not supported yet
  102. 85 STR8 = ARRAY [0..7] OF CHAR;
  103. ***** ^ not supported yet
  104. ***** ^ not supported yet
  105. 86 STR16 = ARRAY [0..15] OF CHAR;
  106. ***** ^ not supported yet
  107. ***** ^ not supported yet
  108. 87 STR32 = ARRAY [0..31] OF CHAR;
  109. ***** ^ not supported yet
  110. ***** ^ not supported yet
  111. 88 STR64 = ARRAY [0..63] OF CHAR;
  112. ***** ^ not supported yet
  113. ***** ^ not supported yet
  114. 89 LPSTR = POINTER TO STR64;
  115. ***** ^ not supported yet
  116. 90
  117. 91 (* Structure for Device Driver data *)
  118. 92 DRIVDATA = RECORD
  119. 93 b : LONGINT;
  120. 94 Version : LONGINT;
  121. 95 DeviceName : ARRAY [0..31] OF CHAR;
  122. ***** ^ not supported yet
  123. ***** ^ not supported yet
  124. 96 GeneralData : ARRAY [0..0] OF CHAR;
  125. ***** ^ not supported yet
  126. ***** ^ not supported yet
  127. 97 END;
  128. ***** ^ not supported yet
  129. 98
  130. 99
  131. 100 TYPE
  132. 101
  133. 102
  134. 103 HWND = LONGCARD;
  135. ***** ^ undeclared identifier
  136. 104
  137. 105
  138. 106 CONST
  139. 107 NULL = 0;
  140. 108 VAR
  141. 109 NullStr[0:0] : ARRAY[0..0] OF CHAR; (* Null addresses for VAR parameters *)
  142. ***** ^ not supported yet
  143. ***** ^ not supported yet
  144. ***** ^ not supported yet
  145. ***** ^ not supported yet
  146. 110 NullVar[0:0] : ARRAY[0..0] OF BYTE;
  147. ***** ^ not supported yet
  148. ***** ^ not supported yet
  149. ***** ^ not supported yet
  150. ***** ^ undeclared identifier
  151. 111 NullAdr[0:0] : FarADDRESS;
  152. ***** ^ not supported yet
  153. ***** ^ not supported yet
  154. ***** ^ undeclared identifier
  155. 112
  156. 113 END OS2DEF.
  157. ***** ^ not supported yet
  158. 114
  159. 43 errors