home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / os2bnd01.zip / os2.ads < prev    next >
Text File  |  1995-10-15  |  538KB  |  12,012 lines

  1. -- THIN ADA 95 BINDINGS TO THE OS/2 API, R 0.1ß
  2. -- 
  3. -- File:   OS2.ADS (spec)
  4. --
  5. -- Editor: Klaus A. Brunner, <kbrun@ibm.net>
  6. -- Build:  gcc -c os2.adb (GNAT 2.06)
  7. -- Note:   See the README.TXT file for additional information
  8. --
  9.  
  10.  
  11. with Interfaces.C.Strings;
  12. with System;
  13. with Unchecked_Conversion;
  14.  
  15. package OS2 is
  16.  
  17.     package c renames interfaces.c;
  18.  
  19.     subtype unsigned_int is c.unsigned;
  20.     subtype signed_int is c.int;
  21.     subtype signed_short is c.short;
  22.  
  23.  
  24.    -- typedefs
  25.  
  26.    subtype INT is signed_int;
  27.    subtype UINT is unsigned_int;
  28.    type APIRET is new unsigned_int;
  29.    type BOOL is new unsigned_int;
  30.    type BOOL32 is new unsigned_int;
  31.    subtype CHAR is c.signed_char;
  32.    subtype BYTE is c.unsigned_char;
  33.    subtype UCHAR is c.unsigned_char;
  34.    subtype SHORT is signed_short;
  35.    subtype USHORT is c.unsigned_short;
  36.    subtype LONG is signed_int;
  37.    subtype ULONG is unsigned_int;
  38.    type SHANDLE is new c.unsigned_short;
  39.    type LHANDLE is new unsigned_int;
  40.    type HPIPE is new unsigned_int;
  41.    type HQUEUE is new unsigned_int;
  42.    type HMODULE is new unsigned_int;
  43.    type HOBJECT is new unsigned_int;
  44.    type PID is new unsigned_int;
  45.    type TID is new unsigned_int;
  46.    type SEL is new c.unsigned_short;
  47.    type HMTX is new unsigned_int;
  48.    type HMUX is new unsigned_int;
  49.    type HEV is new unsigned_int;
  50.    type HACCEL is new unsigned_int;
  51.    type HRGN is new unsigned_int;
  52.    type HPOINTER is new unsigned_int;
  53.    type HLIB is new unsigned_int;
  54.    type COLOR is new signed_int;
  55.    type HAB is new unsigned_int;
  56.    type HPS is new unsigned_int;
  57.    type HDC is new unsigned_int;
  58.    type HWND is new unsigned_int;
  59.    type HMQ is new unsigned_int;
  60.    type HPAL is new unsigned_int;
  61.    type HBITMAP is new unsigned_int;
  62.    type ERRORID is new unsigned_int;
  63.    type HSAVEWP is new unsigned_int;
  64.    type HENUM is new unsigned_int;
  65.    type HATOMTBL is new unsigned_int;
  66.    type ATOM is new unsigned_int;
  67.    type IPT is new signed_int;
  68.    type PIX is new signed_int;
  69.    type LINE is new unsigned_int;
  70.    type FIXED is new signed_int;
  71.    type HMF is new unsigned_int;
  72.    type HSWITCH is new unsigned_int;
  73.    type HPROGRAM is new unsigned_int;
  74.    type HINI is new unsigned_int;
  75.    type HAPP is new unsigned_int;
  76.    type PROGCATEGORY is new unsigned_int;
  77.    type HSTR is new unsigned_int;
  78.    type HSPL is new unsigned_int;
  79.    type HSTD is new unsigned_int;
  80.    type SPLERR is new unsigned_int;
  81.    type HELPSUBTABLE is new c.unsigned_short;
  82.    type HVPS is new c.unsigned_short;
  83.  
  84.    type PBOOL is access all BOOL;
  85.    type PBOOL32 is access all BOOL;
  86.    type PCHAR is access all CHAR;
  87.  
  88. --   type PCH is access all c.unsigned_char;
  89. --   type PSZ is access all c.unsigned_char;
  90. --   type PCCH is access all c.unsigned_char;
  91. --   type PCSZ is access all c.unsigned_char;
  92. --   type PBYTE is access all BYTE;
  93. --   type PUCHAR is access all UCHAR;
  94.  
  95.    subtype PCH is C.Strings.chars_ptr;
  96.    subtype PSZ is C.Strings.chars_ptr;
  97.    subtype PCCH is C.Strings.chars_ptr;
  98.    subtype PCSZ is C.Strings.chars_ptr;
  99.    subtype PBYTE is C.Strings.chars_ptr;        -- ??
  100.    subtype PUCHAR is C.Strings.chars_ptr;        -- ??
  101.  
  102.    type PSHORT is access all SHORT;
  103.    type PUSHORT is access all USHORT;
  104.    type PLONG is access all LONG;
  105.    type PULONG is access all ULONG;
  106.    subtype PVOID is System.Address;
  107.    type PPVOID is access all PVOID;
  108.    subtype CPVOID is PVOID;
  109.    type PHPIPE is access all HPIPE;
  110.    type PHQUEUE is access all HQUEUE;
  111.    type PHMODULE is access all HMODULE;
  112.    type HSEM is new ULONG;
  113.    type PHSEM is access all HSEM;
  114.    type PPID is access all PID;
  115.    type PTID is access all TID;
  116.    type PSEL is access all SEL;
  117.    type PHMTX is access all HMTX;
  118.    type PHMUX is access all HMUX;
  119.    type PHEV is access all HEV;
  120.    type PHRGN is access all HRGN;
  121.    type MRESULT is new ULONG;
  122.    type MPARAM is new ULONG;
  123.    type PHLIB is access all HLIB;
  124.    type PCOLOR is access all COLOR;
  125.    type PHAB is access all HAB;
  126.    type PHPS is access all HPS;
  127.    type PHDC is access all HDC;
  128.    type PHWND is access all HWND;
  129.    type PHPAL is access all HPAL;
  130.    type PHBITMAP is access all HBITMAP;
  131.    type PERRORID is access all ERRORID;
  132.    type FNWP is access all MRESULT;
  133. --   type PLONG is access all LONG;
  134.    type PIPT is access all IPT;
  135.    subtype PBUNDLE is System.Address;
  136.    type PFIXED is access all FIXED;
  137.    type PHMF is access all HMF;
  138. --   type PULONG is access all ULONG;
  139. --   type PBYTE is access all BYTE;
  140. --   type PFIXED is access all FIXED;
  141.    type PDEVOPENDATA is access all PSZ;
  142.    type PHSWITCH is access all HSWITCH;
  143.    type PHPROGRAM is access all HPROGRAM;
  144.    type PHINI is access all HINI;
  145.    type PPROGCATEGORY is access all PROGCATEGORY;
  146.    type PPSZ is access all PSZ;
  147.    type PHSTD is access all HSTD;
  148.    type PQMOPENDATA is access all PSZ;
  149.    type PHELPSUBTABLE is access all HELPSUBTABLE;
  150.    type HDDF is new ULONG;
  151.    type PHVPS is access all HVPS;
  152.  
  153.  
  154.    FALSE                : constant := 8#0000#;
  155.    TRUE                 : constant := 1;
  156.     NULLHANDLE          : constant := 0;
  157.     NULLSHANDLE         : constant := 0;
  158.    WINERR_BASE          : constant := 16#1000#;
  159.    GPIERR_BASE          : constant := 16#2000#;
  160.    DEVERR_BASE          : constant := 16#3000#;
  161.    SPLERR_BASE          : constant := 16#4000#;
  162.    SEVERITY_NOERROR     : constant := 16#0000#;
  163.    SEVERITY_WARNING     : constant := 16#0004#;
  164.    SEVERITY_ERROR       : constant := 16#0008#;
  165.    SEVERITY_SEVERE      : constant := 16#000C#;
  166.    SEVERITY_UNRECOVERABLE: constant := 16#0010#;
  167.    NO_ERROR              : constant := 8#0000#;
  168.    ERROR_INVALID_FUNCTION: constant := 1;
  169.    ERROR_FILE_NOT_FOUND  : constant := 2;
  170.    ERROR_PATH_NOT_FOUND  : constant := 3;
  171.    ERROR_TOO_MANY_OPEN_FILES: constant := 4;
  172.    ERROR_ACCESS_DENIED      : constant := 5;
  173.    ERROR_INVALID_HANDLE     : constant := 6;
  174.    ERROR_ARENA_TRASHED      : constant := 7;
  175.    ERROR_NOT_ENOUGH_MEMORY  : constant := 8;
  176.    ERROR_INVALID_BLOCK      : constant := 9;
  177.    ERROR_BAD_ENVIRONMENT    : constant := 10;
  178.    ERROR_BAD_FORMAT         : constant := 11;
  179.    ERROR_INVALID_ACCESS     : constant := 12;
  180.    ERROR_INVALID_DATA       : constant := 13;
  181.    ERROR_INVALID_DRIVE      : constant := 15;
  182.    ERROR_CURRENT_DIRECTORY  : constant := 16#0010#;
  183.    ERROR_NOT_SAME_DEVICE    : constant := 17;
  184.    ERROR_NO_MORE_FILES      : constant := 18;
  185.    ERROR_WRITE_PROTECT      : constant := 19;
  186.    ERROR_BAD_UNIT           : constant := 20;
  187.    ERROR_NOT_READY          : constant := 21;
  188.    ERROR_BAD_COMMAND        : constant := 22;
  189.    ERROR_CRC                : constant := 23;
  190.    ERROR_BAD_LENGTH         : constant := 24;
  191.    ERROR_SEEK               : constant := 25;
  192.    ERROR_NOT_DOS_DISK       : constant := 26;
  193.    ERROR_SECTOR_NOT_FOUND   : constant := 27;
  194.    ERROR_OUT_OF_PAPER       : constant := 28;
  195.    ERROR_WRITE_FAULT        : constant := 29;
  196.    ERROR_READ_FAULT         : constant := 30;
  197.    ERROR_GEN_FAILURE        : constant := 31;
  198.    ERROR_SHARING_VIOLATION  : constant := 16#0020#;
  199.    ERROR_LOCK_VIOLATION     : constant := 33;
  200.    ERROR_WRONG_DISK         : constant := 34;
  201.    ERROR_FCB_UNAVAILABLE    : constant := 35;
  202.    ERROR_SHARING_BUFFER_EXCEEDED: constant := 36;
  203.    ERROR_CODE_PAGE_MISMATCHED   : constant := 37;
  204.    ERROR_HANDLE_EOF             : constant := 38;
  205.    ERROR_HANDLE_DISK_FULL       : constant := 39;
  206.    ERROR_NOT_SUPPORTED          : constant := 50;
  207.    ERROR_REM_NOT_LIST           : constant := 51;
  208.    ERROR_DUP_NAME               : constant := 52;
  209.    ERROR_BAD_NETPATH            : constant := 53;
  210.    ERROR_NETWORK_BUSY           : constant := 54;
  211.    ERROR_DEV_NOT_EXIST          : constant := 55;
  212.    ERROR_TOO_MANY_CMDS          : constant := 56;
  213.    ERROR_ADAP_HDW_ERR           : constant := 57;
  214.    ERROR_BAD_NET_RESP           : constant := 58;
  215.    ERROR_UNEXP_NET_ERR          : constant := 59;
  216.    ERROR_BAD_REM_ADAP           : constant := 60;
  217.    ERROR_PRINTQ_FULL            : constant := 61;
  218.    ERROR_NO_SPOOL_SPACE         : constant := 62;
  219.    ERROR_PRINT_CANCELLED        : constant := 63;
  220.    ERROR_NETNAME_DELETED        : constant := 16#0040#;
  221.    ERROR_NETWORK_ACCESS_DENIED  : constant := 65;
  222.    ERROR_BAD_DEV_TYPE           : constant := 66;
  223.    ERROR_BAD_NET_NAME           : constant := 67;
  224.    ERROR_TOO_MANY_NAMES         : constant := 68;
  225.    ERROR_TOO_MANY_SESS          : constant := 69;
  226.    ERROR_SHARING_PAUSED         : constant := 70;
  227.    ERROR_REQ_NOT_ACCEP          : constant := 71;
  228.    ERROR_REDIR_PAUSED           : constant := 72;
  229.    ERROR_SBCS_ATT_WRITE_PROT    : constant := 73;
  230.    ERROR_SBCS_GENERAL_FAILURE   : constant := 74;
  231.    ERROR_XGA_OUT_MEMORY         : constant := 75;
  232.    ERROR_FILE_EXISTS            : constant := 80;
  233.    ERROR_DUP_FCB                : constant := 81;
  234.    ERROR_CANNOT_MAKE            : constant := 82;
  235.    ERROR_FAIL_I24               : constant := 83;
  236.    ERROR_OUT_OF_STRUCTURES      : constant := 84;
  237.    ERROR_ALREADY_ASSIGNED       : constant := 85;
  238.    ERROR_INVALID_PASSWORD       : constant := 86;
  239.    ERROR_INVALID_PARAMETER      : constant := 87;
  240.    ERROR_NET_WRITE_FAULT        : constant := 88;
  241.    ERROR_NO_PROC_SLOTS          : constant := 89;
  242.    ERROR_NOT_FROZEN             : constant := 90;
  243.    ERROR_SYS_COMP_NOT_LOADED    : constant := 90;
  244.    ERR_TSTOVFL                  : constant := 91;
  245.    ERR_TSTDUP                   : constant := 92;
  246.    ERROR_NO_ITEMS               : constant := 93;
  247.    ERROR_INTERRUPT              : constant := 95;
  248.    ERROR_DEVICE_IN_USE          : constant := 99;
  249.    ERROR_TOO_MANY_SEMAPHORES    : constant := 100;
  250.    ERROR_EXCL_SEM_ALREADY_OWNED : constant := 101;
  251.    ERROR_SEM_IS_SET             : constant := 102;
  252.    ERROR_TOO_MANY_SEM_REQUESTS  : constant := 103;
  253.    ERROR_INVALID_AT_INTERRUPT_TIME: constant := 104;
  254.    ERROR_SEM_OWNER_DIED           : constant := 105;
  255.    ERROR_SEM_USER_LIMIT           : constant := 106;
  256.    ERROR_DISK_CHANGE              : constant := 107;
  257.    ERROR_DRIVE_LOCKED             : constant := 108;
  258.    ERROR_BROKEN_PIPE              : constant := 109;
  259.    ERROR_OPEN_FAILED              : constant := 110;
  260.    ERROR_BUFFER_OVERFLOW          : constant := 111;
  261.    ERROR_DISK_FULL                : constant := 112;
  262.    ERROR_NO_MORE_SEARCH_HANDLES   : constant := 113;
  263.    ERROR_INVALID_TARGET_HANDLE    : constant := 114;
  264.    ERROR_PROTECTION_VIOLATION     : constant := 115;
  265.    ERROR_VIOKBD_REQUEST           : constant := 116;
  266.    ERROR_INVALID_CATEGORY         : constant := 117;
  267.    ERROR_INVALID_VERIFY_SWITCH    : constant := 118;
  268.    ERROR_BAD_DRIVER_LEVEL         : constant := 119;
  269.    ERROR_CALL_NOT_IMPLEMENTED     : constant := 120;
  270.    ERROR_SEM_TIMEOUT              : constant := 121;
  271.    ERROR_INSUFFICIENT_BUFFER      : constant := 122;
  272.    ERROR_INVALID_NAME             : constant := 123;
  273.    ERROR_INVALID_LEVEL            : constant := 124;
  274.    ERROR_NO_VOLUME_LABEL          : constant := 125;
  275.    ERROR_MOD_NOT_FOUND            : constant := 126;
  276.    ERROR_PROC_NOT_FOUND           : constant := 127;
  277.    ERROR_WAIT_NO_CHILDREN         : constant := 16#0080#;
  278.    ERROR_CHILD_NOT_COMPLETE       : constant := 129;
  279.    ERROR_DIRECT_ACCESS_HANDLE     : constant := 130;
  280.    ERROR_NEGATIVE_SEEK            : constant := 131;
  281.    ERROR_SEEK_ON_DEVICE           : constant := 132;
  282.    ERROR_IS_JOIN_TARGET           : constant := 133;
  283.    ERROR_IS_JOINED                : constant := 134;
  284.    ERROR_IS_SUBSTED               : constant := 135;
  285.    ERROR_NOT_JOINED               : constant := 136;
  286.    ERROR_NOT_SUBSTED              : constant := 137;
  287.    ERROR_JOIN_TO_JOIN             : constant := 138;
  288.    ERROR_SUBST_TO_SUBST           : constant := 139;
  289.    ERROR_JOIN_TO_SUBST            : constant := 140;
  290.    ERROR_SUBST_TO_JOIN            : constant := 141;
  291.    ERROR_BUSY_DRIVE               : constant := 142;
  292.    ERROR_SAME_DRIVE               : constant := 143;
  293.    ERROR_DIR_NOT_ROOT             : constant := 144;
  294.    ERROR_DIR_NOT_EMPTY            : constant := 145;
  295.    ERROR_IS_SUBST_PATH            : constant := 146;
  296.    ERROR_IS_JOIN_PATH             : constant := 147;
  297.    ERROR_PATH_BUSY                : constant := 148;
  298.    ERROR_IS_SUBST_TARGET          : constant := 149;
  299.    ERROR_SYSTEM_TRACE             : constant := 150;
  300.    ERROR_INVALID_EVENT_COUNT      : constant := 151;
  301.    ERROR_TOO_MANY_MUXWAITERS      : constant := 152;
  302.    ERROR_INVALID_LIST_FORMAT      : constant := 153;
  303.    ERROR_LABEL_TOO_LONG           : constant := 154;
  304.    ERROR_TOO_MANY_TCBS            : constant := 155;
  305.    ERROR_SIGNAL_REFUSED           : constant := 156;
  306.    ERROR_DISCARDED                : constant := 157;
  307.    ERROR_NOT_LOCKED               : constant := 158;
  308.    ERROR_BAD_THREADID_ADDR        : constant := 159;
  309.    ERROR_BAD_ARGUMENTS            : constant := 160;
  310.    ERROR_BAD_PATHNAME             : constant := 161;
  311.    ERROR_SIGNAL_PENDING           : constant := 162;
  312.    ERROR_UNCERTAIN_MEDIA          : constant := 163;
  313.    ERROR_MAX_THRDS_REACHED        : constant := 164;
  314.    ERROR_MONITORS_NOT_SUPPORTED   : constant := 165;
  315.    ERROR_UNC_DRIVER_NOT_INSTALLED : constant := 166;
  316.    ERROR_LOCK_FAILED              : constant := 167;
  317.    ERROR_SWAPIO_FAILED            : constant := 168;
  318.    ERROR_SWAPIN_FAILED            : constant := 169;
  319.    ERROR_BUSY                     : constant := 170;
  320.    ERROR_CANCEL_VIOLATION         : constant := 173;
  321.    ERROR_ATOMIC_LOCK_NOT_SUPPORTED: constant := 174;
  322.    ERROR_READ_LOCKS_NOT_SUPPORTED : constant := 175;
  323.    ERROR_INVALID_SEGMENT_NUMBER   : constant := 180;
  324.    ERROR_INVALID_CALLGATE         : constant := 181;
  325.    ERROR_INVALID_ORDINAL          : constant := 182;
  326.    ERROR_ALREADY_EXISTS           : constant := 183;
  327.    ERROR_NO_CHILD_PROCESS         : constant := 184;
  328.    ERROR_CHILD_ALIVE_NOWAIT       : constant := 185;
  329.    ERROR_INVALID_FLAG_NUMBER      : constant := 186;
  330.    ERROR_SEM_NOT_FOUND            : constant := 187;
  331.    ERROR_INVALID_STARTING_CODESEG : constant := 188;
  332.    ERROR_INVALID_STACKSEG         : constant := 189;
  333.    ERROR_INVALID_MODULETYPE       : constant := 190;
  334.    ERROR_INVALID_EXE_SIGNATURE    : constant := 191;
  335.    ERROR_EXE_MARKED_INVALID       : constant := 192;
  336.    ERROR_BAD_EXE_FORMAT           : constant := 193;
  337.    ERROR_ITERATED_DATA_EXCEEDS_64K: constant := 194;
  338.    ERROR_INVALID_MINALLOCSIZE     : constant := 195;
  339.    ERROR_DYNLINK_FROM_INVALID_RING: constant := 196;
  340.    ERROR_IOPL_NOT_ENABLED         : constant := 197;
  341.    ERROR_INVALID_SEGDPL           : constant := 198;
  342.    ERROR_AUTODATASEG_EXCEEDS_64K  : constant := 199;
  343.    ERROR_RING2SEG_MUST_BE_MOVABLE : constant := 200;
  344.    ERROR_RELOCSRC_CHAIN_EXCEEDS_SEGLIMIT: constant := 201;
  345.    ERROR_INFLOOP_IN_RELOC_CHAIN         : constant := 202;
  346.    ERROR_ENVVAR_NOT_FOUND               : constant := 203;
  347.    ERROR_NOT_CURRENT_CTRY               : constant := 204;
  348.    ERROR_NO_SIGNAL_SENT                 : constant := 205;
  349.    ERROR_FILENAME_EXCED_RANGE           : constant := 206;
  350.    ERROR_RING2_STACK_IN_USE             : constant := 207;
  351.    ERROR_META_EXPANSION_TOO_LONG        : constant := 208;
  352.    ERROR_INVALID_SIGNAL_NUMBER          : constant := 209;
  353.    ERROR_THREAD_1_INACTIVE              : constant := 210;
  354.    ERROR_INFO_NOT_AVAIL                 : constant := 211;
  355.    ERROR_LOCKED                         : constant := 212;
  356.    ERROR_BAD_DYNALINK                   : constant := 213;
  357.    ERROR_TOO_MANY_MODULES               : constant := 214;
  358.    ERROR_NESTING_NOT_ALLOWED            : constant := 215;
  359.    ERROR_CANNOT_SHRINK                  : constant := 216;
  360.    ERROR_ZOMBIE_PROCESS                 : constant := 217;
  361.    ERROR_STACK_IN_HIGH_MEMORY           : constant := 218;
  362.    ERROR_INVALID_EXITROUTINE_RING       : constant := 219;
  363.    ERROR_GETBUF_FAILED                  : constant := 220;
  364.    ERROR_FLUSHBUF_FAILED                : constant := 221;
  365.    ERROR_TRANSFER_TOO_LONG              : constant := 222;
  366.    ERROR_FORCENOSWAP_FAILED             : constant := 223;
  367.    ERROR_SMG_NO_TARGET_WINDOW           : constant := 224;
  368.    ERROR_NO_CHILDREN                    : constant := 228;
  369.    ERROR_INVALID_SCREEN_GROUP           : constant := 229;
  370.    ERROR_BAD_PIPE                       : constant := 230;
  371.    ERROR_PIPE_BUSY                      : constant := 231;
  372.    ERROR_NO_DATA                        : constant := 232;
  373.    ERROR_PIPE_NOT_CONNECTED             : constant := 233;
  374.    ERROR_MORE_DATA                      : constant := 234;
  375.    ERROR_VC_DISCONNECTED                : constant := 240;
  376.    ERROR_CIRCULARITY_REQUESTED          : constant := 250;
  377.    ERROR_DIRECTORY_IN_CDS               : constant := 251;
  378.    ERROR_INVALID_FSD_NAME               : constant := 252;
  379.    ERROR_INVALID_PATH                   : constant := 253;
  380.    ERROR_INVALID_EA_NAME                : constant := 254;
  381.    ERROR_EA_LIST_INCONSISTENT           : constant := 255;
  382.    ERROR_EA_LIST_TOO_LONG               : constant := 16#0100#;
  383.    ERROR_NO_META_MATCH                  : constant := 257;
  384.    ERROR_FINDNOTIFY_TIMEOUT             : constant := 258;
  385.    ERROR_NO_MORE_ITEMS                  : constant := 259;
  386.    ERROR_SEARCH_STRUC_REUSED            : constant := 260;
  387.    ERROR_CHAR_NOT_FOUND                 : constant := 261;
  388.    ERROR_TOO_MUCH_STACK                 : constant := 262;
  389.    ERROR_INVALID_ATTR                   : constant := 263;
  390.    ERROR_INVALID_STARTING_RING          : constant := 264;
  391.    ERROR_INVALID_DLL_INIT_RING          : constant := 265;
  392.    ERROR_CANNOT_COPY                    : constant := 266;
  393.    ERROR_DIRECTORY                      : constant := 267;
  394.    ERROR_OPLOCKED_FILE                  : constant := 268;
  395.    ERROR_OPLOCK_THREAD_EXISTS           : constant := 269;
  396.    ERROR_VOLUME_CHANGED                 : constant := 270;
  397.    ERROR_FINDNOTIFY_HANDLE_IN_USE       : constant := 271;
  398.    ERROR_FINDNOTIFY_HANDLE_CLOSED       : constant := 272;
  399.    ERROR_NOTIFY_OBJECT_REMOVED          : constant := 273;
  400.    ERROR_ALREADY_SHUTDOWN               : constant := 274;
  401.    ERROR_EAS_DIDNT_FIT                  : constant := 275;
  402.    ERROR_EA_FILE_CORRUPT                : constant := 276;
  403.    ERROR_EA_TABLE_FULL                  : constant := 277;
  404.    ERROR_INVALID_EA_HANDLE              : constant := 278;
  405.    ERROR_NO_CLUSTER                     : constant := 279;
  406.    ERROR_CREATE_EA_FILE                 : constant := 280;
  407.    ERROR_CANNOT_OPEN_EA_FILE            : constant := 281;
  408.    ERROR_EAS_NOT_SUPPORTED              : constant := 282;
  409.    ERROR_NEED_EAS_FOUND                 : constant := 283;
  410.    ERROR_DUPLICATE_HANDLE               : constant := 284;
  411.    ERROR_DUPLICATE_NAME                 : constant := 285;
  412.    ERROR_EMPTY_MUXWAIT                  : constant := 286;
  413.    ERROR_MUTEX_OWNED                    : constant := 287;
  414.    ERROR_NOT_OWNER                      : constant := 288;
  415.    ERROR_PARAM_TOO_SMALL                : constant := 289;
  416.    ERROR_TOO_MANY_HANDLES               : constant := 290;
  417.    ERROR_TOO_MANY_OPENS                 : constant := 291;
  418.    ERROR_WRONG_TYPE                     : constant := 292;
  419.    ERROR_UNUSED_CODE                    : constant := 293;
  420.    ERROR_THREAD_NOT_TERMINATED          : constant := 294;
  421.    ERROR_INIT_ROUTINE_FAILED            : constant := 295;
  422.    ERROR_MODULE_IN_USE                  : constant := 296;
  423.    ERROR_NOT_ENOUGH_WATCHPOINTS         : constant := 297;
  424.    ERROR_TOO_MANY_POSTS                 : constant := 298;
  425.    ERROR_ALREADY_POSTED                 : constant := 299;
  426.    ERROR_ALREADY_RESET                  : constant := 300;
  427.    ERROR_SEM_BUSY                       : constant := 301;
  428.    ERROR_INVALID_PROCID                 : constant := 303;
  429.    ERROR_INVALID_PDELTA                 : constant := 304;
  430.    ERROR_NOT_DESCENDANT                 : constant := 305;
  431.    ERROR_NOT_SESSION_MANAGER            : constant := 306;
  432.    ERROR_INVALID_PCLASS                 : constant := 307;
  433.    ERROR_INVALID_SCOPE                  : constant := 308;
  434.    ERROR_INVALID_THREADID               : constant := 309;
  435.    ERROR_DOSSUB_SHRINK                  : constant := 310;
  436.    ERROR_DOSSUB_NOMEM                   : constant := 311;
  437.    ERROR_DOSSUB_OVERLAP                 : constant := 312;
  438.    ERROR_DOSSUB_BADSIZE                 : constant := 313;
  439.    ERROR_DOSSUB_BADFLAG                 : constant := 314;
  440.    ERROR_DOSSUB_BADSELECTOR             : constant := 315;
  441.    ERROR_MR_MSG_TOO_LONG                : constant := 316;
  442.    ERROR_MR_MID_NOT_FOUND               : constant := 317;
  443.    ERROR_MR_UN_ACC_MSGF                 : constant := 318;
  444.    ERROR_MR_INV_MSGF_FORMAT             : constant := 319;
  445.    ERROR_MR_INV_IVCOUNT                 : constant := 320;
  446.    ERROR_MR_UN_PERFORM                  : constant := 321;
  447.    ERROR_TS_WAKEUP                      : constant := 322;
  448.    ERROR_TS_SEMHANDLE                   : constant := 323;
  449.    ERROR_TS_NOTIMER                     : constant := 324;
  450.    ERROR_TS_HANDLE                      : constant := 326;
  451.    ERROR_TS_DATETIME                    : constant := 327;
  452.    ERROR_SYS_INTERNAL                   : constant := 328;
  453.    ERROR_QUE_CURRENT_NAME               : constant := 329;
  454.    ERROR_QUE_PROC_NOT_OWNED             : constant := 330;
  455.    ERROR_QUE_PROC_OWNED                 : constant := 331;
  456.    ERROR_QUE_DUPLICATE                  : constant := 332;
  457.    ERROR_QUE_ELEMENT_NOT_EXIST          : constant := 333;
  458.    ERROR_QUE_NO_MEMORY                  : constant := 334;
  459.    ERROR_QUE_INVALID_NAME               : constant := 335;
  460.    ERROR_QUE_INVALID_PRIORITY           : constant := 336;
  461.    ERROR_QUE_INVALID_HANDLE             : constant := 337;
  462.    ERROR_QUE_LINK_NOT_FOUND             : constant := 338;
  463.    ERROR_QUE_MEMORY_ERROR               : constant := 339;
  464.    ERROR_QUE_PREV_AT_END                : constant := 340;
  465.    ERROR_QUE_PROC_NO_ACCESS             : constant := 341;
  466.    ERROR_QUE_EMPTY                      : constant := 342;
  467.    ERROR_QUE_NAME_NOT_EXIST             : constant := 343;
  468.    ERROR_QUE_NOT_INITIALIZED            : constant := 344;
  469.    ERROR_QUE_UNABLE_TO_ACCESS           : constant := 345;
  470.    ERROR_QUE_UNABLE_TO_ADD              : constant := 346;
  471.    ERROR_QUE_UNABLE_TO_INIT             : constant := 347;
  472.    ERROR_VIO_INVALID_MASK               : constant := 349;
  473.    ERROR_VIO_PTR                        : constant := 350;
  474.    ERROR_VIO_APTR                       : constant := 351;
  475.    ERROR_VIO_RPTR                       : constant := 352;
  476.    ERROR_VIO_CPTR                       : constant := 353;
  477.    ERROR_VIO_LPTR                       : constant := 354;
  478.    ERROR_VIO_MODE                       : constant := 355;
  479.    ERROR_VIO_WIDTH                      : constant := 356;
  480.    ERROR_VIO_ATTR                       : constant := 357;
  481.    ERROR_VIO_ROW                        : constant := 358;
  482.    ERROR_VIO_COL                        : constant := 359;
  483.    ERROR_VIO_TOPROW                     : constant := 360;
  484.    ERROR_VIO_BOTROW                     : constant := 361;
  485.    ERROR_VIO_RIGHTCOL                   : constant := 362;
  486.    ERROR_VIO_LEFTCOL                    : constant := 363;
  487.    ERROR_SCS_CALL                       : constant := 364;
  488.    ERROR_SCS_VALUE                      : constant := 365;
  489.    ERROR_VIO_WAIT_FLAG                  : constant := 366;
  490.    ERROR_VIO_UNLOCK                     : constant := 367;
  491.    ERROR_SGS_NOT_SESSION_MGR            : constant := 368;
  492.    ERROR_SMG_INVALID_SGID               : constant := 369;
  493.    ERROR_SMG_INVALID_SESSION_ID         : constant := 369;
  494.    ERROR_SMG_NOSG                       : constant := 370;
  495.    ERROR_SMG_NO_SESSIONS                : constant := 370;
  496.    ERROR_SMG_GRP_NOT_FOUND              : constant := 371;
  497.    ERROR_SMG_SESSION_NOT_FOUND          : constant := 371;
  498.    ERROR_SMG_SET_TITLE                  : constant := 372;
  499.    ERROR_KBD_PARAMETER                  : constant := 373;
  500.    ERROR_KBD_NO_DEVICE                  : constant := 374;
  501.    ERROR_KBD_INVALID_IOWAIT             : constant := 375;
  502.    ERROR_KBD_INVALID_LENGTH             : constant := 376;
  503.    ERROR_KBD_INVALID_ECHO_MASK          : constant := 377;
  504.    ERROR_KBD_INVALID_INPUT_MASK         : constant := 378;
  505.    ERROR_MON_INVALID_PARMS              : constant := 379;
  506.    ERROR_MON_INVALID_DEVNAME            : constant := 380;
  507.    ERROR_MON_INVALID_HANDLE             : constant := 381;
  508.    ERROR_MON_BUFFER_TOO_SMALL           : constant := 382;
  509.    ERROR_MON_BUFFER_EMPTY               : constant := 383;
  510.    ERROR_MON_DATA_TOO_LARGE             : constant := 384;
  511.    ERROR_MOUSE_NO_DEVICE                : constant := 385;
  512.    ERROR_MOUSE_INV_HANDLE               : constant := 386;
  513.    ERROR_MOUSE_INV_PARMS                : constant := 387;
  514.    ERROR_MOUSE_CANT_RESET               : constant := 388;
  515.    ERROR_MOUSE_DISPLAY_PARMS            : constant := 389;
  516.    ERROR_MOUSE_INV_MODULE               : constant := 390;
  517.    ERROR_MOUSE_INV_ENTRY_PT             : constant := 391;
  518.    ERROR_MOUSE_INV_MASK                 : constant := 392;
  519.    NO_ERROR_MOUSE_NO_DATA               : constant := 393;
  520.    NO_ERROR_MOUSE_PTR_DRAWN             : constant := 394;
  521.    ERROR_INVALID_FREQUENCY              : constant := 395;
  522.    ERROR_NLS_NO_COUNTRY_FILE            : constant := 396;
  523.    ERROR_NLS_OPEN_FAILED                : constant := 397;
  524.    ERROR_NLS_NO_CTRY_CODE               : constant := 398;
  525.    ERROR_NLS_TABLE_TRUNCATED            : constant := 399;
  526.    ERROR_NLS_BAD_TYPE                   : constant := 400;
  527.    ERROR_NLS_TYPE_NOT_FOUND             : constant := 401;
  528.    ERROR_VIO_SMG_ONLY                   : constant := 402;
  529.    ERROR_VIO_INVALID_ASCIIZ             : constant := 403;
  530.    ERROR_VIO_DEREGISTER                 : constant := 404;
  531.    ERROR_VIO_NO_POPUP                   : constant := 405;
  532.    ERROR_VIO_EXISTING_POPUP             : constant := 406;
  533.    ERROR_KBD_SMG_ONLY                   : constant := 407;
  534.    ERROR_KBD_INVALID_ASCIIZ             : constant := 408;
  535.    ERROR_KBD_INVALID_MASK               : constant := 409;
  536.    ERROR_KBD_REGISTER                   : constant := 410;
  537.    ERROR_KBD_DEREGISTER                 : constant := 411;
  538.    ERROR_MOUSE_SMG_ONLY                 : constant := 412;
  539.    ERROR_MOUSE_INVALID_ASCIIZ           : constant := 413;
  540.    ERROR_MOUSE_INVALID_MASK             : constant := 414;
  541.    ERROR_MOUSE_REGISTER                 : constant := 415;
  542.    ERROR_MOUSE_DEREGISTER               : constant := 416;
  543.    ERROR_SMG_BAD_ACTION                 : constant := 417;
  544.    ERROR_SMG_INVALID_CALL               : constant := 418;
  545.    ERROR_SCS_SG_NOTFOUND                : constant := 419;
  546.    ERROR_SCS_NOT_SHELL                  : constant := 420;
  547.    ERROR_VIO_INVALID_PARMS              : constant := 421;
  548.    ERROR_VIO_FUNCTION_OWNED             : constant := 422;
  549.    ERROR_VIO_RETURN                     : constant := 423;
  550.    ERROR_SCS_INVALID_FUNCTION           : constant := 424;
  551.    ERROR_SCS_NOT_SESSION_MGR            : constant := 425;
  552.    ERROR_VIO_REGISTER                   : constant := 426;
  553.    ERROR_VIO_NO_MODE_THREAD             : constant := 427;
  554.    ERROR_VIO_NO_SAVE_RESTORE_THD        : constant := 428;
  555.    ERROR_VIO_IN_BG                      : constant := 429;
  556.    ERROR_VIO_ILLEGAL_DURING_POPUP       : constant := 430;
  557.    ERROR_SMG_NOT_BASESHELL              : constant := 431;
  558.    ERROR_SMG_BAD_STATUSREQ              : constant := 432;
  559.    ERROR_QUE_INVALID_WAIT               : constant := 433;
  560.    ERROR_VIO_LOCK                       : constant := 434;
  561.    ERROR_MOUSE_INVALID_IOWAIT           : constant := 435;
  562.    ERROR_VIO_INVALID_HANDLE             : constant := 436;
  563.    ERROR_VIO_ILLEGAL_DURING_LOCK        : constant := 437;
  564.    ERROR_VIO_INVALID_LENGTH             : constant := 438;
  565.    ERROR_KBD_INVALID_HANDLE             : constant := 439;
  566.    ERROR_KBD_NO_MORE_HANDLE             : constant := 440;
  567.    ERROR_KBD_CANNOT_CREATE_KCB          : constant := 441;
  568.    ERROR_KBD_CODEPAGE_LOAD_INCOMPL      : constant := 442;
  569.    ERROR_KBD_INVALID_CODEPAGE_ID        : constant := 443;
  570.    ERROR_KBD_NO_CODEPAGE_SUPPORT        : constant := 444;
  571.    ERROR_KBD_FOCUS_REQUIRED             : constant := 445;
  572.    ERROR_KBD_FOCUS_ALREADY_ACTIVE       : constant := 446;
  573.    ERROR_KBD_KEYBOARD_BUSY              : constant := 447;
  574.    ERROR_KBD_INVALID_CODEPAGE           : constant := 448;
  575.    ERROR_KBD_UNABLE_TO_FOCUS            : constant := 449;
  576.    ERROR_SMG_SESSION_NON_SELECT         : constant := 450;
  577.    ERROR_SMG_SESSION_NOT_FOREGRND       : constant := 451;
  578.    ERROR_SMG_SESSION_NOT_PARENT         : constant := 452;
  579.    ERROR_SMG_INVALID_START_MODE         : constant := 453;
  580.    ERROR_SMG_INVALID_RELATED_OPT        : constant := 454;
  581.    ERROR_SMG_INVALID_BOND_OPTION        : constant := 455;
  582.    ERROR_SMG_INVALID_SELECT_OPT         : constant := 456;
  583.    ERROR_SMG_START_IN_BACKGROUND        : constant := 457;
  584.    ERROR_SMG_INVALID_STOP_OPTION        : constant := 458;
  585.    ERROR_SMG_BAD_RESERVE                : constant := 459;
  586.    ERROR_SMG_PROCESS_NOT_PARENT         : constant := 460;
  587.    ERROR_SMG_INVALID_DATA_LENGTH        : constant := 461;
  588.    ERROR_SMG_NOT_BOUND                  : constant := 462;
  589.    ERROR_SMG_RETRY_SUB_ALLOC            : constant := 463;
  590.    ERROR_KBD_DETACHED                   : constant := 464;
  591.    ERROR_VIO_DETACHED                   : constant := 465;
  592.    ERROR_MOU_DETACHED                   : constant := 466;
  593.    ERROR_VIO_FONT                       : constant := 467;
  594.    ERROR_VIO_USER_FONT                  : constant := 468;
  595.    ERROR_VIO_BAD_CP                     : constant := 469;
  596.    ERROR_VIO_NO_CP                      : constant := 470;
  597.    ERROR_VIO_NA_CP                      : constant := 471;
  598.    ERROR_INVALID_CODE_PAGE              : constant := 472;
  599.    ERROR_CPLIST_TOO_SMALL               : constant := 473;
  600.    ERROR_CP_NOT_MOVED                   : constant := 474;
  601.    ERROR_MODE_SWITCH_INIT               : constant := 475;
  602.    ERROR_CODE_PAGE_NOT_FOUND            : constant := 476;
  603.    ERROR_UNEXPECTED_SLOT_RETURNED       : constant := 477;
  604.    ERROR_SMG_INVALID_TRACE_OPTION       : constant := 478;
  605.    ERROR_VIO_INTERNAL_RESOURCE          : constant := 479;
  606.    ERROR_VIO_SHELL_INIT                 : constant := 480;
  607.    ERROR_SMG_NO_HARD_ERRORS             : constant := 481;
  608.    ERROR_CP_SWITCH_INCOMPLETE           : constant := 482;
  609.    ERROR_VIO_TRANSPARENT_POPUP          : constant := 483;
  610.    ERROR_CRITSEC_OVERFLOW               : constant := 484;
  611.    ERROR_CRITSEC_UNDERFLOW              : constant := 485;
  612.    ERROR_VIO_BAD_RESERVE                : constant := 486;
  613.    ERROR_INVALID_ADDRESS                : constant := 487;
  614.    ERROR_ZERO_SELECTORS_REQUESTED       : constant := 488;
  615.    ERROR_NOT_ENOUGH_SELECTORS_AVA       : constant := 489;
  616.    ERROR_INVALID_SELECTOR               : constant := 490;
  617.    ERROR_SMG_INVALID_PROGRAM_TYPE       : constant := 491;
  618.    ERROR_SMG_INVALID_PGM_CONTROL        : constant := 492;
  619.    ERROR_SMG_INVALID_INHERIT_OPT        : constant := 493;
  620.    ERROR_VIO_EXTENDED_SG                : constant := 494;
  621.    ERROR_VIO_NOT_PRES_MGR_SG            : constant := 495;
  622.    ERROR_VIO_SHIELD_OWNED               : constant := 496;
  623.    ERROR_VIO_NO_MORE_HANDLES            : constant := 497;
  624.    ERROR_VIO_SEE_ERROR_LOG              : constant := 498;
  625.    ERROR_VIO_ASSOCIATED_DC              : constant := 499;
  626.    ERROR_KBD_NO_CONSOLE                 : constant := 500;
  627.    ERROR_MOUSE_NO_CONSOLE               : constant := 501;
  628.    ERROR_MOUSE_INVALID_HANDLE           : constant := 502;
  629.    ERROR_SMG_INVALID_DEBUG_PARMS        : constant := 503;
  630.    ERROR_KBD_EXTENDED_SG                : constant := 504;
  631.    ERROR_MOU_EXTENDED_SG                : constant := 505;
  632.    ERROR_SMG_INVALID_ICON_FILE          : constant := 506;
  633.    ERROR_TRC_PID_NON_EXISTENT           : constant := 507;
  634.    ERROR_TRC_COUNT_ACTIVE               : constant := 508;
  635.    ERROR_TRC_SUSPENDED_BY_COUNT         : constant := 509;
  636.    ERROR_TRC_COUNT_INACTIVE             : constant := 510;
  637.    ERROR_TRC_COUNT_REACHED              : constant := 511;
  638.    ERROR_NO_MC_TRACE                    : constant := 16#0200#;
  639.    ERROR_MC_TRACE                       : constant := 513;
  640.    ERROR_TRC_COUNT_ZERO                 : constant := 514;
  641.    ERROR_SMG_TOO_MANY_DDS               : constant := 515;
  642.    ERROR_SMG_INVALID_NOTIFICATION       : constant := 516;
  643.    ERROR_LF_INVALID_FUNCTION            : constant := 517;
  644.    ERROR_LF_NOT_AVAIL                   : constant := 518;
  645.    ERROR_LF_SUSPENDED                   : constant := 519;
  646.    ERROR_LF_BUF_TOO_SMALL               : constant := 520;
  647.    ERROR_LF_BUFFER_CORRUPTED            : constant := 521;
  648.    ERROR_LF_BUFFER_FULL                 : constant := 521;
  649.    ERROR_LF_INVALID_DAEMON              : constant := 522;
  650.    ERROR_LF_INVALID_RECORD              : constant := 522;
  651.    ERROR_LF_INVALID_TEMPL               : constant := 523;
  652.    ERROR_LF_INVALID_SERVICE             : constant := 523;
  653.    ERROR_LF_GENERAL_FAILURE             : constant := 524;
  654.    ERROR_LF_INVALID_ID                  : constant := 525;
  655.    ERROR_LF_INVALID_HANDLE              : constant := 526;
  656.    ERROR_LF_NO_ID_AVAIL                 : constant := 527;
  657.    ERROR_LF_TEMPLATE_AREA_FULL          : constant := 528;
  658.    ERROR_LF_ID_IN_USE                   : constant := 529;
  659.    ERROR_MOU_NOT_INITIALIZED            : constant := 530;
  660.    ERROR_MOUINITREAL_DONE               : constant := 531;
  661.    ERROR_DOSSUB_CORRUPTED               : constant := 532;
  662.    ERROR_MOUSE_CALLER_NOT_SUBSYS        : constant := 533;
  663.    ERROR_ARITHMETIC_OVERFLOW            : constant := 534;
  664.    ERROR_TMR_NO_DEVICE                  : constant := 535;
  665.    ERROR_TMR_INVALID_TIME               : constant := 536;
  666.    ERROR_PVW_INVALID_ENTITY             : constant := 537;
  667.    ERROR_PVW_INVALID_ENTITY_TYPE        : constant := 538;
  668.    ERROR_PVW_INVALID_SPEC               : constant := 539;
  669.    ERROR_PVW_INVALID_RANGE_TYPE         : constant := 540;
  670.    ERROR_PVW_INVALID_COUNTER_BLK        : constant := 541;
  671.    ERROR_PVW_INVALID_TEXT_BLK           : constant := 542;
  672.    ERROR_PRF_NOT_INITIALIZED            : constant := 543;
  673.    ERROR_PRF_ALREADY_INITIALIZED        : constant := 544;
  674.    ERROR_PRF_NOT_STARTED                : constant := 545;
  675.    ERROR_PRF_ALREADY_STARTED            : constant := 546;
  676.    ERROR_PRF_TIMER_OUT_OF_RANGE         : constant := 547;
  677.    ERROR_PRF_TIMER_RESET                : constant := 548;
  678.    ERROR_VDD_LOCK_USEAGE_DENIED         : constant := 639;
  679.    ERROR_TIMEOUT                        : constant := 640;
  680.    ERROR_VDM_DOWN                       : constant := 641;
  681.    ERROR_VDM_LIMIT                      : constant := 642;
  682.    ERROR_VDD_NOT_FOUND                  : constant := 643;
  683.    ERROR_INVALID_CALLER                 : constant := 644;
  684.    ERROR_PID_MISMATCH                   : constant := 645;
  685.    ERROR_INVALID_VDD_HANDLE             : constant := 646;
  686.    ERROR_VLPT_NO_SPOOLER                : constant := 647;
  687.    ERROR_VCOM_DEVICE_BUSY               : constant := 648;
  688.    ERROR_VLPT_DEVICE_BUSY               : constant := 649;
  689.    ERROR_NESTING_TOO_DEEP               : constant := 650;
  690.    ERROR_VDD_MISSING                    : constant := 651;
  691.    ERROR_BIDI_INVALID_LENGTH            : constant := 671;
  692.    ERROR_BIDI_INVALID_INCREMENT         : constant := 672;
  693.    ERROR_BIDI_INVALID_COMBINATION       : constant := 673;
  694.    ERROR_BIDI_INVALID_RESERVED          : constant := 674;
  695.    ERROR_BIDI_INVALID_EFFECT            : constant := 675;
  696.    ERROR_BIDI_INVALID_CSDREC            : constant := 676;
  697.    ERROR_BIDI_INVALID_CSDSTATE          : constant := 677;
  698.    ERROR_BIDI_INVALID_LEVEL             : constant := 678;
  699.    ERROR_BIDI_INVALID_TYPE_SUPPORT      : constant := 679;
  700.    ERROR_BIDI_INVALID_ORIENTATION       : constant := 680;
  701.    ERROR_BIDI_INVALID_NUM_SHAPE         : constant := 681;
  702.    ERROR_BIDI_INVALID_CSD               : constant := 682;
  703.    ERROR_BIDI_NO_SUPPORT                : constant := 683;
  704.    NO_ERROR_BIDI_RW_INCOMPLETE          : constant := 684;
  705.    ERROR_IMP_INVALID_PARM               : constant := 691;
  706.    ERROR_IMP_INVALID_LENGTH             : constant := 692;
  707.    ERROR_MON_BAD_BUFFER                 : constant := 730;
  708.    ERROR_MODULE_CORRUPTED               : constant := 731;
  709.    ERROR_SM_OUTOF_SWAPFILE              : constant := 1477;
  710.    ERROR_LF_TIMEOUT                     : constant := 2055;
  711.    ERROR_LF_SUSPEND_SUCCESS             : constant := 2057;
  712.    ERROR_LF_RESUME_SUCCESS              : constant := 2058;
  713.    ERROR_LF_REDIRECT_SUCCESS            : constant := 2059;
  714.    ERROR_LF_REDIRECT_FAILURE            : constant := 2060;
  715.    ERROR_SWAPPER_NOT_ACTIVE             : constant := 16#8000#;
  716.    ERROR_INVALID_SWAPID                 : constant := 32769;
  717.    ERROR_IOERR_SWAP_FILE                : constant := 32770;
  718.    ERROR_SWAP_TABLE_FULL                : constant := 32771;
  719.    ERROR_SWAP_FILE_FULL                 : constant := 32772;
  720.    ERROR_CANT_INIT_SWAPPER              : constant := 32773;
  721.    ERROR_SWAPPER_ALREADY_INIT           : constant := 32774;
  722.    ERROR_PMM_INSUFFICIENT_MEMORY        : constant := 32775;
  723.    ERROR_PMM_INVALID_FLAGS              : constant := 32776;
  724.    ERROR_PMM_INVALID_ADDRESS            : constant := 32777;
  725.    ERROR_PMM_LOCK_FAILED                : constant := 32778;
  726.    ERROR_PMM_UNLOCK_FAILED              : constant := 32779;
  727.    ERROR_PMM_MOVE_INCOMPLETE            : constant := 32780;
  728.    ERROR_UCOM_DRIVE_RENAMED             : constant := 32781;
  729.    ERROR_UCOM_FILENAME_TRUNCATED        : constant := 32782;
  730.    ERROR_UCOM_BUFFER_LENGTH             : constant := 32783;
  731.    ERROR_MON_CHAIN_HANDLE               : constant := 32784;
  732.    ERROR_MON_NOT_REGISTERED             : constant := 32785;
  733.    ERROR_SMG_ALREADY_TOP                : constant := 32786;
  734.    ERROR_PMM_ARENA_MODIFIED             : constant := 32787;
  735.    ERROR_SMG_PRINTER_OPEN               : constant := 32788;
  736.    ERROR_PMM_SET_FLAGS_FAILED           : constant := 32789;
  737.    ERROR_INVALID_DOS_DD                 : constant := 32790;
  738.    ERROR_BLOCKED                        : constant := 32791;
  739.    ERROR_NOBLOCK                        : constant := 32792;
  740.    ERROR_INSTANCE_SHARED                : constant := 32793;
  741.    ERROR_NO_OBJECT                      : constant := 32794;
  742.    ERROR_PARTIAL_ATTACH                 : constant := 32795;
  743.    ERROR_INCACHE                        : constant := 32796;
  744.    ERROR_SWAP_IO_PROBLEMS               : constant := 32797;
  745.    ERROR_CROSSES_OBJECT_BOUNDARY        : constant := 32798;
  746.    ERROR_LONGLOCK                       : constant := 32799;
  747.    ERROR_SHORTLOCK                      : constant := 32800;
  748.    ERROR_UVIRTLOCK                      : constant := 32801;
  749.    ERROR_ALIASLOCK                      : constant := 32802;
  750.    ERROR_ALIAS                          : constant := 32803;
  751.    ERROR_NO_MORE_HANDLES                : constant := 32804;
  752.    ERROR_SCAN_TERMINATED                : constant := 32805;
  753.    ERROR_TERMINATOR_NOT_FOUND           : constant := 32806;
  754.    ERROR_NOT_DIRECT_CHILD               : constant := 32807;
  755.    ERROR_DELAY_FREE                     : constant := 32808;
  756.    ERROR_GUARDPAGE                      : constant := 32809;
  757.    ERROR_SWAPERROR                      : constant := 32900;
  758.    ERROR_LDRERROR                       : constant := 32901;
  759.    ERROR_NOMEMORY                       : constant := 32902;
  760.    ERROR_NOACCESS                       : constant := 32903;
  761.    ERROR_NO_DLL_TERM                    : constant := 32904;
  762.    ERROR_CPSIO_CODE_PAGE_INVALID        : constant := 65026;
  763.    ERROR_CPSIO_NO_SPOOLER               : constant := 65027;
  764.    ERROR_CPSIO_FONT_ID_INVALID          : constant := 65028;
  765.    ERROR_CPSIO_INTERNAL_ERROR           : constant := 65033;
  766.    ERROR_CPSIO_INVALID_PTR_NAME         : constant := 65034;
  767.    ERROR_CPSIO_NOT_ACTIVE               : constant := 65037;
  768.    ERROR_CPSIO_PID_FULL                 : constant := 65039;
  769.    ERROR_CPSIO_PID_NOT_FOUND            : constant := 65040;
  770.    ERROR_CPSIO_READ_CTL_SEQ             : constant := 65043;
  771.    ERROR_CPSIO_READ_FNT_DEF             : constant := 65045;
  772.    ERROR_CPSIO_WRITE_ERROR              : constant := 65047;
  773.    ERROR_CPSIO_WRITE_FULL_ERROR         : constant := 65048;
  774.    ERROR_CPSIO_WRITE_HANDLE_BAD         : constant := 65049;
  775.    ERROR_CPSIO_SWIT_LOAD                : constant := 65074;
  776.    ERROR_CPSIO_INV_COMMAND              : constant := 65077;
  777.    ERROR_CPSIO_NO_FONT_SWIT             : constant := 65078;
  778.    ERROR_ENTRY_IS_CALLGATE              : constant := 65079;
  779.    ERRACT_RETRY                         : constant := 1;
  780.    ERRACT_DLYRET                        : constant := 2;
  781.    ERRACT_USER                          : constant := 3;
  782.    ERRACT_ABORT                         : constant := 4;
  783.    ERRACT_PANIC                         : constant := 5;
  784.    ERRACT_IGNORE                        : constant := 6;
  785.    ERRACT_INTRET                        : constant := 7;
  786.    ERRCLASS_OUTRES                      : constant := 1;
  787.    ERRCLASS_TEMPSIT                     : constant := 2;
  788.    ERRCLASS_AUTH                        : constant := 3;
  789.    ERRCLASS_INTRN                       : constant := 4;
  790.    ERRCLASS_HRDFAIL                     : constant := 5;
  791.    ERRCLASS_SYSFAIL                     : constant := 6;
  792.    ERRCLASS_APPERR                      : constant := 7;
  793.    ERRCLASS_NOTFND                      : constant := 8;
  794.    ERRCLASS_BADFMT                      : constant := 9;
  795.    ERRCLASS_LOCKED                      : constant := 10;
  796.    ERRCLASS_MEDIA                       : constant := 11;
  797.    ERRCLASS_ALREADY                     : constant := 12;
  798.    ERRCLASS_UNK                         : constant := 13;
  799.    ERRCLASS_CANT                        : constant := 14;
  800.    ERRCLASS_TIME                        : constant := 15;
  801.    ERRLOC_UNK                           : constant := 1;
  802.    ERRLOC_DISK                          : constant := 2;
  803.    ERRLOC_NET                           : constant := 3;
  804.    ERRLOC_SERDEV                        : constant := 4;
  805.    ERRLOC_MEM                           : constant := 5;
  806.    FERR_DISABLEHARDERR                  : constant := 16#0000#;
  807.    FERR_ENABLEHARDERR                   : constant := 16#0001#;
  808.    FERR_ENABLEEXCEPTION                 : constant := 16#0000#;
  809.    FERR_DISABLEEXCEPTION                : constant := 16#0002#;
  810.    FACESIZE                             : constant := 16#0020#;
  811.    FATTR_SEL_ITALIC                     : constant := 16#0001#;
  812.    FATTR_SEL_UNDERSCORE                 : constant := 16#0002#;
  813.    FATTR_SEL_OUTLINE                    : constant := 16#0008#;
  814.    FATTR_SEL_STRIKEOUT                  : constant := 16#0010#;
  815.    FATTR_SEL_BOLD                       : constant := 16#0020#;
  816.    FATTR_TYPE_KERNING                   : constant := 16#0004#;
  817.    FATTR_TYPE_MBCS                      : constant := 16#0008#;
  818.    FATTR_TYPE_DBCS                      : constant := 16#0010#;
  819.    FATTR_TYPE_ANTIALIASED               : constant := 16#0020#;
  820.    FATTR_FONTUSE_NOMIX                  : constant := 16#0002#;
  821.    FATTR_FONTUSE_OUTLINE                : constant := 16#0004#;
  822.    FATTR_FONTUSE_TRANSFORMABLE          : constant := 16#0008#;
  823.    FM_TYPE_FIXED                        : constant := 16#0001#;
  824.    FM_TYPE_LICENSED                     : constant := 16#0002#;
  825.    FM_TYPE_KERNING                      : constant := 16#0004#;
  826.    FM_TYPE_DBCS                         : constant := 16#0010#;
  827.    FM_TYPE_MBCS                         : constant := 16#0018#;
  828.    FM_TYPE_64K                          : constant := 16#8000#;
  829.    FM_TYPE_ATOMS                        : constant := 16#4000#;
  830.    FM_TYPE_FAMTRUNC                     : constant := 16#2000#;
  831.    FM_TYPE_FACETRUNC                    : constant := 16#1000#;
  832.    FM_DEFN_OUTLINE                      : constant := 16#0001#;
  833.    FM_DEFN_IFI                          : constant := 16#0002#;
  834.    FM_DEFN_WIN                          : constant := 16#0004#;
  835.    FM_DEFN_GENERIC                      : constant := 16#8000#;
  836.    FM_SEL_ITALIC                        : constant := 16#0001#;
  837.    FM_SEL_UNDERSCORE                    : constant := 16#0002#;
  838.    FM_SEL_NEGATIVE                      : constant := 16#0004#;
  839.    FM_SEL_OUTLINE                       : constant := 16#0008#;
  840.    FM_SEL_STRIKEOUT                     : constant := 16#0010#;
  841.    FM_SEL_BOLD                          : constant := 16#0020#;
  842.    FM_SEL_ISO9241_TESTED                : constant := 16#0040#;
  843.    FM_CAP_NOMIX                         : constant := 16#0001#;
  844.    FM_ISO_9518_640                      : constant := 16#0001#;
  845.    FM_ISO_9515_640                      : constant := 16#0002#;
  846.    FM_ISO_9515_1024                     : constant := 16#0004#;
  847.    FM_ISO_9517_640                      : constant := 16#0008#;
  848.    FM_ISO_9517_1024                     : constant := 16#0010#;
  849.    PT_16BIT                             : constant := 8#0000#;
  850.    PT_32BIT                             : constant := 1;
  851.    RT_POINTER                           : constant := 1;
  852.    RT_BITMAP                            : constant := 2;
  853.    RT_MENU                              : constant := 3;
  854.    RT_DIALOG                            : constant := 4;
  855.    RT_STRING                            : constant := 5;
  856.    RT_FONTDIR                           : constant := 6;
  857.    RT_FONT                              : constant := 7;
  858.    RT_ACCELTABLE                        : constant := 8;
  859.    RT_RCDATA                            : constant := 9;
  860.    RT_MESSAGE                           : constant := 10;
  861.    RT_DLGINCLUDE                        : constant := 11;
  862.    RT_VKEYTBL                           : constant := 12;
  863.    RT_KEYTBL                            : constant := 13;
  864.    RT_CHARTBL                           : constant := 14;
  865.    RT_DISPLAYINFO                       : constant := 15;
  866.    RT_FKASHORT                          : constant := 16#0010#;
  867.    RT_FKALONG                           : constant := 17;
  868.    RT_HELPTABLE                         : constant := 18;
  869.    RT_HELPSUBTABLE                      : constant := 19;
  870.    RT_FDDIR                             : constant := 20;
  871.    RT_FD                                : constant := 21;
  872.    RT_MAX                               : constant := 22;
  873.    RF_ORDINALID                         : constant := 16#8000_0000#;
  874.    EXIT_THREAD                          : constant := 8#0000#;
  875.    EXIT_PROCESS                         : constant := 1;
  876.    WM_DBCSFIRST                         : constant := 16#00B0#;
  877.    WM_DBCSLAST                          : constant := 16#00CF#;
  878.     WC_FRAME                            : constant := -65535;
  879.     WC_COMBOBOX                         : constant  := -65534;
  880.     WC_BUTTON                           : constant  := -65533;
  881.     WC_MENU                             : constant  := -65532;
  882.     WC_STATIC                           : constant  := -65531;
  883.     WC_ENTRYFIELD                       : constant  := -65530;
  884.     WC_LISTBOX                          : constant  := -65529;
  885.     WC_SCROLLBAR                        : constant  := -65528;
  886.     WC_TITLEBAR                         : constant  := -65527;
  887.     WC_MLE                              : constant  := -65526;
  888.     WC_APPSTAT                          : constant  := -65520;
  889.     WC_KBDSTAT                          : constant  := -65519;
  890.     WC_PECIC                            : constant  := -65518;
  891.     WC_DBE_KKPOPUP                      : constant  := -65517;
  892.     WC_SPINBUTTON                       : constant  := -65504;
  893.     WC_CONTAINER                        : constant  := -65499;
  894.     WC_SLIDER                           : constant  := -65498;
  895.     WC_VALUESET                         : constant  := -65497;
  896.     WC_NOTEBOOK                         : constant  := -65496;
  897.     WC_PENFIRST                         : constant  := -65495;
  898.     WC_PENLAST                          : constant  := -65492;
  899.     WC_MMPMFIRST                        : constant  := -65472;
  900.     WC_MMPMLAST                         : constant  := -65457;
  901.    WS_VISIBLE                           : constant := 16#8000_0000#;
  902.    WS_DISABLED                          : constant := 16#4000_0000#;
  903.    WS_CLIPCHILDREN                      : constant := 16#2000_0000#;
  904.    WS_CLIPSIBLINGS                      : constant := 16#1000_0000#;
  905.    WS_PARENTCLIP                        : constant := 16#0800_0000#;
  906.    WS_SAVEBITS                          : constant := 16#0400_0000#;
  907.    WS_SYNCPAINT                         : constant := 16#0200_0000#;
  908.    WS_MINIMIZED                         : constant := 16#0100_0000#;
  909.    WS_MAXIMIZED                         : constant := 16#0080_0000#;
  910.    WS_ANIMATE                           : constant := 16#0040_0000#;
  911.    WS_GROUP                             : constant := 16#0001_0000#;
  912.    WS_TABSTOP                           : constant := 16#0002_0000#;
  913.    WS_MULTISELECT                       : constant := 16#0004_0000#;
  914.    CS_MOVENOTIFY                        : constant := 16#0001#;
  915.    CS_SIZEREDRAW                        : constant := 16#0004#;
  916.    CS_HITTEST                           : constant := 16#0008#;
  917.    CS_PUBLIC                            : constant := 16#0010#;
  918.    CS_FRAME                             : constant := 16#0020#;
  919.    CS_CLIPCHILDREN                      : constant := 16#2000_0000#;
  920.    CS_CLIPSIBLINGS                      : constant := 16#1000_0000#;
  921.    CS_PARENTCLIP                        : constant := 16#0800_0000#;
  922.    CS_SAVEBITS                          : constant := 16#0400_0000#;
  923.    CS_SYNCPAINT                         : constant := 16#0200_0000#;
  924.    MID_NONE                             : constant := -1;
  925.    MID_ERROR                            : constant := -1;
  926.    DB_PATCOPY                           : constant := 16#0000#;
  927.    DB_PATINVERT                         : constant := 16#0001#;
  928.    DB_DESTINVERT                        : constant := 16#0002#;
  929.    DB_AREAMIXMODE                       : constant := 16#0003#;
  930.    DB_ROP                               : constant := 16#0007#;
  931.    DB_INTERIOR                          : constant := 16#0008#;
  932.    DB_AREAATTRS                         : constant := 16#0010#;
  933.    DB_STANDARD                          : constant := 16#0100#;
  934.    DB_DLGBORDER                         : constant := 16#0200#;
  935.    DBM_NORMAL                           : constant := 16#0000#;
  936.    DBM_INVERT                           : constant := 16#0001#;
  937.    DBM_HALFTONE                         : constant := 16#0002#;
  938.    DBM_STRETCH                          : constant := 16#0004#;
  939.    DBM_IMAGEATTRS                       : constant := 16#0008#;
  940.    CBD_BITS                             : constant := 8#0000#;
  941.    CBD_COMPRESSION                      : constant := 1;
  942.    CBD_DECOMPRESSION                    : constant := 2;
  943.    CBD_COLOR_CONVERSION                 : constant := 16#0001#;
  944.    BCA_UNCOMP                           : constant := 8#0000#;
  945.    BCA_RLE8                             : constant := 1;
  946.    BCA_RLE4                             : constant := 2;
  947.    BCA_HUFFMAN1D                        : constant := 3;
  948.    BCA_RLE24                            : constant := 4;
  949.    BRU_METRIC                           : constant := 8#0000#;
  950.    BRA_BOTTOMUP                         : constant := 8#0000#;
  951.    BRH_NOTHALFTONED                     : constant := 8#0000#;
  952.    BRH_ERRORDIFFUSION                   : constant := 1;
  953.    BRH_PANDA                            : constant := 2;
  954.    BRH_SUPERCIRCLE                      : constant := 3;
  955.    BCE_PALETTE                          : constant := -1;
  956.    BCE_RGB                              : constant := 8#0000#;
  957.    BFT_ICON                             : constant := 16#4349#;
  958.    BFT_BMAP                             : constant := 16#4D42#;
  959.    BFT_POINTER                          : constant := 16#5450#;
  960.    BFT_COLORICON                        : constant := 16#4943#;
  961.    BFT_COLORPOINTER                     : constant := 16#5043#;
  962.    BFT_BITMAPARRAY                      : constant := 16#4142#;
  963.    DT_LEFT                              : constant := 16#0000#;
  964.    DT_QUERYEXTENT                       : constant := 16#0002#;
  965.    DT_UNDERSCORE                        : constant := 16#0010#;
  966.    DT_STRIKEOUT                         : constant := 16#0020#;
  967.    DT_TEXTATTRS                         : constant := 16#0040#;
  968.    DT_EXTERNALLEADING                   : constant := 16#0080#;
  969.    DT_CENTER                            : constant := 16#0100#;
  970.    DT_RIGHT                             : constant := 16#0200#;
  971.    DT_TOP                               : constant := 16#0000#;
  972.    DT_VCENTER                           : constant := 16#0400#;
  973.    DT_BOTTOM                            : constant := 16#0800#;
  974.    DT_HALFTONE                          : constant := 16#1000#;
  975.    DT_MNEMONIC                          : constant := 16#2000#;
  976.    DT_WORDBREAK                         : constant := 16#4000#;
  977.    DT_ERASERECT                         : constant := 16#8000#;
  978.    QW_NEXT                              : constant := 8#0000#;
  979.    QW_PREV                              : constant := 1;
  980.    QW_TOP                               : constant := 2;
  981.    QW_BOTTOM                            : constant := 3;
  982.    QW_OWNER                             : constant := 4;
  983.    QW_PARENT                            : constant := 5;
  984.    QW_NEXTTOP                           : constant := 6;
  985.    QW_PREVTOP                           : constant := 7;
  986.    QW_FRAMEOWNER                        : constant := 8;
  987.    SWP_SIZE                             : constant := 16#0001#;
  988.    SWP_MOVE                             : constant := 16#0002#;
  989.    SWP_ZORDER                           : constant := 16#0004#;
  990.    SWP_SHOW                             : constant := 16#0008#;
  991.    SWP_HIDE                             : constant := 16#0010#;
  992.    SWP_NOREDRAW                         : constant := 16#0020#;
  993.    SWP_NOADJUST                         : constant := 16#0040#;
  994.    SWP_ACTIVATE                         : constant := 16#0080#;
  995.    SWP_DEACTIVATE                       : constant := 16#0100#;
  996.    SWP_EXTSTATECHANGE                   : constant := 16#0200#;
  997.    SWP_MINIMIZE                         : constant := 16#0400#;
  998.    SWP_MAXIMIZE                         : constant := 16#0800#;
  999.    SWP_RESTORE                          : constant := 16#1000#;
  1000.    SWP_FOCUSACTIVATE                    : constant := 16#2000#;
  1001.    SWP_FOCUSDEACTIVATE                  : constant := 16#4000#;
  1002.    SWP_NOAUTOCLOSE                      : constant := 16#8000#;
  1003.    AWP_MINIMIZED                        : constant := 16#0001_0000#;
  1004.    AWP_MAXIMIZED                        : constant := 16#0002_0000#;
  1005.    AWP_RESTORED                         : constant := 16#0004_0000#;
  1006.    AWP_ACTIVATE                         : constant := 16#0008_0000#;
  1007.    AWP_DEACTIVATE                       : constant := 16#0010_0000#;
  1008.     HWND_DESKTOP                        : constant HWND := 1;
  1009.     HWND_OBJECT                         : constant HWND := 2;
  1010.     HWND_TOP                            : constant HWND := 3;
  1011.     HWND_BOTTOM                         : constant HWND := 4;
  1012.     HWND_THREADCAPTURE                  : constant HWND := 5;
  1013.    EAF_DEFAULTOWNER                     : constant := 16#0001#;
  1014.    EAF_UNCHANGEABLE                     : constant := 16#0002#;
  1015.    EAF_REUSEICON                        : constant := 16#0004#;
  1016.    ICON_FILE                            : constant := 1;
  1017.    ICON_RESOURCE                        : constant := 2;
  1018.    ICON_DATA                            : constant := 3;
  1019.    ICON_CLEAR                           : constant := 4;
  1020.    SZDDEFMT_RTF                         : constant string := "Rich Text Format";
  1021.    SZDDEFMT_PTRPICT                     : constant string := "Printer_Picture";
  1022.    STR_DLLNAME                          : constant string := "keyremap";
  1023.    PMERR_INVALID_HWND                   : constant := 16#1001#;
  1024.    PMERR_INVALID_HMQ                    : constant := 16#1002#;
  1025.    PMERR_PARAMETER_OUT_OF_RANGE         : constant := 16#1003#;
  1026.    PMERR_WINDOW_LOCK_UNDERFLOW          : constant := 16#1004#;
  1027.    PMERR_WINDOW_LOCK_OVERFLOW           : constant := 16#1005#;
  1028.    PMERR_BAD_WINDOW_LOCK_COUNT          : constant := 16#1006#;
  1029.    PMERR_WINDOW_NOT_LOCKED              : constant := 16#1007#;
  1030.    PMERR_INVALID_SELECTOR               : constant := 16#1008#;
  1031.    PMERR_CALL_FROM_WRONG_THREAD         : constant := 16#1009#;
  1032.    PMERR_RESOURCE_NOT_FOUND             : constant := 16#100A#;
  1033.    PMERR_INVALID_STRING_PARM            : constant := 16#100B#;
  1034.    PMERR_INVALID_HHEAP                  : constant := 16#100C#;
  1035.    PMERR_INVALID_HEAP_POINTER           : constant := 16#100D#;
  1036.    PMERR_INVALID_HEAP_SIZE_PARM         : constant := 16#100E#;
  1037.    PMERR_INVALID_HEAP_SIZE              : constant := 16#100F#;
  1038.    PMERR_INVALID_HEAP_SIZE_WORD         : constant := 16#1010#;
  1039.    PMERR_HEAP_OUT_OF_MEMORY             : constant := 16#1011#;
  1040.    PMERR_HEAP_MAX_SIZE_REACHED          : constant := 16#1012#;
  1041.    PMERR_INVALID_HATOMTBL               : constant := 16#1013#;
  1042.    PMERR_INVALID_ATOM                   : constant := 16#1014#;
  1043.    PMERR_INVALID_ATOM_NAME              : constant := 16#1015#;
  1044.    PMERR_INVALID_INTEGER_ATOM           : constant := 16#1016#;
  1045.    PMERR_ATOM_NAME_NOT_FOUND            : constant := 16#1017#;
  1046.    PMERR_QUEUE_TOO_LARGE                : constant := 16#1018#;
  1047.    PMERR_INVALID_FLAG                   : constant := 16#1019#;
  1048.    PMERR_INVALID_HACCEL                 : constant := 16#101A#;
  1049.    PMERR_INVALID_HPTR                   : constant := 16#101B#;
  1050.    PMERR_INVALID_HENUM                  : constant := 16#101C#;
  1051.    PMERR_INVALID_SRC_CODEPAGE           : constant := 16#101D#;
  1052.    PMERR_INVALID_DST_CODEPAGE           : constant := 16#101E#;
  1053.    PMERR_UNKNOWN_COMPONENT_ID           : constant := 16#101F#;
  1054.    PMERR_UNKNOWN_ERROR_CODE             : constant := 16#1020#;
  1055.    PMERR_SEVERITY_LEVELS                : constant := 16#1021#;
  1056.    PMERR_INVALID_RESOURCE_FORMAT        : constant := 16#1034#;
  1057.    PMERR_NO_MSG_QUEUE                   : constant := 16#1036#;
  1058.    PMERR_WIN_DEBUGMSG                   : constant := 16#1037#;
  1059.    PMERR_QUEUE_FULL                     : constant := 16#1038#;
  1060.    PMERR_LIBRARY_LOAD_FAILED            : constant := 16#1039#;
  1061.    PMERR_PROCEDURE_LOAD_FAILED          : constant := 16#103A#;
  1062.    PMERR_LIBRARY_DELETE_FAILED          : constant := 16#103B#;
  1063.    PMERR_PROCEDURE_DELETE_FAILED        : constant := 16#103C#;
  1064.    PMERR_ARRAY_TOO_LARGE                : constant := 16#103D#;
  1065.    PMERR_ARRAY_TOO_SMALL                : constant := 16#103E#;
  1066.    PMERR_DATATYPE_ENTRY_BAD_INDEX       : constant := 16#103F#;
  1067.    PMERR_DATATYPE_ENTRY_CTL_BAD         : constant := 16#1040#;
  1068.    PMERR_DATATYPE_ENTRY_CTL_MISS        : constant := 16#1041#;
  1069.    PMERR_DATATYPE_ENTRY_INVALID         : constant := 16#1042#;
  1070.    PMERR_DATATYPE_ENTRY_NOT_NUM         : constant := 16#1043#;
  1071.    PMERR_DATATYPE_ENTRY_NOT_OFF         : constant := 16#1044#;
  1072.    PMERR_DATATYPE_INVALID               : constant := 16#1045#;
  1073.    PMERR_DATATYPE_NOT_UNIQUE            : constant := 16#1046#;
  1074.    PMERR_DATATYPE_TOO_LONG              : constant := 16#1047#;
  1075.    PMERR_DATATYPE_TOO_SMALL             : constant := 16#1048#;
  1076.    PMERR_DIRECTION_INVALID              : constant := 16#1049#;
  1077.    PMERR_INVALID_HAB                    : constant := 16#104A#;
  1078.    PMERR_INVALID_HSTRUCT                : constant := 16#104D#;
  1079.    PMERR_LENGTH_TOO_SMALL               : constant := 16#104E#;
  1080.    PMERR_MSGID_TOO_SMALL                : constant := 16#104F#;
  1081.    PMERR_NO_HANDLE_ALLOC                : constant := 16#1050#;
  1082.    PMERR_NOT_IN_A_PM_SESSION            : constant := 16#1051#;
  1083.    PMERR_MSG_QUEUE_ALREADY_EXISTS       : constant := 16#1052#;
  1084.    PMERR_OLD_RESOURCE                   : constant := 16#1055#;
  1085.    PMERR_INVALID_PIB                    : constant := 16#1101#;
  1086.    PMERR_INSUFF_SPACE_TO_ADD            : constant := 16#1102#;
  1087.    PMERR_INVALID_GROUP_HANDLE           : constant := 16#1103#;
  1088.    PMERR_DUPLICATE_TITLE                : constant := 16#1104#;
  1089.    PMERR_INVALID_TITLE                  : constant := 16#1105#;
  1090.    PMERR_HANDLE_NOT_IN_GROUP            : constant := 16#1107#;
  1091.    PMERR_INVALID_TARGET_HANDLE          : constant := 16#1106#;
  1092.    PMERR_INVALID_PATH_STATEMENT         : constant := 16#1108#;
  1093.    PMERR_NO_PROGRAM_FOUND               : constant := 16#1109#;
  1094.    PMERR_INVALID_BUFFER_SIZE            : constant := 16#110A#;
  1095.    PMERR_BUFFER_TOO_SMALL               : constant := 16#110B#;
  1096.    PMERR_PL_INITIALISATION_FAIL         : constant := 16#110C#;
  1097.    PMERR_CANT_DESTROY_SYS_GROUP         : constant := 16#110D#;
  1098.    PMERR_INVALID_TYPE_CHANGE            : constant := 16#110E#;
  1099.    PMERR_INVALID_PROGRAM_HANDLE         : constant := 16#110F#;
  1100.    PMERR_NOT_CURRENT_PL_VERSION         : constant := 16#1110#;
  1101.    PMERR_INVALID_CIRCULAR_REF           : constant := 16#1111#;
  1102.    PMERR_MEMORY_ALLOCATION_ERR          : constant := 16#1112#;
  1103.    PMERR_MEMORY_DEALLOCATION_ERR        : constant := 16#1113#;
  1104.    PMERR_TASK_HEADER_TOO_BIG            : constant := 16#1114#;
  1105.    PMERR_INVALID_INI_FILE_HANDLE        : constant := 16#1115#;
  1106.    PMERR_MEMORY_SHARE                   : constant := 16#1116#;
  1107.    PMERR_OPEN_QUEUE                     : constant := 16#1117#;
  1108.    PMERR_CREATE_QUEUE                   : constant := 16#1118#;
  1109.    PMERR_WRITE_QUEUE                    : constant := 16#1119#;
  1110.    PMERR_READ_QUEUE                     : constant := 16#111A#;
  1111.    PMERR_CALL_NOT_EXECUTED              : constant := 16#111B#;
  1112.    PMERR_UNKNOWN_APIPKT                 : constant := 16#111C#;
  1113.    PMERR_INITHREAD_EXISTS               : constant := 16#111D#;
  1114.    PMERR_CREATE_THREAD                  : constant := 16#111E#;
  1115.    PMERR_NO_HK_PROFILE_INSTALLED        : constant := 16#111F#;
  1116.    PMERR_INVALID_DIRECTORY              : constant := 16#1120#;
  1117.    PMERR_WILDCARD_IN_FILENAME           : constant := 16#1121#;
  1118.    PMERR_FILENAME_BUFFER_FULL           : constant := 16#1122#;
  1119.    PMERR_FILENAME_TOO_LONG              : constant := 16#1123#;
  1120.    PMERR_INI_FILE_IS_SYS_OR_USER        : constant := 16#1124#;
  1121.    PMERR_BROADCAST_PLMSG                : constant := 16#1125#;
  1122.    PMERR_190_INIT_DONE                  : constant := 16#1126#;
  1123.    PMERR_HMOD_FOR_PMSHAPI               : constant := 16#1127#;
  1124.    PMERR_SET_HK_PROFILE                 : constant := 16#1128#;
  1125.    PMERR_API_NOT_ALLOWED                : constant := 16#1129#;
  1126.    PMERR_INI_STILL_OPEN                 : constant := 16#112A#;
  1127.    PMERR_PROGDETAILS_NOT_IN_INI         : constant := 16#112B#;
  1128.    PMERR_PIBSTRUCT_NOT_IN_INI           : constant := 16#112C#;
  1129.    PMERR_INVALID_DISKPROGDETAILS        : constant := 16#112D#;
  1130.    PMERR_PROGDETAILS_READ_FAILURE       : constant := 16#112E#;
  1131.    PMERR_PROGDETAILS_WRITE_FAILURE      : constant := 16#112F#;
  1132.    PMERR_PROGDETAILS_QSIZE_FAILURE      : constant := 16#1130#;
  1133.    PMERR_INVALID_PROGDETAILS            : constant := 16#1131#;
  1134.    PMERR_SHEPROFILEHOOK_NOT_FOUND       : constant := 16#1132#;
  1135.    PMERR_190PLCONVERTED                 : constant := 16#1133#;
  1136.    PMERR_FAILED_TO_CONVERT_INI_PL       : constant := 16#1134#;
  1137.    PMERR_PMSHAPI_NOT_INITIALISED        : constant := 16#1135#;
  1138.    PMERR_INVALID_SHELL_API_HOOK_ID      : constant := 16#1136#;
  1139.    PMERR_DOS_ERROR                      : constant := 16#1200#;
  1140.    PMERR_NO_SPACE                       : constant := 16#1201#;
  1141.    PMERR_INVALID_SWITCH_HANDLE          : constant := 16#1202#;
  1142.    PMERR_NO_HANDLE                      : constant := 16#1203#;
  1143.    PMERR_INVALID_PROCESS_ID             : constant := 16#1204#;
  1144.    PMERR_NOT_SHELL                      : constant := 16#1205#;
  1145.    PMERR_INVALID_WINDOW                 : constant := 16#1206#;
  1146.    PMERR_INVALID_POST_MSG               : constant := 16#1207#;
  1147.    PMERR_INVALID_PARAMETERS             : constant := 16#1208#;
  1148.    PMERR_INVALID_PROGRAM_TYPE           : constant := 16#1209#;
  1149.    PMERR_NOT_EXTENDED_FOCUS             : constant := 16#120A#;
  1150.    PMERR_INVALID_SESSION_ID             : constant := 16#120B#;
  1151.    PMERR_SMG_INVALID_ICON_FILE          : constant := 16#120C#;
  1152.    PMERR_SMG_ICON_NOT_CREATED           : constant := 16#120D#;
  1153.    PMERR_SHL_DEBUG                      : constant := 16#120E#;
  1154.    PMERR_OPENING_INI_FILE               : constant := 16#1301#;
  1155.    PMERR_INI_FILE_CORRUPT               : constant := 16#1302#;
  1156.    PMERR_INVALID_PARM                   : constant := 16#1303#;
  1157.    PMERR_NOT_IN_IDX                     : constant := 16#1304#;
  1158.    PMERR_NO_ENTRIES_IN_GROUP            : constant := 16#1305#;
  1159.    PMERR_INI_WRITE_FAIL                 : constant := 16#1306#;
  1160.    PMERR_IDX_FULL                       : constant := 16#1307#;
  1161.    PMERR_INI_PROTECTED                  : constant := 16#1308#;
  1162.    PMERR_MEMORY_ALLOC                   : constant := 16#1309#;
  1163.    PMERR_INI_INIT_ALREADY_DONE          : constant := 16#130A#;
  1164.    PMERR_INVALID_INTEGER                : constant := 16#130B#;
  1165.    PMERR_INVALID_ASCIIZ                 : constant := 16#130C#;
  1166.    PMERR_CAN_NOT_CALL_SPOOLER           : constant := 16#130D#;
  1167.    PMERR_VALIDATION_REJECTED            : constant := 16#130D#;
  1168.    PMERR_WARNING_WINDOW_NOT_KILLED      : constant := 16#1401#;
  1169.    PMERR_ERROR_INVALID_WINDOW           : constant := 16#1402#;
  1170.    PMERR_ALREADY_INITIALIZED            : constant := 16#1403#;
  1171.    PMERR_MSG_PROG_NO_MOU                : constant := 16#1405#;
  1172.    PMERR_MSG_PROG_NON_RECOV             : constant := 16#1406#;
  1173.    PMERR_WINCONV_INVALID_PATH           : constant := 16#1407#;
  1174.    PMERR_PI_NOT_INITIALISED             : constant := 16#1408#;
  1175.    PMERR_PL_NOT_INITIALISED             : constant := 16#1409#;
  1176.    PMERR_NO_TASK_MANAGER                : constant := 16#140A#;
  1177.    PMERR_SAVE_NOT_IN_PROGRESS           : constant := 16#140B#;
  1178.    PMERR_NO_STACK_SPACE                 : constant := 16#140C#;
  1179.    PMERR_INVALID_COLR_FIELD             : constant := 16#140D#;
  1180.    PMERR_INVALID_COLR_VALUE             : constant := 16#140E#;
  1181.    PMERR_COLR_WRITE                     : constant := 16#140F#;
  1182.    PMERR_TARGET_FILE_EXISTS             : constant := 16#1501#;
  1183.    PMERR_SOURCE_SAME_AS_TARGET          : constant := 16#1502#;
  1184.    PMERR_SOURCE_FILE_NOT_FOUND          : constant := 16#1503#;
  1185.    PMERR_INVALID_NEW_PATH               : constant := 16#1504#;
  1186.    PMERR_TARGET_FILE_NOT_FOUND          : constant := 16#1505#;
  1187.    PMERR_INVALID_DRIVE_NUMBER           : constant := 16#1506#;
  1188.    PMERR_NAME_TOO_LONG                  : constant := 16#1507#;
  1189.    PMERR_NOT_ENOUGH_ROOM_ON_DISK        : constant := 16#1508#;
  1190.    PMERR_NOT_ENOUGH_MEM                 : constant := 16#1509#;
  1191.    PMERR_LOG_DRV_DOES_NOT_EXIST         : constant := 16#150B#;
  1192.    PMERR_INVALID_DRIVE                  : constant := 16#150C#;
  1193.    PMERR_ACCESS_DENIED                  : constant := 16#150D#;
  1194.    PMERR_NO_FIRST_SLASH                 : constant := 16#150E#;
  1195.    PMERR_READ_ONLY_FILE                 : constant := 16#150F#;
  1196.    PMERR_GROUP_PROTECTED                : constant := 16#151F#;
  1197.    PMERR_INVALID_PROGRAM_CATEGORY       : constant := 16#152F#;
  1198.    PMERR_INVALID_APPL                   : constant := 16#1530#;
  1199.    PMERR_CANNOT_START                   : constant := 16#1531#;
  1200.    PMERR_STARTED_IN_BACKGROUND          : constant := 16#1532#;
  1201.    PMERR_INVALID_HAPP                   : constant := 16#1533#;
  1202.    PMERR_CANNOT_STOP                    : constant := 16#1534#;
  1203.    PMERR_INVALID_FREE_MESSAGE_ID        : constant := 16#1630#;
  1204.    PMERR_FUNCTION_NOT_SUPPORTED         : constant := 16#1641#;
  1205.    PMERR_INVALID_ARRAY_COUNT            : constant := 16#1642#;
  1206.    PMERR_INVALID_LENGTH                 : constant := 16#1643#;
  1207.    PMERR_INVALID_BUNDLE_TYPE            : constant := 16#1644#;
  1208.    PMERR_INVALID_PARAMETER              : constant := 16#1645#;
  1209.    PMERR_INVALID_NUMBER_OF_PARMS        : constant := 16#1646#;
  1210.    PMERR_GREATER_THAN_64K               : constant := 16#1647#;
  1211.    PMERR_INVALID_PARAMETER_TYPE         : constant := 16#1648#;
  1212.    PMERR_NEGATIVE_STRCOND_DIM           : constant := 16#1649#;
  1213.    PMERR_INVALID_NUMBER_OF_TYPES        : constant := 16#164A#;
  1214.    PMERR_INCORRECT_HSTRUCT              : constant := 16#164B#;
  1215.    PMERR_INVALID_ARRAY_SIZE             : constant := 16#164C#;
  1216.    PMERR_INVALID_CONTROL_DATATYPE       : constant := 16#164D#;
  1217.    PMERR_INCOMPLETE_CONTROL_SEQU        : constant := 16#164E#;
  1218.    PMERR_INVALID_DATATYPE               : constant := 16#164F#;
  1219.    PMERR_INCORRECT_DATATYPE             : constant := 16#1650#;
  1220.    PMERR_NOT_SELF_DESCRIBING_DTYP       : constant := 16#1651#;
  1221.    PMERR_INVALID_CTRL_SEQ_INDEX         : constant := 16#1652#;
  1222.    PMERR_INVALID_TYPE_FOR_LENGTH        : constant := 16#1653#;
  1223.    PMERR_INVALID_TYPE_FOR_OFFSET        : constant := 16#1654#;
  1224.    PMERR_INVALID_TYPE_FOR_MPARAM        : constant := 16#1655#;
  1225.    PMERR_INVALID_MESSAGE_ID             : constant := 16#1656#;
  1226.    PMERR_C_LENGTH_TOO_SMALL             : constant := 16#1657#;
  1227.    PMERR_APPL_STRUCTURE_TOO_SMALL       : constant := 16#1658#;
  1228.    PMERR_INVALID_ERRORINFO_HANDLE       : constant := 16#1659#;
  1229.    PMERR_INVALID_CHARACTER_INDEX        : constant := 16#165A#;
  1230.    PMERR_OK                             : constant := 16#0000#;
  1231.    PMERR_ALREADY_IN_AREA                : constant := 16#2001#;
  1232.    PMERR_ALREADY_IN_ELEMENT             : constant := 16#2002#;
  1233.    PMERR_ALREADY_IN_PATH                : constant := 16#2003#;
  1234.    PMERR_ALREADY_IN_SEG                 : constant := 16#2004#;
  1235.    PMERR_AREA_INCOMPLETE                : constant := 16#2005#;
  1236.    PMERR_BASE_ERROR                     : constant := 16#2006#;
  1237.    PMERR_BITBLT_LENGTH_EXCEEDED         : constant := 16#2007#;
  1238.    PMERR_BITMAP_IN_USE                  : constant := 16#2008#;
  1239.    PMERR_BITMAP_IS_SELECTED             : constant := 16#2009#;
  1240.    PMERR_BITMAP_NOT_FOUND               : constant := 16#200A#;
  1241.    PMERR_BITMAP_NOT_SELECTED            : constant := 16#200B#;
  1242.    PMERR_BOUNDS_OVERFLOW                : constant := 16#200C#;
  1243.    PMERR_CALLED_SEG_IS_CHAINED          : constant := 16#200D#;
  1244.    PMERR_CALLED_SEG_IS_CURRENT          : constant := 16#200E#;
  1245.    PMERR_CALLED_SEG_NOT_FOUND           : constant := 16#200F#;
  1246.    PMERR_CANNOT_DELETE_ALL_DATA         : constant := 16#2010#;
  1247.    PMERR_CANNOT_REPLACE_ELEMENT_0       : constant := 16#2011#;
  1248.    PMERR_COL_TABLE_NOT_REALIZABLE       : constant := 16#2012#;
  1249.    PMERR_COL_TABLE_NOT_REALIZED         : constant := 16#2013#;
  1250.    PMERR_COORDINATE_OVERFLOW            : constant := 16#2014#;
  1251.    PMERR_CORR_FORMAT_MISMATCH           : constant := 16#2015#;
  1252.    PMERR_DATA_TOO_LONG                  : constant := 16#2016#;
  1253.    PMERR_DC_IS_ASSOCIATED               : constant := 16#2017#;
  1254.    PMERR_DESC_STRING_TRUNCATED          : constant := 16#2018#;
  1255.    PMERR_DEVICE_DRIVER_ERROR_1          : constant := 16#2019#;
  1256.    PMERR_DEVICE_DRIVER_ERROR_2          : constant := 16#201A#;
  1257.    PMERR_DEVICE_DRIVER_ERROR_3          : constant := 16#201B#;
  1258.    PMERR_DEVICE_DRIVER_ERROR_4          : constant := 16#201C#;
  1259.    PMERR_DEVICE_DRIVER_ERROR_5          : constant := 16#201D#;
  1260.    PMERR_DEVICE_DRIVER_ERROR_6          : constant := 16#201E#;
  1261.    PMERR_DEVICE_DRIVER_ERROR_7          : constant := 16#201F#;
  1262.    PMERR_DEVICE_DRIVER_ERROR_8          : constant := 16#2020#;
  1263.    PMERR_DEVICE_DRIVER_ERROR_9          : constant := 16#2021#;
  1264.    PMERR_DEVICE_DRIVER_ERROR_10         : constant := 16#2022#;
  1265.    PMERR_DEV_FUNC_NOT_INSTALLED         : constant := 16#2023#;
  1266.    PMERR_DOSOPEN_FAILURE                : constant := 16#2024#;
  1267.    PMERR_DOSREAD_FAILURE                : constant := 16#2025#;
  1268.    PMERR_DRIVER_NOT_FOUND               : constant := 16#2026#;
  1269.    PMERR_DUP_SEG                        : constant := 16#2027#;
  1270.    PMERR_DYNAMIC_SEG_SEQ_ERROR          : constant := 16#2028#;
  1271.    PMERR_DYNAMIC_SEG_ZERO_INV           : constant := 16#2029#;
  1272.    PMERR_ELEMENT_INCOMPLETE             : constant := 16#202A#;
  1273.    PMERR_ESC_CODE_NOT_SUPPORTED         : constant := 16#202B#;
  1274.    PMERR_EXCEEDS_MAX_SEG_LENGTH         : constant := 16#202C#;
  1275.    PMERR_FONT_AND_MODE_MISMATCH         : constant := 16#202D#;
  1276.    PMERR_FONT_FILE_NOT_LOADED           : constant := 16#202E#;
  1277.    PMERR_FONT_NOT_LOADED                : constant := 16#202F#;
  1278.    PMERR_FONT_TOO_BIG                   : constant := 16#2030#;
  1279.    PMERR_HARDWARE_INIT_FAILURE          : constant := 16#2031#;
  1280.    PMERR_HBITMAP_BUSY                   : constant := 16#2032#;
  1281.    PMERR_HDC_BUSY                       : constant := 16#2033#;
  1282.    PMERR_HRGN_BUSY                      : constant := 16#2034#;
  1283.    PMERR_HUGE_FONTS_NOT_SUPPORTED       : constant := 16#2035#;
  1284.    PMERR_ID_HAS_NO_BITMAP               : constant := 16#2036#;
  1285.    PMERR_IMAGE_INCOMPLETE               : constant := 16#2037#;
  1286.    PMERR_INCOMPAT_COLOR_FORMAT          : constant := 16#2038#;
  1287.    PMERR_INCOMPAT_COLOR_OPTIONS         : constant := 16#2039#;
  1288.    PMERR_INCOMPATIBLE_BITMAP            : constant := 16#203A#;
  1289.    PMERR_INCOMPATIBLE_METAFILE          : constant := 16#203B#;
  1290.    PMERR_INCORRECT_DC_TYPE              : constant := 16#203C#;
  1291.    PMERR_INSUFFICIENT_DISK_SPACE        : constant := 16#203D#;
  1292.    PMERR_INSUFFICIENT_MEMORY            : constant := 16#203E#;
  1293.    PMERR_INV_ANGLE_PARM                 : constant := 16#203F#;
  1294.    PMERR_INV_ARC_CONTROL                : constant := 16#2040#;
  1295.    PMERR_INV_AREA_CONTROL               : constant := 16#2041#;
  1296.    PMERR_INV_ARC_POINTS                 : constant := 16#2042#;
  1297.    PMERR_INV_ATTR_MODE                  : constant := 16#2043#;
  1298.    PMERR_INV_BACKGROUND_COL_ATTR        : constant := 16#2044#;
  1299.    PMERR_INV_BACKGROUND_MIX_ATTR        : constant := 16#2045#;
  1300.    PMERR_INV_BITBLT_MIX                 : constant := 16#2046#;
  1301.    PMERR_INV_BITBLT_STYLE               : constant := 16#2047#;
  1302.    PMERR_INV_BITMAP_DIMENSION           : constant := 16#2048#;
  1303.    PMERR_INV_BOX_CONTROL                : constant := 16#2049#;
  1304.    PMERR_INV_BOX_ROUNDING_PARM          : constant := 16#204A#;
  1305.    PMERR_INV_CHAR_ANGLE_ATTR            : constant := 16#204B#;
  1306.    PMERR_INV_CHAR_DIRECTION_ATTR        : constant := 16#204C#;
  1307.    PMERR_INV_CHAR_MODE_ATTR             : constant := 16#204D#;
  1308.    PMERR_INV_CHAR_POS_OPTIONS           : constant := 16#204E#;
  1309.    PMERR_INV_CHAR_SET_ATTR              : constant := 16#204F#;
  1310.    PMERR_INV_CHAR_SHEAR_ATTR            : constant := 16#2050#;
  1311.    PMERR_INV_CLIP_PATH_OPTIONS          : constant := 16#2051#;
  1312.    PMERR_INV_CODEPAGE                   : constant := 16#2052#;
  1313.    PMERR_INV_COLOR_ATTR                 : constant := 16#2053#;
  1314.    PMERR_INV_COLOR_DATA                 : constant := 16#2054#;
  1315.    PMERR_INV_COLOR_FORMAT               : constant := 16#2055#;
  1316.    PMERR_INV_COLOR_INDEX                : constant := 16#2056#;
  1317.    PMERR_INV_COLOR_OPTIONS              : constant := 16#2057#;
  1318.    PMERR_INV_COLOR_START_INDEX          : constant := 16#2058#;
  1319.    PMERR_INV_COORD_OFFSET               : constant := 16#2059#;
  1320.    PMERR_INV_COORD_SPACE                : constant := 16#205A#;
  1321.    PMERR_INV_COORDINATE                 : constant := 16#205B#;
  1322.    PMERR_INV_CORRELATE_DEPTH            : constant := 16#205C#;
  1323.    PMERR_INV_CORRELATE_TYPE             : constant := 16#205D#;
  1324.    PMERR_INV_CURSOR_BITMAP              : constant := 16#205E#;
  1325.    PMERR_INV_DC_DATA                    : constant := 16#205F#;
  1326.    PMERR_INV_DC_TYPE                    : constant := 16#2060#;
  1327.    PMERR_INV_DEVICE_NAME                : constant := 16#2061#;
  1328.    PMERR_INV_DEV_MODES_OPTIONS          : constant := 16#2062#;
  1329.    PMERR_INV_DRAW_CONTROL               : constant := 16#2063#;
  1330.    PMERR_INV_DRAW_VALUE                 : constant := 16#2064#;
  1331.    PMERR_INV_DRAWING_MODE               : constant := 16#2065#;
  1332.    PMERR_INV_DRIVER_DATA                : constant := 16#2066#;
  1333.    PMERR_INV_DRIVER_NAME                : constant := 16#2067#;
  1334.    PMERR_INV_DRAW_BORDER_OPTION         : constant := 16#2068#;
  1335.    PMERR_INV_EDIT_MODE                  : constant := 16#2069#;
  1336.    PMERR_INV_ELEMENT_OFFSET             : constant := 16#206A#;
  1337.    PMERR_INV_ELEMENT_POINTER            : constant := 16#206B#;
  1338.    PMERR_INV_END_PATH_OPTIONS           : constant := 16#206C#;
  1339.    PMERR_INV_ESC_CODE                   : constant := 16#206D#;
  1340.    PMERR_INV_ESCAPE_DATA                : constant := 16#206E#;
  1341.    PMERR_INV_EXTENDED_LCID              : constant := 16#206F#;
  1342.    PMERR_INV_FILL_PATH_OPTIONS          : constant := 16#2070#;
  1343.    PMERR_INV_FIRST_CHAR                 : constant := 16#2071#;
  1344.    PMERR_INV_FONT_ATTRS                 : constant := 16#2072#;
  1345.    PMERR_INV_FONT_FILE_DATA             : constant := 16#2073#;
  1346.    PMERR_INV_FOR_THIS_DC_TYPE           : constant := 16#2074#;
  1347.    PMERR_INV_FORMAT_CONTROL             : constant := 16#2075#;
  1348.    PMERR_INV_FORMS_CODE                 : constant := 16#2076#;
  1349.    PMERR_INV_FONTDEF                    : constant := 16#2077#;
  1350.    PMERR_INV_GEOM_LINE_WIDTH_ATTR       : constant := 16#2078#;
  1351.    PMERR_INV_GETDATA_CONTROL            : constant := 16#2079#;
  1352.    PMERR_INV_GRAPHICS_FIELD             : constant := 16#207A#;
  1353.    PMERR_INV_HBITMAP                    : constant := 16#207B#;
  1354.    PMERR_INV_HDC                        : constant := 16#207C#;
  1355.    PMERR_INV_HJOURNAL                   : constant := 16#207D#;
  1356.    PMERR_INV_HMF                        : constant := 16#207E#;
  1357.    PMERR_INV_HPS                        : constant := 16#207F#;
  1358.    PMERR_INV_HRGN                       : constant := 16#2080#;
  1359.    PMERR_INV_ID                         : constant := 16#2081#;
  1360.    PMERR_INV_IMAGE_DATA_LENGTH          : constant := 16#2082#;
  1361.    PMERR_INV_IMAGE_DIMENSION            : constant := 16#2083#;
  1362.    PMERR_INV_IMAGE_FORMAT               : constant := 16#2084#;
  1363.    PMERR_INV_IN_AREA                    : constant := 16#2085#;
  1364.    PMERR_INV_IN_CALLED_SEG              : constant := 16#2086#;
  1365.    PMERR_INV_IN_CURRENT_EDIT_MODE       : constant := 16#2087#;
  1366.    PMERR_INV_IN_DRAW_MODE               : constant := 16#2088#;
  1367.    PMERR_INV_IN_ELEMENT                 : constant := 16#2089#;
  1368.    PMERR_INV_IN_IMAGE                   : constant := 16#208A#;
  1369.    PMERR_INV_IN_PATH                    : constant := 16#208B#;
  1370.    PMERR_INV_IN_RETAIN_MODE             : constant := 16#208C#;
  1371.    PMERR_INV_IN_SEG                     : constant := 16#208D#;
  1372.    PMERR_INV_IN_VECTOR_SYMBOL           : constant := 16#208E#;
  1373.    PMERR_INV_INFO_TABLE                 : constant := 16#208F#;
  1374.    PMERR_INV_JOURNAL_OPTION             : constant := 16#2090#;
  1375.    PMERR_INV_KERNING_FLAGS              : constant := 16#2091#;
  1376.    PMERR_INV_LENGTH_OR_COUNT            : constant := 16#2092#;
  1377.    PMERR_INV_LINE_END_ATTR              : constant := 16#2093#;
  1378.    PMERR_INV_LINE_JOIN_ATTR             : constant := 16#2094#;
  1379.    PMERR_INV_LINE_TYPE_ATTR             : constant := 16#2095#;
  1380.    PMERR_INV_LINE_WIDTH_ATTR            : constant := 16#2096#;
  1381.    PMERR_INV_LOGICAL_ADDRESS            : constant := 16#2097#;
  1382.    PMERR_INV_MARKER_BOX_ATTR            : constant := 16#2098#;
  1383.    PMERR_INV_MARKER_SET_ATTR            : constant := 16#2099#;
  1384.    PMERR_INV_MARKER_SYMBOL_ATTR         : constant := 16#209A#;
  1385.    PMERR_INV_MATRIX_ELEMENT             : constant := 16#209B#;
  1386.    PMERR_INV_MAX_HITS                   : constant := 16#209C#;
  1387.    PMERR_INV_METAFILE                   : constant := 16#209D#;
  1388.    PMERR_INV_METAFILE_LENGTH            : constant := 16#209E#;
  1389.    PMERR_INV_METAFILE_OFFSET            : constant := 16#209F#;
  1390.    PMERR_INV_MICROPS_DRAW_CONTROL       : constant := 16#20A0#;
  1391.    PMERR_INV_MICROPS_FUNCTION           : constant := 16#20A1#;
  1392.    PMERR_INV_MICROPS_ORDER              : constant := 16#20A2#;
  1393.    PMERR_INV_MIX_ATTR                   : constant := 16#20A3#;
  1394.    PMERR_INV_MODE_FOR_OPEN_DYN          : constant := 16#20A4#;
  1395.    PMERR_INV_MODE_FOR_REOPEN_SEG        : constant := 16#20A5#;
  1396.    PMERR_INV_MODIFY_PATH_MODE           : constant := 16#20A6#;
  1397.    PMERR_INV_MULTIPLIER                 : constant := 16#20A7#;
  1398.    PMERR_INV_NESTED_FIGURES             : constant := 16#20A8#;
  1399.    PMERR_INV_OR_INCOMPAT_OPTIONS        : constant := 16#20A9#;
  1400.    PMERR_INV_ORDER_LENGTH               : constant := 16#20AA#;
  1401.    PMERR_INV_ORDERING_PARM              : constant := 16#20AB#;
  1402.    PMERR_INV_OUTSIDE_DRAW_MODE          : constant := 16#20AC#;
  1403.    PMERR_INV_PAGE_VIEWPORT              : constant := 16#20AD#;
  1404.    PMERR_INV_PATH_ID                    : constant := 16#20AE#;
  1405.    PMERR_INV_PATH_MODE                  : constant := 16#20AF#;
  1406.    PMERR_INV_PATTERN_ATTR               : constant := 16#20B0#;
  1407.    PMERR_INV_PATTERN_REF_PT_ATTR        : constant := 16#20B1#;
  1408.    PMERR_INV_PATTERN_SET_ATTR           : constant := 16#20B2#;
  1409.    PMERR_INV_PATTERN_SET_FONT           : constant := 16#20B3#;
  1410.    PMERR_INV_PICK_APERTURE_OPTION       : constant := 16#20B4#;
  1411.    PMERR_INV_PICK_APERTURE_POSN         : constant := 16#20B5#;
  1412.    PMERR_INV_PICK_APERTURE_SIZE         : constant := 16#20B6#;
  1413.    PMERR_INV_PICK_NUMBER                : constant := 16#20B7#;
  1414.    PMERR_INV_PLAY_METAFILE_OPTION       : constant := 16#20B8#;
  1415.    PMERR_INV_PRIMITIVE_TYPE             : constant := 16#20B9#;
  1416.    PMERR_INV_PS_SIZE                    : constant := 16#20BA#;
  1417.    PMERR_INV_PUTDATA_FORMAT             : constant := 16#20BB#;
  1418.    PMERR_INV_QUERY_ELEMENT_NO           : constant := 16#20BC#;
  1419.    PMERR_INV_RECT                       : constant := 16#20BD#;
  1420.    PMERR_INV_REGION_CONTROL             : constant := 16#20BE#;
  1421.    PMERR_INV_REGION_MIX_MODE            : constant := 16#20BF#;
  1422.    PMERR_INV_REPLACE_MODE_FUNC          : constant := 16#20C0#;
  1423.    PMERR_INV_RESERVED_FIELD             : constant := 16#20C1#;
  1424.    PMERR_INV_RESET_OPTIONS              : constant := 16#20C2#;
  1425.    PMERR_INV_RGBCOLOR                   : constant := 16#20C3#;
  1426.    PMERR_INV_SCAN_START                 : constant := 16#20C4#;
  1427.    PMERR_INV_SEG_ATTR                   : constant := 16#20C5#;
  1428.    PMERR_INV_SEG_ATTR_VALUE             : constant := 16#20C6#;
  1429.    PMERR_INV_SEG_CH_LENGTH              : constant := 16#20C7#;
  1430.    PMERR_INV_SEG_NAME                   : constant := 16#20C8#;
  1431.    PMERR_INV_SEG_OFFSET                 : constant := 16#20C9#;
  1432.    PMERR_INV_SETID                      : constant := 16#20CA#;
  1433.    PMERR_INV_SETID_TYPE                 : constant := 16#20CB#;
  1434.    PMERR_INV_SET_VIEWPORT_OPTION        : constant := 16#20CC#;
  1435.    PMERR_INV_SHARPNESS_PARM             : constant := 16#20CD#;
  1436.    PMERR_INV_SOURCE_OFFSET              : constant := 16#20CE#;
  1437.    PMERR_INV_STOP_DRAW_VALUE            : constant := 16#20CF#;
  1438.    PMERR_INV_TRANSFORM_TYPE             : constant := 16#20D0#;
  1439.    PMERR_INV_USAGE_PARM                 : constant := 16#20D1#;
  1440.    PMERR_INV_VIEWING_LIMITS             : constant := 16#20D2#;
  1441.    PMERR_JFILE_BUSY                     : constant := 16#20D3#;
  1442.    PMERR_JNL_FUNC_DATA_TOO_LONG         : constant := 16#20D4#;
  1443.    PMERR_KERNING_NOT_SUPPORTED          : constant := 16#20D5#;
  1444.    PMERR_LABEL_NOT_FOUND                : constant := 16#20D6#;
  1445.    PMERR_MATRIX_OVERFLOW                : constant := 16#20D7#;
  1446.    PMERR_METAFILE_INTERNAL_ERROR        : constant := 16#20D8#;
  1447.    PMERR_METAFILE_IN_USE                : constant := 16#20D9#;
  1448.    PMERR_METAFILE_LIMIT_EXCEEDED        : constant := 16#20DA#;
  1449.    PMERR_NAME_STACK_FULL                : constant := 16#20DB#;
  1450.    PMERR_NOT_CREATED_BY_DEVOPENDC       : constant := 16#20DC#;
  1451.    PMERR_NOT_IN_AREA                    : constant := 16#20DD#;
  1452.    PMERR_NOT_IN_DRAW_MODE               : constant := 16#20DE#;
  1453.    PMERR_NOT_IN_ELEMENT                 : constant := 16#20DF#;
  1454.    PMERR_NOT_IN_IMAGE                   : constant := 16#20E0#;
  1455.    PMERR_NOT_IN_PATH                    : constant := 16#20E1#;
  1456.    PMERR_NOT_IN_RETAIN_MODE             : constant := 16#20E2#;
  1457.    PMERR_NOT_IN_SEG                     : constant := 16#20E3#;
  1458.    PMERR_NO_BITMAP_SELECTED             : constant := 16#20E4#;
  1459.    PMERR_NO_CURRENT_ELEMENT             : constant := 16#20E5#;
  1460.    PMERR_NO_CURRENT_SEG                 : constant := 16#20E6#;
  1461.    PMERR_NO_METAFILE_RECORD_HANDLE      : constant := 16#20E7#;
  1462.    PMERR_ORDER_TOO_BIG                  : constant := 16#20E8#;
  1463.    PMERR_OTHER_SET_ID_REFS              : constant := 16#20E9#;
  1464.    PMERR_OVERRAN_SEG                    : constant := 16#20EA#;
  1465.    PMERR_OWN_SET_ID_REFS                : constant := 16#20EB#;
  1466.    PMERR_PATH_INCOMPLETE                : constant := 16#20EC#;
  1467.    PMERR_PATH_LIMIT_EXCEEDED            : constant := 16#20ED#;
  1468.    PMERR_PATH_UNKNOWN                   : constant := 16#20EE#;
  1469.    PMERR_PEL_IS_CLIPPED                 : constant := 16#20EF#;
  1470.    PMERR_PEL_NOT_AVAILABLE              : constant := 16#20F0#;
  1471.    PMERR_PRIMITIVE_STACK_EMPTY          : constant := 16#20F1#;
  1472.    PMERR_PROLOG_ERROR                   : constant := 16#20F2#;
  1473.    PMERR_PROLOG_SEG_ATTR_NOT_SET        : constant := 16#20F3#;
  1474.    PMERR_PS_BUSY                        : constant := 16#20F4#;
  1475.    PMERR_PS_IS_ASSOCIATED               : constant := 16#20F5#;
  1476.    PMERR_RAM_JNL_FILE_TOO_SMALL         : constant := 16#20F6#;
  1477.    PMERR_REALIZE_NOT_SUPPORTED          : constant := 16#20F7#;
  1478.    PMERR_REGION_IS_CLIP_REGION          : constant := 16#20F8#;
  1479.    PMERR_RESOURCE_DEPLETION             : constant := 16#20F9#;
  1480.    PMERR_SEG_AND_REFSEG_ARE_SAME        : constant := 16#20FA#;
  1481.    PMERR_SEG_CALL_RECURSIVE             : constant := 16#20FB#;
  1482.    PMERR_SEG_CALL_STACK_EMPTY           : constant := 16#20FC#;
  1483.    PMERR_SEG_CALL_STACK_FULL            : constant := 16#20FD#;
  1484.    PMERR_SEG_IS_CURRENT                 : constant := 16#20FE#;
  1485.    PMERR_SEG_NOT_CHAINED                : constant := 16#20FF#;
  1486.    PMERR_SEG_NOT_FOUND                  : constant := 16#2100#;
  1487.    PMERR_SEG_STORE_LIMIT_EXCEEDED       : constant := 16#2101#;
  1488.    PMERR_SETID_IN_USE                   : constant := 16#2102#;
  1489.    PMERR_SETID_NOT_FOUND                : constant := 16#2103#;
  1490.    PMERR_STARTDOC_NOT_ISSUED            : constant := 16#2104#;
  1491.    PMERR_STOP_DRAW_OCCURRED             : constant := 16#2105#;
  1492.    PMERR_TOO_MANY_METAFILES_IN_USE      : constant := 16#2106#;
  1493.    PMERR_TRUNCATED_ORDER                : constant := 16#2107#;
  1494.    PMERR_UNCHAINED_SEG_ZERO_INV         : constant := 16#2108#;
  1495.    PMERR_UNSUPPORTED_ATTR               : constant := 16#2109#;
  1496.    PMERR_UNSUPPORTED_ATTR_VALUE         : constant := 16#210A#;
  1497.    PMERR_ENDDOC_NOT_ISSUED              : constant := 16#210B#;
  1498.    PMERR_PS_NOT_ASSOCIATED              : constant := 16#210C#;
  1499.    PMERR_INV_FLOOD_FILL_OPTIONS         : constant := 16#210D#;
  1500.    PMERR_INV_FACENAME                   : constant := 16#210E#;
  1501.    PMERR_PALETTE_SELECTED               : constant := 16#210F#;
  1502.    PMERR_NO_PALETTE_SELECTED            : constant := 16#2110#;
  1503.    PMERR_INV_HPAL                       : constant := 16#2111#;
  1504.    PMERR_PALETTE_BUSY                   : constant := 16#2112#;
  1505.    PMERR_START_POINT_CLIPPED            : constant := 16#2113#;
  1506.    PMERR_NO_FILL                        : constant := 16#2114#;
  1507.    PMERR_INV_FACENAMEDESC               : constant := 16#2115#;
  1508.    PMERR_INV_BITMAP_DATA                : constant := 16#2116#;
  1509.    PMERR_INV_CHAR_ALIGN_ATTR            : constant := 16#2117#;
  1510.    PMERR_INV_HFONT                      : constant := 16#2118#;
  1511.    PMERR_HFONT_IS_SELECTED              : constant := 16#2119#;
  1512.    PMERR_DRVR_NOT_SUPPORTED             : constant := 16#2120#;
  1513.    WPERR_PROTECTED_CLASS                : constant := 16#1700#;
  1514.    WPERR_INVALID_CLASS                  : constant := 16#1701#;
  1515.    WPERR_INVALID_SUPERCLASS             : constant := 16#1702#;
  1516.    WPERR_NO_MEMORY                      : constant := 16#1703#;
  1517.    WPERR_SEMAPHORE_ERROR                : constant := 16#1704#;
  1518.    WPERR_BUFFER_TOO_SMALL               : constant := 16#1705#;
  1519.    WPERR_CLSLOADMOD_FAILED              : constant := 16#1706#;
  1520.    WPERR_CLSPROCADDR_FAILED             : constant := 16#1707#;
  1521.    WPERR_OBJWORD_LOCATION               : constant := 16#1708#;
  1522.    WPERR_INVALID_OBJECT                 : constant := 16#1709#;
  1523.    WPERR_MEMORY_CLEANUP                 : constant := 16#170A#;
  1524.    WPERR_INVALID_MODULE                 : constant := 16#170B#;
  1525.    WPERR_INVALID_OLDCLASS               : constant := 16#170C#;
  1526.    WPERR_INVALID_NEWCLASS               : constant := 16#170D#;
  1527.    WPERR_NOT_IMMEDIATE_CHILD            : constant := 16#170E#;
  1528.    WPERR_NOT_WORKPLACE_CLASS            : constant := 16#170F#;
  1529.    WPERR_CANT_REPLACE_METACLS           : constant := 16#1710#;
  1530.    WPERR_INI_FILE_WRITE                 : constant := 16#1711#;
  1531.    WPERR_INVALID_FOLDER                 : constant := 16#1712#;
  1532.    WPERR_BUFFER_OVERFLOW                : constant := 16#1713#;
  1533.    WPERR_OBJECT_NOT_FOUND               : constant := 16#1714#;
  1534.    WPERR_INVALID_HFIND                  : constant := 16#1715#;
  1535.    WPERR_INVALID_COUNT                  : constant := 16#1716#;
  1536.    WPERR_INVALID_BUFFER                 : constant := 16#1717#;
  1537.    WPERR_ALREADY_EXISTS                 : constant := 16#1718#;
  1538.    WPERR_INVALID_FLAGS                  : constant := 16#1719#;
  1539.    WPERR_INVALID_OBJECTID               : constant := 16#1720#;
  1540.    PMERR_SPL_DRIVER_ERROR               : constant := 16#4001#;
  1541.    PMERR_SPL_DEVICE_ERROR               : constant := 16#4002#;
  1542.    PMERR_SPL_DEVICE_NOT_INSTALLED       : constant := 16#4003#;
  1543.    PMERR_SPL_QUEUE_ERROR                : constant := 16#4004#;
  1544.    PMERR_SPL_INV_HSPL                   : constant := 16#4005#;
  1545.    PMERR_SPL_NO_DISK_SPACE              : constant := 16#4006#;
  1546.    PMERR_SPL_NO_MEMORY                  : constant := 16#4007#;
  1547.    PMERR_SPL_PRINT_ABORT                : constant := 16#4008#;
  1548.    PMERR_SPL_SPOOLER_NOT_INSTALLED      : constant := 16#4009#;
  1549.    PMERR_SPL_INV_FORMS_CODE             : constant := 16#400A#;
  1550.    PMERR_SPL_INV_PRIORITY               : constant := 16#400B#;
  1551.    PMERR_SPL_NO_FREE_JOB_ID             : constant := 16#400C#;
  1552.    PMERR_SPL_NO_DATA                    : constant := 16#400D#;
  1553.    PMERR_SPL_INV_TOKEN                  : constant := 16#400E#;
  1554.    PMERR_SPL_INV_DATATYPE               : constant := 16#400F#;
  1555.    PMERR_SPL_PROCESSOR_ERROR            : constant := 16#4010#;
  1556.    PMERR_SPL_INV_JOB_ID                 : constant := 16#4011#;
  1557.    PMERR_SPL_JOB_NOT_PRINTING           : constant := 16#4012#;
  1558.    PMERR_SPL_JOB_PRINTING               : constant := 16#4013#;
  1559.    PMERR_SPL_QUEUE_ALREADY_EXISTS       : constant := 16#4014#;
  1560.    PMERR_SPL_INV_QUEUE_NAME             : constant := 16#4015#;
  1561.    PMERR_SPL_QUEUE_NOT_EMPTY            : constant := 16#4016#;
  1562.    PMERR_SPL_DEVICE_ALREADY_EXISTS      : constant := 16#4017#;
  1563.    PMERR_SPL_DEVICE_LIMIT_REACHED       : constant := 16#4018#;
  1564.    PMERR_SPL_STATUS_STRING_TRUNC        : constant := 16#4019#;
  1565.    PMERR_SPL_INV_LENGTH_OR_COUNT        : constant := 16#401A#;
  1566.    PMERR_SPL_FILE_NOT_FOUND             : constant := 16#401B#;
  1567.    PMERR_SPL_CANNOT_OPEN_FILE           : constant := 16#401C#;
  1568.    PMERR_SPL_DRIVER_NOT_INSTALLED       : constant := 16#401D#;
  1569.    PMERR_SPL_INV_PROCESSOR_DATTYPE      : constant := 16#401E#;
  1570.    PMERR_SPL_INV_DRIVER_DATATYPE        : constant := 16#401F#;
  1571.    PMERR_SPL_PROCESSOR_NOT_INST         : constant := 16#4020#;
  1572.    PMERR_SPL_NO_SUCH_LOG_ADDRESS        : constant := 16#4021#;
  1573.    PMERR_SPL_PRINTER_NOT_FOUND          : constant := 16#4022#;
  1574.    PMERR_SPL_DD_NOT_FOUND               : constant := 16#4023#;
  1575.    PMERR_SPL_QUEUE_NOT_FOUND            : constant := 16#4024#;
  1576.    PMERR_SPL_MANY_QUEUES_ASSOC          : constant := 16#4025#;
  1577.    PMERR_SPL_NO_QUEUES_ASSOCIATED       : constant := 16#4026#;
  1578.    PMERR_SPL_INI_FILE_ERROR             : constant := 16#4027#;
  1579.    PMERR_SPL_NO_DEFAULT_QUEUE           : constant := 16#4028#;
  1580.    PMERR_SPL_NO_CURRENT_FORMS_CODE      : constant := 16#4029#;
  1581.    PMERR_SPL_NOT_AUTHORISED             : constant := 16#402A#;
  1582.    PMERR_SPL_TEMP_NETWORK_ERROR         : constant := 16#402B#;
  1583.    PMERR_SPL_HARD_NETWORK_ERROR         : constant := 16#402C#;
  1584.    PMERR_DEL_NOT_ALLOWED                : constant := 16#402D#;
  1585.    PMERR_CANNOT_DEL_QP_REF              : constant := 16#402E#;
  1586.    PMERR_CANNOT_DEL_QNAME_REF           : constant := 16#402F#;
  1587.    PMERR_CANNOT_DEL_PRINTER_DD_REF      : constant := 16#4030#;
  1588.    PMERR_CANNOT_DEL_PRN_NAME_REF        : constant := 16#4031#;
  1589.    PMERR_CANNOT_DEL_PRN_ADDR_REF        : constant := 16#4032#;
  1590.    PMERR_SPOOLER_QP_NOT_DEFINED         : constant := 16#4033#;
  1591.    PMERR_PRN_NAME_NOT_DEFINED           : constant := 16#4034#;
  1592.    PMERR_PRN_ADDR_NOT_DEFINED           : constant := 16#4035#;
  1593.    PMERR_PRINTER_DD_NOT_DEFINED         : constant := 16#4036#;
  1594.    PMERR_PRINTER_QUEUE_NOT_DEFINED      : constant := 16#4037#;
  1595.    PMERR_PRN_ADDR_IN_USE                : constant := 16#4038#;
  1596.    PMERR_SPL_TOO_MANY_OPEN_FILES        : constant := 16#4039#;
  1597.    PMERR_SPL_CP_NOT_REQD                : constant := 16#403A#;
  1598.    PMERR_UNABLE_TO_CLOSE_DEVICE         : constant := 16#4040#;
  1599.    PMERR_INV_TYPE                       : constant := 16#5001#;
  1600.    PMERR_INV_CONV                       : constant := 16#5002#;
  1601.    PMERR_INV_SEGLEN                     : constant := 16#5003#;
  1602.    PMERR_DUP_SEGNAME                    : constant := 16#5004#;
  1603.    PMERR_INV_XFORM                      : constant := 16#5005#;
  1604.    PMERR_INV_VIEWLIM                    : constant := 16#5006#;
  1605.    PMERR_INV_3DCOORD                    : constant := 16#5007#;
  1606.    PMERR_SMB_OVFLOW                     : constant := 16#5008#;
  1607.    PMERR_SEG_OVFLOW                     : constant := 16#5009#;
  1608.    PMERR_PIC_DUP_FILENAME               : constant := 16#5010#;
  1609.    WINDBG_HWND_NOT_DESTROYED            : constant := 16#1022#;
  1610.    WINDBG_HPTR_NOT_DESTROYED            : constant := 16#1023#;
  1611.    WINDBG_HACCEL_NOT_DESTROYED          : constant := 16#1024#;
  1612.    WINDBG_HENUM_NOT_DESTROYED           : constant := 16#1025#;
  1613.    WINDBG_VISRGN_SEM_BUSY               : constant := 16#1026#;
  1614.    WINDBG_USER_SEM_BUSY                 : constant := 16#1027#;
  1615.    WINDBG_DC_CACHE_BUSY                 : constant := 16#1028#;
  1616.    WINDBG_HOOK_STILL_INSTALLED          : constant := 16#1029#;
  1617.    WINDBG_WINDOW_STILL_LOCKED           : constant := 16#102A#;
  1618.    WINDBG_UPDATEPS_ASSERTION_FAIL       : constant := 16#102B#;
  1619.    WINDBG_SENDMSG_WITHIN_USER_SEM       : constant := 16#102C#;
  1620.    WINDBG_USER_SEM_NOT_ENTERED          : constant := 16#102D#;
  1621.    WINDBG_PROC_NOT_EXPORTED             : constant := 16#102E#;
  1622.    WINDBG_BAD_SENDMSG_HWND              : constant := 16#102F#;
  1623.    WINDBG_ABNORMAL_EXIT                 : constant := 16#1030#;
  1624.    WINDBG_INTERNAL_REVISION             : constant := 16#1031#;
  1625.    WINDBG_INITSYSTEM_FAILED             : constant := 16#1032#;
  1626.    WINDBG_HATOMTBL_NOT_DESTROYED        : constant := 16#1033#;
  1627.    WINDBG_WINDOW_UNLOCK_WAIT            : constant := 16#1035#;
  1628.    WM_NULL                              : constant := 16#0000#;
  1629.    WM_CREATE                            : constant := 16#0001#;
  1630.    WM_DESTROY                           : constant := 16#0002#;
  1631.    WM_ENABLE                            : constant := 16#0004#;
  1632.    WM_SHOW                              : constant := 16#0005#;
  1633.    WM_MOVE                              : constant := 16#0006#;
  1634.    WM_SIZE                              : constant := 16#0007#;
  1635.    WM_ADJUSTWINDOWPOS                   : constant := 16#0008#;
  1636.    WM_CALCVALIDRECTS                    : constant := 16#0009#;
  1637.    WM_SETWINDOWPARAMS                   : constant := 16#000A#;
  1638.    WM_QUERYWINDOWPARAMS                 : constant := 16#000B#;
  1639.    WM_HITTEST                           : constant := 16#000C#;
  1640.    WM_ACTIVATE                          : constant := 16#000D#;
  1641.    WM_SETFOCUS                          : constant := 16#000F#;
  1642.    WM_SETSELECTION                      : constant := 16#0010#;
  1643.    WM_PPAINT                            : constant := 16#0011#;
  1644.    WM_PSETFOCUS                         : constant := 16#0012#;
  1645.    WM_PSYSCOLORCHANGE                   : constant := 16#0013#;
  1646.    WM_PSIZE                             : constant := 16#0014#;
  1647.    WM_PACTIVATE                         : constant := 16#0015#;
  1648.    WM_PCONTROL                          : constant := 16#0016#;
  1649.    WM_COMMAND                           : constant := 16#0020#;
  1650.    WM_SYSCOMMAND                        : constant := 16#0021#;
  1651.    WM_HELP                              : constant := 16#0022#;
  1652.    WM_PAINT                             : constant := 16#0023#;
  1653.    WM_TIMER                             : constant := 16#0024#;
  1654.    WM_SEM1                              : constant := 16#0025#;
  1655.    WM_SEM2                              : constant := 16#0026#;
  1656.    WM_SEM3                              : constant := 16#0027#;
  1657.    WM_SEM4                              : constant := 16#0028#;
  1658.    WM_CLOSE                             : constant := 16#0029#;
  1659.    WM_QUIT                              : constant := 16#002A#;
  1660.    WM_SYSCOLORCHANGE                    : constant := 16#002B#;
  1661.    WM_SYSVALUECHANGED                   : constant := 16#002D#;
  1662.    WM_APPTERMINATENOTIFY                : constant := 16#002E#;
  1663.    WM_PRESPARAMCHANGED                  : constant := 16#002F#;
  1664.    WM_CONTROL                           : constant := 16#0030#;
  1665.    WM_VSCROLL                           : constant := 16#0031#;
  1666.    WM_HSCROLL                           : constant := 16#0032#;
  1667.    WM_INITMENU                          : constant := 16#0033#;
  1668.    WM_MENUSELECT                        : constant := 16#0034#;
  1669.    WM_MENUEND                           : constant := 16#0035#;
  1670.    WM_DRAWITEM                          : constant := 16#0036#;
  1671.    WM_MEASUREITEM                       : constant := 16#0037#;
  1672.    WM_CONTROLPOINTER                    : constant := 16#0038#;
  1673.    WM_QUERYDLGCODE                      : constant := 16#003A#;
  1674.    WM_INITDLG                           : constant := 16#003B#;
  1675.    WM_SUBSTITUTESTRING                  : constant := 16#003C#;
  1676.    WM_MATCHMNEMONIC                     : constant := 16#003D#;
  1677.    WM_SAVEAPPLICATION                   : constant := 16#003E#;
  1678.    WM_HELPBASE                          : constant := 16#0F00#;
  1679.    WM_HELPTOP                           : constant := 16#0FFF#;
  1680.    WM_USER                              : constant := 16#1000#;
  1681.    CMDSRC_OTHER                         : constant := 8#0000#;
  1682.    CMDSRC_PUSHBUTTON                    : constant := 1;
  1683.    CMDSRC_MENU                          : constant := 2;
  1684.    CMDSRC_ACCELERATOR                   : constant := 3;
  1685.    CMDSRC_FONTDLG                       : constant := 4;
  1686.    CMDSRC_FILEDLG                       : constant := 5;
  1687.    CMDSRC_PRINTDLG                      : constant := 6;
  1688.    CMDSRC_COLORDLG                      : constant := 7;
  1689.    PM_NOREMOVE                          : constant := 16#0000#;
  1690.    PM_REMOVE                            : constant := 16#0001#;
  1691.    RUM_IN                               : constant := 1;
  1692.    RUM_OUT                              : constant := 2;
  1693.    RUM_INOUT                            : constant := 3;
  1694.    SMD_DELAYED                          : constant := 16#0001#;
  1695.    SMD_IMMEDIATE                        : constant := 16#0002#;
  1696.    SSM_SYNCHRONOUS                      : constant := 16#0001#;
  1697.    SSM_ASYNCHRONOUS                     : constant := 16#0002#;
  1698.    SSM_MIXED                            : constant := 16#0003#;
  1699.    DTYP_USER                            : constant := 16384;
  1700.    DTYP_CTL_ARRAY                       : constant := 1;
  1701.    DTYP_CTL_PARRAY                      : constant := -1;
  1702.    DTYP_CTL_OFFSET                      : constant := 2;
  1703.    DTYP_CTL_LENGTH                      : constant := 3;
  1704.    DTYP_ACCEL                           : constant := 28;
  1705.    DTYP_ACCELTABLE                      : constant := 29;
  1706.    DTYP_ARCPARAMS                       : constant := 38;
  1707.    DTYP_AREABUNDLE                      : constant := 139;
  1708.    DTYP_ATOM                            : constant := 90;
  1709.    DTYP_BITMAPINFO                      : constant := 60;
  1710.    DTYP_BITMAPINFOHEADER                : constant := 61;
  1711.    DTYP_BITMAPINFO2                     : constant := 170;
  1712.    DTYP_BITMAPINFOHEADER2               : constant := 171;
  1713.    DTYP_BIT16                           : constant := 20;
  1714.    DTYP_BIT32                           : constant := 21;
  1715.    DTYP_BIT8                            : constant := 19;
  1716.    DTYP_BOOL                            : constant := 18;
  1717.    DTYP_BTNCDATA                        : constant := 35;
  1718.    DTYP_BYTE                            : constant := 13;
  1719.    DTYP_CATCHBUF                        : constant := 141;
  1720.    DTYP_CHAR                            : constant := 15;
  1721.    DTYP_CHARBUNDLE                      : constant := 135;
  1722.    DTYP_CLASSINFO                       : constant := 95;
  1723.    DTYP_COUNT2                          : constant := 93;
  1724.    DTYP_COUNT2B                         : constant := 70;
  1725.    DTYP_COUNT2CH                        : constant := 82;
  1726.    DTYP_COUNT4                          : constant := 152;
  1727.    DTYP_COUNT4B                         : constant := 42;
  1728.    DTYP_CPID                            : constant := 57;
  1729.    DTYP_CREATESTRUCT                    : constant := 98;
  1730.    DTYP_CURSORINFO                      : constant := 34;
  1731.    DTYP_DEVOPENSTRUC                    : constant := 124;
  1732.    DTYP_DLGTEMPLATE                     : constant := 96;
  1733.    DTYP_DLGTITEM                        : constant := 97;
  1734.    DTYP_ENTRYFDATA                      : constant := 127;
  1735.    DTYP_ERRORID                         : constant := 45;
  1736.    DTYP_FATTRS                          : constant := 75;
  1737.    DTYP_FFDESCS                         : constant := 142;
  1738.    DTYP_FIXED                           : constant := 99;
  1739.    DTYP_FONTMETRICS                     : constant := 74;
  1740.    DTYP_FRAMECDATA                      : constant := 144;
  1741.    DTYP_GRADIENTL                       : constant := 48;
  1742.    DTYP_HAB                             : constant := 10;
  1743.    DTYP_HACCEL                          : constant := 30;
  1744.    DTYP_HAPP                            : constant := 146;
  1745.    DTYP_HATOMTBL                        : constant := 91;
  1746.    DTYP_HBITMAP                         : constant := 62;
  1747.    DTYP_HCINFO                          : constant := 46;
  1748.    DTYP_HDC                             : constant := 132;
  1749.    DTYP_HENUM                           : constant := 117;
  1750.    DTYP_HHEAP                           : constant := 109;
  1751.    DTYP_HINI                            : constant := 53;
  1752.    DTYP_HLIB                            : constant := 147;
  1753.    DTYP_HMF                             : constant := 85;
  1754.    DTYP_HMQ                             : constant := 86;
  1755.    DTYP_HPOINTER                        : constant := 106;
  1756.    DTYP_HPROGRAM                        : constant := 131;
  1757.    DTYP_HPS                             : constant := 12;
  1758.    DTYP_HRGN                            : constant := 116;
  1759.    DTYP_HSEM                            : constant := 140;
  1760.    DTYP_HSPL                            : constant := 16#0020#;
  1761.    DTYP_HSWITCH                         : constant := 66;
  1762.    DTYP_HVPS                            : constant := 58;
  1763.    DTYP_HWND                            : constant := 11;
  1764.    DTYP_IDENTITY                        : constant := 133;
  1765.    DTYP_IDENTITY4                       : constant := 169;
  1766.    DTYP_IMAGEBUNDLE                     : constant := 136;
  1767.    DTYP_INDEX2                          : constant := 81;
  1768.    DTYP_IPT                             : constant := 155;
  1769.    DTYP_KERNINGPAIRS                    : constant := 118;
  1770.    DTYP_LENGTH2                         : constant := 68;
  1771.    DTYP_LENGTH4                         : constant := 69;
  1772.    DTYP_LINEBUNDLE                      : constant := 137;
  1773.    DTYP_LONG                            : constant := 25;
  1774.    DTYP_MARKERBUNDLE                    : constant := 138;
  1775.    DTYP_MATRIXLF                        : constant := 113;
  1776.    DTYP_MLECTLDATA                      : constant := 161;
  1777.    DTYP_MLEMARGSTRUCT                   : constant := 157;
  1778.    DTYP_MLEOVERFLOW                     : constant := 158;
  1779.    DTYP_OFFSET2B                        : constant := 112;
  1780.    DTYP_OWNERITEM                       : constant := 154;
  1781.    DTYP_PID                             : constant := 92;
  1782.    DTYP_PIX                             : constant := 156;
  1783.    DTYP_POINTERINFO                     : constant := 105;
  1784.    DTYP_POINTL                          : constant := 77;
  1785.    DTYP_PROGCATEGORY                    : constant := 129;
  1786.    DTYP_PROGRAMENTRY                    : constant := 16#0080#;
  1787.    DTYP_PROGTYPE                        : constant := 130;
  1788.    DTYP_PROPERTY2                       : constant := 88;
  1789.    DTYP_PROPERTY4                       : constant := 89;
  1790.    DTYP_QMSG                            : constant := 87;
  1791.    DTYP_RECTL                           : constant := 121;
  1792.    DTYP_RESID                           : constant := 125;
  1793.    DTYP_RGB                             : constant := 111;
  1794.    DTYP_RGNRECT                         : constant := 115;
  1795.    DTYP_SBCDATA                         : constant := 159;
  1796.    DTYP_SEGOFF                          : constant := 126;
  1797.    DTYP_SHORT                           : constant := 23;
  1798.    DTYP_SIZEF                           : constant := 101;
  1799.    DTYP_SIZEL                           : constant := 102;
  1800.    DTYP_STRL                            : constant := 17;
  1801.    DTYP_STR16                           : constant := 40;
  1802.    DTYP_STR32                           : constant := 37;
  1803.    DTYP_STR64                           : constant := 47;
  1804.    DTYP_STR8                            : constant := 33;
  1805.    DTYP_SWBLOCK                         : constant := 63;
  1806.    DTYP_SWCNTRL                         : constant := 16#0040#;
  1807.    DTYP_SWENTRY                         : constant := 65;
  1808.    DTYP_SWP                             : constant := 31;
  1809.    DTYP_TID                             : constant := 104;
  1810.    DTYP_TIME                            : constant := 107;
  1811.    DTYP_TRACKINFO                       : constant := 73;
  1812.    DTYP_UCHAR                           : constant := 22;
  1813.    DTYP_ULONG                           : constant := 26;
  1814.    DTYP_USERBUTTON                      : constant := 36;
  1815.    DTYP_USHORT                          : constant := 24;
  1816.    DTYP_WIDTH4                          : constant := 108;
  1817.    DTYP_WNDPARAMS                       : constant := 83;
  1818.    DTYP_WNDPROC                         : constant := 84;
  1819.    DTYP_WPOINT                          : constant := 59;
  1820.    DTYP_WRECT                           : constant := 55;
  1821.    DTYP_XYWINSIZE                       : constant := 52;
  1822.    DTYP_PACCEL                          : constant := -28;
  1823.    DTYP_PACCELTABLE                     : constant := -29;
  1824.    DTYP_PARCPARAMS                      : constant := -38;
  1825.    DTYP_PAREABUNDLE                     : constant := -139;
  1826.    DTYP_PATOM                           : constant := -90;
  1827.    DTYP_PBITMAPINFO                     : constant := -60;
  1828.    DTYP_PBITMAPINFOHEADER               : constant := -61;
  1829.    DTYP_PBITMAPINFO2                    : constant := -170;
  1830.    DTYP_PBITMAPINFOHEADER2              : constant := -171;
  1831.    DTYP_PBIT16                          : constant := -20;
  1832.    DTYP_PBIT32                          : constant := -21;
  1833.    DTYP_PBIT8                           : constant := -19;
  1834.    DTYP_PBOOL                           : constant := -18;
  1835.    DTYP_PBTNCDATA                       : constant := -35;
  1836.    DTYP_PBYTE                           : constant := -13;
  1837.    DTYP_PCATCHBUF                       : constant := -141;
  1838.    DTYP_PCHAR                           : constant := -15;
  1839.    DTYP_PCHARBUNDLE                     : constant := -135;
  1840.    DTYP_PCLASSINFO                      : constant := -95;
  1841.    DTYP_PCOUNT2                         : constant := -93;
  1842.    DTYP_PCOUNT2B                        : constant := -70;
  1843.    DTYP_PCOUNT2CH                       : constant := -82;
  1844.    DTYP_PCOUNT4                         : constant := -152;
  1845.    DTYP_PCOUNT4B                        : constant := -42;
  1846.    DTYP_PCPID                           : constant := -57;
  1847.    DTYP_PCREATESTRUCT                   : constant := -98;
  1848.    DTYP_PCURSORINFO                     : constant := -34;
  1849.    DTYP_PDEVOPENSTRUC                   : constant := -124;
  1850.    DTYP_PDLGTEMPLATE                    : constant := -96;
  1851.    DTYP_PDLGTITEM                       : constant := -97;
  1852.    DTYP_PENTRYFDATA                     : constant := -127;
  1853.    DTYP_PERRORID                        : constant := -45;
  1854.    DTYP_PFATTRS                         : constant := -75;
  1855.    DTYP_PFFDESCS                        : constant := -142;
  1856.    DTYP_PFIXED                          : constant := -99;
  1857.    DTYP_PFONTMETRICS                    : constant := -74;
  1858.    DTYP_PFRAMECDATA                     : constant := -144;
  1859.    DTYP_PGRADIENTL                      : constant := -48;
  1860.    DTYP_PHAB                            : constant := -10;
  1861.    DTYP_PHACCEL                         : constant := -30;
  1862.    DTYP_PHAPP                           : constant := -146;
  1863.    DTYP_PHATOMTBL                       : constant := -91;
  1864.    DTYP_PHBITMAP                        : constant := -62;
  1865.    DTYP_PHCINFO                         : constant := -46;
  1866.    DTYP_PHDC                            : constant := -132;
  1867.    DTYP_PHENUM                          : constant := -117;
  1868.    DTYP_PHHEAP                          : constant := -109;
  1869.    DTYP_PHINI                           : constant := -53;
  1870.    DTYP_PHLIB                           : constant := -147;
  1871.    DTYP_PHMF                            : constant := -85;
  1872.    DTYP_PHMQ                            : constant := -86;
  1873.    DTYP_PHPOINTER                       : constant := -106;
  1874.    DTYP_PHPROGRAM                       : constant := -131;
  1875.    DTYP_PHPS                            : constant := -12;
  1876.    DTYP_PHRGN                           : constant := -116;
  1877.    DTYP_PHSEM                           : constant := -140;
  1878.    DTYP_PHSPL                           : constant := -32;
  1879.    DTYP_PHSWITCH                        : constant := -66;
  1880.    DTYP_PHVPS                           : constant := -58;
  1881.    DTYP_PHWND                           : constant := -11;
  1882.    DTYP_PIDENTITY                       : constant := -133;
  1883.    DTYP_PIDENTITY4                      : constant := -169;
  1884.    DTYP_PIMAGEBUNDLE                    : constant := -136;
  1885.    DTYP_PINDEX2                         : constant := -81;
  1886.    DTYP_PIPT                            : constant := -155;
  1887.    DTYP_PKERNINGPAIRS                   : constant := -118;
  1888.    DTYP_PLENGTH2                        : constant := -68;
  1889.    DTYP_PLENGTH4                        : constant := -69;
  1890.    DTYP_PLINEBUNDLE                     : constant := -137;
  1891.    DTYP_PLONG                           : constant := -25;
  1892.    DTYP_PMARKERBUNDLE                   : constant := -138;
  1893.    DTYP_PMATRIXLF                       : constant := -113;
  1894.    DTYP_PMLECTLDATA                     : constant := -161;
  1895.    DTYP_PMLEMARGSTRUCT                  : constant := -157;
  1896.    DTYP_PMLEOVERFLOW                    : constant := -158;
  1897.    DTYP_POFFSET2B                       : constant := -112;
  1898.    DTYP_POWNERITEM                      : constant := -154;
  1899.    DTYP_PPID                            : constant := -92;
  1900.    DTYP_PPIX                            : constant := -156;
  1901.    DTYP_PPOINTERINFO                    : constant := -105;
  1902.    DTYP_PPOINTL                         : constant := -77;
  1903.    DTYP_PPROGCATEGORY                   : constant := -129;
  1904.    DTYP_PPROGRAMENTRY                   : constant := -128;
  1905.    DTYP_PPROGTYPE                       : constant := -130;
  1906.    DTYP_PPROPERTY2                      : constant := -88;
  1907.    DTYP_PPROPERTY4                      : constant := -89;
  1908.    DTYP_PQMSG                           : constant := -87;
  1909.    DTYP_PRECTL                          : constant := -121;
  1910.    DTYP_PRESID                          : constant := -125;
  1911.    DTYP_PRGB                            : constant := -111;
  1912.    DTYP_PRGNRECT                        : constant := -115;
  1913.    DTYP_PSBCDATA                        : constant := -159;
  1914.    DTYP_PSEGOFF                         : constant := -126;
  1915.    DTYP_PSHORT                          : constant := -23;
  1916.    DTYP_PSIZEF                          : constant := -101;
  1917.    DTYP_PSIZEL                          : constant := -102;
  1918.    DTYP_PSTRL                           : constant := -17;
  1919.    DTYP_PSTR16                          : constant := -40;
  1920.    DTYP_PSTR32                          : constant := -37;
  1921.    DTYP_PSTR64                          : constant := -47;
  1922.    DTYP_PSTR8                           : constant := -33;
  1923.    DTYP_PSWBLOCK                        : constant := -63;
  1924.    DTYP_PSWCNTRL                        : constant := -64;
  1925.    DTYP_PSWENTRY                        : constant := -65;
  1926.    DTYP_PSWP                            : constant := -31;
  1927.    DTYP_PTID                            : constant := -104;
  1928.    DTYP_PTIME                           : constant := -107;
  1929.    DTYP_PTRACKINFO                      : constant := -73;
  1930.    DTYP_PUCHAR                          : constant := -22;
  1931.    DTYP_PULONG                          : constant := -26;
  1932.    DTYP_PUSERBUTTON                     : constant := -36;
  1933.    DTYP_PUSHORT                         : constant := -24;
  1934.    DTYP_PWIDTH4                         : constant := -108;
  1935.    DTYP_PWNDPARAMS                      : constant := -83;
  1936.    DTYP_PWNDPROC                        : constant := -84;
  1937.    DTYP_PWPOINT                         : constant := -59;
  1938.    DTYP_PWRECT                          : constant := -55;
  1939.    DTYP_PXYWINSIZE                      : constant := -52;
  1940.    MPVOID                               : constant := 0;
  1941.    FCF_TITLEBAR                         : constant := 16#0001#;
  1942.    FCF_SYSMENU                          : constant := 16#0002#;
  1943.    FCF_MENU                             : constant := 16#0004#;
  1944.    FCF_SIZEBORDER                       : constant := 16#0008#;
  1945.    FCF_MINBUTTON                        : constant := 16#0010#;
  1946.    FCF_MAXBUTTON                        : constant := 16#0020#;
  1947.    FCF_MINMAX                           : constant := 16#0030#;
  1948.    FCF_VERTSCROLL                       : constant := 16#0040#;
  1949.    FCF_HORZSCROLL                       : constant := 16#0080#;
  1950.    FCF_DLGBORDER                        : constant := 16#0100#;
  1951.    FCF_BORDER                           : constant := 16#0200#;
  1952.    FCF_SHELLPOSITION                    : constant := 16#0400#;
  1953.    FCF_TASKLIST                         : constant := 16#0800#;
  1954.    FCF_NOBYTEALIGN                      : constant := 16#1000#;
  1955.    FCF_NOMOVEWITHOWNER                  : constant := 16#2000#;
  1956.    FCF_ICON                             : constant := 16#4000#;
  1957.    FCF_ACCELTABLE                       : constant := 16#8000#;
  1958.    FCF_SYSMODAL                         : constant := 16#0001_0000#;
  1959.    FCF_SCREENALIGN                      : constant := 16#0002_0000#;
  1960.    FCF_MOUSEALIGN                       : constant := 16#0004_0000#;
  1961.    FCF_PALETTE_NORMAL                   : constant := 16#0008_0000#;
  1962.    FCF_PALETTE_HELP                     : constant := 16#0010_0000#;
  1963.    FCF_PALETTE_POPUPODD                 : constant := 16#0020_0000#;
  1964.    FCF_PALETTE_POPUPEVEN                : constant := 16#0040_0000#;
  1965.    FCF_HIDEBUTTON                       : constant := 16#0100_0000#;
  1966.    FCF_HIDEMAX                          : constant := 16#0100_0020#;
  1967.    FCF_AUTOICON                         : constant := 16#4000_0000#;
  1968.    FCF_DBE_APPSTAT                      : constant := 16#8000_0000#;
  1969.    FCF_STANDARD                         : constant := 16#0000_CC3F#;
  1970.    FF_FLASHWINDOW                       : constant := 16#0001#;
  1971.    FF_ACTIVE                            : constant := 16#0002#;
  1972.    FF_FLASHHILITE                       : constant := 16#0004#;
  1973.    FF_OWNERHIDDEN                       : constant := 16#0008#;
  1974.    FF_DLGDISMISSED                      : constant := 16#0010#;
  1975.    FF_OWNERDISABLED                     : constant := 16#0020#;
  1976.    FF_SELECTED                          : constant := 16#0040#;
  1977.    FF_NOACTIVATESWP                     : constant := 16#0080#;
  1978.    FS_ICON                              : constant := 16#0001#;
  1979.    FS_ACCELTABLE                        : constant := 16#0002#;
  1980.    FS_SHELLPOSITION                     : constant := 16#0004#;
  1981.    FS_TASKLIST                          : constant := 16#0008#;
  1982.    FS_NOBYTEALIGN                       : constant := 16#0010#;
  1983.    FS_NOMOVEWITHOWNER                   : constant := 16#0020#;
  1984.    FS_SYSMODAL                          : constant := 16#0040#;
  1985.    FS_DLGBORDER                         : constant := 16#0080#;
  1986.    FS_BORDER                            : constant := 16#0100#;
  1987.    FS_SCREENALIGN                       : constant := 16#0200#;
  1988.    FS_MOUSEALIGN                        : constant := 16#0400#;
  1989.    FS_SIZEBORDER                        : constant := 16#0800#;
  1990.    FS_AUTOICON                          : constant := 16#1000#;
  1991.    FS_DBE_APPSTAT                       : constant := 16#8000#;
  1992.    FS_STANDARD                          : constant := 16#000F#;
  1993.    WM_FLASHWINDOW                       : constant := 16#0040#;
  1994.    WM_FORMATFRAME                       : constant := 16#0041#;
  1995.    WM_UPDATEFRAME                       : constant := 16#0042#;
  1996.    WM_FOCUSCHANGE                       : constant := 16#0043#;
  1997.    WM_SETBORDERSIZE                     : constant := 16#0044#;
  1998.    WM_TRACKFRAME                        : constant := 16#0045#;
  1999.    WM_MINMAXFRAME                       : constant := 16#0046#;
  2000.    WM_SETICON                           : constant := 16#0047#;
  2001.    WM_QUERYICON                         : constant := 16#0048#;
  2002.    WM_SETACCELTABLE                     : constant := 16#0049#;
  2003.    WM_QUERYACCELTABLE                   : constant := 16#004A#;
  2004.    WM_TRANSLATEACCEL                    : constant := 16#004B#;
  2005.    WM_QUERYTRACKINFO                    : constant := 16#004C#;
  2006.    WM_QUERYBORDERSIZE                   : constant := 16#004D#;
  2007.    WM_NEXTMENU                          : constant := 16#004E#;
  2008.    WM_ERASEBACKGROUND                   : constant := 16#004F#;
  2009.    WM_QUERYFRAMEINFO                    : constant := 16#0050#;
  2010.    WM_QUERYFOCUSCHAIN                   : constant := 16#0051#;
  2011.    WM_OWNERPOSCHANGE                    : constant := 16#0052#;
  2012.    WM_CALCFRAMERECT                     : constant := 16#0053#;
  2013.    WM_WINDOWPOSCHANGED                  : constant := 16#0055#;
  2014.    WM_ADJUSTFRAMEPOS                    : constant := 16#0056#;
  2015.    WM_QUERYFRAMECTLCOUNT                : constant := 16#0059#;
  2016.    WM_QUERYHELPINFO                     : constant := 16#005B#;
  2017.    WM_SETHELPINFO                       : constant := 16#005C#;
  2018.    WM_ERROR                             : constant := 16#005D#;
  2019.    WM_REALIZEPALETTE                    : constant := 16#005E#;
  2020.    FI_FRAME                             : constant := 16#0001#;
  2021.    FI_OWNERHIDE                         : constant := 16#0002#;
  2022.    FI_ACTIVATEOK                        : constant := 16#0004#;
  2023.    FI_NOMOVEWITHOWNER                   : constant := 16#0008#;
  2024.    FID_SYSMENU                          : constant := 16#0000_8002#;
  2025.    FID_TITLEBAR                         : constant := 16#0000_8003#;
  2026.    FID_MINMAX                           : constant := 16#0000_8004#;
  2027.    FID_MENU                             : constant := 16#0000_8005#;
  2028.    FID_VERTSCROLL                       : constant := 16#0000_8006#;
  2029.    FID_HORZSCROLL                       : constant := 16#0000_8007#;
  2030.    FID_CLIENT                           : constant := 16#0000_8008#;
  2031.    FID_DBE_APPSTAT                      : constant := 16#0000_8010#;
  2032.    FID_DBE_KBDSTAT                      : constant := 16#0000_8011#;
  2033.    FID_DBE_PECIC                        : constant := 16#0000_8012#;
  2034.    FID_DBE_KKPOPUP                      : constant := 16#0000_8013#;
  2035.    SC_SIZE                              : constant := 16#8000#;
  2036.    SC_MOVE                              : constant := 16#0000_8001#;
  2037.    SC_MINIMIZE                          : constant := 16#0000_8002#;
  2038.    SC_MAXIMIZE                          : constant := 16#0000_8003#;
  2039.    SC_CLOSE                             : constant := 16#0000_8004#;
  2040.    SC_NEXT                              : constant := 16#0000_8005#;
  2041.    SC_APPMENU                           : constant := 16#0000_8006#;
  2042.    SC_SYSMENU                           : constant := 16#0000_8007#;
  2043.    SC_RESTORE                           : constant := 16#0000_8008#;
  2044.    SC_NEXTFRAME                         : constant := 16#0000_8009#;
  2045.    SC_NEXTWINDOW                        : constant := 16#0000_8010#;
  2046.    SC_TASKMANAGER                       : constant := 16#0000_8011#;
  2047.    SC_HELPKEYS                          : constant := 16#0000_8012#;
  2048.    SC_HELPINDEX                         : constant := 16#0000_8013#;
  2049.    SC_HELPEXTENDED                      : constant := 16#0000_8014#;
  2050.    SC_SWITCHPANELIDS                    : constant := 16#0000_8015#;
  2051.    SC_DBE_FIRST                         : constant := 16#0000_8018#;
  2052.    SC_DBE_LAST                          : constant := 16#0000_801F#;
  2053.    SC_BEGINDRAG                         : constant := 16#0000_8020#;
  2054.    SC_ENDDRAG                           : constant := 16#0000_8021#;
  2055.    SC_SELECT                            : constant := 16#0000_8022#;
  2056.    SC_OPEN                              : constant := 16#0000_8023#;
  2057.    SC_CONTEXTMENU                       : constant := 16#0000_8024#;
  2058.    SC_CONTEXTHELP                       : constant := 16#0000_8025#;
  2059.    SC_TEXTEDIT                          : constant := 16#0000_8026#;
  2060.    SC_BEGINSELECT                       : constant := 16#0000_8027#;
  2061.    SC_ENDSELECT                         : constant := 16#0000_8028#;
  2062.    SC_WINDOW                            : constant := 16#0000_8029#;
  2063.    SC_HIDE                              : constant := 16#0000_802A#;
  2064.    PSF_LOCKWINDOWUPDATE                 : constant := 16#0001#;
  2065.    PSF_CLIPUPWARDS                      : constant := 16#0002#;
  2066.    PSF_CLIPDOWNWARDS                    : constant := 16#0004#;
  2067.    PSF_CLIPSIBLINGS                     : constant := 16#0008#;
  2068.    PSF_CLIPCHILDREN                     : constant := 16#0010#;
  2069.    PSF_PARENTCLIP                       : constant := 16#0020#;
  2070.    QV_OS2                               : constant := 16#0000#;
  2071.    QV_CMS                               : constant := 16#0001#;
  2072.    QV_TSO                               : constant := 16#0002#;
  2073.    QV_TSOBATCH                          : constant := 16#0003#;
  2074.    QV_OS400                             : constant := 16#0004#;
  2075.    SW_SCROLLCHILDREN                    : constant := 16#0001#;
  2076.    SW_INVALIDATERGN                     : constant := 16#0002#;
  2077.    WM_QUERYCONVERTPOS                   : constant := 16#00B0#;
  2078.    QCP_CONVERT                          : constant := 16#0001#;
  2079.    QCP_NOCONVERT                        : constant := 16#0000#;
  2080.    QWS_USER                             : constant := 8#0000#;
  2081.    QWS_ID                               : constant := -1;
  2082.    QWS_MIN                              : constant := -1;
  2083.    QWL_USER                             : constant := 8#0000#;
  2084.    QWL_STYLE                            : constant := -2;
  2085.    QWP_PFNWP                            : constant := -3;
  2086.    QWL_HMQ                              : constant := -4;
  2087.    QWL_RESERVED                         : constant := -5;
  2088.    QWL_PENDATA                          : constant := -7;
  2089.    QWL_MIN                              : constant := -7;
  2090.    QWL_HHEAP                            : constant := 16#0004#;
  2091.    QWL_HWNDFOCUSSAVE                    : constant := 16#0018#;
  2092.    QWL_DEFBUTTON                        : constant := 16#0040#;
  2093.    QWL_PSSCBLK                          : constant := 16#0048#;
  2094.    QWL_PFEPBLK                          : constant := 16#004C#;
  2095.    QWL_PSTATBLK                         : constant := 16#0050#;
  2096.    QWS_FLAGS                            : constant := 16#0008#;
  2097.    QWS_RESULT                           : constant := 16#000A#;
  2098.    QWS_XRESTORE                         : constant := 16#000C#;
  2099.    QWS_YRESTORE                         : constant := 16#000E#;
  2100.    QWS_CXRESTORE                        : constant := 16#0010#;
  2101.    QWS_CYRESTORE                        : constant := 16#0012#;
  2102.    QWS_XMINIMIZE                        : constant := 16#0014#;
  2103.    QWS_YMINIMIZE                        : constant := 16#0016#;
  2104.    AF_CHAR                              : constant := 16#0001#;
  2105.    AF_VIRTUALKEY                        : constant := 16#0002#;
  2106.    AF_SCANCODE                          : constant := 16#0004#;
  2107.    AF_SHIFT                             : constant := 16#0008#;
  2108.    AF_CONTROL                           : constant := 16#0010#;
  2109.    AF_ALT                               : constant := 16#0020#;
  2110.    AF_LONEKEY                           : constant := 16#0040#;
  2111.    AF_SYSCOMMAND                        : constant := 16#0100#;
  2112.    AF_HELP                              : constant := 16#0200#;
  2113.    BDS_HILITED                          : constant := 16#0100#;
  2114.    BDS_DISABLED                         : constant := 16#0200#;
  2115.    BDS_DEFAULT                          : constant := 16#0400#;
  2116.    BM_CLICK                             : constant := 16#0120#;
  2117.    BM_QUERYCHECKINDEX                   : constant := 16#0121#;
  2118.    BM_QUERYHILITE                       : constant := 16#0122#;
  2119.    BM_SETHILITE                         : constant := 16#0123#;
  2120.    BM_QUERYCHECK                        : constant := 16#0124#;
  2121.    BM_SETCHECK                          : constant := 16#0125#;
  2122.    BM_SETDEFAULT                        : constant := 16#0126#;
  2123.    BN_CLICKED                           : constant := 1;
  2124.    BN_DBLCLICKED                        : constant := 2;
  2125.    BN_PAINT                             : constant := 3;
  2126.    BS_PUSHBUTTON                        : constant := 8#0000#;
  2127.    BS_CHECKBOX                          : constant := 1;
  2128.    BS_AUTOCHECKBOX                      : constant := 2;
  2129.    BS_RADIOBUTTON                       : constant := 3;
  2130.    BS_AUTORADIOBUTTON                   : constant := 4;
  2131.    BS_3STATE                            : constant := 5;
  2132.    BS_AUTO3STATE                        : constant := 6;
  2133.    BS_USERBUTTON                        : constant := 7;
  2134.    BS_PRIMARYSTYLES                     : constant := 16#000F#;
  2135.    BS_BITMAP                            : constant := 16#0040#;
  2136.    BS_ICON                              : constant := 16#0080#;
  2137.    BS_HELP                              : constant := 16#0100#;
  2138.    BS_SYSCOMMAND                        : constant := 16#0200#;
  2139.    BS_DEFAULT                           : constant := 16#0400#;
  2140.    BS_NOPOINTERFOCUS                    : constant := 16#0800#;
  2141.    BS_NOBORDER                          : constant := 16#1000#;
  2142.    BS_NOCURSORSELECT                    : constant := 16#2000#;
  2143.    BS_AUTOSIZE                          : constant := 16#4000#;
  2144.    WM_RENDERFMT                         : constant := 16#0060#;
  2145.    WM_RENDERALLFMTS                     : constant := 16#0061#;
  2146.    WM_DESTROYCLIPBOARD                  : constant := 16#0062#;
  2147.    WM_PAINTCLIPBOARD                    : constant := 16#0063#;
  2148.    WM_SIZECLIPBOARD                     : constant := 16#0064#;
  2149.    WM_HSCROLLCLIPBOARD                  : constant := 16#0065#;
  2150.    WM_VSCROLLCLIPBOARD                  : constant := 16#0066#;
  2151.    WM_DRAWCLIPBOARD                     : constant := 16#0067#;
  2152.    CF_TEXT                              : constant := 1;
  2153.    CF_BITMAP                            : constant := 2;
  2154.    CF_DSPTEXT                           : constant := 3;
  2155.    CF_DSPBITMAP                         : constant := 4;
  2156.    CF_METAFILE                          : constant := 5;
  2157.    CF_DSPMETAFILE                       : constant := 6;
  2158.    CF_PALETTE                           : constant := 9;
  2159.    CF_MMPMFIRST                         : constant := 10;
  2160.    CF_MMPMLAST                          : constant := 19;
  2161.    SZFMT_TEXT                           : constant string := "#1";
  2162.    SZFMT_BITMAP                         : constant string := "#2";
  2163.    SZFMT_DSPTEXT                        : constant string := "#3";
  2164.    SZFMT_DSPBITMAP                      : constant string := "#4";
  2165.    SZFMT_METAFILE                       : constant string := "#5";
  2166.    SZFMT_DSPMETAFILE                    : constant string := "#6";
  2167.    SZFMT_PALETTE                        : constant string := "#9";
  2168.    SZFMT_SYLK                           : constant string := "Sylk";
  2169.    SZFMT_DIF                            : constant string := "Dif";
  2170.    SZFMT_TIFF                           : constant string := "Tiff";
  2171.    SZFMT_OEMTEXT                        : constant string := "OemText";
  2172.    SZFMT_DIB                            : constant string := "Dib";
  2173.    SZFMT_OWNERDISPLAY                   : constant string := "OwnerDisplay";
  2174.    SZFMT_LINK                           : constant string := "Link";
  2175.    SZFMT_METAFILEPICT                   : constant string := "MetaFilePict";
  2176.    SZFMT_DSPMETAFILEPICT                : constant string := "DspMetaFilePict";
  2177.    SZFMT_CPTEXT                         : constant string := "Codepage Text";
  2178.    CFI_OWNERFREE                        : constant := 16#0001#;
  2179.    CFI_OWNERDISPLAY                     : constant := 16#0002#;
  2180.    CFI_HANDLE                           : constant := 16#0200#;
  2181.    CFI_POINTER                          : constant := 16#0400#;
  2182.    WM_DDE_FIRST                         : constant := 16#00A0#;
  2183.    WM_DDE_INITIATE                      : constant := 16#00A0#;
  2184.    WM_DDE_REQUEST                       : constant := 16#00A1#;
  2185.    WM_DDE_ACK                           : constant := 16#00A2#;
  2186.    WM_DDE_DATA                          : constant := 16#00A3#;
  2187.    WM_DDE_ADVISE                        : constant := 16#00A4#;
  2188.    WM_DDE_UNADVISE                      : constant := 16#00A5#;
  2189.    WM_DDE_POKE                          : constant := 16#00A6#;
  2190.    WM_DDE_EXECUTE                       : constant := 16#00A7#;
  2191.    WM_DDE_TERMINATE                     : constant := 16#00A8#;
  2192.    WM_DDE_INITIATEACK                   : constant := 16#00A9#;
  2193.    WM_DDE_LAST                          : constant := 16#00AF#;
  2194.    DDE_FACK                             : constant := 16#0001#;
  2195.    DDE_FBUSY                            : constant := 16#0002#;
  2196.    DDE_FNODATA                          : constant := 16#0004#;
  2197.    DDE_FACKREQ                          : constant := 16#0008#;
  2198.    DDE_FRESPONSE                        : constant := 16#0010#;
  2199.    DDE_NOTPROCESSED                     : constant := 16#0020#;
  2200.    DDE_FRESERVED                        : constant := 16#00C0#;
  2201.    DDE_FAPPSTATUS                       : constant := 16#0000_FF00#;
  2202.    DDECTXT_CASESENSITIVE                : constant := 16#0001#;
  2203.    DDEFMT_TEXT                          : constant := 16#0001#;
  2204.    DDEPM_RETRY                          : constant := 16#0001#;
  2205.    DDEPM_NOFREE                         : constant := 16#0002#;
  2206.    SZDDESYS_TOPIC                       : constant string := "System";
  2207.    SZDDESYS_ITEM_TOPICS                 : constant string := "Topics";
  2208.    SZDDESYS_ITEM_SYSITEMS               : constant string := "SysItems";
  2209.    SZDDESYS_ITEM_RTNMSG                 : constant string := "ReturnMessage";
  2210.    SZDDESYS_ITEM_STATUS                 : constant string := "Status";
  2211.    SZDDESYS_ITEM_FORMATS                : constant string := "Formats";
  2212.    SZDDESYS_ITEM_SECURITY               : constant string := "Security";
  2213.    SZDDESYS_ITEM_ITEMFORMATS            : constant string := "ItemFormats";
  2214.    SZDDESYS_ITEM_HELP                   : constant string := "Help";
  2215.    SZDDESYS_ITEM_PROTOCOLS              : constant string := "Protocols";
  2216.    SZDDESYS_ITEM_RESTART                : constant string := "Restart";
  2217.    WCS_ERROR                            : constant := 8#0000#;
  2218.    WCS_EQ                               : constant := 1;
  2219.    WCS_LT                               : constant := 2;
  2220.    WCS_GT                               : constant := 3;
  2221.    CURSOR_SOLID                         : constant := 16#0000#;
  2222.    CURSOR_HALFTONE                      : constant := 16#0001#;
  2223.    CURSOR_FRAME                         : constant := 16#0002#;
  2224.    CURSOR_FLASH                         : constant := 16#0004#;
  2225.    CURSOR_SETPOS                        : constant := 16#8000#;
  2226.    SDT_DESTROY                          : constant := 16#0001#;
  2227.    SDT_NOBKGND                          : constant := 16#0002#;
  2228.    SDT_TILE                             : constant := 16#0004#;
  2229.    SDT_SCALE                            : constant := 16#0008#;
  2230.    SDT_PATTERN                          : constant := 16#0010#;
  2231.    SDT_CENTER                           : constant := 16#0020#;
  2232.    SDT_RETAIN                           : constant := 16#0040#;
  2233.    SDT_LOADFILE                         : constant := 16#0080#;
  2234.    DID_OK                               : constant := 1;
  2235.    DID_CANCEL                           : constant := 2;
  2236.    DID_ERROR                            : constant := 16#0000_FFFF#;
  2237.    MB_OK                                : constant := 16#0000#;
  2238.    MB_OKCANCEL                          : constant := 16#0001#;
  2239.    MB_RETRYCANCEL                       : constant := 16#0002#;
  2240.    MB_ABORTRETRYIGNORE                  : constant := 16#0003#;
  2241.    MB_YESNO                             : constant := 16#0004#;
  2242.    MB_YESNOCANCEL                       : constant := 16#0005#;
  2243.    MB_CANCEL                            : constant := 16#0006#;
  2244.    MB_ENTER                             : constant := 16#0007#;
  2245.    MB_ENTERCANCEL                       : constant := 16#0008#;
  2246.    MB_NOICON                            : constant := 16#0000#;
  2247.    MB_CUANOTIFICATION                   : constant := 16#0000#;
  2248.    MB_ICONQUESTION                      : constant := 16#0010#;
  2249.    MB_ICONEXCLAMATION                   : constant := 16#0020#;
  2250.    MB_CUAWARNING                        : constant := 16#0020#;
  2251.    MB_ICONASTERISK                      : constant := 16#0030#;
  2252.    MB_ICONHAND                          : constant := 16#0040#;
  2253.    MB_CUACRITICAL                       : constant := 16#0040#;
  2254.    MB_QUERY                             : constant := 16#0010#;
  2255.    MB_WARNING                           : constant := 16#0020#;
  2256.    MB_INFORMATION                       : constant := 16#0030#;
  2257.    MB_CRITICAL                          : constant := 16#0040#;
  2258.    MB_ERROR                             : constant := 16#0040#;
  2259.    MB_DEFBUTTON1                        : constant := 16#0000#;
  2260.    MB_DEFBUTTON2                        : constant := 16#0100#;
  2261.    MB_DEFBUTTON3                        : constant := 16#0200#;
  2262.    MB_APPLMODAL                         : constant := 16#0000#;
  2263.    MB_SYSTEMMODAL                       : constant := 16#1000#;
  2264.    MB_HELP                              : constant := 16#2000#;
  2265.    MB_MOVEABLE                          : constant := 16#4000#;
  2266.    MBID_OK                              : constant := 1;
  2267.    MBID_CANCEL                          : constant := 2;
  2268.    MBID_ABORT                           : constant := 3;
  2269.    MBID_RETRY                           : constant := 4;
  2270.    MBID_IGNORE                          : constant := 5;
  2271.    MBID_YES                             : constant := 6;
  2272.    MBID_NO                              : constant := 7;
  2273.    MBID_HELP                            : constant := 8;
  2274.    MBID_ENTER                           : constant := 9;
  2275.    MBID_ERROR                           : constant := 16#0000_FFFF#;
  2276.    WA_WARNING                           : constant := 8#0000#;
  2277.    WA_NOTE                              : constant := 1;
  2278.    WA_ERROR                             : constant := 2;
  2279.    WA_CDEFALARMS                        : constant := 3;
  2280.    WA_WINDOWOPEN                        : constant := 3;
  2281.    WA_WINDOWCLOSE                       : constant := 4;
  2282.    WA_BEGINDRAG                         : constant := 5;
  2283.    WA_ENDDRAG                           : constant := 6;
  2284.    WA_STARTUP                           : constant := 7;
  2285.    WA_SHUTDOWN                          : constant := 8;
  2286.    WA_SHRED                             : constant := 9;
  2287.    WA_CWINALARMS                        : constant := 13;
  2288.    DLGC_ENTRYFIELD                      : constant := 16#0001#;
  2289.    DLGC_BUTTON                          : constant := 16#0002#;
  2290.    DLGC_RADIOBUTTON                     : constant := 16#0004#;
  2291.    DLGC_STATIC                          : constant := 16#0008#;
  2292.    DLGC_DEFAULT                         : constant := 16#0010#;
  2293.    DLGC_PUSHBUTTON                      : constant := 16#0020#;
  2294.    DLGC_CHECKBOX                        : constant := 16#0040#;
  2295.    DLGC_SCROLLBAR                       : constant := 16#0080#;
  2296.    DLGC_MENU                            : constant := 16#0100#;
  2297.    DLGC_TABONCLICK                      : constant := 16#0200#;
  2298.    DLGC_MLE                             : constant := 16#0400#;
  2299.    EDI_FIRSTTABITEM                     : constant := 8#0000#;
  2300.    EDI_LASTTABITEM                      : constant := 1;
  2301.    EDI_NEXTTABITEM                      : constant := 2;
  2302.    EDI_PREVTABITEM                      : constant := 3;
  2303.    EDI_FIRSTGROUPITEM                   : constant := 4;
  2304.    EDI_LASTGROUPITEM                    : constant := 5;
  2305.    EDI_NEXTGROUPITEM                    : constant := 6;
  2306.    EDI_PREVGROUPITEM                    : constant := 7;
  2307.    CBID_LIST                            : constant := 16#029A#;
  2308.    CBID_EDIT                            : constant := 16#029B#;
  2309.    CBM_SHOWLIST                         : constant := 16#0170#;
  2310.    CBM_HILITE                           : constant := 16#0171#;
  2311.    CBM_ISLISTSHOWING                    : constant := 16#0172#;
  2312.    CBN_EFCHANGE                         : constant := 1;
  2313.    CBN_EFSCROLL                         : constant := 2;
  2314.    CBN_MEMERROR                         : constant := 3;
  2315.    CBN_LBSELECT                         : constant := 4;
  2316.    CBN_LBSCROLL                         : constant := 5;
  2317.    CBN_SHOWLIST                         : constant := 6;
  2318.    CBN_ENTER                            : constant := 7;
  2319.    CBS_SIMPLE                           : constant := 16#0001#;
  2320.    CBS_DROPDOWN                         : constant := 16#0002#;
  2321.    CBS_DROPDOWNLIST                     : constant := 16#0004#;
  2322.    CBS_COMPATIBLE                       : constant := 16#0008#;
  2323.    EM_QUERYCHANGED                      : constant := 16#0140#;
  2324.    EM_QUERYSEL                          : constant := 16#0141#;
  2325.    EM_SETSEL                            : constant := 16#0142#;
  2326.    EM_SETTEXTLIMIT                      : constant := 16#0143#;
  2327.    EM_CUT                               : constant := 16#0144#;
  2328.    EM_COPY                              : constant := 16#0145#;
  2329.    EM_CLEAR                             : constant := 16#0146#;
  2330.    EM_PASTE                             : constant := 16#0147#;
  2331.    EM_QUERYFIRSTCHAR                    : constant := 16#0148#;
  2332.    EM_SETFIRSTCHAR                      : constant := 16#0149#;
  2333.    EM_QUERYREADONLY                     : constant := 16#014A#;
  2334.    EM_SETREADONLY                       : constant := 16#014B#;
  2335.    EM_SETINSERTMODE                     : constant := 16#014C#;
  2336.    EN_SETFOCUS                          : constant := 16#0001#;
  2337.    EN_KILLFOCUS                         : constant := 16#0002#;
  2338.    EN_CHANGE                            : constant := 16#0004#;
  2339.    EN_SCROLL                            : constant := 16#0008#;
  2340.    EN_MEMERROR                          : constant := 16#0010#;
  2341.    EN_OVERFLOW                          : constant := 16#0020#;
  2342.    EN_INSERTMODETOGGLE                  : constant := 16#0040#;
  2343.    ES_LEFT                              : constant := 16#0000#;
  2344.    ES_CENTER                            : constant := 16#0001#;
  2345.    ES_RIGHT                             : constant := 16#0002#;
  2346.    ES_AUTOSCROLL                        : constant := 16#0004#;
  2347.    ES_MARGIN                            : constant := 16#0008#;
  2348.    ES_AUTOTAB                           : constant := 16#0010#;
  2349.    ES_READONLY                          : constant := 16#0020#;
  2350.    ES_COMMAND                           : constant := 16#0040#;
  2351.    ES_UNREADABLE                        : constant := 16#0080#;
  2352.    ES_AUTOSIZE                          : constant := 16#0200#;
  2353.    ES_ANY                               : constant := 16#0000#;
  2354.    ES_SBCS                              : constant := 16#1000#;
  2355.    ES_DBCS                              : constant := 16#2000#;
  2356.    ES_MIXED                             : constant := 16#3000#;
  2357.    TBM_SETHILITE                        : constant := 16#01E3#;
  2358.    TBM_QUERYHILITE                      : constant := 16#01E4#;
  2359.    HK_SENDMSG                           : constant := 8#0000#;
  2360.    HK_INPUT                             : constant := 1;
  2361.    HK_MSGFILTER                         : constant := 2;
  2362.    HK_JOURNALRECORD                     : constant := 3;
  2363.    HK_JOURNALPLAYBACK                   : constant := 4;
  2364.    HK_HELP                              : constant := 5;
  2365.    HK_LOADER                            : constant := 6;
  2366.    HK_REGISTERUSERMSG                   : constant := 7;
  2367.    HK_MSGCONTROL                        : constant := 8;
  2368.    HK_PLIST_ENTRY                       : constant := 9;
  2369.    HK_PLIST_EXIT                        : constant := 10;
  2370.    HK_FINDWORD                          : constant := 11;
  2371.    HK_CODEPAGECHANGED                   : constant := 12;
  2372.    HK_WINDOWDC                          : constant := 15;
  2373.    HK_DESTROYWINDOW                     : constant := 16#0010#;
  2374.    HK_CHECKMSGFILTER                    : constant := 20;
  2375.    HK_MSGINPUT                          : constant := 21;
  2376.    HK_ALARM                             : constant := 22;
  2377.    HK_LOCKUP                            : constant := 23;
  2378.    HK_FLUSHBUF                          : constant := 24;
  2379.    HLPM_FRAME                           : constant := -1;
  2380.    HLPM_WINDOW                          : constant := -2;
  2381.    HLPM_MENU                            : constant := -3;
  2382.     HMQ_CURRENT                         : constant HMQ := 1;
  2383.    LHK_DELETEPROC                       : constant := 1;
  2384.    LHK_DELETELIB                        : constant := 2;
  2385.    LHK_LOADPROC                         : constant := 3;
  2386.    LHK_LOADLIB                          : constant := 4;
  2387.    MCHK_MSGINTEREST                     : constant := 1;
  2388.    MCHK_CLASSMSGINTEREST                : constant := 2;
  2389.    MCHK_SYNCHRONISATION                 : constant := 3;
  2390.    MCHK_MSGMODE                         : constant := 4;
  2391.    MSGF_DIALOGBOX                       : constant := 1;
  2392.    MSGF_MESSAGEBOX                      : constant := 2;
  2393.    MSGF_DDEPOSTMSG                      : constant := 3;
  2394.    MSGF_TRACK                           : constant := 8;
  2395.    PM_MODEL_1X                          : constant := 8#0000#;
  2396.    PM_MODEL_2X                          : constant := 1;
  2397.    RUMHK_DATATYPE                       : constant := 1;
  2398.    RUMHK_MSG                            : constant := 2;
  2399.    FC_NOSETFOCUS                        : constant := 16#0001#;
  2400.    FC_NOBRINGTOTOP                      : constant := 16#0001#;
  2401.    FC_NOLOSEFOCUS                       : constant := 16#0002#;
  2402.    FC_NOBRINGTOPFIRSTWINDOW             : constant := 16#0002#;
  2403.    FC_NOSETACTIVE                       : constant := 16#0004#;
  2404.    FC_NOLOSEACTIVE                      : constant := 16#0008#;
  2405.    FC_NOSETSELECTION                    : constant := 16#0010#;
  2406.    FC_NOLOSESELECTION                   : constant := 16#0020#;
  2407.    QFC_NEXTINCHAIN                      : constant := 16#0001#;
  2408.    QFC_ACTIVE                           : constant := 16#0002#;
  2409.    QFC_FRAME                            : constant := 16#0003#;
  2410.    QFC_SELECTACTIVE                     : constant := 16#0004#;
  2411.    QFC_PARTOFCHAIN                      : constant := 16#0005#;
  2412.    WM_MOUSEFIRST                        : constant := 16#0070#;
  2413.    WM_MOUSEMOVE                         : constant := 16#0070#;
  2414.    WM_BUTTONCLICKFIRST                  : constant := 16#0071#;
  2415.    WM_BUTTON1DOWN                       : constant := 16#0071#;
  2416.    WM_BUTTON1UP                         : constant := 16#0072#;
  2417.    WM_BUTTON1DBLCLK                     : constant := 16#0073#;
  2418.    WM_BUTTON2DOWN                       : constant := 16#0074#;
  2419.    WM_BUTTON2UP                         : constant := 16#0075#;
  2420.    WM_BUTTON2DBLCLK                     : constant := 16#0076#;
  2421.    WM_BUTTON3DOWN                       : constant := 16#0077#;
  2422.    WM_BUTTON3UP                         : constant := 16#0078#;
  2423.    WM_BUTTON3DBLCLK                     : constant := 16#0079#;
  2424.    WM_BUTTONCLICKLAST                   : constant := 16#0079#;
  2425.    WM_MOUSELAST                         : constant := 16#0079#;
  2426.    WM_CHAR                              : constant := 16#007A#;
  2427.    WM_VIOCHAR                           : constant := 16#007B#;
  2428.    WM_JOURNALNOTIFY                     : constant := 16#007C#;
  2429.    WM_MOUSEMAP                          : constant := 16#007D#;
  2430.    WM_VRNDISABLED                       : constant := 16#007E#;
  2431.    WM_VRNENABLED                        : constant := 16#007F#;
  2432.    WM_EXTMOUSEFIRST                     : constant := 16#0410#;
  2433.    WM_CHORD                             : constant := 16#0410#;
  2434.    WM_BUTTON1MOTIONSTART                : constant := 16#0411#;
  2435.    WM_BUTTON1MOTIONEND                  : constant := 16#0412#;
  2436.    WM_BUTTON1CLICK                      : constant := 16#0413#;
  2437.    WM_BUTTON2MOTIONSTART                : constant := 16#0414#;
  2438.    WM_BUTTON2MOTIONEND                  : constant := 16#0415#;
  2439.    WM_BUTTON2CLICK                      : constant := 16#0416#;
  2440.    WM_BUTTON3MOTIONSTART                : constant := 16#0417#;
  2441.    WM_BUTTON3MOTIONEND                  : constant := 16#0418#;
  2442.    WM_BUTTON3CLICK                      : constant := 16#0419#;
  2443.    WM_EXTMOUSELAST                      : constant := 16#0419#;
  2444.    WM_MOUSETRANSLATEFIRST               : constant := 16#0420#;
  2445.    WM_BEGINDRAG                         : constant := 16#0420#;
  2446.    WM_ENDDRAG                           : constant := 16#0421#;
  2447.    WM_SINGLESELECT                      : constant := 16#0422#;
  2448.    WM_OPEN                              : constant := 16#0423#;
  2449.    WM_CONTEXTMENU                       : constant := 16#0424#;
  2450.    WM_CONTEXTHELP                       : constant := 16#0425#;
  2451.    WM_TEXTEDIT                          : constant := 16#0426#;
  2452.    WM_BEGINSELECT                       : constant := 16#0427#;
  2453.    WM_ENDSELECT                         : constant := 16#0428#;
  2454.    WM_MOUSETRANSLATELAST                : constant := 16#0428#;
  2455.    WM_PENFIRST                          : constant := 16#0481#;
  2456.    WM_PENLAST                           : constant := 16#049F#;
  2457.    WM_MMPMFIRST                         : constant := 16#0500#;
  2458.    WM_MMPMLAST                          : constant := 16#05FF#;
  2459.    INP_NONE                             : constant := 16#0000#;
  2460.    INP_KBD                              : constant := 16#0001#;
  2461.    INP_MULT                             : constant := 16#0002#;
  2462.    INP_RES2                             : constant := 16#0004#;
  2463.    INP_SHIFT                            : constant := 16#0008#;
  2464.    INP_CTRL                             : constant := 16#0010#;
  2465.    INP_ALT                              : constant := 16#0020#;
  2466.    INP_RES3                             : constant := 16#0040#;
  2467.    INP_RES4                             : constant := 16#0080#;
  2468.    INP_IGNORE                           : constant := 16#0000_FFFF#;
  2469.    JRN_QUEUESTATUS                      : constant := 16#0001#;
  2470.    JRN_PHYSKEYSTATE                     : constant := 16#0002#;
  2471.    KC_NONE                              : constant := 16#0000#;
  2472.    KC_CHAR                              : constant := 16#0001#;
  2473.    KC_VIRTUALKEY                        : constant := 16#0002#;
  2474.    KC_SCANCODE                          : constant := 16#0004#;
  2475.    KC_SHIFT                             : constant := 16#0008#;
  2476.    KC_CTRL                              : constant := 16#0010#;
  2477.    KC_ALT                               : constant := 16#0020#;
  2478.    KC_KEYUP                             : constant := 16#0040#;
  2479.    KC_PREVDOWN                          : constant := 16#0080#;
  2480.    KC_LONEKEY                           : constant := 16#0100#;
  2481.    KC_DEADKEY                           : constant := 16#0200#;
  2482.    KC_COMPOSITE                         : constant := 16#0400#;
  2483.    KC_INVALIDCOMP                       : constant := 16#0800#;
  2484.    KC_TOGGLE                            : constant := 16#1000#;
  2485.    KC_INVALIDCHAR                       : constant := 16#2000#;
  2486.    KC_DBCSRSRVD1                        : constant := 16#4000#;
  2487.    KC_DBCSRSRVD2                        : constant := 16#8000#;
  2488.    VK_BUTTON1                           : constant := 16#0001#;
  2489.    VK_BUTTON2                           : constant := 16#0002#;
  2490.    VK_BUTTON3                           : constant := 16#0003#;
  2491.    VK_BREAK                             : constant := 16#0004#;
  2492.    VK_BACKSPACE                         : constant := 16#0005#;
  2493.    VK_TAB                               : constant := 16#0006#;
  2494.    VK_BACKTAB                           : constant := 16#0007#;
  2495.    VK_NEWLINE                           : constant := 16#0008#;
  2496.    VK_SHIFT                             : constant := 16#0009#;
  2497.    VK_CTRL                              : constant := 16#000A#;
  2498.    VK_ALT                               : constant := 16#000B#;
  2499.    VK_ALTGRAF                           : constant := 16#000C#;
  2500.    VK_PAUSE                             : constant := 16#000D#;
  2501.    VK_CAPSLOCK                          : constant := 16#000E#;
  2502.    VK_ESC                               : constant := 16#000F#;
  2503.    VK_SPACE                             : constant := 16#0010#;
  2504.    VK_PAGEUP                            : constant := 16#0011#;
  2505.    VK_PAGEDOWN                          : constant := 16#0012#;
  2506.    VK_END                               : constant := 16#0013#;
  2507.    VK_HOME                              : constant := 16#0014#;
  2508.    VK_LEFT                              : constant := 16#0015#;
  2509.    VK_UP                                : constant := 16#0016#;
  2510.    VK_RIGHT                             : constant := 16#0017#;
  2511.    VK_DOWN                              : constant := 16#0018#;
  2512.    VK_PRINTSCRN                         : constant := 16#0019#;
  2513.    VK_INSERT                            : constant := 16#001A#;
  2514.    VK_DELETE                            : constant := 16#001B#;
  2515.    VK_SCRLLOCK                          : constant := 16#001C#;
  2516.    VK_NUMLOCK                           : constant := 16#001D#;
  2517.    VK_ENTER                             : constant := 16#001E#;
  2518.    VK_SYSRQ                             : constant := 16#001F#;
  2519.    VK_F1                                : constant := 16#0020#;
  2520.    VK_F2                                : constant := 16#0021#;
  2521.    VK_F3                                : constant := 16#0022#;
  2522.    VK_F4                                : constant := 16#0023#;
  2523.    VK_F5                                : constant := 16#0024#;
  2524.    VK_F6                                : constant := 16#0025#;
  2525.    VK_F7                                : constant := 16#0026#;
  2526.    VK_F8                                : constant := 16#0027#;
  2527.    VK_F9                                : constant := 16#0028#;
  2528.    VK_F10                               : constant := 16#0029#;
  2529.    VK_F11                               : constant := 16#002A#;
  2530.    VK_F12                               : constant := 16#002B#;
  2531.    VK_F13                               : constant := 16#002C#;
  2532.    VK_F14                               : constant := 16#002D#;
  2533.    VK_F15                               : constant := 16#002E#;
  2534.    VK_F16                               : constant := 16#002F#;
  2535.    VK_F17                               : constant := 16#0030#;
  2536.    VK_F18                               : constant := 16#0031#;
  2537.    VK_F19                               : constant := 16#0032#;
  2538.    VK_F20                               : constant := 16#0033#;
  2539.    VK_F21                               : constant := 16#0034#;
  2540.    VK_F22                               : constant := 16#0035#;
  2541.    VK_F23                               : constant := 16#0036#;
  2542.    VK_F24                               : constant := 16#0037#;
  2543.    VK_ENDDRAG                           : constant := 16#0038#;
  2544.    VK_CLEAR                             : constant := 16#0039#;
  2545.    VK_EREOF                             : constant := 16#003A#;
  2546.    VK_PA1                               : constant := 16#003B#;
  2547.    VK_MENU                              : constant := 16#0029#;
  2548.    VK_DBCSFIRST                         : constant := 16#0080#;
  2549.    VK_DBCSLAST                          : constant := 16#00FF#;
  2550.    VK_USERFIRST                         : constant := 16#0100#;
  2551.    VK_USERLAST                          : constant := 16#01FF#;
  2552.    LS_MULTIPLESEL                       : constant := 16#0001#;
  2553.    LS_OWNERDRAW                         : constant := 16#0002#;
  2554.    LS_NOADJUSTPOS                       : constant := 16#0004#;
  2555.    LS_HORZSCROLL                        : constant := 16#0008#;
  2556.    LS_EXTENDEDSEL                       : constant := 16#0010#;
  2557.    LN_SELECT                            : constant := 1;
  2558.    LN_SETFOCUS                          : constant := 2;
  2559.    LN_KILLFOCUS                         : constant := 3;
  2560.    LN_SCROLL                            : constant := 4;
  2561.    LN_ENTER                             : constant := 5;
  2562.    LM_QUERYITEMCOUNT                    : constant := 16#0160#;
  2563.    LM_INSERTITEM                        : constant := 16#0161#;
  2564.    LM_SETTOPINDEX                       : constant := 16#0162#;
  2565.    LM_DELETEITEM                        : constant := 16#0163#;
  2566.    LM_SELECTITEM                        : constant := 16#0164#;
  2567.    LM_QUERYSELECTION                    : constant := 16#0165#;
  2568.    LM_SETITEMTEXT                       : constant := 16#0166#;
  2569.    LM_QUERYITEMTEXTLENGTH               : constant := 16#0167#;
  2570.    LM_QUERYITEMTEXT                     : constant := 16#0168#;
  2571.    LM_SETITEMHANDLE                     : constant := 16#0169#;
  2572.    LM_QUERYITEMHANDLE                   : constant := 16#016A#;
  2573.    LM_SEARCHSTRING                      : constant := 16#016B#;
  2574.    LM_SETITEMHEIGHT                     : constant := 16#016C#;
  2575.    LM_QUERYTOPINDEX                     : constant := 16#016D#;
  2576.    LM_DELETEALL                         : constant := 16#016E#;
  2577.    LIT_CURSOR                           : constant := -4;
  2578.    LIT_ERROR                            : constant := -3;
  2579.    LIT_MEMERROR                         : constant := -2;
  2580.    LIT_NONE                             : constant := -1;
  2581.    LIT_FIRST                            : constant := -1;
  2582.    LIT_END                              : constant := -1;
  2583.    LIT_SORTASCENDING                    : constant := -2;
  2584.    LIT_SORTDESCENDING                   : constant := -3;
  2585.    LSS_SUBSTRING                        : constant := 16#0001#;
  2586.    LSS_PREFIX                           : constant := 16#0002#;
  2587.    LSS_CASESENSITIVE                    : constant := 16#0004#;
  2588.    MIA_NODISMISS                        : constant := 16#0020#;
  2589.    MIA_FRAMED                           : constant := 16#1000#;
  2590.    MIA_CHECKED                          : constant := 16#2000#;
  2591.    MIA_DISABLED                         : constant := 16#4000#;
  2592.    MIA_HILITED                          : constant := 16#8000#;
  2593.    MIS_TEXT                             : constant := 16#0001#;
  2594.    MIS_BITMAP                           : constant := 16#0002#;
  2595.    MIS_SEPARATOR                        : constant := 16#0004#;
  2596.    MIS_OWNERDRAW                        : constant := 16#0008#;
  2597.    MIS_SUBMENU                          : constant := 16#0010#;
  2598.    MIS_MULTMENU                         : constant := 16#0020#;
  2599.    MIS_SYSCOMMAND                       : constant := 16#0040#;
  2600.    MIS_HELP                             : constant := 16#0080#;
  2601.    MIS_STATIC                           : constant := 16#0100#;
  2602.    MIS_BUTTONSEPARATOR                  : constant := 16#0200#;
  2603.    MIS_BREAK                            : constant := 16#0400#;
  2604.    MIS_BREAKSEPARATOR                   : constant := 16#0800#;
  2605.    MIS_GROUP                            : constant := 16#1000#;
  2606.    MIS_SINGLE                           : constant := 16#2000#;
  2607.    MIT_END                              : constant := -1;
  2608.    MIT_NONE                             : constant := -1;
  2609.    MIT_MEMERROR                         : constant := -1;
  2610.    MIT_ERROR                            : constant := -1;
  2611.    MIT_FIRST                            : constant := -2;
  2612.    MIT_LAST                             : constant := -3;
  2613.    MM_INSERTITEM                        : constant := 16#0180#;
  2614.    MM_DELETEITEM                        : constant := 16#0181#;
  2615.    MM_QUERYITEM                         : constant := 16#0182#;
  2616.    MM_SETITEM                           : constant := 16#0183#;
  2617.    MM_QUERYITEMCOUNT                    : constant := 16#0184#;
  2618.    MM_STARTMENUMODE                     : constant := 16#0185#;
  2619.    MM_ENDMENUMODE                       : constant := 16#0186#;
  2620.    MM_REMOVEITEM                        : constant := 16#0188#;
  2621.    MM_SELECTITEM                        : constant := 16#0189#;
  2622.    MM_QUERYSELITEMID                    : constant := 16#018A#;
  2623.    MM_QUERYITEMTEXT                     : constant := 16#018B#;
  2624.    MM_QUERYITEMTEXTLENGTH               : constant := 16#018C#;
  2625.    MM_SETITEMHANDLE                     : constant := 16#018D#;
  2626.    MM_SETITEMTEXT                       : constant := 16#018E#;
  2627.    MM_ITEMPOSITIONFROMID                : constant := 16#018F#;
  2628.    MM_ITEMIDFROMPOSITION                : constant := 16#0190#;
  2629.    MM_QUERYITEMATTR                     : constant := 16#0191#;
  2630.    MM_SETITEMATTR                       : constant := 16#0192#;
  2631.    MM_ISITEMVALID                       : constant := 16#0193#;
  2632.    MM_QUERYITEMRECT                     : constant := 16#0194#;
  2633.    MM_QUERYDEFAULTITEMID                : constant := 16#0431#;
  2634.    MM_SETDEFAULTITEMID                  : constant := 16#0432#;
  2635.    MS_ACTIONBAR                         : constant := 16#0001#;
  2636.    MS_TITLEBUTTON                       : constant := 16#0002#;
  2637.    MS_VERTICALFLIP                      : constant := 16#0004#;
  2638.    MS_CONDITIONALCASCADE                : constant := 16#0040#;
  2639.    PU_POSITIONONITEM                    : constant := 16#0001#;
  2640.    PU_HRAIN                             : constant := 16#0002#;
  2641.    PU_VRAIN                             : constant := 16#0004#;
  2642.    PU_NONE                              : constant := 16#0000#;
  2643.    PU_MOUSEBUTTON1DOWN                  : constant := 16#0008#;
  2644.    PU_MOUSEBUTTON2DOWN                  : constant := 16#0010#;
  2645.    PU_MOUSEBUTTON3DOWN                  : constant := 16#0018#;
  2646.    PU_SELECTITEM                        : constant := 16#0020#;
  2647.    PU_MOUSEBUTTON1                      : constant := 16#0040#;
  2648.    PU_MOUSEBUTTON2                      : constant := 16#0080#;
  2649.    PU_MOUSEBUTTON3                      : constant := 16#0100#;
  2650.    PU_KEYBOARD                          : constant := 16#0200#;
  2651.    BMSG_POST                            : constant := 16#0000#;
  2652.    BMSG_SEND                            : constant := 16#0001#;
  2653.    BMSG_POSTQUEUE                       : constant := 16#0002#;
  2654.    BMSG_DESCENDANTS                     : constant := 16#0004#;
  2655.    BMSG_FRAMEONLY                       : constant := 16#0008#;
  2656.    CVR_ALIGNLEFT                        : constant := 16#0001#;
  2657.    CVR_ALIGNBOTTOM                      : constant := 16#0002#;
  2658.    CVR_ALIGNRIGHT                       : constant := 16#0004#;
  2659.    CVR_ALIGNTOP                         : constant := 16#0008#;
  2660.    CVR_REDRAW                           : constant := 16#0010#;
  2661.    HT_NORMAL                            : constant := 8#0000#;
  2662.    HT_TRANSPARENT                       : constant := -1;
  2663.    HT_DISCARD                           : constant := -2;
  2664.    HT_ERROR                             : constant := -3;
  2665.    QS_KEY                               : constant := 16#0001#;
  2666.    QS_MOUSEBUTTON                       : constant := 16#0002#;
  2667.    QS_MOUSEMOVE                         : constant := 16#0004#;
  2668.    QS_MOUSE                             : constant := 16#0006#;
  2669.    QS_TIMER                             : constant := 16#0008#;
  2670.    QS_PAINT                             : constant := 16#0010#;
  2671.    QS_POSTMSG                           : constant := 16#0020#;
  2672.    QS_SEM1                              : constant := 16#0040#;
  2673.    QS_SEM2                              : constant := 16#0080#;
  2674.    QS_SEM3                              : constant := 16#0100#;
  2675.    QS_SEM4                              : constant := 16#0200#;
  2676.    QS_SENDMSG                           : constant := 16#0400#;
  2677.    QS_MSGINPUT                          : constant := 16#0800#;
  2678.    SMIM_ALL                             : constant := 16#0EFF#;
  2679.    SMI_NOINTEREST                       : constant := 16#0001#;
  2680.    SMI_INTEREST                         : constant := 16#0002#;
  2681.    SMI_RESET                            : constant := 16#0004#;
  2682.    SMI_AUTODISPATCH                     : constant := 16#0008#;
  2683.    WPM_TEXT                             : constant := 16#0001#;
  2684.    WPM_CTLDATA                          : constant := 16#0002#;
  2685.    WPM_PRESPARAMS                       : constant := 16#0004#;
  2686.    WPM_CCHTEXT                          : constant := 16#0008#;
  2687.    WPM_CBCTLDATA                        : constant := 16#0010#;
  2688.    WPM_CBPRESPARAMS                     : constant := 16#0020#;
  2689.    DP_NORMAL                            : constant := 16#0000#;
  2690.    DP_HALFTONED                         : constant := 16#0001#;
  2691.    DP_INVERTED                          : constant := 16#0002#;
  2692.    SBMP_OLD_SYSMENU                     : constant := 1;
  2693.    SBMP_OLD_SBUPARROW                   : constant := 2;
  2694.    SBMP_OLD_SBDNARROW                   : constant := 3;
  2695.    SBMP_OLD_SBRGARROW                   : constant := 4;
  2696.    SBMP_OLD_SBLFARROW                   : constant := 5;
  2697.    SBMP_MENUCHECK                       : constant := 6;
  2698.    SBMP_OLD_CHECKBOXES                  : constant := 7;
  2699.    SBMP_BTNCORNERS                      : constant := 8;
  2700.    SBMP_OLD_MINBUTTON                   : constant := 9;
  2701.    SBMP_OLD_MAXBUTTON                   : constant := 10;
  2702.    SBMP_OLD_RESTOREBUTTON               : constant := 11;
  2703.    SBMP_OLD_CHILDSYSMENU                : constant := 12;
  2704.    SBMP_DRIVE                           : constant := 15;
  2705.    SBMP_FILE                            : constant := 16#0010#;
  2706.    SBMP_FOLDER                          : constant := 17;
  2707.    SBMP_TREEPLUS                        : constant := 18;
  2708.    SBMP_TREEMINUS                       : constant := 19;
  2709.    SBMP_PROGRAM                         : constant := 22;
  2710.    SBMP_MENUATTACHED                    : constant := 23;
  2711.    SBMP_SIZEBOX                         : constant := 24;
  2712.    SBMP_SYSMENU                         : constant := 25;
  2713.    SBMP_MINBUTTON                       : constant := 26;
  2714.    SBMP_MAXBUTTON                       : constant := 27;
  2715.    SBMP_RESTOREBUTTON                   : constant := 28;
  2716.    SBMP_CHILDSYSMENU                    : constant := 29;
  2717.    SBMP_SYSMENUDEP                      : constant := 30;
  2718.    SBMP_MINBUTTONDEP                    : constant := 31;
  2719.    SBMP_MAXBUTTONDEP                    : constant := 16#0020#;
  2720.    SBMP_RESTOREBUTTONDEP                : constant := 33;
  2721.    SBMP_CHILDSYSMENUDEP                 : constant := 34;
  2722.    SBMP_SBUPARROW                       : constant := 35;
  2723.    SBMP_SBDNARROW                       : constant := 36;
  2724.    SBMP_SBLFARROW                       : constant := 37;
  2725.    SBMP_SBRGARROW                       : constant := 38;
  2726.    SBMP_SBUPARROWDEP                    : constant := 39;
  2727.    SBMP_SBDNARROWDEP                    : constant := 40;
  2728.    SBMP_SBLFARROWDEP                    : constant := 41;
  2729.    SBMP_SBRGARROWDEP                    : constant := 42;
  2730.    SBMP_SBUPARROWDIS                    : constant := 43;
  2731.    SBMP_SBDNARROWDIS                    : constant := 44;
  2732.    SBMP_SBLFARROWDIS                    : constant := 45;
  2733.    SBMP_SBRGARROWDIS                    : constant := 46;
  2734.    SBMP_COMBODOWN                       : constant := 47;
  2735.    SBMP_CHECKBOXES                      : constant := 48;
  2736.    SPTR_ARROW                           : constant := 1;
  2737.    SPTR_TEXT                            : constant := 2;
  2738.    SPTR_WAIT                            : constant := 3;
  2739.    SPTR_SIZE                            : constant := 4;
  2740.    SPTR_MOVE                            : constant := 5;
  2741.    SPTR_SIZENWSE                        : constant := 6;
  2742.    SPTR_SIZENESW                        : constant := 7;
  2743.    SPTR_SIZEWE                          : constant := 8;
  2744.    SPTR_SIZENS                          : constant := 9;
  2745.    SPTR_APPICON                         : constant := 10;
  2746.    SPTR_ICONINFORMATION                 : constant := 11;
  2747.    SPTR_ICONQUESTION                    : constant := 12;
  2748.    SPTR_ICONERROR                       : constant := 13;
  2749.    SPTR_ICONWARNING                     : constant := 14;
  2750.    SPTR_ILLEGAL                         : constant := 18;
  2751.    SPTR_FILE                            : constant := 19;
  2752.    SPTR_FOLDER                          : constant := 20;
  2753.    SPTR_MULTFILE                        : constant := 21;
  2754.    SPTR_PROGRAM                         : constant := 22;
  2755.    SPTR_DISPLAY_PTRS                    : constant := 22;
  2756.    SPTR_PENFIRST                        : constant := 23;
  2757.    SPTR_PENLAST                         : constant := 39;
  2758.    SPTR_CPTR                            : constant := 39;
  2759.    SPTR_HANDICON                        : constant := 13;
  2760.    SPTR_QUESICON                        : constant := 12;
  2761.    SPTR_BANGICON                        : constant := 14;
  2762.    SPTR_NOTEICON                        : constant := 11;
  2763.    SB_LINEUP                            : constant := 1;
  2764.    SB_LINEDOWN                          : constant := 2;
  2765.    SB_LINELEFT                          : constant := 1;
  2766.    SB_LINERIGHT                         : constant := 2;
  2767.    SB_PAGEUP                            : constant := 3;
  2768.    SB_PAGEDOWN                          : constant := 4;
  2769.    SB_PAGELEFT                          : constant := 3;
  2770.    SB_PAGERIGHT                         : constant := 4;
  2771.    SB_SLIDERTRACK                       : constant := 5;
  2772.    SB_SLIDERPOSITION                    : constant := 6;
  2773.    SB_ENDSCROLL                         : constant := 7;
  2774.    SBM_SETSCROLLBAR                     : constant := 16#01A0#;
  2775.    SBM_SETPOS                           : constant := 16#01A1#;
  2776.    SBM_QUERYPOS                         : constant := 16#01A2#;
  2777.    SBM_QUERYRANGE                       : constant := 16#01A3#;
  2778.    SBM_SETTHUMBSIZE                     : constant := 16#01A6#;
  2779.    SBS_HORZ                             : constant := 8#0000#;
  2780.    SBS_VERT                             : constant := 1;
  2781.    SBS_THUMBSIZE                        : constant := 2;
  2782.    SBS_AUTOTRACK                        : constant := 4;
  2783.    SBS_AUTOSIZE                         : constant := 16#2000#;
  2784.    SM_SETHANDLE                         : constant := 16#0100#;
  2785.    SM_QUERYHANDLE                       : constant := 16#0101#;
  2786.    SS_TEXT                              : constant := 16#0001#;
  2787.    SS_GROUPBOX                          : constant := 16#0002#;
  2788.    SS_ICON                              : constant := 16#0003#;
  2789.    SS_BITMAP                            : constant := 16#0004#;
  2790.    SS_FGNDRECT                          : constant := 16#0005#;
  2791.    SS_HALFTONERECT                      : constant := 16#0006#;
  2792.    SS_BKGNDRECT                         : constant := 16#0007#;
  2793.    SS_FGNDFRAME                         : constant := 16#0008#;
  2794.    SS_HALFTONEFRAME                     : constant := 16#0009#;
  2795.    SS_BKGNDFRAME                        : constant := 16#000A#;
  2796.    SS_SYSICON                           : constant := 16#000B#;
  2797.    SS_AUTOSIZE                          : constant := 16#0040#;
  2798.    PP_FOREGROUNDCOLOR                   : constant := 1;
  2799.    PP_FOREGROUNDCOLORINDEX              : constant := 2;
  2800.    PP_BACKGROUNDCOLOR                   : constant := 3;
  2801.    PP_BACKGROUNDCOLORINDEX              : constant := 4;
  2802.    PP_HILITEFOREGROUNDCOLOR             : constant := 5;
  2803.    PP_HILITEFOREGROUNDCOLORINDEX        : constant := 6;
  2804.    PP_HILITEBACKGROUNDCOLOR             : constant := 7;
  2805.    PP_HILITEBACKGROUNDCOLORINDEX        : constant := 8;
  2806.    PP_DISABLEDFOREGROUNDCOLOR           : constant := 9;
  2807.    PP_DISABLEDFOREGROUNDCOLORINDEX      : constant := 10;
  2808.    PP_DISABLEDBACKGROUNDCOLOR           : constant := 11;
  2809.    PP_DISABLEDBACKGROUNDCOLORINDEX      : constant := 12;
  2810.    PP_BORDERCOLOR                       : constant := 13;
  2811.    PP_BORDERCOLORINDEX                  : constant := 14;
  2812.    PP_FONTNAMESIZE                      : constant := 15;
  2813.    PP_FONTHANDLE                        : constant := 16#0010#;
  2814.    PP_RESERVED                          : constant := 17;
  2815.    PP_ACTIVECOLOR                       : constant := 18;
  2816.    PP_ACTIVECOLORINDEX                  : constant := 19;
  2817.    PP_INACTIVECOLOR                     : constant := 20;
  2818.    PP_INACTIVECOLORINDEX                : constant := 21;
  2819.    PP_ACTIVETEXTFGNDCOLOR               : constant := 22;
  2820.    PP_ACTIVETEXTFGNDCOLORINDEX          : constant := 23;
  2821.    PP_ACTIVETEXTBGNDCOLOR               : constant := 24;
  2822.    PP_ACTIVETEXTBGNDCOLORINDEX          : constant := 25;
  2823.    PP_INACTIVETEXTFGNDCOLOR             : constant := 26;
  2824.    PP_INACTIVETEXTFGNDCOLORINDEX        : constant := 27;
  2825.    PP_INACTIVETEXTBGNDCOLOR             : constant := 28;
  2826.    PP_INACTIVETEXTBGNDCOLORINDEX        : constant := 29;
  2827.    PP_SHADOW                            : constant := 30;
  2828.    PP_MENUFOREGROUNDCOLOR               : constant := 31;
  2829.    PP_MENUFOREGROUNDCOLORINDEX          : constant := 16#0020#;
  2830.    PP_MENUBACKGROUNDCOLOR               : constant := 33;
  2831.    PP_MENUBACKGROUNDCOLORINDEX          : constant := 34;
  2832.    PP_MENUHILITEFGNDCOLOR               : constant := 35;
  2833.    PP_MENUHILITEFGNDCOLORINDEX          : constant := 36;
  2834.    PP_MENUHILITEBGNDCOLOR               : constant := 37;
  2835.    PP_MENUHILITEBGNDCOLORINDEX          : constant := 38;
  2836.    PP_MENUDISABLEDFGNDCOLOR             : constant := 39;
  2837.    PP_MENUDISABLEDFGNDCOLORINDEX        : constant := 40;
  2838.    PP_MENUDISABLEDBGNDCOLOR             : constant := 41;
  2839.    PP_MENUDISABLEDBGNDCOLORINDEX        : constant := 42;
  2840.    PP_USER                              : constant := 16#8000#;
  2841.    QPF_NOINHERIT                        : constant := 16#0001#;
  2842.    QPF_ID1COLORINDEX                    : constant := 16#0002#;
  2843.    QPF_ID2COLORINDEX                    : constant := 16#0004#;
  2844.    QPF_PURERGBCOLOR                     : constant := 16#0008#;
  2845.    QPF_VALIDFLAGS                       : constant := 16#000F#;
  2846.    SV_SWAPBUTTON                        : constant := 8#0000#;
  2847.    SV_DBLCLKTIME                        : constant := 1;
  2848.    SV_CXDBLCLK                          : constant := 2;
  2849.    SV_CYDBLCLK                          : constant := 3;
  2850.    SV_CXSIZEBORDER                      : constant := 4;
  2851.    SV_CYSIZEBORDER                      : constant := 5;
  2852.    SV_ALARM                             : constant := 6;
  2853.    SV_CURSORRATE                        : constant := 9;
  2854.    SV_FIRSTSCROLLRATE                   : constant := 10;
  2855.    SV_SCROLLRATE                        : constant := 11;
  2856.    SV_NUMBEREDLISTS                     : constant := 12;
  2857.    SV_WARNINGFREQ                       : constant := 13;
  2858.    SV_NOTEFREQ                          : constant := 14;
  2859.    SV_ERRORFREQ                         : constant := 15;
  2860.    SV_WARNINGDURATION                   : constant := 16#0010#;
  2861.    SV_NOTEDURATION                      : constant := 17;
  2862.    SV_ERRORDURATION                     : constant := 18;
  2863.    SV_CXSCREEN                          : constant := 20;
  2864.    SV_CYSCREEN                          : constant := 21;
  2865.    SV_CXVSCROLL                         : constant := 22;
  2866.    SV_CYHSCROLL                         : constant := 23;
  2867.    SV_CYVSCROLLARROW                    : constant := 24;
  2868.    SV_CXHSCROLLARROW                    : constant := 25;
  2869.    SV_CXBORDER                          : constant := 26;
  2870.    SV_CYBORDER                          : constant := 27;
  2871.    SV_CXDLGFRAME                        : constant := 28;
  2872.    SV_CYDLGFRAME                        : constant := 29;
  2873.    SV_CYTITLEBAR                        : constant := 30;
  2874.    SV_CYVSLIDER                         : constant := 31;
  2875.    SV_CXHSLIDER                         : constant := 16#0020#;
  2876.    SV_CXMINMAXBUTTON                    : constant := 33;
  2877.    SV_CYMINMAXBUTTON                    : constant := 34;
  2878.    SV_CYMENU                            : constant := 35;
  2879.    SV_CXFULLSCREEN                      : constant := 36;
  2880.    SV_CYFULLSCREEN                      : constant := 37;
  2881.    SV_CXICON                            : constant := 38;
  2882.    SV_CYICON                            : constant := 39;
  2883.    SV_CXPOINTER                         : constant := 40;
  2884.    SV_CYPOINTER                         : constant := 41;
  2885.    SV_DEBUG                             : constant := 42;
  2886.    SV_CMOUSEBUTTONS                     : constant := 43;
  2887.    SV_CPOINTERBUTTONS                   : constant := 43;
  2888.    SV_POINTERLEVEL                      : constant := 44;
  2889.    SV_CURSORLEVEL                       : constant := 45;
  2890.    SV_TRACKRECTLEVEL                    : constant := 46;
  2891.    SV_CTIMERS                           : constant := 47;
  2892.    SV_MOUSEPRESENT                      : constant := 48;
  2893.    SV_CXBYTEALIGN                       : constant := 49;
  2894.    SV_CXALIGN                           : constant := 49;
  2895.    SV_CYBYTEALIGN                       : constant := 50;
  2896.    SV_CYALIGN                           : constant := 50;
  2897.    SV_EXTRAKEYBEEP                      : constant := 57;
  2898.    SV_SETLIGHTS                         : constant := 58;
  2899.    SV_INSERTMODE                        : constant := 59;
  2900.    SV_MENUROLLDOWNDELAY                 : constant := 16#0040#;
  2901.    SV_MENUROLLUPDELAY                   : constant := 65;
  2902.    SV_ALTMNEMONIC                       : constant := 66;
  2903.    SV_TASKLISTMOUSEACCESS               : constant := 67;
  2904.    SV_CXICONTEXTWIDTH                   : constant := 68;
  2905.    SV_CICONTEXTLINES                    : constant := 69;
  2906.    SV_CHORDTIME                         : constant := 70;
  2907.    SV_CXCHORD                           : constant := 71;
  2908.    SV_CYCHORD                           : constant := 72;
  2909.    SV_CXMOTIONSTART                     : constant := 73;
  2910.    SV_CYMOTIONSTART                     : constant := 74;
  2911.    SV_BEGINDRAG                         : constant := 75;
  2912.    SV_ENDDRAG                           : constant := 76;
  2913.    SV_SINGLESELECT                      : constant := 77;
  2914.    SV_OPEN                              : constant := 78;
  2915.    SV_CONTEXTMENU                       : constant := 79;
  2916.    SV_CONTEXTHELP                       : constant := 80;
  2917.    SV_TEXTEDIT                          : constant := 81;
  2918.    SV_BEGINSELECT                       : constant := 82;
  2919.    SV_ENDSELECT                         : constant := 83;
  2920.    SV_BEGINDRAGKB                       : constant := 84;
  2921.    SV_ENDDRAGKB                         : constant := 85;
  2922.    SV_SELECTKB                          : constant := 86;
  2923.    SV_OPENKB                            : constant := 87;
  2924.    SV_CONTEXTMENUKB                     : constant := 88;
  2925.    SV_CONTEXTHELPKB                     : constant := 89;
  2926.    SV_TEXTEDITKB                        : constant := 90;
  2927.    SV_BEGINSELECTKB                     : constant := 91;
  2928.    SV_ENDSELECTKB                       : constant := 92;
  2929.    SV_ANIMATION                         : constant := 93;
  2930.    SV_ANIMATIONSPEED                    : constant := 94;
  2931.    SV_MONOICONS                         : constant := 95;
  2932.    SV_KBDALTERED                        : constant := 96;
  2933.    SV_PRINTSCREEN                       : constant := 97;
  2934.    SV_CSYSVALUES                        : constant := 98;
  2935.    SYSCLR_SHADOWHILITEBGND              : constant := -50;
  2936.    SYSCLR_SHADOWHILITEFGND              : constant := -49;
  2937.    SYSCLR_SHADOWTEXT                    : constant := -48;
  2938.    SYSCLR_ENTRYFIELD                    : constant := -47;
  2939.    SYSCLR_MENUDISABLEDTEXT              : constant := -46;
  2940.    SYSCLR_MENUHILITE                    : constant := -45;
  2941.    SYSCLR_MENUHILITEBGND                : constant := -44;
  2942.    SYSCLR_PAGEBACKGROUND                : constant := -43;
  2943.    SYSCLR_FIELDBACKGROUND               : constant := -42;
  2944.    SYSCLR_BUTTONLIGHT                   : constant := -41;
  2945.    SYSCLR_BUTTONMIDDLE                  : constant := -40;
  2946.    SYSCLR_BUTTONDARK                    : constant := -39;
  2947.    SYSCLR_BUTTONDEFAULT                 : constant := -38;
  2948.    SYSCLR_TITLEBOTTOM                   : constant := -37;
  2949.    SYSCLR_SHADOW                        : constant := -36;
  2950.    SYSCLR_ICONTEXT                      : constant := -35;
  2951.    SYSCLR_DIALOGBACKGROUND              : constant := -34;
  2952.    SYSCLR_HILITEFOREGROUND              : constant := -33;
  2953.    SYSCLR_HILITEBACKGROUND              : constant := -32;
  2954.    SYSCLR_INACTIVETITLETEXTBGND         : constant := -31;
  2955.    SYSCLR_ACTIVETITLETEXTBGND           : constant := -30;
  2956.    SYSCLR_INACTIVETITLETEXT             : constant := -29;
  2957.    SYSCLR_ACTIVETITLETEXT               : constant := -28;
  2958.    SYSCLR_OUTPUTTEXT                    : constant := -27;
  2959.    SYSCLR_WINDOWSTATICTEXT              : constant := -26;
  2960.    SYSCLR_SCROLLBAR                     : constant := -25;
  2961.    SYSCLR_BACKGROUND                    : constant := -24;
  2962.    SYSCLR_ACTIVETITLE                   : constant := -23;
  2963.    SYSCLR_INACTIVETITLE                 : constant := -22;
  2964.    SYSCLR_MENU                          : constant := -21;
  2965.    SYSCLR_WINDOW                        : constant := -20;
  2966.    SYSCLR_WINDOWFRAME                   : constant := -19;
  2967.    SYSCLR_MENUTEXT                      : constant := -18;
  2968.    SYSCLR_WINDOWTEXT                    : constant := -17;
  2969.    SYSCLR_TITLETEXT                     : constant := -16;
  2970.    SYSCLR_ACTIVEBORDER                  : constant := -15;
  2971.    SYSCLR_INACTIVEBORDER                : constant := -14;
  2972.    SYSCLR_APPWORKSPACE                  : constant := -13;
  2973.    SYSCLR_HELPBACKGROUND                : constant := -12;
  2974.    SYSCLR_HELPTEXT                      : constant := -11;
  2975.    SYSCLR_HELPHILITE                    : constant := -10;
  2976.    SYSCLR_CSYSCOLORS                    : constant := 41;
  2977.    TID_CURSOR                           : constant := 16#0000_FFFF#;
  2978.    TID_SCROLL                           : constant := 16#0000_FFFE#;
  2979.    TID_FLASHWINDOW                      : constant := 16#0000_FFFD#;
  2980.    TID_USERMAX                          : constant := 16#7FFF#;
  2981.    TF_LEFT                              : constant := 16#0001#;
  2982.    TF_TOP                               : constant := 16#0002#;
  2983.    TF_RIGHT                             : constant := 16#0004#;
  2984.    TF_BOTTOM                            : constant := 16#0008#;
  2985.    TF_SETPOINTERPOS                     : constant := 16#0010#;
  2986.    TF_GRID                              : constant := 16#0020#;
  2987.    TF_STANDARD                          : constant := 16#0040#;
  2988.    TF_ALLINBOUNDARY                     : constant := 16#0080#;
  2989.    TF_VALIDATETRACKRECT                 : constant := 16#0100#;
  2990.    TF_PARTINBOUNDARY                    : constant := 16#0200#;
  2991.    TF_MOVE                              : constant := 16#000F#;
  2992.    MLS_WORDWRAP                         : constant := 16#0001#;
  2993.    MLS_BORDER                           : constant := 16#0002#;
  2994.    MLS_VSCROLL                          : constant := 16#0004#;
  2995.    MLS_HSCROLL                          : constant := 16#0008#;
  2996.    MLS_READONLY                         : constant := 16#0010#;
  2997.    MLS_IGNORETAB                        : constant := 16#0020#;
  2998.    MLS_DISABLEUNDO                      : constant := 16#0040#;
  2999.    MLFFMTRECT_FORMATRECT                : constant := 16#0007#;
  3000.    MLFFMTRECT_LIMITHORZ                 : constant := 16#0001#;
  3001.    MLFFMTRECT_LIMITVERT                 : constant := 16#0002#;
  3002.    MLFFMTRECT_MATCHWINDOW               : constant := 16#0004#;
  3003.    MLFIE_CFTEXT                         : constant := 8#0000#;
  3004.    MLFIE_NOTRANS                        : constant := 1;
  3005.    MLFIE_WINFMT                         : constant := 2;
  3006.    MLFIE_RTF                            : constant := 3;
  3007.    MLFEFR_RESIZE                        : constant := 16#0001#;
  3008.    MLFEFR_TABSTOP                       : constant := 16#0002#;
  3009.    MLFEFR_FONT                          : constant := 16#0004#;
  3010.    MLFEFR_TEXT                          : constant := 16#0008#;
  3011.    MLFEFR_WORDWRAP                      : constant := 16#0010#;
  3012.    MLFETL_TEXTBYTES                     : constant := 16#0020#;
  3013.    MLFMARGIN_LEFT                       : constant := 16#0001#;
  3014.    MLFMARGIN_BOTTOM                     : constant := 16#0002#;
  3015.    MLFMARGIN_RIGHT                      : constant := 16#0003#;
  3016.    MLFMARGIN_TOP                        : constant := 16#0004#;
  3017.    MLFQS_MINMAXSEL                      : constant := 8#0000#;
  3018.    MLFQS_MINSEL                         : constant := 1;
  3019.    MLFQS_MAXSEL                         : constant := 2;
  3020.    MLFQS_ANCHORSEL                      : constant := 3;
  3021.    MLFQS_CURSORSEL                      : constant := 4;
  3022.    MLFCLPBD_TOOMUCHTEXT                 : constant := 16#0001#;
  3023.    MLFCLPBD_ERROR                       : constant := 16#0002#;
  3024.    MLFSEARCH_CASESENSITIVE              : constant := 16#0001#;
  3025.    MLFSEARCH_SELECTMATCH                : constant := 16#0002#;
  3026.    MLFSEARCH_CHANGEALL                  : constant := 16#0004#;
  3027.    MLM_SETTEXTLIMIT                     : constant := 16#01B0#;
  3028.    MLM_QUERYTEXTLIMIT                   : constant := 16#01B1#;
  3029.    MLM_SETFORMATRECT                    : constant := 16#01B2#;
  3030.    MLM_QUERYFORMATRECT                  : constant := 16#01B3#;
  3031.    MLM_SETWRAP                          : constant := 16#01B4#;
  3032.    MLM_QUERYWRAP                        : constant := 16#01B5#;
  3033.    MLM_SETTABSTOP                       : constant := 16#01B6#;
  3034.    MLM_QUERYTABSTOP                     : constant := 16#01B7#;
  3035.    MLM_SETREADONLY                      : constant := 16#01B8#;
  3036.    MLM_QUERYREADONLY                    : constant := 16#01B9#;
  3037.    MLM_QUERYCHANGED                     : constant := 16#01BA#;
  3038.    MLM_SETCHANGED                       : constant := 16#01BB#;
  3039.    MLM_QUERYLINECOUNT                   : constant := 16#01BC#;
  3040.    MLM_CHARFROMLINE                     : constant := 16#01BD#;
  3041.    MLM_LINEFROMCHAR                     : constant := 16#01BE#;
  3042.    MLM_QUERYLINELENGTH                  : constant := 16#01BF#;
  3043.    MLM_QUERYTEXTLENGTH                  : constant := 16#01C0#;
  3044.    MLM_FORMAT                           : constant := 16#01C1#;
  3045.    MLM_SETIMPORTEXPORT                  : constant := 16#01C2#;
  3046.    MLM_IMPORT                           : constant := 16#01C3#;
  3047.    MLM_EXPORT                           : constant := 16#01C4#;
  3048.    MLM_DELETE                           : constant := 16#01C6#;
  3049.    MLM_QUERYFORMATLINELENGTH            : constant := 16#01C7#;
  3050.    MLM_QUERYFORMATTEXTLENGTH            : constant := 16#01C8#;
  3051.    MLM_INSERT                           : constant := 16#01C9#;
  3052.    MLM_SETSEL                           : constant := 16#01CA#;
  3053.    MLM_QUERYSEL                         : constant := 16#01CB#;
  3054.    MLM_QUERYSELTEXT                     : constant := 16#01CC#;
  3055.    MLM_QUERYUNDO                        : constant := 16#01CD#;
  3056.    MLM_UNDO                             : constant := 16#01CE#;
  3057.    MLM_RESETUNDO                        : constant := 16#01CF#;
  3058.    MLM_QUERYFONT                        : constant := 16#01D0#;
  3059.    MLM_SETFONT                          : constant := 16#01D1#;
  3060.    MLM_SETTEXTCOLOR                     : constant := 16#01D2#;
  3061.    MLM_QUERYTEXTCOLOR                   : constant := 16#01D3#;
  3062.    MLM_SETBACKCOLOR                     : constant := 16#01D4#;
  3063.    MLM_QUERYBACKCOLOR                   : constant := 16#01D5#;
  3064.    MLM_QUERYFIRSTCHAR                   : constant := 16#01D6#;
  3065.    MLM_SETFIRSTCHAR                     : constant := 16#01D7#;
  3066.    MLM_CUT                              : constant := 16#01D8#;
  3067.    MLM_COPY                             : constant := 16#01D9#;
  3068.    MLM_PASTE                            : constant := 16#01DA#;
  3069.    MLM_CLEAR                            : constant := 16#01DB#;
  3070.    MLM_ENABLEREFRESH                    : constant := 16#01DC#;
  3071.    MLM_DISABLEREFRESH                   : constant := 16#01DD#;
  3072.    MLM_SEARCH                           : constant := 16#01DE#;
  3073.    MLM_QUERYIMPORTEXPORT                : constant := 16#01DF#;
  3074.    MLN_OVERFLOW                         : constant := 16#0001#;
  3075.    MLN_PIXHORZOVERFLOW                  : constant := 16#0002#;
  3076.    MLN_PIXVERTOVERFLOW                  : constant := 16#0003#;
  3077.    MLN_TEXTOVERFLOW                     : constant := 16#0004#;
  3078.    MLN_VSCROLL                          : constant := 16#0005#;
  3079.    MLN_HSCROLL                          : constant := 16#0006#;
  3080.    MLN_CHANGE                           : constant := 16#0007#;
  3081.    MLN_SETFOCUS                         : constant := 16#0008#;
  3082.    MLN_KILLFOCUS                        : constant := 16#0009#;
  3083.    MLN_MARGIN                           : constant := 16#000A#;
  3084.    MLN_SEARCHPAUSE                      : constant := 16#000B#;
  3085.    MLN_MEMERROR                         : constant := 16#000C#;
  3086.    MLN_UNDOOVERFLOW                     : constant := 16#000D#;
  3087.    MLN_CLPBDFAIL                        : constant := 16#000F#;
  3088.    GPI_ERROR                            : constant := 8#0000#;
  3089.    GPI_OK                               : constant := 1;
  3090.    GPI_ALTERROR                         : constant := -1;
  3091.    GPI_HITS                             : constant := 2;
  3092.    BMB_ERROR                            : constant := -1;
  3093.    CLR_ERROR                            : constant := -255;
  3094.    CLR_NOINDEX                          : constant := -254;
  3095.    CLR_FALSE                            : constant := -5;
  3096.    CLR_TRUE                             : constant := -4;
  3097.    CLR_DEFAULT                          : constant := -3;
  3098.    CLR_WHITE                            : constant := -2;
  3099.    CLR_BLACK                            : constant := -1;
  3100.    CLR_BACKGROUND                       : constant := 8#0000#;
  3101.    CLR_BLUE                             : constant := 1;
  3102.    CLR_RED                              : constant := 2;
  3103.    CLR_PINK                             : constant := 3;
  3104.    CLR_GREEN                            : constant := 4;
  3105.    CLR_CYAN                             : constant := 5;
  3106.    CLR_YELLOW                           : constant := 6;
  3107.    CLR_NEUTRAL                          : constant := 7;
  3108.    CLR_DARKGRAY                         : constant := 8;
  3109.    CLR_DARKBLUE                         : constant := 9;
  3110.    CLR_DARKRED                          : constant := 10;
  3111.    CLR_DARKPINK                         : constant := 11;
  3112.    CLR_DARKGREEN                        : constant := 12;
  3113.    CLR_DARKCYAN                         : constant := 13;
  3114.    CLR_BROWN                            : constant := 14;
  3115.    CLR_PALEGRAY                         : constant := 15;
  3116.    RGB_ERROR                            : constant := -255;
  3117.    RGB_BLACK                            : constant := 16#0000#;
  3118.    RGB_BLUE                             : constant := 16#00FF#;
  3119.    RGB_GREEN                            : constant := 16#0000_FF00#;
  3120.    RGB_CYAN                             : constant := 16#0000_FFFF#;
  3121.    RGB_RED                              : constant := 16#00FF_0000#;
  3122.    RGB_PINK                             : constant := 16#00FF_00FF#;
  3123.    RGB_YELLOW                           : constant := 16#00FF_FF00#;
  3124.    RGB_WHITE                            : constant := 16#00FF_FFFF#;
  3125.    GPIA_NOASSOC                         : constant := 16#0000#;
  3126.    GPIA_ASSOC                           : constant := 16#4000#;
  3127.    GPIF_DEFAULT                         : constant := 16#0000#;
  3128.    GPIF_SHORT                           : constant := 16#0100#;
  3129.    GPIF_LONG                            : constant := 16#0200#;
  3130.    GPIT_NORMAL                          : constant := 16#0000#;
  3131.    GPIT_MICRO                           : constant := 16#1000#;
  3132.    GRES_ATTRS                           : constant := 16#0001#;
  3133.    GRES_SEGMENTS                        : constant := 16#0002#;
  3134.    GRES_ALL                             : constant := 16#0004#;
  3135.    GPIE_SEGMENT                         : constant := 8#0000#;
  3136.    GPIE_ELEMENT                         : constant := 1;
  3137.    GPIE_DATA                            : constant := 2;
  3138.    PS_UNITS                             : constant := 16#00FC#;
  3139.    PS_FORMAT                            : constant := 16#0F00#;
  3140.    PS_TYPE                              : constant := 16#1000#;
  3141.    PS_MODE                              : constant := 16#2000#;
  3142.    PS_ASSOCIATE                         : constant := 16#4000#;
  3143.    PS_NORESET                           : constant := 16#8000#;
  3144.    PRIM_LINE                            : constant := 1;
  3145.    PRIM_CHAR                            : constant := 2;
  3146.    PRIM_MARKER                          : constant := 3;
  3147.    PRIM_AREA                            : constant := 4;
  3148.    PRIM_IMAGE                           : constant := 5;
  3149.    PU_ARBITRARY                         : constant := 16#0004#;
  3150.    PU_PELS                              : constant := 16#0008#;
  3151.    PU_LOMETRIC                          : constant := 16#000C#;
  3152.    PU_HIMETRIC                          : constant := 16#0010#;
  3153.    PU_LOENGLISH                         : constant := 16#0014#;
  3154.    PU_HIENGLISH                         : constant := 16#0018#;
  3155.    PU_TWIPS                             : constant := 16#001C#;
  3156.    ROP_SRCCOPY                          : constant := 16#00CC#;
  3157.    ROP_SRCPAINT                         : constant := 16#00EE#;
  3158.    ROP_SRCAND                           : constant := 16#0088#;
  3159.    ROP_SRCINVERT                        : constant := 16#0066#;
  3160.    ROP_SRCERASE                         : constant := 16#0044#;
  3161.    ROP_NOTSRCCOPY                       : constant := 16#0033#;
  3162.    ROP_NOTSRCERASE                      : constant := 16#0011#;
  3163.    ROP_MERGECOPY                        : constant := 16#00C0#;
  3164.    ROP_MERGEPAINT                       : constant := 16#00BB#;
  3165.    ROP_PATCOPY                          : constant := 16#00F0#;
  3166.    ROP_PATPAINT                         : constant := 16#00FB#;
  3167.    ROP_PATINVERT                        : constant := 16#005A#;
  3168.    ROP_DSTINVERT                        : constant := 16#0055#;
  3169.    ROP_ZERO                             : constant := 16#0000#;
  3170.    ROP_ONE                              : constant := 16#00FF#;
  3171.    BBO_OR                               : constant := 8#0000#;
  3172.    BBO_AND                              : constant := 1;
  3173.    BBO_IGNORE                           : constant := 2;
  3174.    BBO_PAL_COLORS                       : constant := 4;
  3175.    BBO_NO_COLOR_INFO                    : constant := 8;
  3176.    FF_BOUNDARY                          : constant := 8#0000#;
  3177.    FF_SURFACE                           : constant := 1;
  3178.    AM_ERROR                             : constant := -1;
  3179.    AM_PRESERVE                          : constant := 8#0000#;
  3180.    AM_NOPRESERVE                        : constant := 1;
  3181.    FM_ERROR                             : constant := -1;
  3182.    FM_DEFAULT                           : constant := 8#0000#;
  3183.    FM_OR                                : constant := 1;
  3184.    FM_OVERPAINT                         : constant := 2;
  3185.    FM_LEAVEALONE                        : constant := 5;
  3186.    FM_XOR                               : constant := 4;
  3187.    FM_AND                               : constant := 6;
  3188.    FM_SUBTRACT                          : constant := 7;
  3189.    FM_MASKSRCNOT                        : constant := 8;
  3190.    FM_ZERO                              : constant := 9;
  3191.    FM_NOTMERGESRC                       : constant := 10;
  3192.    FM_NOTXORSRC                         : constant := 11;
  3193.    FM_INVERT                            : constant := 12;
  3194.    FM_MERGESRCNOT                       : constant := 13;
  3195.    FM_NOTCOPYSRC                        : constant := 14;
  3196.    FM_MERGENOTSRC                       : constant := 15;
  3197.    FM_NOTMASKSRC                        : constant := 16#0010#;
  3198.    FM_ONE                               : constant := 17;
  3199.    BM_ERROR                             : constant := -1;
  3200.    BM_DEFAULT                           : constant := 8#0000#;
  3201.    BM_OR                                : constant := 1;
  3202.    BM_OVERPAINT                         : constant := 2;
  3203.    BM_LEAVEALONE                        : constant := 5;
  3204.    BM_XOR                               : constant := 4;
  3205.    BM_AND                               : constant := 6;
  3206.    BM_SUBTRACT                          : constant := 7;
  3207.    BM_MASKSRCNOT                        : constant := 8;
  3208.    BM_ZERO                              : constant := 9;
  3209.    BM_NOTMERGESRC                       : constant := 10;
  3210.    BM_NOTXORSRC                         : constant := 11;
  3211.    BM_INVERT                            : constant := 12;
  3212.    BM_MERGESRCNOT                       : constant := 13;
  3213.    BM_NOTCOPYSRC                        : constant := 14;
  3214.    BM_MERGENOTSRC                       : constant := 15;
  3215.    BM_NOTMASKSRC                        : constant := 16#0010#;
  3216.    BM_ONE                               : constant := 17;
  3217.    BM_SRCTRANSPARENT                    : constant := 18;
  3218.    BM_DESTTRANSPARENT                   : constant := 19;
  3219.    LINETYPE_ERROR                       : constant := -1;
  3220.    LINETYPE_DEFAULT                     : constant := 8#0000#;
  3221.    LINETYPE_DOT                         : constant := 1;
  3222.    LINETYPE_SHORTDASH                   : constant := 2;
  3223.    LINETYPE_DASHDOT                     : constant := 3;
  3224.    LINETYPE_DOUBLEDOT                   : constant := 4;
  3225.    LINETYPE_LONGDASH                    : constant := 5;
  3226.    LINETYPE_DASHDOUBLEDOT               : constant := 6;
  3227.    LINETYPE_SOLID                       : constant := 7;
  3228.    LINETYPE_INVISIBLE                   : constant := 8;
  3229.    LINETYPE_ALTERNATE                   : constant := 9;
  3230.    LINEWIDTH_ERROR                      : constant := -1;
  3231.    LINEWIDTH_DEFAULT                    : constant := 8#0000#;
  3232.    LINEWIDTH_NORMAL                     : constant := 16#0001_0000#;
  3233.    LINEWIDTH_THICK                      : constant := 16#0002_0000#;
  3234.    LINEWIDTHGEOM_ERROR                  : constant := -1;
  3235.    LINEEND_ERROR                        : constant := -1;
  3236.    LINEEND_DEFAULT                      : constant := 8#0000#;
  3237.    LINEEND_FLAT                         : constant := 1;
  3238.    LINEEND_SQUARE                       : constant := 2;
  3239.    LINEEND_ROUND                        : constant := 3;
  3240.    LINEJOIN_ERROR                       : constant := -1;
  3241.    LINEJOIN_DEFAULT                     : constant := 8#0000#;
  3242.    LINEJOIN_BEVEL                       : constant := 1;
  3243.    LINEJOIN_ROUND                       : constant := 2;
  3244.    LINEJOIN_MITRE                       : constant := 3;
  3245.    CHDIRN_ERROR                         : constant := -1;
  3246.    CHDIRN_DEFAULT                       : constant := 8#0000#;
  3247.    CHDIRN_LEFTRIGHT                     : constant := 1;
  3248.    CHDIRN_TOPBOTTOM                     : constant := 2;
  3249.    CHDIRN_RIGHTLEFT                     : constant := 3;
  3250.    CHDIRN_BOTTOMTOP                     : constant := 4;
  3251.    TA_NORMAL_HORIZ                      : constant := 16#0001#;
  3252.    TA_LEFT                              : constant := 16#0002#;
  3253.    TA_CENTER                            : constant := 16#0003#;
  3254.    TA_RIGHT                             : constant := 16#0004#;
  3255.    TA_STANDARD_HORIZ                    : constant := 16#0005#;
  3256.    TA_NORMAL_VERT                       : constant := 16#0100#;
  3257.    TA_TOP                               : constant := 16#0200#;
  3258.    TA_HALF                              : constant := 16#0300#;
  3259.    TA_BASE                              : constant := 16#0400#;
  3260.    TA_BOTTOM                            : constant := 16#0500#;
  3261.    TA_STANDARD_VERT                     : constant := 16#0600#;
  3262.    CM_ERROR                             : constant := -1;
  3263.    CM_DEFAULT                           : constant := 8#0000#;
  3264.    CM_MODE1                             : constant := 1;
  3265.    CM_MODE2                             : constant := 2;
  3266.    CM_MODE3                             : constant := 3;
  3267.    MARKSYM_ERROR                        : constant := -1;
  3268.    MARKSYM_DEFAULT                      : constant := 8#0000#;
  3269.    MARKSYM_CROSS                        : constant := 1;
  3270.    MARKSYM_PLUS                         : constant := 2;
  3271.    MARKSYM_DIAMOND                      : constant := 3;
  3272.    MARKSYM_SQUARE                       : constant := 4;
  3273.    MARKSYM_SIXPOINTSTAR                 : constant := 5;
  3274.    MARKSYM_EIGHTPOINTSTAR               : constant := 6;
  3275.    MARKSYM_SOLIDDIAMOND                 : constant := 7;
  3276.    MARKSYM_SOLIDSQUARE                  : constant := 8;
  3277.    MARKSYM_DOT                          : constant := 9;
  3278.    MARKSYM_SMALLCIRCLE                  : constant := 10;
  3279.    MARKSYM_BLANK                        : constant := 16#0040#;
  3280.    TXTBOX_TOPLEFT                       : constant := 8#0000#;
  3281.    TXTBOX_BOTTOMLEFT                    : constant := 1;
  3282.    TXTBOX_TOPRIGHT                      : constant := 2;
  3283.    TXTBOX_BOTTOMRIGHT                   : constant := 3;
  3284.    TXTBOX_CONCAT                        : constant := 4;
  3285.    TXTBOX_COUNT                         : constant := 5;
  3286.    PVIS_ERROR                           : constant := 8#0000#;
  3287.    PVIS_INVISIBLE                       : constant := 1;
  3288.    PVIS_VISIBLE                         : constant := 2;
  3289.    RVIS_ERROR                           : constant := 8#0000#;
  3290.    RVIS_INVISIBLE                       : constant := 1;
  3291.    RVIS_PARTIAL                         : constant := 2;
  3292.    RVIS_VISIBLE                         : constant := 3;
  3293.    FONT_DEFAULT                         : constant := 1;
  3294.    FONT_MATCH                           : constant := 2;
  3295.    LCIDT_FONT                           : constant := 6;
  3296.    LCIDT_BITMAP                         : constant := 7;
  3297.    LCID_ALL                             : constant := -1;
  3298.    CHS_OPAQUE                           : constant := 16#0001#;
  3299.    CHS_VECTOR                           : constant := 16#0002#;
  3300.    CHS_LEAVEPOS                         : constant := 16#0008#;
  3301.    CHS_CLIP                             : constant := 16#0010#;
  3302.    CHS_UNDERSCORE                       : constant := 16#0200#;
  3303.    CHS_STRIKEOUT                        : constant := 16#0400#;
  3304.    FWEIGHT_DONT_CARE                    : constant := 8#0000#;
  3305.    FWEIGHT_ULTRA_LIGHT                  : constant := 1;
  3306.    FWEIGHT_EXTRA_LIGHT                  : constant := 2;
  3307.    FWEIGHT_LIGHT                        : constant := 3;
  3308.    FWEIGHT_SEMI_LIGHT                   : constant := 4;
  3309.    FWEIGHT_NORMAL                       : constant := 5;
  3310.    FWEIGHT_SEMI_BOLD                    : constant := 6;
  3311.    FWEIGHT_BOLD                         : constant := 7;
  3312.    FWEIGHT_EXTRA_BOLD                   : constant := 8;
  3313.    FWEIGHT_ULTRA_BOLD                   : constant := 9;
  3314.    FWIDTH_DONT_CARE                     : constant := 8#0000#;
  3315.    FWIDTH_ULTRA_CONDENSED               : constant := 1;
  3316.    FWIDTH_EXTRA_CONDENSED               : constant := 2;
  3317.    FWIDTH_CONDENSED                     : constant := 3;
  3318.    FWIDTH_SEMI_CONDENSED                : constant := 4;
  3319.    FWIDTH_NORMAL                        : constant := 5;
  3320.    FWIDTH_SEMI_EXPANDED                 : constant := 6;
  3321.    FWIDTH_EXPANDED                      : constant := 7;
  3322.    FWIDTH_EXTRA_EXPANDED                : constant := 8;
  3323.    FWIDTH_ULTRA_EXPANDED                : constant := 9;
  3324.    FTYPE_ITALIC                         : constant := 16#0001#;
  3325.    FTYPE_ITALIC_DONT_CARE               : constant := 16#0002#;
  3326.    FTYPE_OBLIQUE                        : constant := 16#0004#;
  3327.    FTYPE_OBLIQUE_DONT_CARE              : constant := 16#0008#;
  3328.    FTYPE_ROUNDED                        : constant := 16#0010#;
  3329.    FTYPE_ROUNDED_DONT_CARE              : constant := 16#0020#;
  3330.    QFA_PUBLIC                           : constant := 1;
  3331.    QFA_PRIVATE                          : constant := 2;
  3332.    QFA_ERROR                            : constant := -1;
  3333.    QF_PUBLIC                            : constant := 16#0001#;
  3334.    QF_PRIVATE                           : constant := 16#0002#;
  3335.    QF_NO_GENERIC                        : constant := 16#0004#;
  3336.    QF_NO_DEVICE                         : constant := 16#0008#;
  3337.    QCD_LCT_FORMAT                       : constant := 8#0000#;
  3338.    QCD_LCT_LOINDEX                      : constant := 1;
  3339.    QCD_LCT_HIINDEX                      : constant := 2;
  3340.    QCD_LCT_OPTIONS                      : constant := 3;
  3341.    QLCT_ERROR                           : constant := -1;
  3342.    QLCT_RGB                             : constant := -2;
  3343.    QLCT_NOTLOADED                       : constant := -1;
  3344.    PAL_ERROR                            : constant := -1;
  3345.    PC_RESERVED                          : constant := 16#0001#;
  3346.    PC_EXPLICIT                          : constant := 16#0002#;
  3347.    PC_NOCOLLAPSE                        : constant := 16#0004#;
  3348.    SCP_ALTERNATE                        : constant := 8#0000#;
  3349.    SCP_WINDING                          : constant := 2;
  3350.    SCP_AND                              : constant := 4;
  3351.    SCP_RESET                            : constant := 8#0000#;
  3352.    SCP_INCL                             : constant := 8#0000#;
  3353.    SCP_EXCL                             : constant := 8;
  3354.    MPATH_STROKE                         : constant := 6;
  3355.    FPATH_ALTERNATE                      : constant := 8#0000#;
  3356.    FPATH_WINDING                        : constant := 2;
  3357.    FPATH_INCL                           : constant := 8#0000#;
  3358.    FPATH_EXCL                           : constant := 8;
  3359.    DCTL_ERASE                           : constant := 1;
  3360.    DCTL_DISPLAY                         : constant := 2;
  3361.    DCTL_BOUNDARY                        : constant := 3;
  3362.    DCTL_DYNAMIC                         : constant := 4;
  3363.    DCTL_CORRELATE                       : constant := 5;
  3364.    DCTL_ERROR                           : constant := -1;
  3365.    DCTL_OFF                             : constant := 8#0000#;
  3366.    DCTL_ON                              : constant := 1;
  3367.    DM_ERROR                             : constant := 8#0000#;
  3368.    DM_DRAW                              : constant := 1;
  3369.    DM_RETAIN                            : constant := 2;
  3370.    DM_DRAWANDRETAIN                     : constant := 3;
  3371.    SDW_ERROR                            : constant := -1;
  3372.    SDW_OFF                              : constant := 8#0000#;
  3373.    SDW_ON                               : constant := 1;
  3374.    PICKAP_DEFAULT                       : constant := 8#0000#;
  3375.    PICKAP_REC                           : constant := 2;
  3376.    PICKSEL_VISIBLE                      : constant := 8#0000#;
  3377.    PICKSEL_ALL                          : constant := 1;
  3378.    DFORM_NOCONV                         : constant := 8#0000#;
  3379.    DFORM_S370SHORT                      : constant := 1;
  3380.    DFORM_PCSHORT                        : constant := 2;
  3381.    DFORM_PCLONG                         : constant := 4;
  3382.    ATTR_ERROR                           : constant := -1;
  3383.    ATTR_DETECTABLE                      : constant := 1;
  3384.    ATTR_VISIBLE                         : constant := 2;
  3385.    ATTR_CHAINED                         : constant := 6;
  3386.    ATTR_DYNAMIC                         : constant := 8;
  3387.    ATTR_FASTCHAIN                       : constant := 9;
  3388.    ATTR_PROP_DETECTABLE                 : constant := 10;
  3389.    ATTR_PROP_VISIBLE                    : constant := 11;
  3390.    ATTR_OFF                             : constant := 8#0000#;
  3391.    ATTR_ON                              : constant := 1;
  3392.    LOWER_PRI                            : constant := -1;
  3393.    HIGHER_PRI                           : constant := 1;
  3394.    CVTC_WORLD                           : constant := 1;
  3395.    CVTC_MODEL                           : constant := 2;
  3396.    CVTC_DEFAULTPAGE                     : constant := 3;
  3397.    CVTC_PAGE                            : constant := 4;
  3398.    CVTC_DEVICE                          : constant := 5;
  3399.    TRANSFORM_REPLACE                    : constant := 8#0000#;
  3400.    TRANSFORM_ADD                        : constant := 1;
  3401.    TRANSFORM_PREEMPT                    : constant := 2;
  3402.    SEGEM_ERROR                          : constant := 8#0000#;
  3403.    SEGEM_INSERT                         : constant := 1;
  3404.    SEGEM_REPLACE                        : constant := 2;
  3405.    POLYGON_NOBOUNDARY                   : constant := 16#0000#;
  3406.    POLYGON_BOUNDARY                     : constant := 16#0001#;
  3407.    POLYGON_ALTERNATE                    : constant := 16#0000#;
  3408.    POLYGON_WINDING                      : constant := 16#0002#;
  3409.    POLYGON_INCL                         : constant := 16#0000#;
  3410.    POLYGON_EXCL                         : constant := 16#0008#;
  3411.    LCOL_RESET                           : constant := 16#0001#;
  3412.    LCOL_REALIZABLE                      : constant := 16#0002#;
  3413.    LCOL_PURECOLOR                       : constant := 16#0004#;
  3414.    LCOL_OVERRIDE_DEFAULT_COLORS         : constant := 16#0008#;
  3415.    LCOL_REALIZED                        : constant := 16#0010#;
  3416.    LCOLF_DEFAULT                        : constant := 8#0000#;
  3417.    LCOLF_INDRGB                         : constant := 1;
  3418.    LCOLF_CONSECRGB                      : constant := 2;
  3419.    LCOLF_RGB                            : constant := 3;
  3420.    LCOLF_PALETTE                        : constant := 4;
  3421.    LCOLOPT_REALIZED                     : constant := 16#0001#;
  3422.    LCOLOPT_INDEX                        : constant := 16#0002#;
  3423.    BA_NOBOUNDARY                        : constant := 8#0000#;
  3424.    BA_BOUNDARY                          : constant := 16#0001#;
  3425.    BA_ALTERNATE                         : constant := 8#0000#;
  3426.    BA_WINDING                           : constant := 16#0002#;
  3427.    BA_INCL                              : constant := 8#0000#;
  3428.    BA_EXCL                              : constant := 8;
  3429.    DRO_FILL                             : constant := 1;
  3430.    DRO_OUTLINE                          : constant := 2;
  3431.    DRO_OUTLINEFILL                      : constant := 3;
  3432.    PATSYM_ERROR                         : constant := -1;
  3433.    PATSYM_DEFAULT                       : constant := 8#0000#;
  3434.    PATSYM_DENSE1                        : constant := 1;
  3435.    PATSYM_DENSE2                        : constant := 2;
  3436.    PATSYM_DENSE3                        : constant := 3;
  3437.    PATSYM_DENSE4                        : constant := 4;
  3438.    PATSYM_DENSE5                        : constant := 5;
  3439.    PATSYM_DENSE6                        : constant := 6;
  3440.    PATSYM_DENSE7                        : constant := 7;
  3441.    PATSYM_DENSE8                        : constant := 8;
  3442.    PATSYM_VERT                          : constant := 9;
  3443.    PATSYM_HORIZ                         : constant := 10;
  3444.    PATSYM_DIAG1                         : constant := 11;
  3445.    PATSYM_DIAG2                         : constant := 12;
  3446.    PATSYM_DIAG3                         : constant := 13;
  3447.    PATSYM_DIAG4                         : constant := 14;
  3448.    PATSYM_NOSHADE                       : constant := 15;
  3449.    PATSYM_SOLID                         : constant := 16#0010#;
  3450.    PATSYM_HALFTONE                      : constant := 17;
  3451.    PATSYM_HATCH                         : constant := 18;
  3452.    PATSYM_DIAGHATCH                     : constant := 19;
  3453.    PATSYM_BLANK                         : constant := 16#0040#;
  3454.    LCID_ERROR                           : constant := -1;
  3455.    LCID_DEFAULT                         : constant := 8#0000#;
  3456.    CBM_INIT                             : constant := 16#0004#;
  3457.    CRGN_OR                              : constant := 1;
  3458.    CRGN_COPY                            : constant := 2;
  3459.    CRGN_XOR                             : constant := 4;
  3460.    CRGN_AND                             : constant := 6;
  3461.    CRGN_DIFF                            : constant := 7;
  3462.    RGN_ERROR                            : constant := 8#0000#;
  3463.    RGN_NULL                             : constant := 1;
  3464.    RGN_RECT                             : constant := 2;
  3465.    RGN_COMPLEX                          : constant := 3;
  3466.    PRGN_ERROR                           : constant := 8#0000#;
  3467.    PRGN_OUTSIDE                         : constant := 1;
  3468.    PRGN_INSIDE                          : constant := 2;
  3469.    RRGN_ERROR                           : constant := 8#0000#;
  3470.    RRGN_OUTSIDE                         : constant := 1;
  3471.    RRGN_PARTIAL                         : constant := 2;
  3472.    RRGN_INSIDE                          : constant := 3;
  3473.    EQRGN_ERROR                          : constant := 8#0000#;
  3474.    EQRGN_NOTEQUAL                       : constant := 1;
  3475.    EQRGN_EQUAL                          : constant := 2;
  3476.    RECTDIR_LFRT_TOPBOT                  : constant := 1;
  3477.    RECTDIR_RTLF_TOPBOT                  : constant := 2;
  3478.    RECTDIR_LFRT_BOTTOP                  : constant := 3;
  3479.    RECTDIR_RTLF_BOTTOP                  : constant := 4;
  3480.    PMF_SEGBASE                          : constant := 8#0000#;
  3481.    PMF_LOADTYPE                         : constant := 1;
  3482.    PMF_RESOLVE                          : constant := 2;
  3483.    PMF_LCIDS                            : constant := 3;
  3484.    PMF_RESET                            : constant := 4;
  3485.    PMF_SUPPRESS                         : constant := 5;
  3486.    PMF_COLORTABLES                      : constant := 6;
  3487.    PMF_COLORREALIZABLE                  : constant := 7;
  3488.    PMF_DEFAULTS                         : constant := 8;
  3489.    PMF_DELETEOBJECTS                    : constant := 9;
  3490.    RS_DEFAULT                           : constant := 8#0000#;
  3491.    RS_NODISCARD                         : constant := 1;
  3492.    LC_DEFAULT                           : constant := 8#0000#;
  3493.    LC_NOLOAD                            : constant := 1;
  3494.    LC_LOADDISC                          : constant := 3;
  3495.    LT_DEFAULT                           : constant := 8#0000#;
  3496.    LT_NOMODIFY                          : constant := 1;
  3497.    LT_ORIGINALVIEW                      : constant := 4;
  3498.    RES_DEFAULT                          : constant := 8#0000#;
  3499.    RES_NORESET                          : constant := 1;
  3500.    RES_RESET                            : constant := 2;
  3501.    SUP_DEFAULT                          : constant := 8#0000#;
  3502.    SUP_NOSUPPRESS                       : constant := 1;
  3503.    SUP_SUPPRESS                         : constant := 2;
  3504.    CTAB_DEFAULT                         : constant := 8#0000#;
  3505.    CTAB_NOMODIFY                        : constant := 1;
  3506.    CTAB_REPLACE                         : constant := 3;
  3507.    CTAB_REPLACEPALETTE                  : constant := 4;
  3508.    CREA_DEFAULT                         : constant := 8#0000#;
  3509.    CREA_REALIZE                         : constant := 1;
  3510.    CREA_NOREALIZE                       : constant := 2;
  3511.    CREA_DOREALIZE                       : constant := 3;
  3512.    DDEF_DEFAULT                         : constant := 8#0000#;
  3513.    DDEF_IGNORE                          : constant := 1;
  3514.    DDEF_LOADDISC                        : constant := 3;
  3515.    DOBJ_DEFAULT                         : constant := 8#0000#;
  3516.    DOBJ_NODELETE                        : constant := 1;
  3517.    DOBJ_DELETE                          : constant := 2;
  3518.    RSP_DEFAULT                          : constant := 8#0000#;
  3519.    RSP_NODISCARD                        : constant := 1;
  3520.    LBB_COLOR                            : constant := 16#0001#;
  3521.    LBB_BACK_COLOR                       : constant := 16#0002#;
  3522.    LBB_MIX_MODE                         : constant := 16#0004#;
  3523.    LBB_BACK_MIX_MODE                    : constant := 16#0008#;
  3524.    LBB_WIDTH                            : constant := 16#0010#;
  3525.    LBB_GEOM_WIDTH                       : constant := 16#0020#;
  3526.    LBB_TYPE                             : constant := 16#0040#;
  3527.    LBB_END                              : constant := 16#0080#;
  3528.    LBB_JOIN                             : constant := 16#0100#;
  3529.    CBB_COLOR                            : constant := 16#0001#;
  3530.    CBB_BACK_COLOR                       : constant := 16#0002#;
  3531.    CBB_MIX_MODE                         : constant := 16#0004#;
  3532.    CBB_BACK_MIX_MODE                    : constant := 16#0008#;
  3533.    CBB_SET                              : constant := 16#0010#;
  3534.    CBB_MODE                             : constant := 16#0020#;
  3535.    CBB_BOX                              : constant := 16#0040#;
  3536.    CBB_ANGLE                            : constant := 16#0080#;
  3537.    CBB_SHEAR                            : constant := 16#0100#;
  3538.    CBB_DIRECTION                        : constant := 16#0200#;
  3539.    CBB_TEXT_ALIGN                       : constant := 16#0400#;
  3540.    CBB_EXTRA                            : constant := 16#0800#;
  3541.    CBB_BREAK_EXTRA                      : constant := 16#1000#;
  3542.    MBB_COLOR                            : constant := 16#0001#;
  3543.    MBB_BACK_COLOR                       : constant := 16#0002#;
  3544.    MBB_MIX_MODE                         : constant := 16#0004#;
  3545.    MBB_BACK_MIX_MODE                    : constant := 16#0008#;
  3546.    MBB_SET                              : constant := 16#0010#;
  3547.    MBB_SYMBOL                           : constant := 16#0020#;
  3548.    MBB_BOX                              : constant := 16#0040#;
  3549.    ABB_COLOR                            : constant := 16#0001#;
  3550.    ABB_BACK_COLOR                       : constant := 16#0002#;
  3551.    ABB_MIX_MODE                         : constant := 16#0004#;
  3552.    ABB_BACK_MIX_MODE                    : constant := 16#0008#;
  3553.    ABB_SET                              : constant := 16#0010#;
  3554.    ABB_SYMBOL                           : constant := 16#0020#;
  3555.    ABB_REF_POINT                        : constant := 16#0040#;
  3556.    IBB_COLOR                            : constant := 16#0001#;
  3557.    IBB_BACK_COLOR                       : constant := 16#0002#;
  3558.    IBB_MIX_MODE                         : constant := 16#0004#;
  3559.    IBB_BACK_MIX_MODE                    : constant := 16#0008#;
  3560.    DEV_ERROR                            : constant := 8#0000#;
  3561.    DEV_OK                               : constant := 1;
  3562.    ADDRESS                              : constant := 8#0000#;
  3563.    DRIVER_NAME                          : constant := 1;
  3564.    DRIVER_DATA                          : constant := 2;
  3565.    DATA_TYPE                            : constant := 3;
  3566.    COMMENT                              : constant := 4;
  3567.    PROC_NAME                            : constant := 5;
  3568.    PROC_PARAMS                          : constant := 6;
  3569.    SPL_PARAMS                           : constant := 7;
  3570.    NETWORK_PARAMS                       : constant := 8;
  3571.    OD_QUEUED                            : constant := 2;
  3572.    OD_DIRECT                            : constant := 5;
  3573.    OD_INFO                              : constant := 6;
  3574.    OD_METAFILE                          : constant := 7;
  3575.    OD_MEMORY                            : constant := 8;
  3576.    OD_METAFILE_NOQUERY                  : constant := 9;
  3577.    CAPS_FAMILY                          : constant := 8#0000#;
  3578.    CAPS_IO_CAPS                         : constant := 1;
  3579.    CAPS_TECHNOLOGY                      : constant := 2;
  3580.    CAPS_DRIVER_VERSION                  : constant := 3;
  3581.    CAPS_WIDTH                           : constant := 4;
  3582.    CAPS_HEIGHT                          : constant := 5;
  3583.    CAPS_WIDTH_IN_CHARS                  : constant := 6;
  3584.    CAPS_HEIGHT_IN_CHARS                 : constant := 7;
  3585.    CAPS_HORIZONTAL_RESOLUTION           : constant := 8;
  3586.    CAPS_VERTICAL_RESOLUTION             : constant := 9;
  3587.    CAPS_CHAR_WIDTH                      : constant := 10;
  3588.    CAPS_CHAR_HEIGHT                     : constant := 11;
  3589.    CAPS_SMALL_CHAR_WIDTH                : constant := 12;
  3590.    CAPS_SMALL_CHAR_HEIGHT               : constant := 13;
  3591.    CAPS_COLORS                          : constant := 14;
  3592.    CAPS_COLOR_PLANES                    : constant := 15;
  3593.    CAPS_COLOR_BITCOUNT                  : constant := 16#0010#;
  3594.    CAPS_COLOR_TABLE_SUPPORT             : constant := 17;
  3595.    CAPS_MOUSE_BUTTONS                   : constant := 18;
  3596.    CAPS_FOREGROUND_MIX_SUPPORT          : constant := 19;
  3597.    CAPS_BACKGROUND_MIX_SUPPORT          : constant := 20;
  3598.    CAPS_DEVICE_WINDOWING                : constant := 31;
  3599.    CAPS_ADDITIONAL_GRAPHICS             : constant := 16#0020#;
  3600.    CAPS_VIO_LOADABLE_FONTS              : constant := 21;
  3601.    CAPS_WINDOW_BYTE_ALIGNMENT           : constant := 22;
  3602.    CAPS_BITMAP_FORMATS                  : constant := 23;
  3603.    CAPS_RASTER_CAPS                     : constant := 24;
  3604.    CAPS_MARKER_HEIGHT                   : constant := 25;
  3605.    CAPS_MARKER_WIDTH                    : constant := 26;
  3606.    CAPS_DEVICE_FONTS                    : constant := 27;
  3607.    CAPS_GRAPHICS_SUBSET                 : constant := 28;
  3608.    CAPS_GRAPHICS_VERSION                : constant := 29;
  3609.    CAPS_GRAPHICS_VECTOR_SUBSET          : constant := 30;
  3610.    CAPS_PHYS_COLORS                     : constant := 33;
  3611.    CAPS_COLOR_INDEX                     : constant := 34;
  3612.    CAPS_GRAPHICS_CHAR_WIDTH             : constant := 35;
  3613.    CAPS_GRAPHICS_CHAR_HEIGHT            : constant := 36;
  3614.    CAPS_HORIZONTAL_FONT_RES             : constant := 37;
  3615.    CAPS_VERTICAL_FONT_RES               : constant := 38;
  3616.    CAPS_DEVICE_FONT_SIM                 : constant := 39;
  3617.    CAPS_LINEWIDTH_THICK                 : constant := 40;
  3618.    CAPS_DEVICE_POLYSET_POINTS           : constant := 41;
  3619.    CAPS_IO_DUMMY                        : constant := 1;
  3620.    CAPS_IO_SUPPORTS_OP                  : constant := 2;
  3621.    CAPS_IO_SUPPORTS_IP                  : constant := 3;
  3622.    CAPS_IO_SUPPORTS_IO                  : constant := 4;
  3623.    CAPS_TECH_UNKNOWN                    : constant := 8#0000#;
  3624.    CAPS_TECH_VECTOR_PLOTTER             : constant := 1;
  3625.    CAPS_TECH_RASTER_DISPLAY             : constant := 2;
  3626.    CAPS_TECH_RASTER_PRINTER             : constant := 3;
  3627.    CAPS_TECH_RASTER_CAMERA              : constant := 4;
  3628.    CAPS_TECH_POSTSCRIPT                 : constant := 5;
  3629.    CAPS_COLTABL_RGB_8                   : constant := 16#0001#;
  3630.    CAPS_COLTABL_RGB_8_PLUS              : constant := 16#0002#;
  3631.    CAPS_COLTABL_TRUE_MIX                : constant := 16#0004#;
  3632.    CAPS_COLTABL_REALIZE                 : constant := 16#0008#;
  3633.    CAPS_FM_OR                           : constant := 16#0001#;
  3634.    CAPS_FM_OVERPAINT                    : constant := 16#0002#;
  3635.    CAPS_FM_XOR                          : constant := 16#0008#;
  3636.    CAPS_FM_LEAVEALONE                   : constant := 16#0010#;
  3637.    CAPS_FM_AND                          : constant := 16#0020#;
  3638.    CAPS_FM_GENERAL_BOOLEAN              : constant := 16#0040#;
  3639.    CAPS_BM_OR                           : constant := 16#0001#;
  3640.    CAPS_BM_OVERPAINT                    : constant := 16#0002#;
  3641.    CAPS_BM_XOR                          : constant := 16#0008#;
  3642.    CAPS_BM_LEAVEALONE                   : constant := 16#0010#;
  3643.    CAPS_BM_AND                          : constant := 16#0020#;
  3644.    CAPS_BM_GENERAL_BOOLEAN              : constant := 16#0040#;
  3645.    CAPS_BM_SRCTRANSPARENT               : constant := 16#0080#;
  3646.    CAPS_BM_DESTTRANSPARENT              : constant := 16#0100#;
  3647.    CAPS_DEV_WINDOWING_SUPPORT           : constant := 16#0001#;
  3648.    CAPS_VDD_DDB_TRANSFER                : constant := 16#0001#;
  3649.    CAPS_GRAPHICS_KERNING_SUPPORT        : constant := 16#0002#;
  3650.    CAPS_FONT_OUTLINE_DEFAULT            : constant := 16#0004#;
  3651.    CAPS_FONT_IMAGE_DEFAULT              : constant := 16#0008#;
  3652.    CAPS_SCALED_DEFAULT_MARKERS          : constant := 16#0040#;
  3653.    CAPS_COLOR_CURSOR_SUPPORT            : constant := 16#0080#;
  3654.    CAPS_PALETTE_MANAGER                 : constant := 16#0100#;
  3655.    CAPS_COSMETIC_WIDELINE_SUPPORT       : constant := 16#0200#;
  3656.    CAPS_DIRECT_FILL                     : constant := 16#0400#;
  3657.    CAPS_REBUILD_FILLS                   : constant := 16#0800#;
  3658.    CAPS_CLIP_FILLS                      : constant := 16#1000#;
  3659.    CAPS_ENHANCED_FONTMETRICS            : constant := 16#2000#;
  3660.    CAPS_ENHANCED_TEXT                   : constant := 16#4000#;
  3661.    CAPS_TRANSFORM_SUPPORT               : constant := 16#4000#;
  3662.    CAPS_BYTE_ALIGN_REQUIRED             : constant := 8#0000#;
  3663.    CAPS_BYTE_ALIGN_RECOMMENDED          : constant := 1;
  3664.    CAPS_BYTE_ALIGN_NOT_REQUIRED         : constant := 2;
  3665.    CAPS_RASTER_BITBLT                   : constant := 16#0001#;
  3666.    CAPS_RASTER_BANDING                  : constant := 16#0002#;
  3667.    CAPS_RASTER_BITBLT_SCALING           : constant := 16#0004#;
  3668.    CAPS_RASTER_SET_PEL                  : constant := 16#0010#;
  3669.    CAPS_RASTER_FONTS                    : constant := 16#0020#;
  3670.    CAPS_RASTER_FLOOD_FILL               : constant := 16#0040#;
  3671.    DEVESC_ERROR                         : constant := -1;
  3672.    DEVESC_NOTIMPLEMENTED                : constant := 8#0000#;
  3673.    DEVESC_QUERYESCSUPPORT               : constant := 8#0000#;
  3674.    DEVESC_GETSCALINGFACTOR              : constant := 1;
  3675.    DEVESC_QUERYVIOCELLSIZES             : constant := 2;
  3676.    DEVESC_GETCP                         : constant := 8000;
  3677.    DEVESC_STARTDOC                      : constant := 8150;
  3678.    DEVESC_ENDDOC                        : constant := 8151;
  3679.    DEVESC_NEXTBAND                      : constant := 8152;
  3680.    DEVESC_ABORTDOC                      : constant := 8153;
  3681.    DEVESC_NEWFRAME                      : constant := 16300;
  3682.    DEVESC_DRAFTMODE                     : constant := 16301;
  3683.    DEVESC_FLUSHOUTPUT                   : constant := 16302;
  3684.    DEVESC_RAWDATA                       : constant := 16303;
  3685.    DEVESC_SETMODE                       : constant := 16304;
  3686.    DEVESC_DBE_FIRST                     : constant := 24450;
  3687.    DEVESC_DBE_LAST                      : constant := 24455;
  3688.    DEVESC_CHAR_EXTRA                    : constant := 16998;
  3689.    DEVESC_BREAK_EXTRA                   : constant := 16999;
  3690.    DEVESC_STD_JOURNAL                   : constant := 32600;
  3691.    DPDM_ERROR                           : constant := -1;
  3692.    DPDM_NONE                            : constant := 8#0000#;
  3693.    DPDM_POSTJOBPROP                     : constant := 8#0000#;
  3694.    DPDM_CHANGEPROP                      : constant := 1;
  3695.    DPDM_QUERYJOBPROP                    : constant := 2;
  3696.    DQHC_ERROR                           : constant := -1;
  3697.    HCAPS_CURRENT                        : constant := 1;
  3698.    HCAPS_SELECTABLE                     : constant := 2;
  3699.    MAXNAMEL                             : constant := 60;
  3700.     HINI_PROFILE                        : constant HINI := 0;
  3701.    MAXPATHL                             : constant := 16#0080#;
  3702.    PROG_DEFAULT                         : constant := 8#0000#;
  3703.    PROG_FULLSCREEN                      : constant := 1;
  3704.    PROG_WINDOWABLEVIO                   : constant := 2;
  3705.    PROG_PM                              : constant := 3;
  3706.    PROG_GROUP                           : constant := 5;
  3707.    PROG_REAL                            : constant := 4;
  3708.    PROG_VDM                             : constant := 4;
  3709.    PROG_WINDOWEDVDM                     : constant := 7;
  3710.    PROG_DLL                             : constant := 6;
  3711.    PROG_PDD                             : constant := 8;
  3712.    PROG_VDD                             : constant := 9;
  3713.    PROG_WINDOW_REAL                     : constant := 10;
  3714.    PROG_WINDOW_PROT                     : constant := 11;
  3715.    PROG_WINDOW_AUTO                     : constant := 12;
  3716.    PROG_SEAMLESSVDM                     : constant := 13;
  3717.    PROG_SEAMLESSCOMMON                  : constant := 14;
  3718.    PROG_30_STDSEAMLESSCOMMON            : constant := 14;
  3719.    PROG_31_STDSEAMLESSVDM               : constant := 15;
  3720.    PROG_31_STDSEAMLESSCOMMON            : constant := 16#0010#;
  3721.    PROG_31_ENHSEAMLESSVDM               : constant := 17;
  3722.    PROG_31_ENHSEAMLESSCOMMON            : constant := 18;
  3723.    PROG_31_ENH                          : constant := 19;
  3724.    PROG_31_STD                          : constant := 20;
  3725.    PROG_RESERVED                        : constant := 255;
  3726.    SAF_VALIDFLAGS                       : constant := 16#001F#;
  3727.    SAF_INSTALLEDCMDLINE                 : constant := 16#0001#;
  3728.    SAF_STARTCHILDAPP                    : constant := 16#0002#;
  3729.    SAF_MAXIMIZED                        : constant := 16#0004#;
  3730.    SAF_MINIMIZED                        : constant := 16#0008#;
  3731.    SAF_BACKGROUND                       : constant := 16#0010#;
  3732.    SHE_VISIBLE                          : constant := 16#0000#;
  3733.    SHE_INVISIBLE                        : constant := 16#0001#;
  3734.    SHE_RESERVED                         : constant := 16#00FF#;
  3735.    SHE_UNPROTECTED                      : constant := 16#0000#;
  3736.    SHE_PROTECTED                        : constant := 16#0002#;
  3737.    SWL_INVISIBLE                        : constant := 16#0001#;
  3738.    SWL_GRAYED                           : constant := 16#0002#;
  3739.    SWL_VISIBLE                          : constant := 16#0004#;
  3740.    SWL_NOTJUMPABLE                      : constant := 16#0001#;
  3741.    SWL_JUMPABLE                         : constant := 16#0002#;
  3742.    PL_ALTERED                           : constant := 16#008E#;
  3743.    FDM_FILTER                           : constant := 16#1028#;
  3744.    FDM_VALIDATE                         : constant := 16#1029#;
  3745.    FDM_ERROR                            : constant := 16#102A#;
  3746.    DID_FILE_DIALOG                      : constant := 16#0100#;
  3747.    DID_FILENAME_TXT                     : constant := 257;
  3748.    DID_FILENAME_ED                      : constant := 258;
  3749.    DID_DRIVE_TXT                        : constant := 259;
  3750.    DID_DRIVE_CB                         : constant := 260;
  3751.    DID_FILTER_TXT                       : constant := 261;
  3752.    DID_FILTER_CB                        : constant := 262;
  3753.    DID_DIRECTORY_TXT                    : constant := 263;
  3754.    DID_DIRECTORY_LB                     : constant := 264;
  3755.    DID_FILES_TXT                        : constant := 265;
  3756.    DID_FILES_LB                         : constant := 266;
  3757.    DID_HELP_PB                          : constant := 267;
  3758.    DID_APPLY_PB                         : constant := 268;
  3759.    DID_OK_PB                            : constant := 1;
  3760.    DID_CANCEL_PB                        : constant := 2;
  3761.    FDS_CENTER                           : constant := 16#0001#;
  3762.    FDS_CUSTOM                           : constant := 16#0002#;
  3763.    FDS_FILTERUNION                      : constant := 16#0004#;
  3764.    FDS_HELPBUTTON                       : constant := 16#0008#;
  3765.    FDS_APPLYBUTTON                      : constant := 16#0010#;
  3766.    FDS_PRELOAD_VOLINFO                  : constant := 16#0020#;
  3767.    FDS_MODELESS                         : constant := 16#0040#;
  3768.    FDS_INCLUDE_EAS                      : constant := 16#0080#;
  3769.    FDS_OPEN_DIALOG                      : constant := 16#0100#;
  3770.    FDS_SAVEAS_DIALOG                    : constant := 16#0200#;
  3771.    FDS_MULTIPLESEL                      : constant := 16#0400#;
  3772.    FDS_ENABLEFILELB                     : constant := 16#0800#;
  3773.    FDS_EFSELECTION                      : constant := 8#0000#;
  3774.    FDS_LBSELECTION                      : constant := 1;
  3775.    FDS_SUCCESSFUL                       : constant := 8#0000#;
  3776.    FDS_ERR_DEALLOCATE_MEMORY            : constant := 1;
  3777.    FDS_ERR_FILTER_TRUNC                 : constant := 2;
  3778.    FDS_ERR_INVALID_DIALOG               : constant := 3;
  3779.    FDS_ERR_INVALID_DRIVE                : constant := 4;
  3780.    FDS_ERR_INVALID_FILTER               : constant := 5;
  3781.    FDS_ERR_INVALID_PATHFILE             : constant := 6;
  3782.    FDS_ERR_OUT_OF_MEMORY                : constant := 7;
  3783.    FDS_ERR_PATH_TOO_LONG                : constant := 8;
  3784.    FDS_ERR_TOO_MANY_FILE_TYPES          : constant := 9;
  3785.    FDS_ERR_INVALID_VERSION              : constant := 10;
  3786.    FDS_ERR_INVALID_CUSTOM_HANDLE        : constant := 11;
  3787.    FDS_ERR_DIALOG_LOAD_ERROR            : constant := 12;
  3788.    FDS_ERR_DRIVE_ERROR                  : constant := 13;
  3789.    IDS_FILE_ALL_FILES_SELECTOR          : constant := 1000;
  3790.    IDS_FILE_BACK_CUR_PATH               : constant := 1001;
  3791.    IDS_FILE_BACK_PREV_PATH              : constant := 1002;
  3792.    IDS_FILE_BACK_SLASH                  : constant := 1003;
  3793.    IDS_FILE_BASE_FILTER                 : constant := 1004;
  3794.    IDS_FILE_BLANK                       : constant := 1005;
  3795.    IDS_FILE_COLON                       : constant := 1006;
  3796.    IDS_FILE_DOT                         : constant := 1007;
  3797.    IDS_FILE_DRIVE_LETTERS               : constant := 1008;
  3798.    IDS_FILE_FWD_CUR_PATH                : constant := 1009;
  3799.    IDS_FILE_FWD_PREV_PATH               : constant := 1010;
  3800.    IDS_FILE_FORWARD_SLASH               : constant := 1011;
  3801.    IDS_FILE_PARENT_DIR                  : constant := 1012;
  3802.    IDS_FILE_Q_MARK                      : constant := 1013;
  3803.    IDS_FILE_SPLAT                       : constant := 1014;
  3804.    IDS_FILE_SPLAT_DOT                   : constant := 1015;
  3805.    IDS_FILE_SAVEAS_TITLE                : constant := 1016;
  3806.    IDS_FILE_SAVEAS_FILTER_TXT           : constant := 1017;
  3807.    IDS_FILE_SAVEAS_FILENM_TXT           : constant := 1018;
  3808.    IDS_FILE_DUMMY_FILE_NAME             : constant := 1019;
  3809.    IDS_FILE_DUMMY_FILE_EXT              : constant := 1020;
  3810.    IDS_FILE_DUMMY_DRIVE                 : constant := 1021;
  3811.    IDS_FILE_DUMMY_ROOT_DIR              : constant := 1022;
  3812.    IDS_FILE_PATH_PTR                    : constant := 1023;
  3813.    IDS_FILE_VOLUME_PREFIX               : constant := 16#0400#;
  3814.    IDS_FILE_VOLUME_SUFFIX               : constant := 1025;
  3815.    IDS_FILE_PATH_PTR2                   : constant := 1026;
  3816.    IDS_FILE_INVALID_CHARS               : constant := 1027;
  3817.    IDS_FILE_BAD_DRIVE_NAME              : constant := 1100;
  3818.    IDS_FILE_BAD_DRIVE_OR_PATH_NAME      : constant := 1101;
  3819.    IDS_FILE_BAD_FILE_NAME               : constant := 1102;
  3820.    IDS_FILE_BAD_FQF                     : constant := 1103;
  3821.    IDS_FILE_BAD_NETWORK_NAME            : constant := 1104;
  3822.    IDS_FILE_BAD_SUB_DIR_NAME            : constant := 1105;
  3823.    IDS_FILE_DRIVE_NOT_AVAILABLE         : constant := 1106;
  3824.    IDS_FILE_FQFNAME_TOO_LONG            : constant := 1107;
  3825.    IDS_FILE_OPEN_DIALOG_NOTE            : constant := 1108;
  3826.    IDS_FILE_PATH_TOO_LONG               : constant := 1109;
  3827.    IDS_FILE_SAVEAS_DIALOG_NOTE          : constant := 1110;
  3828.    IDS_FILE_DRIVE_DISK_CHANGE           : constant := 1120;
  3829.    IDS_FILE_DRIVE_NOT_READY             : constant := 1122;
  3830.    IDS_FILE_DRIVE_LOCKED                : constant := 1123;
  3831.    IDS_FILE_DRIVE_NO_SECTOR             : constant := 1124;
  3832.    IDS_FILE_DRIVE_SOME_ERROR            : constant := 1125;
  3833.    IDS_FILE_DRIVE_INVALID               : constant := 1126;
  3834.    IDS_FILE_INSERT_DISK_NOTE            : constant := 1127;
  3835.    IDS_FILE_OK_WHEN_READY               : constant := 1128;
  3836.    CCHMAXPATH                           : constant := 260;
  3837.    CCHMAXPATHCOMP                       : constant := 16#0100#;
  3838.    FNTM_FACENAMECHANGED                 : constant := 16#1032#;
  3839.    FNTM_POINTSIZECHANGED                : constant := 16#1033#;
  3840.    FNTM_STYLECHANGED                    : constant := 16#1034#;
  3841.    FNTM_COLORCHANGED                    : constant := 16#1035#;
  3842.    FNTM_UPDATEPREVIEW                   : constant := 16#1036#;
  3843.    FNTM_FILTERLIST                      : constant := 16#1037#;
  3844.    FNTS_CENTER                          : constant := 16#0001#;
  3845.    FNTS_CUSTOM                          : constant := 16#0002#;
  3846.    FNTS_OWNERDRAWPREVIEW                : constant := 16#0004#;
  3847.    FNTS_HELPBUTTON                      : constant := 16#0008#;
  3848.    FNTS_APPLYBUTTON                     : constant := 16#0010#;
  3849.    FNTS_RESETBUTTON                     : constant := 16#0020#;
  3850.    FNTS_MODELESS                        : constant := 16#0040#;
  3851.    FNTS_INITFROMFATTRS                  : constant := 16#0080#;
  3852.    FNTS_BITMAPONLY                      : constant := 16#0100#;
  3853.    FNTS_VECTORONLY                      : constant := 16#0200#;
  3854.    FNTS_FIXEDWIDTHONLY                  : constant := 16#0400#;
  3855.    FNTS_PROPORTIONALONLY                : constant := 16#0800#;
  3856.    FNTS_NOSYNTHESIZEDFONTS              : constant := 16#1000#;
  3857.    FNTF_NOVIEWSCREENFONTS               : constant := 16#0001#;
  3858.    FNTF_NOVIEWPRINTERFONTS              : constant := 16#0002#;
  3859.    FNTF_SCREENFONTSELECTED              : constant := 16#0004#;
  3860.    FNTF_PRINTERFONTSELECTED             : constant := 16#0008#;
  3861.    CLRC_FOREGROUND                      : constant := 1;
  3862.    CLRC_BACKGROUND                      : constant := 2;
  3863.    FNTI_BITMAPFONT                      : constant := 16#0001#;
  3864.    FNTI_VECTORFONT                      : constant := 16#0002#;
  3865.    FNTI_FIXEDWIDTHFONT                  : constant := 16#0004#;
  3866.    FNTI_PROPORTIONALFONT                : constant := 16#0008#;
  3867.    FNTI_SYNTHESIZED                     : constant := 16#0010#;
  3868.    FNTI_DEFAULTLIST                     : constant := 16#0020#;
  3869.    FNTI_FAMILYNAME                      : constant := 16#0100#;
  3870.    FNTI_STYLENAME                       : constant := 16#0200#;
  3871.    FNTI_POINTSIZE                       : constant := 16#0400#;
  3872.    FNTS_SUCCESSFUL                      : constant := 8#0000#;
  3873.    FNTS_ERR_INVALID_DIALOG              : constant := 3;
  3874.    FNTS_ERR_ALLOC_SHARED_MEM            : constant := 4;
  3875.    FNTS_ERR_INVALID_PARM                : constant := 5;
  3876.    FNTS_ERR_OUT_OF_MEMORY               : constant := 7;
  3877.    FNTS_ERR_INVALID_VERSION             : constant := 10;
  3878.    FNTS_ERR_DIALOG_LOAD_ERROR           : constant := 12;
  3879.    DID_FONT_DIALOG                      : constant := 300;
  3880.    DID_NAME                             : constant := 301;
  3881.    DID_STYLE                            : constant := 302;
  3882.    DID_DISPLAY_FILTER                   : constant := 303;
  3883.    DID_PRINTER_FILTER                   : constant := 304;
  3884.    DID_SIZE                             : constant := 305;
  3885.    DID_SAMPLE                           : constant := 306;
  3886.    DID_OUTLINE                          : constant := 307;
  3887.    DID_UNDERSCORE                       : constant := 308;
  3888.    DID_STRIKEOUT                        : constant := 309;
  3889.    DID_HELP_BUTTON                      : constant := 310;
  3890.    DID_APPLY_BUTTON                     : constant := 311;
  3891.    DID_RESET_BUTTON                     : constant := 312;
  3892.    DID_OK_BUTTON                        : constant := 1;
  3893.    DID_CANCEL_BUTTON                    : constant := 2;
  3894.    DID_NAME_PREFIX                      : constant := 313;
  3895.    DID_STYLE_PREFIX                     : constant := 314;
  3896.    DID_SIZE_PREFIX                      : constant := 315;
  3897.    DID_SAMPLE_GROUPBOX                  : constant := 316;
  3898.    DID_EMPHASIS_GROUPBOX                : constant := 317;
  3899.    DID_FONT_ISO_SUPPORT                 : constant := 318;
  3900.    DID_FONT_ISO_UNTESTED                : constant := 319;
  3901.    IDS_FONT_SAMPLE                      : constant := 350;
  3902.    IDS_FONT_BLANK                       : constant := 351;
  3903.    IDS_FONT_KEY_0                       : constant := 352;
  3904.    IDS_FONT_KEY_9                       : constant := 353;
  3905.    IDS_FONT_KEY_SEP                     : constant := 354;
  3906.    IDS_FONT_DISP_ONLY                   : constant := 355;
  3907.    IDS_FONT_PRINTER_ONLY                : constant := 356;
  3908.    IDS_FONT_COMBINED                    : constant := 357;
  3909.    IDS_FONT_WEIGHT1                     : constant := 358;
  3910.    IDS_FONT_WEIGHT2                     : constant := 359;
  3911.    IDS_FONT_WEIGHT3                     : constant := 360;
  3912.    IDS_FONT_WEIGHT4                     : constant := 361;
  3913.    IDS_FONT_WEIGHT5                     : constant := 362;
  3914.    IDS_FONT_WEIGHT6                     : constant := 363;
  3915.    IDS_FONT_WEIGHT7                     : constant := 364;
  3916.    IDS_FONT_WEIGHT8                     : constant := 365;
  3917.    IDS_FONT_WEIGHT9                     : constant := 366;
  3918.    IDS_FONT_WIDTH1                      : constant := 367;
  3919.    IDS_FONT_WIDTH2                      : constant := 368;
  3920.    IDS_FONT_WIDTH3                      : constant := 369;
  3921.    IDS_FONT_WIDTH4                      : constant := 370;
  3922.    IDS_FONT_WIDTH5                      : constant := 371;
  3923.    IDS_FONT_WIDTH6                      : constant := 372;
  3924.    IDS_FONT_WIDTH7                      : constant := 373;
  3925.    IDS_FONT_WIDTH8                      : constant := 374;
  3926.    IDS_FONT_WIDTH9                      : constant := 375;
  3927.    IDS_FONT_OPTION0                     : constant := 376;
  3928.    IDS_FONT_OPTION1                     : constant := 377;
  3929.    IDS_FONT_OPTION2                     : constant := 378;
  3930.    IDS_FONT_OPTION3                     : constant := 379;
  3931.    IDS_FONT_POINT_SIZE_LIST             : constant := 380;
  3932.    SPBS_ALLCHARACTERS                   : constant := 16#0000#;
  3933.    SPBS_NUMERICONLY                     : constant := 16#0001#;
  3934.    SPBS_READONLY                        : constant := 16#0002#;
  3935.    SPBS_SERVANT                         : constant := 16#0000#;
  3936.    SPBS_MASTER                          : constant := 16#0010#;
  3937.    SPBS_JUSTDEFAULT                     : constant := 16#0000#;
  3938.    SPBS_JUSTRIGHT                       : constant := 16#0004#;
  3939.    SPBS_JUSTLEFT                        : constant := 16#0008#;
  3940.    SPBS_JUSTCENTER                      : constant := 16#000C#;
  3941.    SPBS_NOBORDER                        : constant := 16#0020#;
  3942.    SPBS_PADWITHZEROS                    : constant := 16#0080#;
  3943.    SPBS_FASTSPIN                        : constant := 16#0100#;
  3944.    SPBM_OVERRIDESETLIMITS               : constant := 16#0200#;
  3945.    SPBM_QUERYLIMITS                     : constant := 16#0201#;
  3946.    SPBM_SETTEXTLIMIT                    : constant := 16#0202#;
  3947.    SPBM_SPINUP                          : constant := 16#0203#;
  3948.    SPBM_SPINDOWN                        : constant := 16#0204#;
  3949.    SPBM_QUERYVALUE                      : constant := 16#0205#;
  3950.    SPBM_SETARRAY                        : constant := 16#0206#;
  3951.    SPBM_SETLIMITS                       : constant := 16#0207#;
  3952.    SPBM_SETCURRENTVALUE                 : constant := 16#0208#;
  3953.    SPBM_SETMASTER                       : constant := 16#0209#;
  3954.    SPBN_UPARROW                         : constant := 16#020A#;
  3955.    SPBN_DOWNARROW                       : constant := 16#020B#;
  3956.    SPBN_ENDSPIN                         : constant := 16#020C#;
  3957.    SPBN_CHANGE                          : constant := 16#020D#;
  3958.    SPBN_SETFOCUS                        : constant := 16#020E#;
  3959.    SPBN_KILLFOCUS                       : constant := 16#020F#;
  3960.    SPBQ_UPDATEIFVALID                   : constant := 8#0000#;
  3961.    SPBQ_ALWAYSUPDATE                    : constant := 1;
  3962.    SPBQ_DONOTUPDATE                     : constant := 3;
  3963.    SLM_ADDDETENT                        : constant := 16#0369#;
  3964.    SLM_QUERYDETENTPOS                   : constant := 16#036A#;
  3965.    SLM_QUERYSCALETEXT                   : constant := 16#036B#;
  3966.    SLM_QUERYSLIDERINFO                  : constant := 16#036C#;
  3967.    SLM_QUERYTICKPOS                     : constant := 16#036D#;
  3968.    SLM_QUERYTICKSIZE                    : constant := 16#036E#;
  3969.    SLM_REMOVEDETENT                     : constant := 16#036F#;
  3970.    SLM_SETSCALETEXT                     : constant := 16#0370#;
  3971.    SLM_SETSLIDERINFO                    : constant := 16#0371#;
  3972.    SLM_SETTICKSIZE                      : constant := 16#0372#;
  3973.    SLN_CHANGE                           : constant := 1;
  3974.    SLN_SLIDERTRACK                      : constant := 2;
  3975.    SLN_SETFOCUS                         : constant := 3;
  3976.    SLN_KILLFOCUS                        : constant := 4;
  3977.    SLS_HORIZONTAL                       : constant := 16#0000#;
  3978.    SLS_VERTICAL                         : constant := 16#0001#;
  3979.    SLS_CENTER                           : constant := 16#0000#;
  3980.    SLS_BOTTOM                           : constant := 16#0002#;
  3981.    SLS_TOP                              : constant := 16#0004#;
  3982.    SLS_LEFT                             : constant := 16#0002#;
  3983.    SLS_RIGHT                            : constant := 16#0004#;
  3984.    SLS_SNAPTOINCREMENT                  : constant := 16#0008#;
  3985.    SLS_BUTTONSBOTTOM                    : constant := 16#0010#;
  3986.    SLS_BUTTONSTOP                       : constant := 16#0020#;
  3987.    SLS_BUTTONSLEFT                      : constant := 16#0010#;
  3988.    SLS_BUTTONSRIGHT                     : constant := 16#0020#;
  3989.    SLS_OWNERDRAW                        : constant := 16#0040#;
  3990.    SLS_READONLY                         : constant := 16#0080#;
  3991.    SLS_RIBBONSTRIP                      : constant := 16#0100#;
  3992.    SLS_HOMEBOTTOM                       : constant := 16#0000#;
  3993.    SLS_HOMETOP                          : constant := 16#0200#;
  3994.    SLS_HOMELEFT                         : constant := 16#0000#;
  3995.    SLS_HOMERIGHT                        : constant := 16#0200#;
  3996.    SLS_PRIMARYSCALE1                    : constant := 16#0000#;
  3997.    SLS_PRIMARYSCALE2                    : constant := 16#0400#;
  3998.    SMA_SCALE1                           : constant := 16#0001#;
  3999.    SMA_SCALE2                           : constant := 16#0002#;
  4000.    SMA_SHAFTDIMENSIONS                  : constant := 16#0000#;
  4001.    SMA_SHAFTPOSITION                    : constant := 16#0001#;
  4002.    SMA_SLIDERARMDIMENSIONS              : constant := 16#0002#;
  4003.    SMA_SLIDERARMPOSITION                : constant := 16#0003#;
  4004.    SMA_RANGEVALUE                       : constant := 16#0000#;
  4005.    SMA_INCREMENTVALUE                   : constant := 16#0001#;
  4006.    SMA_SETALLTICKS                      : constant := 16#0000_FFFF#;
  4007.    SDA_RIBBONSTRIP                      : constant := 1;
  4008.    SDA_SLIDERSHAFT                      : constant := 2;
  4009.    SDA_BACKGROUND                       : constant := 3;
  4010.    SDA_SLIDERARM                        : constant := 4;
  4011.    PMERR_UPDATE_IN_PROGRESS             : constant := 16#1F06#;
  4012.    SLDERR_INVALID_PARAMETERS            : constant := -1;
  4013.    BKM_CALCPAGERECT                     : constant := 16#0353#;
  4014.    BKM_DELETEPAGE                       : constant := 16#0354#;
  4015.    BKM_INSERTPAGE                       : constant := 16#0355#;
  4016.    BKM_INVALIDATETABS                   : constant := 16#0356#;
  4017.    BKM_TURNTOPAGE                       : constant := 16#0357#;
  4018.    BKM_QUERYPAGECOUNT                   : constant := 16#0358#;
  4019.    BKM_QUERYPAGEID                      : constant := 16#0359#;
  4020.    BKM_QUERYPAGEDATA                    : constant := 16#035A#;
  4021.    BKM_QUERYPAGEWINDOWHWND              : constant := 16#035B#;
  4022.    BKM_QUERYTABBITMAP                   : constant := 16#035C#;
  4023.    BKM_QUERYTABTEXT                     : constant := 16#035D#;
  4024.    BKM_SETDIMENSIONS                    : constant := 16#035E#;
  4025.    BKM_SETPAGEDATA                      : constant := 16#035F#;
  4026.    BKM_SETPAGEWINDOWHWND                : constant := 16#0360#;
  4027.    BKM_SETSTATUSLINETEXT                : constant := 16#0361#;
  4028.    BKM_SETTABBITMAP                     : constant := 16#0362#;
  4029.    BKM_SETTABTEXT                       : constant := 16#0363#;
  4030.    BKM_SETNOTEBOOKCOLORS                : constant := 16#0364#;
  4031.    BKM_QUERYPAGESTYLE                   : constant := 16#0365#;
  4032.    BKM_QUERYSTATUSLINETEXT              : constant := 16#0366#;
  4033.    BKN_PAGESELECTED                     : constant := 130;
  4034.    BKN_NEWPAGESIZE                      : constant := 131;
  4035.    BKN_HELP                             : constant := 132;
  4036.    BKN_PAGEDELETED                      : constant := 133;
  4037.    BKA_ALL                              : constant := 16#0001#;
  4038.    BKA_SINGLE                           : constant := 16#0002#;
  4039.    BKA_TAB                              : constant := 16#0004#;
  4040.    BKA_LAST                             : constant := 16#0002#;
  4041.    BKA_FIRST                            : constant := 16#0004#;
  4042.    BKA_NEXT                             : constant := 16#0008#;
  4043.    BKA_PREV                             : constant := 16#0010#;
  4044.    BKA_TOP                              : constant := 16#0020#;
  4045.    BKA_MAJORTAB                         : constant := 16#0001#;
  4046.    BKA_MINORTAB                         : constant := 16#0002#;
  4047.    BKA_PAGEBUTTON                       : constant := 16#0100#;
  4048.    BKA_STATUSTEXTON                     : constant := 16#0001#;
  4049.    BKA_MAJOR                            : constant := 16#0040#;
  4050.    BKA_MINOR                            : constant := 16#0080#;
  4051.    BKA_AUTOPAGESIZE                     : constant := 16#0100#;
  4052.    BKA_END                              : constant := 16#0200#;
  4053.    BKA_TEXT                             : constant := 16#0400#;
  4054.    BKA_BITMAP                           : constant := 16#0800#;
  4055.    BKS_BACKPAGESBR                      : constant := 16#0001#;
  4056.    BKS_BACKPAGESBL                      : constant := 16#0002#;
  4057.    BKS_BACKPAGESTR                      : constant := 16#0004#;
  4058.    BKS_BACKPAGESTL                      : constant := 16#0008#;
  4059.    BKS_MAJORTABRIGHT                    : constant := 16#0010#;
  4060.    BKS_MAJORTABLEFT                     : constant := 16#0020#;
  4061.    BKS_MAJORTABTOP                      : constant := 16#0040#;
  4062.    BKS_MAJORTABBOTTOM                   : constant := 16#0080#;
  4063.    BKS_SQUARETABS                       : constant := 16#0000#;
  4064.    BKS_ROUNDEDTABS                      : constant := 16#0100#;
  4065.    BKS_POLYGONTABS                      : constant := 16#0200#;
  4066.    BKS_SOLIDBIND                        : constant := 16#0000#;
  4067.    BKS_SPIRALBIND                       : constant := 16#0400#;
  4068.    BKS_STATUSTEXTLEFT                   : constant := 16#0000#;
  4069.    BKS_STATUSTEXTRIGHT                  : constant := 16#1000#;
  4070.    BKS_STATUSTEXTCENTER                 : constant := 16#2000#;
  4071.    BKS_TABTEXTLEFT                      : constant := 16#0000#;
  4072.    BKS_TABTEXTRIGHT                     : constant := 16#4000#;
  4073.    BKS_TABTEXTCENTER                    : constant := 16#8000#;
  4074.    BKA_BACKGROUNDPAGECOLORINDEX         : constant := 16#0001#;
  4075.    BKA_BACKGROUNDPAGECOLOR              : constant := 16#0002#;
  4076.    BKA_BACKGROUNDMAJORCOLORINDEX        : constant := 16#0003#;
  4077.    BKA_BACKGROUNDMAJORCOLOR             : constant := 16#0004#;
  4078.    BKA_BACKGROUNDMINORCOLORINDEX        : constant := 16#0005#;
  4079.    BKA_BACKGROUNDMINORCOLOR             : constant := 16#0006#;
  4080.    BKA_FOREGROUNDMAJORCOLORINDEX        : constant := 16#0007#;
  4081.    BKA_FOREGROUNDMAJORCOLOR             : constant := 16#0008#;
  4082.    BKA_FOREGROUNDMINORCOLORINDEX        : constant := 16#0009#;
  4083.    BKA_FOREGROUNDMINORCOLOR             : constant := 16#000A#;
  4084.    BOOKERR_INVALID_PARAMETERS           : constant := -1;
  4085.    PMERR_NOT_DRAGGING                   : constant := 16#1F00#;
  4086.    PMERR_ALREADY_DRAGGING               : constant := 16#1F01#;
  4087.    WM_DRAGFIRST                         : constant := 16#0310#;
  4088.    WM_DRAGLAST                          : constant := 16#032F#;
  4089.    DM_DROP                              : constant := 16#032F#;
  4090.    DM_DRAGOVER                          : constant := 16#032E#;
  4091.    DM_DRAGLEAVE                         : constant := 16#032D#;
  4092.    DM_DROPHELP                          : constant := 16#032C#;
  4093.    DM_ENDCONVERSATION                   : constant := 16#032B#;
  4094.    DM_PRINT                             : constant := 16#032A#;
  4095.    DM_RENDER                            : constant := 16#0329#;
  4096.    DM_RENDERCOMPLETE                    : constant := 16#0328#;
  4097.    DM_RENDERPREPARE                     : constant := 16#0327#;
  4098.    DM_DRAGFILECOMPLETE                  : constant := 16#0326#;
  4099.    DM_EMPHASIZETARGET                   : constant := 16#0325#;
  4100.    DM_DRAGERROR                         : constant := 16#0324#;
  4101.    DM_FILERENDERED                      : constant := 16#0323#;
  4102.    DM_RENDERFILE                        : constant := 16#0322#;
  4103.    DM_DRAGOVERNOTIFY                    : constant := 16#0321#;
  4104.    DM_PRINTOBJECT                       : constant := 16#0320#;
  4105.    DM_DISCARDOBJECT                     : constant := 16#031F#;
  4106.    MSGF_DRAG                            : constant := 16#0010#;
  4107.    DC_OPEN                              : constant := 16#0001#;
  4108.    DC_REF                               : constant := 16#0002#;
  4109.    DC_GROUP                             : constant := 16#0004#;
  4110.    DC_CONTAINER                         : constant := 16#0008#;
  4111.    DC_PREPARE                           : constant := 16#0010#;
  4112.    DC_REMOVEABLEMEDIA                   : constant := 16#0020#;
  4113.    DF_MOVE                              : constant := 16#0001#;
  4114.    DF_SOURCE                            : constant := 16#0002#;
  4115.    DF_SUCCESSFUL                        : constant := 16#0004#;
  4116.    DFF_MOVE                             : constant := 1;
  4117.    DFF_COPY                             : constant := 2;
  4118.    DFF_DELETE                           : constant := 3;
  4119.    DME_IGNOREABORT                      : constant := 1;
  4120.    DME_IGNORECONTINUE                   : constant := 2;
  4121.    DME_REPLACE                          : constant := 3;
  4122.    DME_RETRY                            : constant := 4;
  4123.    DMFL_TARGETSUCCESSFUL                : constant := 16#0001#;
  4124.    DMFL_TARGETFAIL                      : constant := 16#0002#;
  4125.    DMFL_NATIVERENDER                    : constant := 16#0004#;
  4126.    DMFL_RENDERRETRY                     : constant := 16#0008#;
  4127.    DMFL_RENDEROK                        : constant := 16#0010#;
  4128.    DMFL_RENDERFAIL                      : constant := 16#0020#;
  4129.    DO_DEFAULT                           : constant := 16#0000_BFFE#;
  4130.    DO_UNKNOWN                           : constant := 16#0000_BFFF#;
  4131.    DO_COPYABLE                          : constant := 16#0001#;
  4132.    DO_MOVEABLE                          : constant := 16#0002#;
  4133.    DO_LINKABLE                          : constant := 16#0004#;
  4134.    DO_COPY                              : constant := 16#0010#;
  4135.    DO_MOVE                              : constant := 16#0020#;
  4136.    DO_LINK                              : constant := 16#0018#;
  4137.    DO_CREATE                            : constant := 16#0040#;
  4138.    DOR_NODROP                           : constant := 16#0000#;
  4139.    DOR_DROP                             : constant := 16#0001#;
  4140.    DOR_NODROPOP                         : constant := 16#0002#;
  4141.    DOR_NEVERDROP                        : constant := 16#0003#;
  4142.    DRG_ICON                             : constant := 16#0001#;
  4143.    DRG_BITMAP                           : constant := 16#0002#;
  4144.    DRG_POLYGON                          : constant := 16#0004#;
  4145.    DRG_STRETCH                          : constant := 16#0008#;
  4146.    DRG_TRANSPARENT                      : constant := 16#0010#;
  4147.    DRG_CLOSED                           : constant := 16#0020#;
  4148.    DRR_SOURCE                           : constant := 1;
  4149.    DRR_TARGET                           : constant := 2;
  4150.    DRR_ABORT                            : constant := 3;
  4151.    DRT_ASM                              : constant string := "Assembler Code";
  4152.    DRT_BASIC                            : constant string := "BASIC Code";
  4153.    DRT_BINDATA                          : constant string := "Binary Data";
  4154.    DRT_BITMAP                           : constant string := "Bitmap";
  4155.    DRT_C                                : constant string := "C Code";
  4156.    DRT_COBOL                            : constant string := "COBOL Code";
  4157.    DRT_DLL                              : constant string := "Dynamic Link Library";
  4158.    DRT_DOSCMD                           : constant string := "DOS Command File";
  4159.    DRT_EXE                              : constant string := "Executable";
  4160.    DRT_FORTRAN                          : constant string := "FORTRAN Code";
  4161.    DRT_ICON                             : constant string := "Icon";
  4162.    DRT_LIB                              : constant string := "Library";
  4163.    DRT_METAFILE                         : constant string := "Metafile";
  4164.    DRT_OS2CMD                           : constant string := "OS/2 Command File";
  4165.    DRT_PASCAL                           : constant string := "Pascal Code";
  4166.    DRT_RESOURCE                         : constant string := "Resource File";
  4167.    DRT_TEXT                             : constant string := "Plain Text";
  4168.    DRT_UNKNOWN                          : constant string := "Unknown";
  4169.    VDA_ITEM                             : constant := 16#0001#;
  4170.    VDA_ITEMBACKGROUND                   : constant := 16#0002#;
  4171.    VDA_SURROUNDING                      : constant := 16#0003#;
  4172.    VDA_BACKGROUND                       : constant := 16#0004#;
  4173.    VIA_BITMAP                           : constant := 16#0001#;
  4174.    VIA_ICON                             : constant := 16#0002#;
  4175.    VIA_TEXT                             : constant := 16#0004#;
  4176.    VIA_RGB                              : constant := 16#0008#;
  4177.    VIA_COLORINDEX                       : constant := 16#0010#;
  4178.    VIA_OWNERDRAW                        : constant := 16#0020#;
  4179.    VIA_DISABLED                         : constant := 16#0040#;
  4180.    VIA_DRAGGABLE                        : constant := 16#0080#;
  4181.    VIA_DROPONABLE                       : constant := 16#0100#;
  4182.    VM_QUERYITEM                         : constant := 16#0375#;
  4183.    VM_QUERYITEMATTR                     : constant := 16#0376#;
  4184.    VM_QUERYMETRICS                      : constant := 16#0377#;
  4185.    VM_QUERYSELECTEDITEM                 : constant := 16#0378#;
  4186.    VM_SELECTITEM                        : constant := 16#0379#;
  4187.    VM_SETITEM                           : constant := 16#037A#;
  4188.    VM_SETITEMATTR                       : constant := 16#037B#;
  4189.    VM_SETMETRICS                        : constant := 16#037C#;
  4190.    VMA_ITEMSIZE                         : constant := 16#0001#;
  4191.    VMA_ITEMSPACING                      : constant := 16#0002#;
  4192.    VN_SELECT                            : constant := 16#0078#;
  4193.    VN_ENTER                             : constant := 16#0079#;
  4194.    VN_DRAGLEAVE                         : constant := 16#007A#;
  4195.    VN_DRAGOVER                          : constant := 16#007B#;
  4196.    VN_DROP                              : constant := 16#007C#;
  4197.    VN_DROPHELP                          : constant := 16#007D#;
  4198.    VN_INITDRAG                          : constant := 16#007E#;
  4199.    VN_SETFOCUS                          : constant := 16#007F#;
  4200.    VN_KILLFOCUS                         : constant := 16#0080#;
  4201.    VN_HELP                              : constant := 16#0081#;
  4202.    VS_BITMAP                            : constant := 16#0001#;
  4203.    VS_ICON                              : constant := 16#0002#;
  4204.    VS_TEXT                              : constant := 16#0004#;
  4205.    VS_RGB                               : constant := 16#0008#;
  4206.    VS_COLORINDEX                        : constant := 16#0010#;
  4207.    VS_BORDER                            : constant := 16#0020#;
  4208.    VS_ITEMBORDER                        : constant := 16#0040#;
  4209.    VS_SCALEBITMAPS                      : constant := 16#0080#;
  4210.    VS_RIGHTTOLEFT                       : constant := 16#0100#;
  4211.    VS_OWNERDRAW                         : constant := 16#0200#;
  4212.    VSERR_INVALID_PARAMETERS             : constant := -1;
  4213.    CA_CONTAINERTITLE                    : constant := 16#0200#;
  4214.    CA_TITLESEPARATOR                    : constant := 16#0400#;
  4215.    CA_TITLELEFT                         : constant := 16#0800#;
  4216.    CA_TITLERIGHT                        : constant := 16#1000#;
  4217.    CA_TITLECENTER                       : constant := 16#2000#;
  4218.    CA_OWNERDRAW                         : constant := 16#4000#;
  4219.    CA_DETAILSVIEWTITLES                 : constant := 16#8000#;
  4220.    CA_ORDEREDTARGETEMPH                 : constant := 16#0001_0000#;
  4221.    CA_DRAWBITMAP                        : constant := 16#0002_0000#;
  4222.    CA_DRAWICON                          : constant := 16#0004_0000#;
  4223.    CA_TITLEREADONLY                     : constant := 16#0008_0000#;
  4224.    CA_OWNERPAINTBACKGROUND              : constant := 16#0010_0000#;
  4225.    CA_MIXEDTARGETEMPH                   : constant := 16#0020_0000#;
  4226.    CA_TREELINE                          : constant := 16#0040_0000#;
  4227.    CCS_EXTENDSEL                        : constant := 16#0001#;
  4228.    CCS_MULTIPLESEL                      : constant := 16#0002#;
  4229.    CCS_SINGLESEL                        : constant := 16#0004#;
  4230.    CCS_AUTOPOSITION                     : constant := 16#0008#;
  4231.    CCS_VERIFYPOINTERS                   : constant := 16#0010#;
  4232.    CCS_READONLY                         : constant := 16#0020#;
  4233.    CCS_MINIRECORDCORE                   : constant := 16#0040#;
  4234.    CFA_LEFT                             : constant := 16#0001#;
  4235.    CFA_RIGHT                            : constant := 16#0002#;
  4236.    CFA_CENTER                           : constant := 16#0004#;
  4237.    CFA_TOP                              : constant := 16#0008#;
  4238.    CFA_VCENTER                          : constant := 16#0010#;
  4239.    CFA_BOTTOM                           : constant := 16#0020#;
  4240.    CFA_INVISIBLE                        : constant := 16#0040#;
  4241.    CFA_BITMAPORICON                     : constant := 16#0100#;
  4242.    CFA_SEPARATOR                        : constant := 16#0200#;
  4243.    CFA_HORZSEPARATOR                    : constant := 16#0400#;
  4244.    CFA_STRING                           : constant := 16#0800#;
  4245.    CFA_OWNER                            : constant := 16#1000#;
  4246.    CFA_DATE                             : constant := 16#2000#;
  4247.    CFA_TIME                             : constant := 16#4000#;
  4248.    CFA_FIREADONLY                       : constant := 16#8000#;
  4249.    CFA_FITITLEREADONLY                  : constant := 16#0001_0000#;
  4250.    CFA_ULONG                            : constant := 16#0002_0000#;
  4251.    CID_LEFTCOLTITLEWND                  : constant := 16#7FF0#;
  4252.    CID_RIGHTCOLTITLEWND                 : constant := 16#7FF1#;
  4253.    CID_BLANKBOX                         : constant := 16#7FF2#;
  4254.    CID_HSCROLL                          : constant := 16#7FF3#;
  4255.    CID_RIGHTHSCROLL                     : constant := 16#7FF4#;
  4256.    CID_CNRTITLEWND                      : constant := 16#7FF5#;
  4257.    CID_LEFTDVWND                        : constant := 16#7FF7#;
  4258.    CID_RIGHTDVWND                       : constant := 16#7FF8#;
  4259.    CID_VSCROLL                          : constant := 16#7FF9#;
  4260.    CID_MLE                              : constant := 16#7FFA#;
  4261.    CM_ALLOCDETAILFIELDINFO              : constant := 16#0330#;
  4262.    CM_ALLOCRECORD                       : constant := 16#0331#;
  4263.    CM_ARRANGE                           : constant := 16#0332#;
  4264.    CM_ERASERECORD                       : constant := 16#0333#;
  4265.    CM_FILTER                            : constant := 16#0334#;
  4266.    CM_FREEDETAILFIELDINFO               : constant := 16#0335#;
  4267.    CM_FREERECORD                        : constant := 16#0336#;
  4268.    CM_HORZSCROLLSPLITWINDOW             : constant := 16#0337#;
  4269.    CM_INSERTDETAILFIELDINFO             : constant := 16#0338#;
  4270.    CM_INSERTRECORD                      : constant := 16#0339#;
  4271.    CM_INVALIDATEDETAILFIELDINFO         : constant := 16#033A#;
  4272.    CM_INVALIDATERECORD                  : constant := 16#033B#;
  4273.    CM_PAINTBACKGROUND                   : constant := 16#033C#;
  4274.    CM_QUERYCNRINFO                      : constant := 16#033D#;
  4275.    CM_QUERYDETAILFIELDINFO              : constant := 16#033E#;
  4276.    CM_QUERYDRAGIMAGE                    : constant := 16#033F#;
  4277.    CM_QUERYRECORD                       : constant := 16#0340#;
  4278.    CM_QUERYRECORDEMPHASIS               : constant := 16#0341#;
  4279.    CM_QUERYRECORDFROMRECT               : constant := 16#0342#;
  4280.    CM_QUERYRECORDRECT                   : constant := 16#0343#;
  4281.    CM_QUERYVIEWPORTRECT                 : constant := 16#0344#;
  4282.    CM_REMOVEDETAILFIELDINFO             : constant := 16#0345#;
  4283.    CM_REMOVERECORD                      : constant := 16#0346#;
  4284.    CM_SCROLLWINDOW                      : constant := 16#0347#;
  4285.    CM_SEARCHSTRING                      : constant := 16#0348#;
  4286.    CM_SETCNRINFO                        : constant := 16#0349#;
  4287.    CM_SETRECORDEMPHASIS                 : constant := 16#034A#;
  4288.    CM_SORTRECORD                        : constant := 16#034B#;
  4289.    CM_OPENEDIT                          : constant := 16#034C#;
  4290.    CM_CLOSEEDIT                         : constant := 16#034D#;
  4291.    CM_COLLAPSETREE                      : constant := 16#034E#;
  4292.    CM_EXPANDTREE                        : constant := 16#034F#;
  4293.    CM_QUERYRECORDINFO                   : constant := 16#0350#;
  4294.    CMA_TOP                              : constant := 16#0001#;
  4295.    CMA_BOTTOM                           : constant := 16#0002#;
  4296.    CMA_LEFT                             : constant := 16#0004#;
  4297.    CMA_RIGHT                            : constant := 16#0008#;
  4298.    CMA_FIRST                            : constant := 16#0010#;
  4299.    CMA_LAST                             : constant := 16#0020#;
  4300.    CMA_END                              : constant := 16#0040#;
  4301.    CMA_PREV                             : constant := 16#0080#;
  4302.    CMA_NEXT                             : constant := 16#0100#;
  4303.    CMA_HORIZONTAL                       : constant := 16#0200#;
  4304.    CMA_VERTICAL                         : constant := 16#0400#;
  4305.    CMA_ICON                             : constant := 16#0800#;
  4306.    CMA_TEXT                             : constant := 16#1000#;
  4307.    CMA_PARTIAL                          : constant := 16#2000#;
  4308.    CMA_COMPLETE                         : constant := 16#4000#;
  4309.    CMA_PARENT                           : constant := 16#0001#;
  4310.    CMA_FIRSTCHILD                       : constant := 16#0002#;
  4311.    CMA_LASTCHILD                        : constant := 16#0004#;
  4312.    CMA_CNRTITLE                         : constant := 16#0001#;
  4313.    CMA_DELTA                            : constant := 16#0002#;
  4314.    CMA_FLWINDOWATTR                     : constant := 16#0004#;
  4315.    CMA_LINESPACING                      : constant := 16#0008#;
  4316.    CMA_PFIELDINFOLAST                   : constant := 16#0010#;
  4317.    CMA_PSORTRECORD                      : constant := 16#0020#;
  4318.    CMA_PTLORIGIN                        : constant := 16#0040#;
  4319.    CMA_SLBITMAPORICON                   : constant := 16#0080#;
  4320.    CMA_XVERTSPLITBAR                    : constant := 16#0100#;
  4321.    CMA_PFIELDINFOOBJECT                 : constant := 16#0200#;
  4322.    CMA_TREEICON                         : constant := 16#0400#;
  4323.    CMA_TREEBITMAP                       : constant := 16#0800#;
  4324.    CMA_CXTREEINDENT                     : constant := 16#1000#;
  4325.    CMA_CXTREELINE                       : constant := 16#2000#;
  4326.    CMA_SLTREEBITMAPORICON               : constant := 16#4000#;
  4327.    CMA_ITEMORDER                        : constant := 16#0001#;
  4328.    CMA_WINDOW                           : constant := 16#0002#;
  4329.    CMA_WORKSPACE                        : constant := 16#0004#;
  4330.    CMA_ZORDER                           : constant := 16#0008#;
  4331.    CMA_DELTATOP                         : constant := 16#0001#;
  4332.    CMA_DELTABOT                         : constant := 16#0002#;
  4333.    CMA_DELTAHOME                        : constant := 16#0004#;
  4334.    CMA_DELTAEND                         : constant := 16#0008#;
  4335.    CMA_NOREPOSITION                     : constant := 16#0001#;
  4336.    CMA_REPOSITION                       : constant := 16#0002#;
  4337.    CMA_TEXTCHANGED                      : constant := 16#0004#;
  4338.    CMA_ERASE                            : constant := 16#0008#;
  4339.    CMA_FREE                             : constant := 16#0001#;
  4340.    CMA_INVALIDATE                       : constant := 16#0002#;
  4341.    CN_DRAGAFTER                         : constant := 16#0065#;
  4342.    CN_DRAGLEAVE                         : constant := 16#0066#;
  4343.    CN_DRAGOVER                          : constant := 16#0067#;
  4344.    CN_DROP                              : constant := 16#0068#;
  4345.    CN_DROPHELP                          : constant := 16#0069#;
  4346.    CN_ENTER                             : constant := 16#006A#;
  4347.    CN_INITDRAG                          : constant := 16#006B#;
  4348.    CN_EMPHASIS                          : constant := 16#006C#;
  4349.    CN_KILLFOCUS                         : constant := 16#006D#;
  4350.    CN_SCROLL                            : constant := 16#006E#;
  4351.    CN_QUERYDELTA                        : constant := 16#006F#;
  4352.    CN_SETFOCUS                          : constant := 16#0070#;
  4353.    CN_REALLOCPSZ                        : constant := 16#0071#;
  4354.    CN_BEGINEDIT                         : constant := 16#0072#;
  4355.    CN_ENDEDIT                           : constant := 16#0073#;
  4356.    CN_COLLAPSETREE                      : constant := 16#0074#;
  4357.    CN_EXPANDTREE                        : constant := 16#0075#;
  4358.    CN_HELP                              : constant := 16#0076#;
  4359.    CN_CONTEXTMENU                       : constant := 16#0077#;
  4360.    CRA_SELECTED                         : constant := 16#0001#;
  4361.    CRA_TARGET                           : constant := 16#0002#;
  4362.    CRA_CURSORED                         : constant := 16#0004#;
  4363.    CRA_INUSE                            : constant := 16#0008#;
  4364.    CRA_FILTERED                         : constant := 16#0010#;
  4365.    CRA_DROPONABLE                       : constant := 16#0020#;
  4366.    CRA_RECORDREADONLY                   : constant := 16#0040#;
  4367.    CRA_EXPANDED                         : constant := 16#0080#;
  4368.    CRA_COLLAPSED                        : constant := 16#0100#;
  4369.    CRA_SOURCE                           : constant := 16#4000#;
  4370.    CV_TEXT                              : constant := 16#0001#;
  4371.    CV_NAME                              : constant := 16#0002#;
  4372.    CV_ICON                              : constant := 16#0004#;
  4373.    CV_DETAIL                            : constant := 16#0008#;
  4374.    CV_FLOW                              : constant := 16#0010#;
  4375.    CV_MINI                              : constant := 16#0020#;
  4376.    CV_TREE                              : constant := 16#0040#;
  4377.    PMERR_NOFILTERED_ITEMS               : constant := 16#1F02#;
  4378.    PMERR_COMPARISON_FAILED              : constant := 16#1F03#;
  4379.    PMERR_RECORD_CURRENTLY_INSERTED      : constant := 16#1F04#;
  4380.    PMERR_FI_CURRENTLY_INSERTED          : constant := 16#1F05#;
  4381.    CO_FAILIFEXISTS                      : constant := 8#0000#;
  4382.    CO_REPLACEIFEXISTS                   : constant := 1;
  4383.    CO_UPDATEIFEXISTS                    : constant := 2;
  4384.    SPL_ERROR                            : constant := 8#0000#;
  4385.    SPL_OK                               : constant := 1;
  4386.    SPL_INI_SPOOLER                      : constant string := "PM_SPOOLER";
  4387.    SPL_INI_QUEUE                        : constant string := "PM_SPOOLER_QUEUE";
  4388.    SPL_INI_PRINTER                      : constant string := "PM_SPOOLER_PRINTER";
  4389.    SPL_INI_PRINTERDESCR                 : constant string := "PM_SPOOLER_PRINTER_DESCR";
  4390.    SPL_INI_QUEUEDESCR                   : constant string := "PM_SPOOLER_QUEUE_DESCR";
  4391.    SPL_INI_QUEUEDD                      : constant string := "PM_SPOOLER_QUEUE_DD";
  4392.    SPL_INI_QUEUEDDDATA                  : constant string := "PM_SPOOLER_QUEUE_DDDATA";
  4393.    SPLC_ABORT                           : constant := 1;
  4394.    SPLC_PAUSE                           : constant := 2;
  4395.    SPLC_CONTINUE                        : constant := 3;
  4396.    SPLDATA_PRINTERJAM                   : constant := 16#0001#;
  4397.    SPLDATA_FORMCHGREQD                  : constant := 16#0002#;
  4398.    SPLDATA_CARTCHGREQD                  : constant := 16#0004#;
  4399.    SPLDATA_PENCHGREQD                   : constant := 16#0008#;
  4400.    SPLDATA_DATAERROR                    : constant := 16#0010#;
  4401.    SPLDATA_UNEXPECTERROR                : constant := 16#0020#;
  4402.    SPLDATA_OTHER                        : constant := 16#8000#;
  4403.    SPLINFO_QPERROR                      : constant := 16#0001#;
  4404.    SPLINFO_DDERROR                      : constant := 16#0002#;
  4405.    SPLINFO_SPLERROR                     : constant := 16#0004#;
  4406.    SPLINFO_OTHERERROR                   : constant := 16#0080#;
  4407.    SPLINFO_INFORMATION                  : constant := 16#0100#;
  4408.    SPLINFO_WARNING                      : constant := 16#0200#;
  4409.    SPLINFO_ERROR                        : constant := 16#0400#;
  4410.    SPLINFO_SEVERE                       : constant := 16#0800#;
  4411.    SPLINFO_USERINTREQD                  : constant := 16#1000#;
  4412.    SSQL_ERROR                           : constant := -1;
  4413.    QP_RAWDATA_BYPASS                    : constant := 16#0001#;
  4414.    QPDAT_ADDRESS                        : constant := 8#0000#;
  4415.    QPDAT_DRIVER_NAME                    : constant := 1;
  4416.    QPDAT_DRIVER_DATA                    : constant := 2;
  4417.    QPDAT_DATA_TYPE                      : constant := 3;
  4418.    QPDAT_COMMENT                        : constant := 4;
  4419.    QPDAT_PROC_PARAMS                    : constant := 5;
  4420.    QPDAT_SPL_PARAMS                     : constant := 6;
  4421.    QPDAT_NET_PARAMS                     : constant := 7;
  4422.    QPDAT_DOC_NAME                       : constant := 8;
  4423.    QPDAT_QUEUE_NAME                     : constant := 9;
  4424.    QPDAT_TOKEN                          : constant := 10;
  4425.    QPDAT_JOBID                          : constant := 11;
  4426.    CNLEN                                : constant := 15;
  4427.    DTLEN                                : constant := 9;
  4428.    PDLEN                                : constant := 8;
  4429.    QNLEN                                : constant := 12;
  4430.    UNLEN                                : constant := 20;
  4431.    DRIV_DEVICENAME_SIZE                 : constant := 31;
  4432.    DRIV_NAME_SIZE                       : constant := 8;
  4433.    FORMNAME_SIZE                        : constant := 31;
  4434.    MAXCOMMENTSZ                         : constant := 48;
  4435.    PRINTERNAME_SIZE                     : constant := 16#0020#;
  4436.    QP_DATATYPE_SIZE                     : constant := 15;
  4437.    PRD_STATUS_MASK                      : constant := 16#0003#;
  4438.    PRD_DEVSTATUS                        : constant := 16#0FFC#;
  4439.    PRD_ACTIVE                           : constant := 8#0000#;
  4440.    PRD_PAUSED                           : constant := 1;
  4441.    PRD_DELETE                           : constant := 8#0000#;
  4442.    PRD_PAUSE                            : constant := 1;
  4443.    PRD_CONT                             : constant := 2;
  4444.    PRD_RESTART                          : constant := 3;
  4445.    PRD_LOGADDR_PARMNUM                  : constant := 3;
  4446.    PRD_COMMENT_PARMNUM                  : constant := 7;
  4447.    PRD_DRIVERS_PARMNUM                  : constant := 8;
  4448.    PRD_TIMEOUT_PARMNUM                  : constant := 10;
  4449.    PRJ_NOTIFYNAME_PARMNUM               : constant := 3;
  4450.    PRJ_DATATYPE_PARMNUM                 : constant := 4;
  4451.    PRJ_PARMS_PARMNUM                    : constant := 5;
  4452.    PRJ_POSITION_PARMNUM                 : constant := 6;
  4453.    PRJ_JOBFILEINUSE_PARMNUM             : constant := 7;
  4454.    PRJ_COMMENT_PARMNUM                  : constant := 11;
  4455.    PRJ_DOCUMENT_PARMNUM                 : constant := 12;
  4456.    PRJ_STATUSCOMMENT_PARMNUM            : constant := 13;
  4457.    PRJ_PRIORITY_PARMNUM                 : constant := 14;
  4458.    PRJ_PROCPARMS_PARMNUM                : constant := 16#0010#;
  4459.    PRJ_DRIVERDATA_PARMNUM               : constant := 18;
  4460.    PRJ_MAXPARMNUM                       : constant := 18;
  4461.    PRJ_QSTATUS                          : constant := 16#0003#;
  4462.    PRJ_DEVSTATUS                        : constant := 16#0FFC#;
  4463.    PRJ_COMPLETE                         : constant := 16#0004#;
  4464.    PRJ_INTERV                           : constant := 16#0008#;
  4465.    PRJ_ERROR                            : constant := 16#0010#;
  4466.    PRJ_DESTOFFLINE                      : constant := 16#0020#;
  4467.    PRJ_DESTPAUSED                       : constant := 16#0040#;
  4468.    PRJ_NOTIFY                           : constant := 16#0080#;
  4469.    PRJ_DESTNOPAPER                      : constant := 16#0100#;
  4470.    PRJ_DESTFORMCHG                      : constant := 16#0200#;
  4471.    PRJ_DESTCRTCHG                       : constant := 16#0400#;
  4472.    PRJ_DESTPENCHG                       : constant := 16#0800#;
  4473.    PRJ_JOBFILEINUSE                     : constant := 16#4000#;
  4474.    PRJ_DELETED                          : constant := 16#8000#;
  4475.    PRJ_QS_QUEUED                        : constant := 8#0000#;
  4476.    PRJ_QS_PAUSED                        : constant := 1;
  4477.    PRJ_QS_SPOOLING                      : constant := 2;
  4478.    PRJ_QS_PRINTING                      : constant := 3;
  4479.    PRJ_MAX_PRIORITY                     : constant := 99;
  4480.    PRJ_MIN_PRIORITY                     : constant := 1;
  4481.    PRJ_NO_PRIORITY                      : constant := 8#0000#;
  4482.    PRQ_PRIORITY_PARMNUM                 : constant := 2;
  4483.    PRQ_STARTTIME_PARMNUM                : constant := 3;
  4484.    PRQ_UNTILTIME_PARMNUM                : constant := 4;
  4485.    PRQ_SEPARATOR_PARMNUM                : constant := 5;
  4486.    PRQ_PROCESSOR_PARMNUM                : constant := 6;
  4487.    PRQ_DESTINATIONS_PARMNUM             : constant := 7;
  4488.    PRQ_PARMS_PARMNUM                    : constant := 8;
  4489.    PRQ_COMMENT_PARMNUM                  : constant := 9;
  4490.    PRQ_TYPE_PARMNUM                     : constant := 10;
  4491.    PRQ_PRINTERS_PARMNUM                 : constant := 12;
  4492.    PRQ_DRIVERNAME_PARMNUM               : constant := 13;
  4493.    PRQ_DRIVERDATA_PARMNUM               : constant := 14;
  4494.    PRQ_REMOTE_COMPUTER_PARMNUM          : constant := 15;
  4495.    PRQ_REMOTE_QUEUE_PARMNUM             : constant := 16#0010#;
  4496.    PRQ_MAXPARMNUM                       : constant := 16#0010#;
  4497.    PRQ_MAX_PRIORITY                     : constant := 1;
  4498.    PRQ_DEF_PRIORITY                     : constant := 5;
  4499.    PRQ_MIN_PRIORITY                     : constant := 9;
  4500.    PRQ_NO_PRIORITY                      : constant := 8#0000#;
  4501.    PRQ_STATUS_MASK                      : constant := 3;
  4502.    PRQ_ACTIVE                           : constant := 8#0000#;
  4503.    PRQ_PAUSED                           : constant := 1;
  4504.    PRQ_ERROR                            : constant := 2;
  4505.    PRQ_PENDING                          : constant := 3;
  4506.    PRQ3_PAUSED                          : constant := 16#0001#;
  4507.    PRQ3_PENDING                         : constant := 16#0002#;
  4508.    PRQ3_TYPE_RAW                        : constant := 16#0001#;
  4509.    PRQ3_TYPE_BYPASS                     : constant := 16#0002#;
  4510.    PRQ3_TYPE_APPDEFAULT                 : constant := 16#0004#;
  4511.    SPL_PR_QUEUE                         : constant := 16#0001#;
  4512.    SPL_PR_DIRECT_DEVICE                 : constant := 16#0002#;
  4513.    SPL_PR_QUEUED_DEVICE                 : constant := 16#0004#;
  4514.    SPL_PR_LOCAL_ONLY                    : constant := 16#0100#;
  4515.    CMIC_HIDE_PANEL_ID                   : constant := 16#0000#;
  4516.    CMIC_SHOW_PANEL_ID                   : constant := 16#0001#;
  4517.    CMIC_TOGGLE_PANEL_ID                 : constant := 16#0002#;
  4518.     CTRL_PREVIOUS_ID                    : constant USHORT := 1;
  4519.     CTRL_SEARCH_ID                      : constant USHORT := 2;
  4520.     CTRL_PRINT_ID                       : constant USHORT := 3;
  4521.     CTRL_INDEX_ID                       : constant USHORT := 4;
  4522.     CTRL_CONTENTS_ID                    : constant USHORT := 5;
  4523.     CTRL_BACK_ID                        : constant USHORT := 6;
  4524.     CTRL_FORWARD_ID                     : constant USHORT := 7;
  4525.     CTRL_TUTORIAL_ID                    : constant USHORT := 255;
  4526.     CTRL_USER_ID_BASE                   : constant USHORT := 257;
  4527.    HM_MSG_BASE                          : constant := 16#0220#;
  4528.    HM_DISMISS_WINDOW                    : constant := 16#0221#;
  4529.    HM_DISPLAY_HELP                      : constant := 16#0222#;
  4530.    HM_EXT_HELP                          : constant := 16#0223#;
  4531.    HM_GENERAL_HELP                      : constant := 16#0223#;
  4532.    HM_SET_ACTIVE_WINDOW                 : constant := 16#0224#;
  4533.    HM_LOAD_HELP_TABLE                   : constant := 16#0225#;
  4534.    HM_CREATE_HELP_TABLE                 : constant := 16#0226#;
  4535.    HM_SET_HELP_WINDOW_TITLE             : constant := 16#0227#;
  4536.    HM_SET_SHOW_PANEL_ID                 : constant := 16#0228#;
  4537.    HM_REPLACE_HELP_FOR_HELP             : constant := 16#0229#;
  4538.    HM_REPLACE_USING_HELP                : constant := 16#0229#;
  4539.    HM_HELP_INDEX                        : constant := 16#022A#;
  4540.    HM_HELP_CONTENTS                     : constant := 16#022B#;
  4541.    HM_KEYS_HELP                         : constant := 16#022C#;
  4542.    HM_SET_HELP_LIBRARY_NAME             : constant := 16#022D#;
  4543.    HM_ERROR                             : constant := 16#022E#;
  4544.    HM_HELPSUBITEM_NOT_FOUND             : constant := 16#022F#;
  4545.    HM_QUERY_KEYS_HELP                   : constant := 16#0230#;
  4546.    HM_TUTORIAL                          : constant := 16#0231#;
  4547.    HM_EXT_HELP_UNDEFINED                : constant := 16#0232#;
  4548.    HM_GENERAL_HELP_UNDEFINED            : constant := 16#0232#;
  4549.    HM_ACTIONBAR_COMMAND                 : constant := 16#0233#;
  4550.    HM_INFORM                            : constant := 16#0234#;
  4551.    HM_SET_OBJCOM_WINDOW                 : constant := 16#0238#;
  4552.    HM_UPDATE_OBJCOM_WINDOW_CHAIN        : constant := 16#0239#;
  4553.    HM_QUERY_DDF_DATA                    : constant := 16#023A#;
  4554.    HM_INVALIDATE_DDF_DATA               : constant := 16#023B#;
  4555.    HM_QUERY                             : constant := 16#023C#;
  4556.    HM_SET_COVERPAGE_SIZE                : constant := 16#023D#;
  4557.    HM_NOTIFY                            : constant := 16#0242#;
  4558.    HM_SET_USERDATA                      : constant := 16#0243#;
  4559.    HM_CONTROL                           : constant := 16#0244#;
  4560.    HM_RESOURCEID                        : constant := 8#0000#;
  4561.    HM_PANELNAME                         : constant := 1;
  4562.    HMERR_NO_FRAME_WND_IN_CHAIN          : constant := 16#1001#;
  4563.    HMERR_INVALID_ASSOC_APP_WND          : constant := 16#1002#;
  4564.    HMERR_INVALID_ASSOC_HELP_INST        : constant := 16#1003#;
  4565.    HMERR_INVALID_DESTROY_HELP_INST      : constant := 16#1004#;
  4566.    HMERR_NO_HELP_INST_IN_CHAIN          : constant := 16#1005#;
  4567.    HMERR_INVALID_HELP_INSTANCE_HDL      : constant := 16#1006#;
  4568.    HMERR_INVALID_QUERY_APP_WND          : constant := 16#1007#;
  4569.    HMERR_HELP_INST_CALLED_INVALID       : constant := 16#1008#;
  4570.    HMERR_HELPTABLE_UNDEFINE             : constant := 16#1009#;
  4571.    HMERR_HELP_INSTANCE_UNDEFINE         : constant := 16#100A#;
  4572.    HMERR_HELPITEM_NOT_FOUND             : constant := 16#100B#;
  4573.    HMERR_INVALID_HELPSUBITEM_SIZE       : constant := 16#100C#;
  4574.    HMERR_HELPSUBITEM_NOT_FOUND          : constant := 16#100D#;
  4575.    HMERR_INDEX_NOT_FOUND                : constant := 16#2001#;
  4576.    HMERR_CONTENT_NOT_FOUND              : constant := 16#2002#;
  4577.    HMERR_OPEN_LIB_FILE                  : constant := 16#2003#;
  4578.    HMERR_READ_LIB_FILE                  : constant := 16#2004#;
  4579.    HMERR_CLOSE_LIB_FILE                 : constant := 16#2005#;
  4580.    HMERR_INVALID_LIB_FILE               : constant := 16#2006#;
  4581.    HMERR_NO_MEMORY                      : constant := 16#2007#;
  4582.    HMERR_ALLOCATE_SEGMENT               : constant := 16#2008#;
  4583.    HMERR_FREE_MEMORY                    : constant := 16#2009#;
  4584.    HMERR_PANEL_NOT_FOUND                : constant := 16#2010#;
  4585.    HMERR_DATABASE_NOT_OPEN              : constant := 16#2011#;
  4586.    HMERR_LOAD_DLL                       : constant := 16#2013#;
  4587.    HMPANELTYPE_NUMBER                   : constant := 8#0000#;
  4588.    HMPANELTYPE_NAME                     : constant := 1;
  4589.    HMQVP_NUMBER                         : constant := 16#0001#;
  4590.    HMQVP_NAME                           : constant := 16#0002#;
  4591.    HMQVP_GROUP                          : constant := 16#0003#;
  4592.    HMQW_COVERPAGE                       : constant := 16#0001#;
  4593.    HMQW_INDEX                           : constant := 16#0002#;
  4594.    HMQW_TOC                             : constant := 16#0003#;
  4595.    HMQW_SEARCH                          : constant := 16#0004#;
  4596.    HMQW_VIEWPAGES                       : constant := 16#0005#;
  4597.    HMQW_LIBRARY                         : constant := 16#0006#;
  4598.    HMQW_VIEWPORT                        : constant := 16#0007#;
  4599.    HMQW_OBJCOM_WINDOW                   : constant := 16#0008#;
  4600.    HMQW_INSTANCE                        : constant := 16#0009#;
  4601.    HMQW_ACTIVEVIEWPORT                  : constant := 16#000A#;
  4602.    CONTROL_SELECTED                     : constant := 16#000B#;
  4603.    HMQW_GROUP_VIEWPORT                  : constant := 16#00F1#;
  4604.    HMQW_RES_VIEWPORT                    : constant := 16#00F2#;
  4605.    USERDATA                             : constant := 16#00F3#;
  4606.    OPEN_COVERPAGE                       : constant := 16#0001#;
  4607.    OPEN_PAGE                            : constant := 16#0002#;
  4608.    SWAP_PAGE                            : constant := 16#0003#;
  4609.    OPEN_TOC                             : constant := 16#0004#;
  4610.    OPEN_INDEX                           : constant := 16#0005#;
  4611.    OPEN_HISTORY                         : constant := 16#0006#;
  4612.    OPEN_SEARCH_HIT_LIST                 : constant := 16#0007#;
  4613.    OPEN_LIBRARY                         : constant := 16#0008#;
  4614.    ART_RUNIN                            : constant := 16#0010#;
  4615.    ART_LEFT                             : constant := 16#0001#;
  4616.    ART_RIGHT                            : constant := 16#0002#;
  4617.    ART_CENTER                           : constant := 16#0004#;
  4618.    CLR_UNCHANGED                        : constant := -6;
  4619.    HMBT_NONE                            : constant := 1;
  4620.    HMBT_ALL                             : constant := 2;
  4621.    HMBT_FIT                             : constant := 3;
  4622.    HMERR_DDF_MEMORY                     : constant := 16#3001#;
  4623.    HMERR_DDF_ALIGN_TYPE                 : constant := 16#3002#;
  4624.    HMERR_DDF_BACKCOLOR                  : constant := 16#3003#;
  4625.    HMERR_DDF_FORECOLOR                  : constant := 16#3004#;
  4626.    HMERR_DDF_FONTSTYLE                  : constant := 16#3005#;
  4627.    HMERR_DDF_REFTYPE                    : constant := 16#3006#;
  4628.    HMERR_DDF_LIST_UNCLOSED              : constant := 16#3007#;
  4629.    HMERR_DDF_LIST_UNINITIALIZED         : constant := 16#3008#;
  4630.    HMERR_DDF_LIST_BREAKTYPE             : constant := 16#3009#;
  4631.    HMERR_DDF_LIST_SPACING               : constant := 16#300A#;
  4632.    HMERR_DDF_HINSTANCE                  : constant := 16#300B#;
  4633.    HMERR_DDF_EXCEED_MAX_LENGTH          : constant := 16#300C#;
  4634.    HMERR_DDF_EXCEED_MAX_INC             : constant := 16#300D#;
  4635.    HMERR_DDF_INVALID_DDF                : constant := 16#300E#;
  4636.    HMERR_DDF_FORMAT_TYPE                : constant := 16#300F#;
  4637.    HMERR_DDF_INVALID_PARM               : constant := 16#3010#;
  4638.    HMERR_DDF_INVALID_FONT               : constant := 16#3011#;
  4639.    HMERR_DDF_SEVERE                     : constant := 16#3012#;
  4640.    HMLS_SINGLELINE                      : constant := 1;
  4641.    HMLS_DOUBLELINE                      : constant := 2;
  4642.    REFERENCE_BY_ID                      : constant := 8#0000#;
  4643.    REFERENCE_BY_RES                     : constant := 1;
  4644.    FONTDEFFONT1                         : constant := 16#0047#;
  4645.    FONTDEFFONT2                         : constant := 16#0042#;
  4646.    FONTDEFFONT3                         : constant := 16#0042#;
  4647.    FONTDEFCHAR1                         : constant := 16#0081#;
  4648.    FONTDEFCHAR2                         : constant := 16#0081#;
  4649.    FONTDEFCHAR3                         : constant := 16#00B8#;
  4650.    SPACE_UNDEF                          : constant := 16#8000#;
  4651.    FONT_SIGNATURE                       : constant := 16#FFFF_FFFE#;
  4652.    FONT_METRICS                         : constant := 16#0001#;
  4653.    FONT_DEFINITION                      : constant := 16#0002#;
  4654.    FONT_KERNPAIRS                       : constant := 16#0003#;
  4655.    FONT_ADDITIONALMETRICS               : constant := 16#0004#;
  4656.    FONT_ENDRECORD                       : constant := 16#FFFF_FFFF#;
  4657.    QUERY_PUBLIC_FONTS                   : constant := 16#0001#;
  4658.    QUERY_PRIVATE_FONTS                  : constant := 16#0002#;
  4659.    CDEF_GENERIC                         : constant := 16#0001#;
  4660.    CDEF_BOLD                            : constant := 16#0002#;
  4661.    CDEF_ITALIC                          : constant := 16#0004#;
  4662.    CDEF_UNDERSCORE                      : constant := 16#0008#;
  4663.    CDEF_STRIKEOUT                       : constant := 16#0010#;
  4664.    CDEF_OUTLINE                         : constant := 16#0020#;
  4665.    FORMAT_CGA                           : constant := 16#0001#;
  4666.    FORMAT_4BYTE                         : constant := 16#0003#;
  4667.    VQF_PUBLIC                           : constant := 16#0001#;
  4668.    VQF_PRIVATE                          : constant := 16#0002#;
  4669.  
  4670.    type ARRAY_OF_CHAR is
  4671.       array(integer range 0..7)
  4672.       of CHAR;
  4673.  
  4674.    type STR8 is
  4675.       array(integer range 0..7)
  4676.       of CHAR;
  4677.  
  4678.    type STR16 is
  4679.       array(integer range 0..15)
  4680.       of CHAR;
  4681.  
  4682.    type STR32 is
  4683.       array(integer range 0..31)
  4684.       of CHAR;
  4685.  
  4686.    type STR64 is
  4687.       array(integer range 0..63)
  4688.       of CHAR;
  4689.  
  4690.    type ARRAY_OF_BYTE is
  4691.       array(integer range <>)
  4692.       of BYTE;
  4693.  
  4694.    type ARRAY_OF_HPROGRAM is
  4695.       array(integer range <>)
  4696.       of HPROGRAM;
  4697.  
  4698.    type struct_FATTRS;
  4699.    type struct_PANOSE;
  4700.    type struct_FONTMETRICS;
  4701.    type struct_POINTL;
  4702.    type struct_POINTS;
  4703.    type struct_RECTL;
  4704.    type struct_QMSG;
  4705.    type struct_COMMANDMSG;
  4706.    type struct_MQINFO;
  4707.    type struct_SWP;
  4708.    type struct_RGB;
  4709.    type struct_RGB2;
  4710.    type struct_BITMAPINFOHEADER;
  4711.    type struct_BITMAPINFO;
  4712.    type struct_BITMAPINFO2;
  4713.    type struct_BITMAPINFOHEADER2;
  4714.    type struct_BITMAPFILEHEADER;
  4715.    type struct_BITMAPARRAYFILEHEADER;
  4716.    type struct_BITMAPFILEHEADER2;
  4717.    type struct_BITMAPARRAYFILEHEADER2;
  4718.    type struct_ICONINFO;
  4719.    type struct_FRAMECDATA;
  4720.    type struct_QVERSDATA;
  4721.    type struct_CLASSINFO;
  4722.    type struct_CREATESTRUCT;
  4723.    type struct_ACCEL;
  4724.    type struct_ACCELTABLE;
  4725.    type struct_BTNCDATA;
  4726.    type struct_USERBUTTON;
  4727.    type struct_CPTEXT;
  4728.    type struct_MFP;
  4729.    type struct_CONVCONTEXT;
  4730.    type struct_DDEINIT;
  4731.    type struct_DDESTRUCT;
  4732.    type struct_CURSORINFO;
  4733.    type struct_DESKTOP;
  4734.    type struct_DLGTITEM;
  4735.    type struct_DLGTEMPLATE;
  4736.    type struct_ENTRYFDATA;
  4737.    type struct_ERRINFO;
  4738.    type struct_SMHSTRUCT;
  4739.    type struct_CHARMSG;
  4740.    type struct_MOUSEMSG;
  4741.    type struct_MENUITEM;
  4742.    type struct_mti;
  4743.    type struct_mt;
  4744.    type struct_OWNERITEM;
  4745.    type struct_WNDPARAMS;
  4746.    type struct_POINTERINFO;
  4747.    type struct_SBCDATA;
  4748.    type struct_PARAM;
  4749.    type struct_PRESPARAMS;
  4750.    type struct_TRACKINFO;
  4751.    type struct_FORMATRECT;
  4752.    type struct_MLECTLDATA;
  4753.    type struct_MLEOVERFLOW;
  4754.    type struct_MLEMARGSTRUCT;
  4755.    type struct_SEARCH;
  4756.    type struct_SIZEL;
  4757.    type struct_RGNRECT;
  4758.    type struct_MATRIXLF;
  4759.    type struct_ARCPARAMS;
  4760.    type struct_SIZEF;
  4761.    type struct_POLYGON;
  4762.    type struct_POLYSET;
  4763.    type struct_GRADIENTL;
  4764.    type struct_KERNINGPAIRS;
  4765.    type struct_FACENAMEDESC;
  4766.    type struct_FFDESCS2;
  4767.    type struct_LINEBUNDLE;
  4768.    type struct_CHARBUNDLE;
  4769.    type struct_MARKERBUNDLE;
  4770.    type struct_AREABUNDLE;
  4771.    type struct_IMAGEBUNDLE;
  4772.    type struct_DRIVDATA;
  4773.    type struct_DEVOPENSTRUC;
  4774.    type struct_ESCMODE;
  4775.    type struct_VIOSIZECOUNT;
  4776.    type struct_VIOFONTCELLSIZE;
  4777.    type struct_SFACTORS;
  4778.    type struct_BANDRECT;
  4779.    type struct_HCINFO;
  4780.    type struct_PRFPROFILE;
  4781.    type struct_HPROGARRAY;
  4782.    type struct_PROGTYPE;
  4783.    type struct_PROGTITLE;
  4784.    type struct_PROGDETAILS;
  4785.    type struct_SWCNTRL;
  4786.    type struct_SWENTRY;
  4787.    type struct_SWBLOCK;
  4788.    type struct_FILEDLG;
  4789.    type struct_FONTDLG;
  4790.    type struct_STYLECHANGE;
  4791.    type struct_SLDCDATA;
  4792.    type struct_BOOKTEXT;
  4793.    type struct_DELETENOTIFY;
  4794.    type struct_PAGESELECTNOTIFY;
  4795.    type struct_DRAGIMAGE;
  4796.    type struct_DRAGINFO;
  4797.    type struct_DRAGITEM;
  4798.    type struct_DRAGTRANSFER;
  4799.    type struct_RENDERFILE;
  4800.    type struct_VSCDATA;
  4801.    type struct_VSDRAGINIT;
  4802.    type struct_VSDRAGINFO;
  4803.    type struct_VSTEXT;
  4804.    type struct_TREEITEMDESC;
  4805.    type struct_FIELDINFO;
  4806.    type struct_RECORDCORE;
  4807.    type struct_MINIRECORDCORE;
  4808.    type struct_CNRINFO;
  4809.    type struct_CDATE;
  4810.    type struct_CTIME;
  4811.    type struct_CNRDRAGINIT;
  4812.    type struct_FIELDINFOINSERT;
  4813.    type struct_RECORDINSERT;
  4814.    type struct_QUERYRECFROMRECT;
  4815.    type struct_QUERYRECORDRECT;
  4816.    type struct_SEARCHSTRING;
  4817.    type struct_CNRDRAGINFO;
  4818.    type struct_NOTIFYRECORDEMPHASIS;
  4819.    type struct_NOTIFYRECORDENTER;
  4820.    type struct_NOTIFYDELTA;
  4821.    type struct_NOTIFYSCROLL;
  4822.    type struct_CNREDITDATA;
  4823.    type struct_OWNERBACKGROUND;
  4824.    type struct_CNRDRAWITEMINFO;
  4825.    type struct_OBJCLASS;
  4826.    type struct_SQPOPENDATA;
  4827.    type struct_DRIVPROPS;
  4828.    type struct_PRINTERINFO;
  4829.    type struct_PRJINFO;
  4830.    type struct_PRJINFO2;
  4831.    type struct_PRJINFO3;
  4832.    type struct_PRDINFO;
  4833.    type struct_PRDINFO3;
  4834.    type struct_PRQINFO;
  4835.    type struct_PRQINFO3;
  4836.    type struct_PRQINFO6;
  4837.    type struct_PRIDINFO;
  4838.    type struct_PRDRIVINFO;
  4839.    type struct_PRQPROCINFO;
  4840.    type struct_PRPORTINFO;
  4841.    type struct_PRPORTINFO1;
  4842.    type struct_ACVP;
  4843.    type struct_HELPTABLE;
  4844.    type struct_HELPINIT;
  4845.    type struct_FOCAMETRICS;
  4846.    type struct_FONTFILEMETRICS;
  4847.    type struct_FONTDEFINITIONHEADER;
  4848.    type struct_FONTSIGNATURE;
  4849.    type struct_ADDITIONALMETRICS;
  4850.    type struct_FOCAFONT;
  4851.  
  4852.    type PFATTRS is access all struct_FATTRS;
  4853.    type PFONTMETRICS is access all struct_FONTMETRICS;
  4854.    type PPOINTL is access all struct_POINTL;
  4855.    type PPOINTS is access all struct_POINTS;
  4856.    type PRECTL is access all struct_RECTL;
  4857.    type PQMSG is access all struct_QMSG;
  4858.    type PCMDMSG is access all struct_COMMANDMSG;
  4859.    type PMQINFO is access all struct_MQINFO;
  4860.    type PSWP is access all struct_SWP;
  4861.    type PRGB2 is access all struct_RGB2;
  4862.    type PBITMAPINFOHEADER is access all struct_BITMAPINFOHEADER;
  4863.    type PBITMAPINFO is access all struct_BITMAPINFO;
  4864.    type PBITMAPINFO2 is access all struct_BITMAPINFO2;
  4865.    type PBITMAPINFOHEADER2 is access all struct_BITMAPINFOHEADER2;
  4866.    type PBITMAPFILEHEADER is access all struct_BITMAPFILEHEADER;
  4867.    type PBITMAPARRAYFILEHEADER is access all struct_BITMAPARRAYFILEHEADER;
  4868.    type PBITMAPFILEHEADER2 is access all struct_BITMAPFILEHEADER2;
  4869.    type PBITMAPARRAYFILEHEADER2 is access all struct_BITMAPARRAYFILEHEADER2;
  4870.    type PICONINFO is access all struct_ICONINFO;
  4871. --   type PRECTL is access all struct_RECTL;
  4872. --   type PPOINTL is access all struct_POINTL;
  4873. --  type PSWP is access all struct_SWP;
  4874.    type PFRAMECDATA is access all struct_FRAMECDATA;
  4875.    type PQVERSDATA is access all struct_QVERSDATA;
  4876.    type PCLASSINFO is access all struct_CLASSINFO;
  4877.    type PCREATESTRUCT is access all struct_CREATESTRUCT;
  4878.    type PACCEL is access all struct_ACCEL;
  4879.    type PACCELTABLE is access all struct_ACCELTABLE;
  4880.    type PBTNCDATA is access all struct_BTNCDATA;
  4881.    type PUSERBUTTON is access all struct_USERBUTTON;
  4882.    type PCPTEXT is access all struct_CPTEXT;
  4883.    type PMFP is access all struct_MFP;
  4884.    type PCONVCONTEXT is access all struct_CONVCONTEXT;
  4885.    type PDDEINIT is access all struct_DDEINIT;
  4886.    type PDDESTRUCT is access all struct_DDESTRUCT;
  4887. --   type PCONVCONTEXT is access all struct_CONVCONTEXT;
  4888. --   type PDDESTRUCT is access all struct_DDESTRUCT;
  4889.    type PCURSORINFO is access all struct_CURSORINFO;
  4890. --   type PDESKTOP is access all struct_DESKTOP;
  4891.    type PDESKTOP is access all struct_DESKTOP;
  4892.    type PDLGTITEM is access all struct_DLGTITEM;
  4893.    type PDLGTEMPLATE is access all struct_DLGTEMPLATE;
  4894.    type PENTRYFDATA is access all struct_ENTRYFDATA;
  4895.    type PERRINFO is access all struct_ERRINFO;
  4896.    type PSMHSTRUCT is access all struct_SMHSTRUCT;
  4897.    type PCHRMSG is access all struct_CHARMSG;
  4898.    type PMSEMSG is access all struct_MOUSEMSG;
  4899.    type PMENUITEM is access all struct_MENUITEM;
  4900.    type LPMT is access all struct_mt;
  4901.    type POWNERITEM is access all struct_OWNERITEM;
  4902.    type PWNDPARAMS is access all struct_WNDPARAMS;
  4903.    type PPOINTERINFO is access all struct_POINTERINFO;
  4904. --   type PPOINTERINFO is access all struct_POINTERINFO;
  4905. --   type PICONINFO is access all struct_ICONINFO;
  4906.    type PSBCDATA is access all struct_SBCDATA;
  4907.    type NPPARAM is access all struct_PARAM;
  4908.    type PPARAM is access all struct_PARAM;
  4909.    type NPPRESPARAMS is access all struct_PRESPARAMS;
  4910.    type PPRESPARAMS is access all struct_PRESPARAMS;
  4911.    type PTRACKINFO is access all struct_TRACKINFO;
  4912.    type PFORMATRECT is access all struct_FORMATRECT;
  4913.    type PMLECTLDATA is access all struct_MLECTLDATA;
  4914.    type POVERFLOW is access all struct_MLEOVERFLOW;
  4915.    type PMARGSTRUCT is access all struct_MLEMARGSTRUCT;
  4916.    type PMLE_SEARCHDATA is access all struct_SEARCH;
  4917.    type PSIZEL is access all struct_SIZEL;
  4918.    type PRGNRECT is access all struct_RGNRECT;
  4919.    type PMATRIXLF is access all struct_MATRIXLF;
  4920.    type PARCPARAMS is access all struct_ARCPARAMS;
  4921.    type PSIZEF is access all struct_SIZEF;
  4922.    type PPOLYGON is access all struct_POLYGON;
  4923.    type PPOLYSET is access all struct_POLYSET;
  4924.    type PGRADIENTL is access all struct_GRADIENTL;
  4925.    type PKERNINGPAIRS is access all struct_KERNINGPAIRS;
  4926.    type PFACENAMEDESC is access all struct_FACENAMEDESC;
  4927.    type PFFDESCS2 is access all struct_FFDESCS2;
  4928.    type PLINEBUNDLE is access all struct_LINEBUNDLE;
  4929.    type PCHARBUNDLE is access all struct_CHARBUNDLE;
  4930.    type PMARKERBUNDLE is access all struct_MARKERBUNDLE;
  4931.    type PAREABUNDLE is access all struct_AREABUNDLE;
  4932.    type PIMAGEBUNDLE is access all struct_IMAGEBUNDLE;
  4933. --   type PMATRIXLF is access all struct_MATRIXLF;
  4934. --   type PBITMAPINFOHEADER2 is access all struct_BITMAPINFOHEADER2;
  4935. --   type PBITMAPINFO2 is access all struct_BITMAPINFO2;
  4936. --   type PFATTRS is access all struct_FATTRS;
  4937. --   type PSIZEL is access all struct_SIZEL;
  4938. --   type PPOLYGON is access all struct_POLYGON;
  4939. --   type PARCPARAMS is access all struct_ARCPARAMS;
  4940. --   type PGRADIENTL is access all struct_GRADIENTL;
  4941. --   type PSIZEF is access all struct_SIZEF;
  4942.    type PDRIVDATA is access all struct_DRIVDATA;
  4943.    type PDEVOPENSTRUC is access all struct_DEVOPENSTRUC;
  4944.    type PESCMODE is access all struct_ESCMODE;
  4945.    type PVIOSIZECOUNT is access all struct_VIOSIZECOUNT;
  4946.    type PVIOFONTCELLSIZE is access all struct_VIOFONTCELLSIZE;
  4947.    type PSFACTORS is access all struct_SFACTORS;
  4948.    type PBANDRECT is access all struct_BANDRECT;
  4949.    type PHCINFO is access all struct_HCINFO;
  4950.    type PPRFPROFILE is access all struct_PRFPROFILE;
  4951.    type PHPROGARRAY is access all struct_HPROGARRAY;
  4952.    type PPROGTYPE is access all struct_PROGTYPE;
  4953.    type PPROGTITLE is access all struct_PROGTITLE;
  4954.    type PPROGDETAILS is access all struct_PROGDETAILS;
  4955.    type PSWCNTRL is access all struct_SWCNTRL;
  4956. --   type PSWCNTRL is access all struct_SWCNTRL;
  4957.    type PSWENTRY is access all struct_SWENTRY;
  4958.    type PSWBLOCK is access all struct_SWBLOCK;
  4959. --   type PPRFPROFILE is access all struct_PRFPROFILE;
  4960.    type PFILEDLG is access all struct_FILEDLG;
  4961.    type PFONTDLG is access all struct_FONTDLG;
  4962.    type PSTYLECHANGE is access all struct_STYLECHANGE;
  4963.    type PSLDCDATA is access all struct_SLDCDATA;
  4964.    type PBOOKTEXT is access all struct_BOOKTEXT;
  4965.    type PDELETENOTIFY is access all struct_DELETENOTIFY;
  4966.    type PPAGESELECTNOTIFY is access all struct_PAGESELECTNOTIFY;
  4967.    type PDRAGIMAGE is access all struct_DRAGIMAGE;
  4968.    type PDRAGINFO is access all struct_DRAGINFO;
  4969.    type PDRAGITEM is access all struct_DRAGITEM;
  4970.    type PDRAGTRANSFER is access all struct_DRAGTRANSFER;
  4971.    type PRENDERFILE is access all struct_RENDERFILE;
  4972.    type PVSCDATA is access all struct_VSCDATA;
  4973.    type PVSDRAGINIT is access all struct_VSDRAGINIT;
  4974.    type PVSDRAGINFO is access all struct_VSDRAGINFO;
  4975.    type PVSTEXT is access all struct_VSTEXT;
  4976.    type PTREEITEMDESC is access all struct_TREEITEMDESC;
  4977.    type pstruct_FIELDINFO is access all struct_FIELDINFO;
  4978.    subtype PFIELDINFO is pstruct_FIELDINFO;
  4979.    type pstruct_RECORDCORE is access all struct_RECORDCORE;
  4980.    subtype PRECORDCORE is pstruct_RECORDCORE;
  4981.    type pstruct_MINIRECORDCORE is access all struct_MINIRECORDCORE;
  4982.    subtype PMINIRECORDCORE is pstruct_MINIRECORDCORE;
  4983.    type PCNRINFO is access all struct_CNRINFO;
  4984.    type PCDATE is access all struct_CDATE;
  4985.    type PCTIME is access all struct_CTIME;
  4986.    type PCNRDRAGINIT is access all struct_CNRDRAGINIT;
  4987.    type PFIELDINFOINSERT is access all struct_FIELDINFOINSERT;
  4988.    type PRECORDINSERT is access all struct_RECORDINSERT;
  4989.    type PQUERYRECFROMRECT is access all struct_QUERYRECFROMRECT;
  4990.    type PQUERYRECORDRECT is access all struct_QUERYRECORDRECT;
  4991.    type PSEARCHSTRING is access all struct_SEARCHSTRING;
  4992.    type PCNRDRAGINFO is access all struct_CNRDRAGINFO;
  4993.    type PNOTIFYRECORDEMPHASIS is access all struct_NOTIFYRECORDEMPHASIS;
  4994.    type PNOTIFYRECORDENTER is access all struct_NOTIFYRECORDENTER;
  4995.    type PNOTIFYDELTA is access all struct_NOTIFYDELTA;
  4996.    type PNOTIFYSCROLL is access all struct_NOTIFYSCROLL;
  4997.    type PCNREDITDATA is access all struct_CNREDITDATA;
  4998.    type POWNERBACKGROUND is access all struct_OWNERBACKGROUND;
  4999.    type PCNRDRAWITEMINFO is access all struct_CNRDRAWITEMINFO;
  5000.    type pstruct_OBJCLASS is access all struct_OBJCLASS;
  5001.    subtype POBJCLASS is pstruct_OBJCLASS;
  5002.    type PSQPOPENDATA is access all struct_SQPOPENDATA;
  5003.    type PDRIVPROPS is access all struct_DRIVPROPS;
  5004.    type PPRINTERINFO is access all struct_PRINTERINFO;
  5005.    type PPRJINFO is access all struct_PRJINFO;
  5006.    type PPRJINFO2 is access all struct_PRJINFO2;
  5007.    type PPRJINFO3 is access all struct_PRJINFO3;
  5008.    type PPRDINFO is access all struct_PRDINFO;
  5009.    type PPRDINFO3 is access all struct_PRDINFO3;
  5010.    type PPRQINFO is access all struct_PRQINFO;
  5011.    type PPRQINFO3 is access all struct_PRQINFO3;
  5012.    type PPRQINFO6 is access all struct_PRQINFO6;
  5013.    type PPRIDINFO is access all struct_PRIDINFO;
  5014.    type PPRDRIVINFO is access all struct_PRDRIVINFO;
  5015.    type PPRQPROCINFO is access all struct_PRQPROCINFO;
  5016.    type PPRPORTINFO is access all struct_PRPORTINFO;
  5017.    type PPRPORTINFO1 is access all struct_PRPORTINFO1;
  5018.    type PACVP is access all struct_ACVP;
  5019.    type PHELPTABLE is access all struct_HELPTABLE;
  5020.    type PHELPINIT is access all struct_HELPINIT;
  5021. --   type PHELPTABLE is access all struct_HELPTABLE;
  5022.    type PFOCAMETRICS is access all struct_FOCAMETRICS;
  5023.    type PFONTFILEMETRICS is access all struct_FONTFILEMETRICS;
  5024.    type PFONTDEFINITIONHEADER is access all struct_FONTDEFINITIONHEADER;
  5025.    type PFONTSIGNATURE is access all struct_FONTSIGNATURE;
  5026.    type PADDITIONALMETRICS is access all struct_ADDITIONALMETRICS;
  5027.    type PFOCAFONT is access all struct_FOCAFONT;
  5028.  
  5029.    type PSTR8 is access all STR8;
  5030.    type PSTR16 is access all STR16;
  5031.    type PSTR32 is access all STR32;
  5032.    type PSTR64 is access all STR64;
  5033.    type PFN is access function  return signed_int;
  5034.    type PPFN is access all PFN;
  5035.  
  5036.    type struct_FATTRS is
  5037.       record
  5038.             usRecordLength : USHORT;
  5039.             fsSelection    : USHORT;
  5040.             lMatch         : LONG;
  5041.             szFacename     : STR8;
  5042.             idRegistry     : USHORT;
  5043.             usCodePage     : USHORT;
  5044.             lMaxBaselineExt: LONG;
  5045.             lAveCharWidth  : LONG;
  5046.             fsType         : USHORT;
  5047.             fsFontUse      : USHORT;
  5048.       end record;
  5049.  
  5050.     pragma Convention(C,  struct_FATTRS);
  5051.  
  5052.    subtype FATTRS is struct_FATTRS;
  5053.  
  5054.    type struct_PANOSE is
  5055.       record
  5056.             bFamilyType     : BYTE;
  5057.             bSerifStyle     : BYTE;
  5058.             bWeight         : BYTE;
  5059.             bProportion     : BYTE;
  5060.             bContrast       : BYTE;
  5061.             bStrokeVariation: BYTE;
  5062.             bArmStyle       : BYTE;
  5063.             bLetterform     : BYTE;
  5064.             bMidline        : BYTE;
  5065.             bXHeight        : BYTE;
  5066.             fbPassedISO     : BYTE;
  5067.             fbFailedISO     : BYTE;
  5068.       end record;
  5069.  
  5070.     pragma Convention(C,  struct_PANOSE);
  5071.  
  5072.    subtype PANOSE is struct_PANOSE;
  5073.  
  5074.    type struct_FONTMETRICS is
  5075.       record
  5076.             szFamilyname       : STR8;
  5077.             szFacename         : STR8;
  5078.             idRegistry         : USHORT;
  5079.             usCodePage         : USHORT;
  5080.             lEmHeight          : LONG;
  5081.             lXHeight           : LONG;
  5082.             lMaxAscender       : LONG;
  5083.             lMaxDescender      : LONG;
  5084.             lLowerCaseAscent   : LONG;
  5085.             lLowerCaseDescent  : LONG;
  5086.             lInternalLeading   : LONG;
  5087.             lExternalLeading   : LONG;
  5088.             lAveCharWidth      : LONG;
  5089.             lMaxCharInc        : LONG;
  5090.             lEmInc             : LONG;
  5091.             lMaxBaselineExt    : LONG;
  5092.             sCharSlope         : SHORT;
  5093.             sInlineDir         : SHORT;
  5094.             sCharRot           : SHORT;
  5095.             usWeightClass      : USHORT;
  5096.             usWidthClass       : USHORT;
  5097.             sXDeviceRes        : SHORT;
  5098.             sYDeviceRes        : SHORT;
  5099.             sFirstChar         : SHORT;
  5100.             sLastChar          : SHORT;
  5101.             sDefaultChar       : SHORT;
  5102.             sBreakChar         : SHORT;
  5103.             sNominalPointSize  : SHORT;
  5104.             sMinimumPointSize  : SHORT;
  5105.             sMaximumPointSize  : SHORT;
  5106.             fsType             : USHORT;
  5107.             fsDefn             : USHORT;
  5108.             fsSelection        : USHORT;
  5109.             fsCapabilities     : USHORT;
  5110.             lSubscriptXSize    : LONG;
  5111.             lSubscriptYSize    : LONG;
  5112.             lSubscriptXOffset  : LONG;
  5113.             lSubscriptYOffset  : LONG;
  5114.             lSuperscriptXSize  : LONG;
  5115.             lSuperscriptYSize  : LONG;
  5116.             lSuperscriptXOffset: LONG;
  5117.             lSuperscriptYOffset: LONG;
  5118.             lUnderscoreSize    : LONG;
  5119.             lUnderscorePosition: LONG;
  5120.             lStrikeoutSize     : LONG;
  5121.             lStrikeoutPosition : LONG;
  5122.             sKerningPairs      : SHORT;
  5123.             sFamilyClass       : SHORT;
  5124.             lMatch             : LONG;
  5125.             FamilyNameAtom     : LONG;
  5126.             FaceNameAtom       : LONG;
  5127.             panose_panose      : PANOSE;
  5128.       end record;
  5129.  
  5130.     pragma Convention(C,  struct_FONTMETRICS);
  5131.  
  5132.    subtype FONTMETRICS is struct_FONTMETRICS;
  5133.  
  5134.    type PFNWP is access function (handle : HWND; mess: ULONG;
  5135.                                   parm1: MPARAM; parm2: MPARAM) return MRESULT;
  5136.  
  5137.    type struct_POINTL is
  5138.       record
  5139.             x: LONG;
  5140.             y: LONG;
  5141.       end record;
  5142.  
  5143.     pragma Convention(C,  struct_POINTL);
  5144.  
  5145.    subtype POINTL is struct_POINTL;
  5146.  
  5147.    type struct_POINTS is
  5148.       record
  5149.             x: SHORT;
  5150.             y: SHORT;
  5151.       end record;
  5152.  
  5153.     pragma Convention(C,  struct_POINTS);
  5154.  
  5155.    subtype POINTS is struct_POINTS;
  5156.  
  5157.    type struct_RECTL is
  5158.       record
  5159.             xLeft  : LONG;
  5160.             yBottom: LONG;
  5161.             xRight : LONG;
  5162.             yTop   : LONG;
  5163.       end record;
  5164.  
  5165.     pragma Convention(C,  struct_RECTL);
  5166.  
  5167.    subtype RECTL is struct_RECTL;
  5168.  
  5169.    type struct_QMSG is
  5170.       record
  5171.             hwnd_hwnd    : HWND;
  5172.             msg     : ULONG;
  5173.             mp1     : MPARAM;
  5174.             mp2     : MPARAM;
  5175.             time    : ULONG;
  5176.             ptl     : POINTL;
  5177.             reserved: ULONG;
  5178.       end record;
  5179.  
  5180.     pragma Convention(C,  struct_QMSG);
  5181.  
  5182.    subtype QMSG is struct_QMSG;
  5183.  
  5184.    type struct_COMMANDMSG is
  5185.       record
  5186.             cmd   : USHORT;
  5187.             unused: USHORT;
  5188.             source: USHORT;
  5189.             fMouse: USHORT;
  5190.       end record;
  5191.  
  5192.     pragma Convention(C,  struct_COMMANDMSG);
  5193.  
  5194.    subtype CMDMSG is struct_COMMANDMSG;
  5195.  
  5196.    type struct_MQINFO is
  5197.       record
  5198.             cb       : ULONG;
  5199.             pid_pid  : PID;
  5200.             tid_tid  : TID;
  5201.             cmsgs    : ULONG;
  5202.             pReserved: PVOID;
  5203.       end record;
  5204.  
  5205.     pragma Convention(C,  struct_MQINFO);
  5206.  
  5207.    subtype MQINFO is struct_MQINFO;
  5208.  
  5209.    type struct_SWP is
  5210.       record
  5211.             fl              : ULONG;
  5212.             cy              : LONG;
  5213.             cx              : LONG;
  5214.             y               : LONG;
  5215.             x               : LONG;
  5216.             hwndInsertBehind: HWND;
  5217.             hwnd_hwnd           : HWND;
  5218.             ulReserved1     : ULONG;
  5219.             ulReserved2     : ULONG;
  5220.       end record;
  5221.  
  5222.     pragma Convention(C,  struct_SWP);
  5223.  
  5224.    subtype SWP is struct_SWP;
  5225.  
  5226.    type struct_RGB is
  5227.       record
  5228.             bBlue : BYTE;
  5229.             bGreen: BYTE;
  5230.             bRed  : BYTE;
  5231.       end record;
  5232.  
  5233.     pragma Convention(C,  struct_RGB);
  5234.  
  5235.    subtype RGB is struct_RGB;
  5236.  
  5237.    type struct_RGB2 is
  5238.       record
  5239.             bBlue    : BYTE;
  5240.             bGreen   : BYTE;
  5241.             bRed     : BYTE;
  5242.             fcOptions: BYTE;
  5243.       end record;
  5244.  
  5245.     pragma Convention(C,  struct_RGB2);
  5246.  
  5247.    subtype RGB2 is struct_RGB2;
  5248.  
  5249.    type struct_BITMAPINFOHEADER is
  5250.       record
  5251.             cbFix    : ULONG;
  5252.             cx       : USHORT;
  5253.             cy       : USHORT;
  5254.             cPlanes  : USHORT;
  5255.             cBitCount: USHORT;
  5256.       end record;
  5257.  
  5258.     pragma Convention(C,  struct_BITMAPINFOHEADER);
  5259.  
  5260.    subtype BITMAPINFOHEADER is struct_BITMAPINFOHEADER;
  5261.  
  5262.    type ARRAY_OF_RGB is
  5263.       array(integer range <>)
  5264.       of RGB;
  5265.  
  5266.    type struct_BITMAPINFO is
  5267.       record
  5268.             cbFix    : ULONG;
  5269.             cx       : USHORT;
  5270.             cy       : USHORT;
  5271.             cPlanes  : USHORT;
  5272.             cBitCount: USHORT;
  5273.             argbColor: ARRAY_OF_RGB(0..0);
  5274.       end record;
  5275.  
  5276.     pragma Convention(C,  struct_BITMAPINFO);
  5277.  
  5278.    subtype BITMAPINFO is struct_BITMAPINFO;
  5279.  
  5280.    type ARRAY_OF_RGB2 is
  5281.       array(integer range <>)
  5282.       of RGB2;
  5283.  
  5284.    type struct_BITMAPINFO2 is
  5285.       record
  5286.             cbFix          : ULONG;
  5287.             cx             : ULONG;
  5288.             cy             : ULONG;
  5289.             cPlanes        : USHORT;
  5290.             cBitCount      : USHORT;
  5291.             ulCompression  : ULONG;
  5292.             cbImage        : ULONG;
  5293.             cxResolution   : ULONG;
  5294.             cyResolution   : ULONG;
  5295.             cclrUsed       : ULONG;
  5296.             cclrImportant  : ULONG;
  5297.             usUnits        : USHORT;
  5298.             usReserved     : USHORT;
  5299.             usRecording    : USHORT;
  5300.             usRendering    : USHORT;
  5301.             cSize1         : ULONG;
  5302.             cSize2         : ULONG;
  5303.             ulColorEncoding: ULONG;
  5304.             ulIdentifier   : ULONG;
  5305.             argbColor      : ARRAY_OF_RGB2(0..0);
  5306.       end record;
  5307.  
  5308.     pragma Convention(C,  struct_BITMAPINFO2);
  5309.  
  5310.    subtype BITMAPINFO2 is struct_BITMAPINFO2;
  5311.  
  5312.    type struct_BITMAPINFOHEADER2 is
  5313.       record
  5314.             cbFix          : ULONG;
  5315.             cx             : ULONG;
  5316.             cy             : ULONG;
  5317.             cPlanes        : USHORT;
  5318.             cBitCount      : USHORT;
  5319.             ulCompression  : ULONG;
  5320.             cbImage        : ULONG;
  5321.             cxResolution   : ULONG;
  5322.             cyResolution   : ULONG;
  5323.             cclrUsed       : ULONG;
  5324.             cclrImportant  : ULONG;
  5325.             usUnits        : USHORT;
  5326.             usReserved     : USHORT;
  5327.             usRecording    : USHORT;
  5328.             usRendering    : USHORT;
  5329.             cSize1         : ULONG;
  5330.             cSize2         : ULONG;
  5331.             ulColorEncoding: ULONG;
  5332.             ulIdentifier   : ULONG;
  5333.       end record;
  5334.  
  5335.     pragma Convention(C,  struct_BITMAPINFOHEADER2);
  5336.  
  5337.    subtype BITMAPINFOHEADER2 is struct_BITMAPINFOHEADER2;
  5338.  
  5339.    type struct_BITMAPFILEHEADER is
  5340.       record
  5341.             usType  : USHORT;
  5342.             cbSize  : ULONG;
  5343.             xHotspot: SHORT;
  5344.             yHotspot: SHORT;
  5345.             offBits : ULONG;
  5346.             bmp     : BITMAPINFOHEADER;
  5347.       end record;
  5348.  
  5349.     pragma Convention(C,  struct_BITMAPFILEHEADER);
  5350.  
  5351.    subtype BITMAPFILEHEADER is struct_BITMAPFILEHEADER;
  5352.  
  5353.    type struct_BITMAPARRAYFILEHEADER is
  5354.       record
  5355.             usType   : USHORT;
  5356.             cbSize   : ULONG;
  5357.             offNext  : ULONG;
  5358.             cxDisplay: USHORT;
  5359.             cyDisplay: USHORT;
  5360.             bfh      : BITMAPFILEHEADER;
  5361.       end record;
  5362.  
  5363.     pragma Convention(C,  struct_BITMAPARRAYFILEHEADER);
  5364.  
  5365.    subtype BITMAPARRAYFILEHEADER is struct_BITMAPARRAYFILEHEADER;
  5366.  
  5367.    type struct_BITMAPFILEHEADER2 is
  5368.       record
  5369.             usType  : USHORT;
  5370.             cbSize  : ULONG;
  5371.             xHotspot: SHORT;
  5372.             yHotspot: SHORT;
  5373.             offBits : ULONG;
  5374.             bmp2    : BITMAPINFOHEADER2;
  5375.       end record;
  5376.  
  5377.     pragma Convention(C,  struct_BITMAPFILEHEADER2);
  5378.  
  5379.    subtype BITMAPFILEHEADER2 is struct_BITMAPFILEHEADER2;
  5380.  
  5381.    type struct_BITMAPARRAYFILEHEADER2 is
  5382.       record
  5383.             usType   : USHORT;
  5384.             cbSize   : ULONG;
  5385.             offNext  : ULONG;
  5386.             cxDisplay: USHORT;
  5387.             cyDisplay: USHORT;
  5388.             bfh2     : BITMAPFILEHEADER2;
  5389.       end record;
  5390.  
  5391.     pragma Convention(C,  struct_BITMAPARRAYFILEHEADER2);
  5392.  
  5393.    subtype BITMAPARRAYFILEHEADER2 is struct_BITMAPARRAYFILEHEADER2;
  5394.  
  5395.    type struct_ICONINFO is
  5396.       record
  5397.             cb         : ULONG;
  5398.             fFormat    : ULONG;
  5399.             pszFileName: PSZ;
  5400.             hmod       : HMODULE;
  5401.             resid      : ULONG;
  5402.             cbIconData : ULONG;
  5403.             pIconData  : PVOID;
  5404.       end record;
  5405.  
  5406.     pragma Convention(C,  struct_ICONINFO);
  5407.  
  5408.    subtype ICONINFO is struct_ICONINFO;
  5409.  
  5410.    type struct_FRAMECDATA is
  5411.       record
  5412.             cb           : USHORT;
  5413.             flCreateFlags: ULONG;
  5414.             hmodResources: USHORT;
  5415.             idResources  : USHORT;
  5416.       end record;
  5417.  
  5418.     pragma Convention(C,  struct_FRAMECDATA);
  5419.  
  5420.    subtype FRAMECDATA is struct_FRAMECDATA;
  5421.  
  5422.    type struct_QVERSDATA is
  5423.       record
  5424.             environment: USHORT;
  5425.             version    : USHORT;
  5426.       end record;
  5427.  
  5428.     pragma Convention(C,  struct_QVERSDATA);
  5429.  
  5430.    subtype QVERSDATA is struct_QVERSDATA;
  5431.  
  5432.    type struct_CLASSINFO is
  5433.       record
  5434.             flClassStyle : ULONG;
  5435.             pfnWindowProc: PFNWP;
  5436.             cbWindowData : ULONG;
  5437.       end record;
  5438.  
  5439.     pragma Convention(C,  struct_CLASSINFO);
  5440.  
  5441.    subtype CLASSINFO is struct_CLASSINFO;
  5442.  
  5443.    type struct_CREATESTRUCT is
  5444.       record
  5445.             pPresParams     : PVOID;
  5446.             pCtlData        : PVOID;
  5447.             id              : ULONG;
  5448.             hwndInsertBehind: HWND;
  5449.             hwndOwner       : HWND;
  5450.             cy              : LONG;
  5451.             cx              : LONG;
  5452.             y               : LONG;
  5453.             x               : LONG;
  5454.             flStyle         : ULONG;
  5455.             pszText         : PSZ;
  5456.             pszClass        : PSZ;
  5457.             hwndParent      : HWND;
  5458.       end record;
  5459.  
  5460.     pragma Convention(C,  struct_CREATESTRUCT);
  5461.  
  5462.    subtype CREATESTRUCT is struct_CREATESTRUCT;
  5463.  
  5464.    type struct_ACCEL is
  5465.       record
  5466.             fs : USHORT;
  5467.             key: USHORT;
  5468.             cmd: USHORT;
  5469.       end record;
  5470.  
  5471.     pragma Convention(C,  struct_ACCEL);
  5472.  
  5473.    subtype ACCEL is struct_ACCEL;
  5474.  
  5475.    type ARRAY_OF_ACCEL is
  5476.       array(integer range <>)
  5477.       of ACCEL;
  5478.  
  5479.    type struct_ACCELTABLE is
  5480.       record
  5481.             cAccel  : USHORT;
  5482.             codepage: USHORT;
  5483.             aaccel  : ARRAY_OF_ACCEL(0..0);
  5484.       end record;
  5485.  
  5486.     pragma Convention(C,  struct_ACCELTABLE);
  5487.  
  5488.    subtype ACCELTABLE is struct_ACCELTABLE;
  5489.  
  5490.    type struct_BTNCDATA is
  5491.       record
  5492.             cb           : USHORT;
  5493.             fsCheckState : USHORT;
  5494.             fsHiliteState: USHORT;
  5495.             hImage       : LHANDLE;
  5496.       end record;
  5497.  
  5498.     pragma Convention(C,  struct_BTNCDATA);
  5499.  
  5500.    subtype BTNCDATA is struct_BTNCDATA;
  5501.  
  5502.    type struct_USERBUTTON is
  5503.       record
  5504.             hwnd_hwnd      : HWND;
  5505.             hps_hps       : HPS;
  5506.             fsState   : ULONG;
  5507.             fsStateOld: ULONG;
  5508.       end record;
  5509.  
  5510.     pragma Convention(C,  struct_USERBUTTON);
  5511.  
  5512.    subtype USERBUTTON is struct_USERBUTTON;
  5513.  
  5514.    type struct_CPTEXT is
  5515.       record
  5516.             idCountry  : USHORT;
  5517.             usCodepage : USHORT;
  5518.             usLangID   : USHORT;
  5519.             usSubLangID: USHORT;
  5520.             abText     : ARRAY_OF_BYTE(0..0);
  5521.       end record;
  5522.  
  5523.     pragma Convention(C,  struct_CPTEXT);
  5524.  
  5525.    subtype CPTEXT is struct_CPTEXT;
  5526.  
  5527.    type struct_MFP is
  5528.       record
  5529.             sizeBounds: POINTL;
  5530.             sizeMM    : POINTL;
  5531.             cbLength  : ULONG;
  5532.             mapMode   : USHORT;
  5533.             reserved  : USHORT;
  5534.             abData    : ARRAY_OF_BYTE(0..0);
  5535.       end record;
  5536.  
  5537.     pragma Convention(C,  struct_MFP);
  5538.  
  5539.    subtype MFP is struct_MFP;
  5540.  
  5541.    type struct_CONVCONTEXT is
  5542.       record
  5543.             cb         : ULONG;
  5544.             fsContext  : ULONG;
  5545.             idCountry  : ULONG;
  5546.             usCodepage : ULONG;
  5547.             usLangID   : ULONG;
  5548.             usSubLangID: ULONG;
  5549.       end record;
  5550.  
  5551.     pragma Convention(C,  struct_CONVCONTEXT);
  5552.  
  5553.    subtype CONVCONTEXT is struct_CONVCONTEXT;
  5554.  
  5555.    type struct_DDEINIT is
  5556.       record
  5557.             cb            : ULONG;
  5558.             pszAppName    : PSZ;
  5559.             pszTopic      : PSZ;
  5560.             offConvContext: ULONG;
  5561.       end record;
  5562.  
  5563.     pragma Convention(C,  struct_DDEINIT);
  5564.  
  5565.    subtype DDEINIT is struct_DDEINIT;
  5566.  
  5567.    type struct_DDESTRUCT is
  5568.       record
  5569.             cbData       : ULONG;
  5570.             fsStatus     : USHORT;
  5571.             usFormat     : USHORT;
  5572.             offszItemName: USHORT;
  5573.             offabData    : USHORT;
  5574.       end record;
  5575.  
  5576.     pragma Convention(C,  struct_DDESTRUCT);
  5577.  
  5578.    subtype DDESTRUCT is struct_DDESTRUCT;
  5579.  
  5580.    type struct_CURSORINFO is
  5581.       record
  5582.             hwnd_hwnd   : HWND;
  5583.             x      : LONG;
  5584.             y      : LONG;
  5585.             cx     : LONG;
  5586.             cy     : LONG;
  5587.             fs     : ULONG;
  5588.             rclClip: RECTL;
  5589.       end record;
  5590.  
  5591.     pragma Convention(C,  struct_CURSORINFO);
  5592.  
  5593.    subtype CURSORINFO is struct_CURSORINFO;
  5594.  
  5595.    type struct_DESKTOP is
  5596.       record
  5597.             cbSize    : ULONG;
  5598.             hbm       : HBITMAP;
  5599.             x         : LONG;
  5600.             y         : LONG;
  5601.             fl        : ULONG;
  5602.             lTileCount: LONG;
  5603.             szFile    : STR8;
  5604.       end record;
  5605.  
  5606.     pragma Convention(C,  struct_DESKTOP);
  5607.  
  5608.    subtype DESKTOP is struct_DESKTOP;
  5609.  
  5610.    type struct_DLGTITEM is
  5611.       record
  5612.             fsItemStatus : USHORT;
  5613.             cChildren    : USHORT;
  5614.             cchClassName : USHORT;
  5615.             offClassName : USHORT;
  5616.             cchText      : USHORT;
  5617.             offText      : USHORT;
  5618.             flStyle      : ULONG;
  5619.             x            : SHORT;
  5620.             y            : SHORT;
  5621.             cx           : SHORT;
  5622.             cy           : SHORT;
  5623.             id           : USHORT;
  5624.             offPresParams: USHORT;
  5625.             offCtlData   : USHORT;
  5626.       end record;
  5627.  
  5628.     pragma Convention(C,  struct_DLGTITEM);
  5629.  
  5630.    subtype DLGTITEM is struct_DLGTITEM;
  5631.  
  5632.    type ARRAY_OF_DLGTITEM is
  5633.       array(integer range <>)
  5634.       of DLGTITEM;
  5635.  
  5636.    type struct_DLGTEMPLATE is
  5637.       record
  5638.             cbTemplate      : USHORT;
  5639.             c_type          : USHORT;
  5640.             codepage        : USHORT;
  5641.             offadlgti       : USHORT;
  5642.             fsTemplateStatus: USHORT;
  5643.             iItemFocus      : USHORT;
  5644.             coffPresParams  : USHORT;
  5645.             adlgti          : ARRAY_OF_DLGTITEM(0..0);
  5646.       end record;
  5647.  
  5648.     pragma Convention(C,  struct_DLGTEMPLATE);
  5649.  
  5650.    subtype DLGTEMPLATE is struct_DLGTEMPLATE;
  5651.  
  5652.    type struct_ENTRYFDATA is
  5653.       record
  5654.             cb          : USHORT;
  5655.             cchEditLimit: USHORT;
  5656.             ichMinSel   : USHORT;
  5657.             ichMaxSel   : USHORT;
  5658.       end record;
  5659.  
  5660.     pragma Convention(C,  struct_ENTRYFDATA);
  5661.  
  5662.    subtype ENTRYFDATA is struct_ENTRYFDATA;
  5663.  
  5664.    type struct_ERRINFO is
  5665.       record
  5666.             cbFixedErrInfo: ULONG;
  5667.             idError       : ERRORID;
  5668.             cDetailLevel  : ULONG;
  5669.             offaoffszMsg  : ULONG;
  5670.             offBinaryData : ULONG;
  5671.       end record;
  5672.  
  5673.     pragma Convention(C,  struct_ERRINFO);
  5674.  
  5675.    subtype ERRINFO is struct_ERRINFO;
  5676.  
  5677.    type struct_SMHSTRUCT is
  5678.       record
  5679.             mp2  : MPARAM;
  5680.             mp1  : MPARAM;
  5681.             msg  : ULONG;
  5682.             hwnd_hwnd : HWND;
  5683.             model: ULONG;
  5684.       end record;
  5685.  
  5686.     pragma Convention(C,  struct_SMHSTRUCT);
  5687.  
  5688.    subtype SMHSTRUCT is struct_SMHSTRUCT;
  5689.  
  5690.    type struct_CHARMSG is
  5691.       record
  5692.             fs      : USHORT;
  5693.             cRepeat : UCHAR;
  5694.             scancode: UCHAR;
  5695.             chr     : USHORT;
  5696.             vkey    : USHORT;
  5697.       end record;
  5698.  
  5699.     pragma Convention(C,  struct_CHARMSG);
  5700.  
  5701.    subtype CHRMSG is struct_CHARMSG;
  5702.  
  5703.    type struct_MOUSEMSG is
  5704.       record
  5705.             x          : SHORT;
  5706.             y          : SHORT;
  5707.             codeHitTest: USHORT;
  5708.             fsInp      : USHORT;
  5709.       end record;
  5710.  
  5711.     pragma Convention(C,  struct_MOUSEMSG);
  5712.  
  5713.    subtype MSEMSG is struct_MOUSEMSG;
  5714.  
  5715.    type struct_MENUITEM is
  5716.       record
  5717.             iPosition  : SHORT;
  5718.             afStyle    : USHORT;
  5719.             afAttribute: USHORT;
  5720.             id         : USHORT;
  5721.             hwndSubMenu: HWND;
  5722.             hItem      : ULONG;
  5723.       end record;
  5724.  
  5725.     pragma Convention(C,  struct_MENUITEM);
  5726.  
  5727.    subtype MENUITEM is struct_MENUITEM;
  5728.  
  5729.    type struct_mti is
  5730.       record
  5731.             afStyle: USHORT;
  5732.             pad    : USHORT;
  5733.             idItem : USHORT;
  5734.             c      : STR8;
  5735.       end record;
  5736.  
  5737.     pragma Convention(C,  struct_mti);
  5738.  
  5739.    subtype MTI is struct_mti;
  5740.  
  5741.    type ARRAY_OF_MTI is
  5742.       array(integer range <>)
  5743.       of MTI;
  5744.  
  5745.    type struct_mt is
  5746.       record
  5747.             len     : ULONG;
  5748.             codepage: USHORT;
  5749.             reserved: USHORT;
  5750.             cMti    : USHORT;
  5751.             rgMti   : ARRAY_OF_MTI(0..0);
  5752.       end record;
  5753.  
  5754.     pragma Convention(C,  struct_mt);
  5755.  
  5756.    subtype MT is struct_mt;
  5757.  
  5758.    type struct_OWNERITEM is
  5759.       record
  5760.             hwnd_hwnd         : HWND;
  5761.             hps_hps          : HPS;
  5762.             fsState       : ULONG;
  5763.             fsAttribute   : ULONG;
  5764.             fsStateOld    : ULONG;
  5765.             fsAttributeOld: ULONG;
  5766.             rclItem       : RECTL;
  5767.             idItem        : LONG;
  5768.             hItem         : ULONG;
  5769.       end record;
  5770.  
  5771.     pragma Convention(C,  struct_OWNERITEM);
  5772.  
  5773.    subtype OWNERITEM is struct_OWNERITEM;
  5774.  
  5775.    type struct_WNDPARAMS is
  5776.       record
  5777.             fsStatus    : ULONG;
  5778.             cchText     : ULONG;
  5779.             pszText     : PSZ;
  5780.             cbPresParams: ULONG;
  5781.             pPresParams : PVOID;
  5782.             cbCtlData   : ULONG;
  5783.             pCtlData    : PVOID;
  5784.       end record;
  5785.  
  5786.     pragma Convention(C,  struct_WNDPARAMS);
  5787.  
  5788.    subtype WNDPARAMS is struct_WNDPARAMS;
  5789.  
  5790.    type struct_POINTERINFO is
  5791.       record
  5792.             fPointer      : ULONG;
  5793.             xHotspot      : LONG;
  5794.             yHotspot      : LONG;
  5795.             hbmPointer    : HBITMAP;
  5796.             hbmColor      : HBITMAP;
  5797.             hbmMiniPointer: HBITMAP;
  5798.             hbmMiniColor  : HBITMAP;
  5799.       end record;
  5800.  
  5801.     pragma Convention(C,  struct_POINTERINFO);
  5802.  
  5803.    subtype POINTERINFO is struct_POINTERINFO;
  5804.  
  5805.    type struct_SBCDATA is
  5806.       record
  5807.             cb      : USHORT;
  5808.             sHilite : USHORT;
  5809.             posFirst: SHORT;
  5810.             posLast : SHORT;
  5811.             posThumb: SHORT;
  5812.             cVisible: SHORT;
  5813.             cTotal  : SHORT;
  5814.       end record;
  5815.  
  5816.     pragma Convention(C,  struct_SBCDATA);
  5817.  
  5818.    subtype SBCDATA is struct_SBCDATA;
  5819.  
  5820.    type struct_PARAM is
  5821.       record
  5822.             id: ULONG;
  5823.             cb: ULONG;
  5824.             ab: ARRAY_OF_BYTE(0..0);
  5825.       end record;
  5826.  
  5827.     pragma Convention(C,  struct_PARAM);
  5828.  
  5829.    subtype PARAM is struct_PARAM;
  5830.  
  5831.    type ARRAY_OF_PARAM is
  5832.       array(integer range <>)
  5833.       of PARAM;
  5834.  
  5835.    type struct_PRESPARAMS is
  5836.       record
  5837.             cb    : ULONG;
  5838.             aparam: ARRAY_OF_PARAM(0..0);
  5839.       end record;
  5840.  
  5841.     pragma Convention(C,  struct_PRESPARAMS);
  5842.  
  5843.    subtype PRESPARAMS is struct_PRESPARAMS;
  5844.  
  5845.    type struct_TRACKINFO is
  5846.       record
  5847.             cxBorder       : LONG;
  5848.             cyBorder       : LONG;
  5849.             cxGrid         : LONG;
  5850.             cyGrid         : LONG;
  5851.             cxKeyboard     : LONG;
  5852.             cyKeyboard     : LONG;
  5853.             rclTrack       : RECTL;
  5854.             rclBoundary    : RECTL;
  5855.             ptlMinTrackSize: POINTL;
  5856.             ptlMaxTrackSize: POINTL;
  5857.             fs             : ULONG;
  5858.       end record;
  5859.  
  5860.     pragma Convention(C,  struct_TRACKINFO);
  5861.  
  5862.    subtype TRACKINFO is struct_TRACKINFO;
  5863.  
  5864.    type struct_FORMATRECT is
  5865.       record
  5866.             cxFormat: LONG;
  5867.             cyFormat: LONG;
  5868.       end record;
  5869.  
  5870.     pragma Convention(C,  struct_FORMATRECT);
  5871.  
  5872.    subtype MLEFORMATRECT is struct_FORMATRECT;
  5873.  
  5874.    type struct_MLECTLDATA is
  5875.       record
  5876.             cbCtlData    : USHORT;
  5877.             afIEFormat   : USHORT;
  5878.             cchText      : ULONG;
  5879.             iptAnchor    : IPT;
  5880.             iptCursor    : IPT;
  5881.             cxFormat     : LONG;
  5882.             cyFormat     : LONG;
  5883.             afFormatFlags: ULONG;
  5884.       end record;
  5885.  
  5886.     pragma Convention(C,  struct_MLECTLDATA);
  5887.  
  5888.    subtype MLECTLDATA is struct_MLECTLDATA;
  5889.  
  5890.    type struct_MLEOVERFLOW is
  5891.       record
  5892.             afErrInd   : ULONG;
  5893.             nBytesOver : LONG;
  5894.             pixHorzOver: LONG;
  5895.             pixVertOver: LONG;
  5896.       end record;
  5897.  
  5898.     pragma Convention(C,  struct_MLEOVERFLOW);
  5899.  
  5900.    subtype MLEOVERFLOW is struct_MLEOVERFLOW;
  5901.  
  5902.    type struct_MLEMARGSTRUCT is
  5903.       record
  5904.             afMargins: USHORT;
  5905.             usMouMsg : USHORT;
  5906.             iptNear  : IPT;
  5907.       end record;
  5908.  
  5909.     pragma Convention(C,  struct_MLEMARGSTRUCT);
  5910.  
  5911.    subtype MLEMARGSTRUCT is struct_MLEMARGSTRUCT;
  5912.  
  5913.    type struct_SEARCH is
  5914.       record
  5915.             cb        : USHORT;
  5916.             pchFind   : PCHAR;
  5917.             pchReplace: PCHAR;
  5918.             cchFind   : SHORT;
  5919.             cchReplace: SHORT;
  5920.             iptStart  : IPT;
  5921.             iptStop   : IPT;
  5922.             cchFound  : USHORT;
  5923.       end record;
  5924.  
  5925.     pragma Convention(C,  struct_SEARCH);
  5926.  
  5927.    subtype MLE_SEARCHDATA is struct_SEARCH;
  5928.  
  5929.    type struct_SIZEL is
  5930.       record
  5931.             cx: LONG;
  5932.             cy: LONG;
  5933.       end record;
  5934.  
  5935.     pragma Convention(C,  struct_SIZEL);
  5936.  
  5937.    subtype SIZEL is struct_SIZEL;
  5938.  
  5939.    type struct_RGNRECT is
  5940.       record
  5941.             ircStart   : ULONG;
  5942.             crc        : ULONG;
  5943.             crcReturned: ULONG;
  5944.             ulDirection: ULONG;
  5945.       end record;
  5946.  
  5947.     pragma Convention(C,  struct_RGNRECT);
  5948.  
  5949.    subtype RGNRECT is struct_RGNRECT;
  5950.  
  5951.    type struct_MATRIXLF is
  5952.       record
  5953.             fxM11: FIXED;
  5954.             fxM12: FIXED;
  5955.             lM13 : LONG;
  5956.             fxM21: FIXED;
  5957.             fxM22: FIXED;
  5958.             lM23 : LONG;
  5959.             lM31 : LONG;
  5960.             lM32 : LONG;
  5961.             lM33 : LONG;
  5962.       end record;
  5963.  
  5964.     pragma Convention(C,  struct_MATRIXLF);
  5965.  
  5966.    subtype MATRIXLF is struct_MATRIXLF;
  5967.  
  5968.    type struct_ARCPARAMS is
  5969.       record
  5970.             lP: LONG;
  5971.             lQ: LONG;
  5972.             lR: LONG;
  5973.             lS: LONG;
  5974.       end record;
  5975.  
  5976.     pragma Convention(C,  struct_ARCPARAMS);
  5977.  
  5978.    subtype ARCPARAMS is struct_ARCPARAMS;
  5979.  
  5980.    type struct_SIZEF is
  5981.       record
  5982.             cx: FIXED;
  5983.             cy: FIXED;
  5984.       end record;
  5985.  
  5986.     pragma Convention(C,  struct_SIZEF);
  5987.  
  5988.    subtype SIZEF is struct_SIZEF;
  5989.  
  5990.    type struct_POLYGON is
  5991.       record
  5992.             ulPoints: ULONG;
  5993.             aPointl : PPOINTL;
  5994.       end record;
  5995.  
  5996.     pragma Convention(C,  struct_POLYGON);
  5997.  
  5998.    subtype POLYGON is struct_POLYGON;
  5999.  
  6000.    type ARRAY_OF_POLYGON is
  6001.       array(integer range <>)
  6002.       of POLYGON;
  6003.  
  6004.    type struct_POLYSET is
  6005.       record
  6006.             ulPolys : ULONG;
  6007.             aPolygon: ARRAY_OF_POLYGON(0..0);
  6008.       end record;
  6009.  
  6010.     pragma Convention(C,  struct_POLYSET);
  6011.  
  6012.    subtype POLYSET is struct_POLYSET;
  6013.  
  6014.    type struct_GRADIENTL is
  6015.       record
  6016.             x: LONG;
  6017.             y: LONG;
  6018.       end record;
  6019.  
  6020.     pragma Convention(C,  struct_GRADIENTL);
  6021.  
  6022.    subtype GRADIENTL is struct_GRADIENTL;
  6023.  
  6024.    type struct_KERNINGPAIRS is
  6025.       record
  6026.             sFirstChar    : SHORT;
  6027.             sSecondChar   : SHORT;
  6028.             lKerningAmount: LONG;
  6029.       end record;
  6030.  
  6031.     pragma Convention(C,  struct_KERNINGPAIRS);
  6032.  
  6033.    subtype KERNINGPAIRS is struct_KERNINGPAIRS;
  6034.  
  6035.    type struct_FACENAMEDESC is
  6036.       record
  6037.             usSize       : USHORT;
  6038.             usWeightClass: USHORT;
  6039.             usWidthClass : USHORT;
  6040.             usReserved   : USHORT;
  6041.             flOptions    : ULONG;
  6042.       end record;
  6043.  
  6044.     pragma Convention(C,  struct_FACENAMEDESC);
  6045.  
  6046.    subtype FACENAMEDESC is struct_FACENAMEDESC;
  6047.  
  6048.    type MATRIX_OF_CHAR is
  6049.       array(integer range 0..31)
  6050.       of STR8;
  6051.  
  6052.    type FFDESCS is
  6053.       array(integer range 0..31)
  6054.       of STR8;
  6055.  
  6056.    type PFFDESCS is access all FFDESCS;
  6057.  
  6058.    type struct_FFDESCS2 is
  6059.       record
  6060.             cbLength        : ULONG;
  6061.             cbFacenameOffset: ULONG;
  6062.             abFamilyName    : ARRAY_OF_BYTE(0..0);
  6063.       end record;
  6064.  
  6065.     pragma Convention(C,  struct_FFDESCS2);
  6066.  
  6067.    subtype FFDESCS2 is struct_FFDESCS2;
  6068.  
  6069.    type struct_LINEBUNDLE is
  6070.       record
  6071.             lColor       : LONG;
  6072.             lBackColor   : LONG;
  6073.             usMixMode    : USHORT;
  6074.             usBackMixMode: USHORT;
  6075.             fxWidth      : FIXED;
  6076.             lGeomWidth   : LONG;
  6077.             usType       : USHORT;
  6078.             usEnd        : USHORT;
  6079.             usJoin       : USHORT;
  6080.             usReserved   : USHORT;
  6081.       end record;
  6082.  
  6083.     pragma Convention(C,  struct_LINEBUNDLE);
  6084.  
  6085.    subtype LINEBUNDLE is struct_LINEBUNDLE;
  6086.  
  6087.    type struct_CHARBUNDLE is
  6088.       record
  6089.             lColor       : LONG;
  6090.             lBackColor   : LONG;
  6091.             usMixMode    : USHORT;
  6092.             usBackMixMode: USHORT;
  6093.             usSet        : USHORT;
  6094.             usPrecision  : USHORT;
  6095.             sizfxCell    : SIZEF;
  6096.             ptlAngle     : POINTL;
  6097.             ptlShear     : POINTL;
  6098.             usDirection  : USHORT;
  6099.             usTextAlign  : USHORT;
  6100.             fxExtra      : FIXED;
  6101.             fxBreakExtra : FIXED;
  6102.       end record;
  6103.  
  6104.     pragma Convention(C,  struct_CHARBUNDLE);
  6105.  
  6106.    subtype CHARBUNDLE is struct_CHARBUNDLE;
  6107.  
  6108.    type struct_MARKERBUNDLE is
  6109.       record
  6110.             lColor       : LONG;
  6111.             lBackColor   : LONG;
  6112.             usMixMode    : USHORT;
  6113.             usBackMixMode: USHORT;
  6114.             usSet        : USHORT;
  6115.             usSymbol     : USHORT;
  6116.             sizfxCell    : SIZEF;
  6117.       end record;
  6118.  
  6119.     pragma Convention(C,  struct_MARKERBUNDLE);
  6120.  
  6121.    subtype MARKERBUNDLE is struct_MARKERBUNDLE;
  6122.  
  6123.    type struct_AREABUNDLE is
  6124.       record
  6125.             lColor       : LONG;
  6126.             lBackColor   : LONG;
  6127.             usMixMode    : USHORT;
  6128.             usBackMixMode: USHORT;
  6129.             usSet        : USHORT;
  6130.             usSymbol     : USHORT;
  6131.             ptlRefPoint  : POINTL;
  6132.       end record;
  6133.  
  6134.     pragma Convention(C,  struct_AREABUNDLE);
  6135.  
  6136.    subtype AREABUNDLE is struct_AREABUNDLE;
  6137.  
  6138.    type struct_IMAGEBUNDLE is
  6139.       record
  6140.             lColor       : LONG;
  6141.             lBackColor   : LONG;
  6142.             usMixMode    : USHORT;
  6143.             usBackMixMode: USHORT;
  6144.       end record;
  6145.  
  6146.     pragma Convention(C,  struct_IMAGEBUNDLE);
  6147.  
  6148.    subtype IMAGEBUNDLE is struct_IMAGEBUNDLE;
  6149.  
  6150. --   type PSTR8 is access all STR8;
  6151.  
  6152.    type struct_DRIVDATA is
  6153.       record
  6154.             cb           : LONG;
  6155.             lVersion     : LONG;
  6156.             szDeviceName : STR8;
  6157.             abGeneralData: STR8;
  6158.       end record;
  6159.  
  6160.     pragma Convention(C,  struct_DRIVDATA);
  6161.  
  6162.    subtype DRIVDATA is struct_DRIVDATA;
  6163.  
  6164.    type struct_DEVOPENSTRUC is
  6165.       record
  6166.             pszLogAddress     : PSZ;
  6167.             pszDriverName     : PSZ;
  6168.             pdriv             : PDRIVDATA;
  6169.             pszDataType       : PSZ;
  6170.             pszComment        : PSZ;
  6171.             pszQueueProcName  : PSZ;
  6172.             pszQueueProcParams: PSZ;
  6173.             pszSpoolerParams  : PSZ;
  6174.             pszNetworkParams  : PSZ;
  6175.       end record;
  6176.  
  6177.     pragma Convention(C,  struct_DEVOPENSTRUC);
  6178.  
  6179.    subtype DEVOPENSTRUC is struct_DEVOPENSTRUC;
  6180.  
  6181.    type struct_ESCMODE is
  6182.       record
  6183.             mode    : ULONG;
  6184.             modedata: ARRAY_OF_BYTE(0..0);
  6185.       end record;
  6186.  
  6187.     pragma Convention(C,  struct_ESCMODE);
  6188.  
  6189.    subtype ESCMODE is struct_ESCMODE;
  6190.  
  6191.    type struct_VIOSIZECOUNT is
  6192.       record
  6193.             maxcount: LONG;
  6194.             count   : LONG;
  6195.       end record;
  6196.  
  6197.     pragma Convention(C,  struct_VIOSIZECOUNT);
  6198.  
  6199.    subtype VIOSIZECOUNT is struct_VIOSIZECOUNT;
  6200.  
  6201.    type struct_VIOFONTCELLSIZE is
  6202.       record
  6203.             cx: LONG;
  6204.             cy: LONG;
  6205.       end record;
  6206.  
  6207.     pragma Convention(C,  struct_VIOFONTCELLSIZE);
  6208.  
  6209.    subtype VIOFONTCELLSIZE is struct_VIOFONTCELLSIZE;
  6210.  
  6211.    type struct_SFACTORS is
  6212.       record
  6213.             x: LONG;
  6214.             y: LONG;
  6215.       end record;
  6216.  
  6217.     pragma Convention(C,  struct_SFACTORS);
  6218.  
  6219.    subtype SFACTORS is struct_SFACTORS;
  6220.  
  6221.    type struct_BANDRECT is
  6222.       record
  6223.             xleft  : LONG;
  6224.             ybottom: LONG;
  6225.             xright : LONG;
  6226.             ytop   : LONG;
  6227.       end record;
  6228.  
  6229.     pragma Convention(C,  struct_BANDRECT);
  6230.  
  6231.    subtype BANDRECT is struct_BANDRECT;
  6232.  
  6233.    type struct_HCINFO is
  6234.       record
  6235.             szFormname  : STR8;
  6236.             cx          : LONG;
  6237.             cy          : LONG;
  6238.             xLeftClip   : LONG;
  6239.             yBottomClip : LONG;
  6240.             xRightClip  : LONG;
  6241.             yTopClip    : LONG;
  6242.             xPels       : LONG;
  6243.             yPels       : LONG;
  6244.             flAttributes: LONG;
  6245.       end record;
  6246.  
  6247.     pragma Convention(C,  struct_HCINFO);
  6248.  
  6249.    subtype HCINFO is struct_HCINFO;
  6250.  
  6251.    type struct_PRFPROFILE is
  6252.       record
  6253.             cchUserName: ULONG;
  6254.             pszUserName: PSZ;
  6255.             cchSysName : ULONG;
  6256.             pszSysName : PSZ;
  6257.       end record;
  6258.  
  6259.     pragma Convention(C,  struct_PRFPROFILE);
  6260.  
  6261.    subtype PRFPROFILE is struct_PRFPROFILE;
  6262.  
  6263.    type struct_HPROGARRAY is
  6264.       record
  6265.             ahprog: ARRAY_OF_HPROGRAM(0..0);
  6266.       end record;
  6267.  
  6268.     pragma Convention(C,  struct_HPROGARRAY);
  6269.  
  6270.    subtype HPROGARRAY is struct_HPROGARRAY;
  6271.  
  6272.    type struct_PROGTYPE is
  6273.       record
  6274.             progc    : PROGCATEGORY;
  6275.             fbVisible: ULONG;
  6276.       end record;
  6277.  
  6278.     pragma Convention(C,  struct_PROGTYPE);
  6279.  
  6280.    subtype PROGTYPE is struct_PROGTYPE;
  6281.  
  6282.    type struct_PROGTITLE is
  6283.       record
  6284.             hprog   : HPROGRAM;
  6285.             progt   : PROGTYPE;
  6286.             pszTitle: PSZ;
  6287.       end record;
  6288.  
  6289.     pragma Convention(C,  struct_PROGTITLE);
  6290.  
  6291.    subtype PROGTITLE is struct_PROGTITLE;
  6292.  
  6293.    type struct_PROGDETAILS is
  6294.       record
  6295.             Length        : ULONG;
  6296.             progt         : PROGTYPE;
  6297.             pszTitle      : PSZ;
  6298.             pszExecutable : PSZ;
  6299.             pszParameters : PSZ;
  6300.             pszStartupDir : PSZ;
  6301.             pszIcon       : PSZ;
  6302.             pszEnvironment: PSZ;
  6303.             swpInitial    : SWP;
  6304.       end record;
  6305.  
  6306.     pragma Convention(C,  struct_PROGDETAILS);
  6307.  
  6308.    subtype PROGDETAILS is struct_PROGDETAILS;
  6309.  
  6310.    type struct_SWCNTRL is
  6311.       record
  6312.             hwnd_hwnd        : HWND;
  6313.             hwndIcon     : HWND;
  6314.             hprog        : HPROGRAM;
  6315.             idProcess    : PID;
  6316.             idSession    : ULONG;
  6317.             uchVisibility: ULONG;
  6318.             fbJump       : ULONG;
  6319.             szSwtitle    : STR8;
  6320.             bProgType    : ULONG;
  6321.       end record;
  6322.  
  6323.     pragma Convention(C,  struct_SWCNTRL);
  6324.  
  6325.    subtype SWCNTRL is struct_SWCNTRL;
  6326.  
  6327.    type struct_SWENTRY is
  6328.       record
  6329.             hswitch_hswitch: HSWITCH;
  6330.             swctl  : SWCNTRL;
  6331.       end record;
  6332.  
  6333.     pragma Convention(C,  struct_SWENTRY);
  6334.  
  6335.    subtype SWENTRY is struct_SWENTRY;
  6336.  
  6337.    type ARRAY_OF_SWENTRY is
  6338.       array(integer range <>)
  6339.       of SWENTRY;
  6340.  
  6341.    type struct_SWBLOCK is
  6342.       record
  6343.             cswentry: ULONG;
  6344.             aswentry: ARRAY_OF_SWENTRY(0..0);
  6345.       end record;
  6346.  
  6347.     pragma Convention(C,  struct_SWBLOCK);
  6348.  
  6349.    subtype SWBLOCK is struct_SWBLOCK;
  6350.  
  6351.    type ARRAY_OF_PSZ is
  6352.       array(integer range 0..0)
  6353.       of PSZ;
  6354.  
  6355.    type APSZ is
  6356.       array(integer range 0..0)
  6357.       of PSZ;
  6358.  
  6359.    type PAPSZ is access all APSZ;
  6360.  
  6361.    type struct_FILEDLG is
  6362.       record
  6363.             cbSize         : ULONG;
  6364.             fl             : ULONG;
  6365.             ulUser         : ULONG;
  6366.             lReturn        : LONG;
  6367.             lSRC           : LONG;
  6368.             pszTitle       : PSZ;
  6369.             pszOKButton    : PSZ;
  6370.             pfnDlgProc     : PFNWP;
  6371.             pszIType       : PSZ;
  6372.             papszITypeList : PAPSZ;
  6373.             pszIDrive      : PSZ;
  6374.             papszIDriveList: PAPSZ;
  6375.             hMod           : HMODULE;
  6376.             szFullFile     : STR8;
  6377.             papszFQFilename: PAPSZ;
  6378.             ulFQFCount     : ULONG;
  6379.             usDlgId        : USHORT;
  6380.             x              : SHORT;
  6381.             y              : SHORT;
  6382.             sEAType        : SHORT;
  6383.       end record;
  6384.  
  6385.     pragma Convention(C,  struct_FILEDLG);
  6386.  
  6387.    subtype FILEDLG is struct_FILEDLG;
  6388.  
  6389.    type struct_FONTDLG is
  6390.       record
  6391.             cbSize           : ULONG;
  6392.             hpsScreen        : HPS;
  6393.             hpsPrinter       : HPS;
  6394.             pszTitle         : PSZ;
  6395.             pszPreview       : PSZ;
  6396.             pszPtSizeList    : PSZ;
  6397.             pfnDlgProc       : PFNWP;
  6398.             pszFamilyname    : PSZ;
  6399.             fxPointSize      : FIXED;
  6400.             fl               : ULONG;
  6401.             flFlags          : ULONG;
  6402.             flType           : ULONG;
  6403.             flTypeMask       : ULONG;
  6404.             flStyle          : ULONG;
  6405.             flStyleMask      : ULONG;
  6406.             clrFore          : LONG;
  6407.             clrBack          : LONG;
  6408.             ulUser           : ULONG;
  6409.             lReturn          : LONG;
  6410.             lSRC             : LONG;
  6411.             lEmHeight        : LONG;
  6412.             lXHeight         : LONG;
  6413.             lExternalLeading : LONG;
  6414.             hMod             : HMODULE;
  6415.             fAttrs_fAttrs    : FATTRS;
  6416.             sNominalPointSize: SHORT;
  6417.             usWeight         : USHORT;
  6418.             usWidth          : USHORT;
  6419.             x                : SHORT;
  6420.             y                : SHORT;
  6421.             usDlgId          : USHORT;
  6422.             usFamilyBufLen   : USHORT;
  6423.             usReserved       : USHORT;
  6424.       end record;
  6425.  
  6426.     pragma Convention(C,  struct_FONTDLG);
  6427.  
  6428.    subtype FONTDLG is struct_FONTDLG;
  6429.  
  6430.    type struct_STYLECHANGE is
  6431.       record
  6432.             usWeight      : USHORT;
  6433.             usWeightOld   : USHORT;
  6434.             usWidth       : USHORT;
  6435.             usWidthOld    : USHORT;
  6436.             flType        : ULONG;
  6437.             flTypeOld     : ULONG;
  6438.             flTypeMask    : ULONG;
  6439.             flTypeMaskOld : ULONG;
  6440.             flStyle       : ULONG;
  6441.             flStyleOld    : ULONG;
  6442.             flStyleMask   : ULONG;
  6443.             flStyleMaskOld: ULONG;
  6444.       end record;
  6445.  
  6446.     pragma Convention(C,  struct_STYLECHANGE);
  6447.  
  6448.    subtype STYLECHANGE is struct_STYLECHANGE;
  6449.  
  6450.    type struct_SLDCDATA is
  6451.       record
  6452.             cbSize            : ULONG;
  6453.             usScale1Increments: USHORT;
  6454.             usScale1Spacing   : USHORT;
  6455.             usScale2Increments: USHORT;
  6456.             usScale2Spacing   : USHORT;
  6457.       end record;
  6458.  
  6459.     pragma Convention(C,  struct_SLDCDATA);
  6460.  
  6461.    subtype SLDCDATA is struct_SLDCDATA;
  6462.  
  6463.    type struct_BOOKTEXT is
  6464.       record
  6465.             pString: PSZ;
  6466.             textLen: ULONG;
  6467.       end record;
  6468.  
  6469.     pragma Convention(C,  struct_BOOKTEXT);
  6470.  
  6471.    subtype BOOKTEXT is struct_BOOKTEXT;
  6472.  
  6473.    type struct_DELETENOTIFY is
  6474.       record
  6475.             hwndBook     : HWND;
  6476.             hwndPage     : HWND;
  6477.             ulAppPageData: ULONG;
  6478.             hbmTab       : HBITMAP;
  6479.       end record;
  6480.  
  6481.     pragma Convention(C,  struct_DELETENOTIFY);
  6482.  
  6483.    subtype DELETENOTIFY is struct_DELETENOTIFY;
  6484.  
  6485.    type struct_PAGESELECTNOTIFY is
  6486.       record
  6487.             hwndBook   : HWND;
  6488.             ulPageIdCur: ULONG;
  6489.             ulPageIdNew: ULONG;
  6490.       end record;
  6491.  
  6492.     pragma Convention(C,  struct_PAGESELECTNOTIFY);
  6493.  
  6494.    subtype PAGESELECTNOTIFY is struct_PAGESELECTNOTIFY;
  6495.  
  6496.    type struct_DRAGIMAGE is
  6497.       record
  6498.             cb         : USHORT;
  6499.             cptl       : USHORT;
  6500.             hImage     : LHANDLE;
  6501.             sizlStretch: SIZEL;
  6502.             fl         : ULONG;
  6503.             cxOffset   : SHORT;
  6504.             cyOffset   : SHORT;
  6505.       end record;
  6506.  
  6507.     pragma Convention(C,  struct_DRAGIMAGE);
  6508.  
  6509.    subtype DRAGIMAGE is struct_DRAGIMAGE;
  6510.  
  6511.    type struct_DRAGINFO is
  6512.       record
  6513.             cbDraginfo : ULONG;
  6514.             cbDragitem : USHORT;
  6515.             usOperation: USHORT;
  6516.             hwndSource : HWND;
  6517.             xDrop      : SHORT;
  6518.             yDrop      : SHORT;
  6519.             cditem     : USHORT;
  6520.             usReserved : USHORT;
  6521.       end record;
  6522.  
  6523.     pragma Convention(C,  struct_DRAGINFO);
  6524.  
  6525.    subtype DRAGINFO is struct_DRAGINFO;
  6526.  
  6527.    type struct_DRAGITEM is
  6528.       record
  6529.             hwndItem         : HWND;
  6530.             ulItemID         : ULONG;
  6531.             hstrType         : HSTR;
  6532.             hstrRMF          : HSTR;
  6533.             hstrContainerName: HSTR;
  6534.             hstrSourceName   : HSTR;
  6535.             hstrTargetName   : HSTR;
  6536.             cxOffset         : SHORT;
  6537.             cyOffset         : SHORT;
  6538.             fsControl        : USHORT;
  6539.             fsSupportedOps   : USHORT;
  6540.       end record;
  6541.  
  6542.     pragma Convention(C,  struct_DRAGITEM);
  6543.  
  6544.    subtype DRAGITEM is struct_DRAGITEM;
  6545.  
  6546.    type struct_DRAGTRANSFER is
  6547.       record
  6548.             cb              : ULONG;
  6549.             hwndClient      : HWND;
  6550.             pditem          : PDRAGITEM;
  6551.             hstrSelectedRMF : HSTR;
  6552.             hstrRenderToName: HSTR;
  6553.             ulTargetInfo    : ULONG;
  6554.             usOperation     : USHORT;
  6555.             fsReply         : USHORT;
  6556.       end record;
  6557.  
  6558.     pragma Convention(C,  struct_DRAGTRANSFER);
  6559.  
  6560.    subtype DRAGTRANSFER is struct_DRAGTRANSFER;
  6561.  
  6562.    type struct_RENDERFILE is
  6563.       record
  6564.             hwndDragFiles: HWND;
  6565.             hstrSource   : HSTR;
  6566.             hstrTarget   : HSTR;
  6567.             fMove        : USHORT;
  6568.             usRsvd       : USHORT;
  6569.       end record;
  6570.  
  6571.     pragma Convention(C,  struct_RENDERFILE);
  6572.  
  6573.    subtype RENDERFILE is struct_RENDERFILE;
  6574.  
  6575.    type struct_VSCDATA is
  6576.       record
  6577.             cbSize       : ULONG;
  6578.             usRowCount   : USHORT;
  6579.             usColumnCount: USHORT;
  6580.       end record;
  6581.  
  6582.     pragma Convention(C,  struct_VSCDATA);
  6583.  
  6584.    subtype VSCDATA is struct_VSCDATA;
  6585.  
  6586.    type struct_VSDRAGINIT is
  6587.       record
  6588.             hwnd_hwnd   : HWND;
  6589.             x       : LONG;
  6590.             y       : LONG;
  6591.             cx      : LONG;
  6592.             cy      : LONG;
  6593.             usRow   : USHORT;
  6594.             usColumn: USHORT;
  6595.       end record;
  6596.  
  6597.     pragma Convention(C,  struct_VSDRAGINIT);
  6598.  
  6599.    subtype VSDRAGINIT is struct_VSDRAGINIT;
  6600.  
  6601.    type struct_VSDRAGINFO is
  6602.       record
  6603.             pDragInfo_pDragInfo: PDRAGINFO;
  6604.             usRow    : USHORT;
  6605.             usColumn : USHORT;
  6606.       end record;
  6607.  
  6608.     pragma Convention(C,  struct_VSDRAGINFO);
  6609.  
  6610.    subtype VSDRAGINFO is struct_VSDRAGINFO;
  6611.  
  6612.    type struct_VSTEXT is
  6613.       record
  6614.             pszItemText: PSZ;
  6615.             ulBufLen   : ULONG;
  6616.       end record;
  6617.  
  6618.     pragma Convention(C,  struct_VSTEXT);
  6619.  
  6620.    subtype VSTEXT is struct_VSTEXT;
  6621.  
  6622.    type struct_TREEITEMDESC is
  6623.       record
  6624.             hbmExpanded  : HBITMAP;
  6625.             hbmCollapsed : HBITMAP;
  6626.             hptrExpanded : HPOINTER;
  6627.             hptrCollapsed: HPOINTER;
  6628.       end record;
  6629.  
  6630.     pragma Convention(C,  struct_TREEITEMDESC);
  6631.  
  6632.    subtype TREEITEMDESC is struct_TREEITEMDESC;
  6633.  
  6634.    type struct_FIELDINFO is
  6635.       record
  6636.             cb            : ULONG;
  6637.             flData        : ULONG;
  6638.             flTitle       : ULONG;
  6639.             pTitleData    : PVOID;
  6640.             offStruct     : ULONG;
  6641.             pUserData     : PVOID;
  6642.             pNextFieldInfo: pstruct_FIELDINFO;
  6643.             cxWidth       : ULONG;
  6644.       end record;
  6645.  
  6646.     pragma Convention(C,  struct_FIELDINFO);
  6647.  
  6648.    subtype FIELDINFO is struct_FIELDINFO;
  6649.  
  6650.    type struct_RECORDCORE is
  6651.       record
  6652.             cb             : ULONG;
  6653.             flRecordAttr   : ULONG;
  6654.             ptlIcon        : POINTL;
  6655.             preccNextRecord: pstruct_RECORDCORE;
  6656.             pszIcon        : PSZ;
  6657.             hptrIcon       : HPOINTER;
  6658.             hptrMiniIcon   : HPOINTER;
  6659.             hbmBitmap      : HBITMAP;
  6660.             hbmMiniBitmap  : HBITMAP;
  6661.             ptid_pTreeItemDesc  : PTREEITEMDESC;
  6662.             pszText        : PSZ;
  6663.             pszName        : PSZ;
  6664.             pszTree        : PSZ;
  6665.       end record;
  6666.  
  6667.     pragma Convention(C,  struct_RECORDCORE);
  6668.  
  6669.    subtype RECORDCORE is struct_RECORDCORE;
  6670.  
  6671.    type struct_MINIRECORDCORE is
  6672.       record
  6673.             cb             : ULONG;
  6674.             flRecordAttr   : ULONG;
  6675.             ptlIcon        : POINTL;
  6676.             preccNextRecord: pstruct_MINIRECORDCORE;
  6677.             pszIcon        : PSZ;
  6678.             hptrIcon       : HPOINTER;
  6679.       end record;
  6680.  
  6681.     pragma Convention(C,  struct_MINIRECORDCORE);
  6682.  
  6683.    subtype MINIRECORDCORE is struct_MINIRECORDCORE;
  6684.  
  6685.    type struct_CNRINFO is
  6686.       record
  6687.             cb                : ULONG;
  6688.             pSortRecord       : PVOID;
  6689.             pFieldInfoLast    : PFIELDINFO;
  6690.             pFieldInfoObject  : PFIELDINFO;
  6691.             pszCnrTitle       : PSZ;
  6692.             flWindowAttr      : ULONG;
  6693.             ptlOrigin         : POINTL;
  6694.             cDelta            : ULONG;
  6695.             cRecords          : ULONG;
  6696.             slBitmapOrIcon    : SIZEL;
  6697.             slTreeBitmapOrIcon: SIZEL;
  6698.             hbmExpanded       : HBITMAP;
  6699.             hbmCollapsed      : HBITMAP;
  6700.             hptrExpanded      : HPOINTER;
  6701.             hptrCollapsed     : HPOINTER;
  6702.             cyLineSpacing     : LONG;
  6703.             cxTreeIndent      : LONG;
  6704.             cxTreeLine        : LONG;
  6705.             cFields           : ULONG;
  6706.             xVertSplitbar     : LONG;
  6707.       end record;
  6708.  
  6709.     pragma Convention(C,  struct_CNRINFO);
  6710.  
  6711.    subtype CNRINFO is struct_CNRINFO;
  6712.  
  6713.    type struct_CDATE is
  6714.       record
  6715.             day  : UCHAR;
  6716.             month: UCHAR;
  6717.             year : USHORT;
  6718.       end record;
  6719.  
  6720.     pragma Convention(C,  struct_CDATE);
  6721.  
  6722.    subtype CDATE is struct_CDATE;
  6723.  
  6724.    type struct_CTIME is
  6725.       record
  6726.             hours     : UCHAR;
  6727.             minutes   : UCHAR;
  6728.             seconds   : UCHAR;
  6729.             ucReserved: UCHAR;
  6730.       end record;
  6731.  
  6732.     pragma Convention(C,  struct_CTIME);
  6733.  
  6734.    subtype CTIME is struct_CTIME;
  6735.  
  6736.    type struct_CNRDRAGINIT is
  6737.       record
  6738.             hwndCnr: HWND;
  6739.             pRecord: PRECORDCORE;
  6740.             x      : LONG;
  6741.             y      : LONG;
  6742.             cx     : LONG;
  6743.             cy     : LONG;
  6744.       end record;
  6745.  
  6746.     pragma Convention(C,  struct_CNRDRAGINIT);
  6747.  
  6748.    subtype CNRDRAGINIT is struct_CNRDRAGINIT;
  6749.  
  6750.    type struct_FIELDINFOINSERT is
  6751.       record
  6752.             cb                  : ULONG;
  6753.             pFieldInfoOrder     : PFIELDINFO;
  6754.             fInvalidateFieldInfo: ULONG;
  6755.             cFieldInfoInsert    : ULONG;
  6756.       end record;
  6757.  
  6758.     pragma Convention(C,  struct_FIELDINFOINSERT);
  6759.  
  6760.    subtype FIELDINFOINSERT is struct_FIELDINFOINSERT;
  6761.  
  6762.    type struct_RECORDINSERT is
  6763.       record
  6764.             cb               : ULONG;
  6765.             pRecordOrder     : PRECORDCORE;
  6766.             pRecordParent    : PRECORDCORE;
  6767.             fInvalidateRecord: ULONG;
  6768.             zOrder           : ULONG;
  6769.             cRecordsInsert   : ULONG;
  6770.       end record;
  6771.  
  6772.     pragma Convention(C,  struct_RECORDINSERT);
  6773.  
  6774.    subtype RECORDINSERT is struct_RECORDINSERT;
  6775.  
  6776.    type struct_QUERYRECFROMRECT is
  6777.       record
  6778.             cb      : ULONG;
  6779.             rect    : RECTL;
  6780.             fsSearch: ULONG;
  6781.       end record;
  6782.  
  6783.     pragma Convention(C,  struct_QUERYRECFROMRECT);
  6784.  
  6785.    subtype QUERYRECFROMRECT is struct_QUERYRECFROMRECT;
  6786.  
  6787.    type struct_QUERYRECORDRECT is
  6788.       record
  6789.             cb               : ULONG;
  6790.             pRecord          : PRECORDCORE;
  6791.             fRightSplitWindow: ULONG;
  6792.             fsExtent         : ULONG;
  6793.       end record;
  6794.  
  6795.     pragma Convention(C,  struct_QUERYRECORDRECT);
  6796.  
  6797.    subtype QUERYRECORDRECT is struct_QUERYRECORDRECT;
  6798.  
  6799.    type struct_SEARCHSTRING is
  6800.       record
  6801.             cb             : ULONG;
  6802.             pszSearch      : PSZ;
  6803.             fsPrefix       : ULONG;
  6804.             fsCaseSensitive: ULONG;
  6805.             usView         : ULONG;
  6806.       end record;
  6807.  
  6808.     pragma Convention(C,  struct_SEARCHSTRING);
  6809.  
  6810.    subtype SEARCHSTRING is struct_SEARCHSTRING;
  6811.  
  6812.    type struct_CNRDRAGINFO is
  6813.       record
  6814.             pDragInfo_pDragInfo: PDRAGINFO;
  6815.             pRecord  : PRECORDCORE;
  6816.       end record;
  6817.  
  6818.     pragma Convention(C,  struct_CNRDRAGINFO);
  6819.  
  6820.    subtype CNRDRAGINFO is struct_CNRDRAGINFO;
  6821.  
  6822.    type struct_NOTIFYRECORDEMPHASIS is
  6823.       record
  6824.             hwndCnr      : HWND;
  6825.             pRecord      : PRECORDCORE;
  6826.             fEmphasisMask: ULONG;
  6827.       end record;
  6828.  
  6829.     pragma Convention(C,  struct_NOTIFYRECORDEMPHASIS);
  6830.  
  6831.    subtype NOTIFYRECORDEMPHASIS is struct_NOTIFYRECORDEMPHASIS;
  6832.  
  6833.    type struct_NOTIFYRECORDENTER is
  6834.       record
  6835.             hwndCnr: HWND;
  6836.             fKey   : ULONG;
  6837.             pRecord: PRECORDCORE;
  6838.       end record;
  6839.  
  6840.     pragma Convention(C,  struct_NOTIFYRECORDENTER);
  6841.  
  6842.    subtype NOTIFYRECORDENTER is struct_NOTIFYRECORDENTER;
  6843.  
  6844.    type struct_NOTIFYDELTA is
  6845.       record
  6846.             hwndCnr: HWND;
  6847.             fDelta : ULONG;
  6848.       end record;
  6849.  
  6850.     pragma Convention(C,  struct_NOTIFYDELTA);
  6851.  
  6852.    subtype NOTIFYDELTA is struct_NOTIFYDELTA;
  6853.  
  6854.    type struct_NOTIFYSCROLL is
  6855.       record
  6856.             hwndCnr   : HWND;
  6857.             lScrollInc: LONG;
  6858.             fScroll   : ULONG;
  6859.       end record;
  6860.  
  6861.     pragma Convention(C,  struct_NOTIFYSCROLL);
  6862.  
  6863.    subtype NOTIFYSCROLL is struct_NOTIFYSCROLL;
  6864.  
  6865.    type struct_CNREDITDATA is
  6866.       record
  6867.             cb        : ULONG;
  6868.             hwndCnr   : HWND;
  6869.             pRecord   : PRECORDCORE;
  6870.             pFieldInfo_pFieldInfo: PFIELDINFO;
  6871.             ppszText  : PPSZ;
  6872.             cbText    : ULONG;
  6873.             id        : ULONG;
  6874.       end record;
  6875.  
  6876.     pragma Convention(C,  struct_CNREDITDATA);
  6877.  
  6878.    subtype CNREDITDATA is struct_CNREDITDATA;
  6879.  
  6880.    type struct_OWNERBACKGROUND is
  6881.       record
  6882.             hwnd_hwnd        : HWND;
  6883.             hps_hps         : HPS;
  6884.             rclBackground: RECTL;
  6885.             idWindow     : LONG;
  6886.       end record;
  6887.  
  6888.     pragma Convention(C,  struct_OWNERBACKGROUND);
  6889.  
  6890.    subtype OWNERBACKGROUND is struct_OWNERBACKGROUND;
  6891.  
  6892.    type struct_CNRDRAWITEMINFO is
  6893.       record
  6894.             pRecord   : PRECORDCORE;
  6895.             pFieldInfo_pFieldInfo: PFIELDINFO;
  6896.       end record;
  6897.  
  6898.     pragma Convention(C,  struct_CNRDRAWITEMINFO);
  6899.  
  6900.    subtype CNRDRAWITEMINFO is struct_CNRDRAWITEMINFO;
  6901.  
  6902.    type struct_OBJCLASS is
  6903.       record
  6904.             pNext       : pstruct_OBJCLASS;
  6905.             pszClassName: PSZ;
  6906.             pszModName  : PSZ;
  6907.       end record;
  6908.  
  6909.     pragma Convention(C,  struct_OBJCLASS);
  6910.  
  6911.    subtype OBJCLASS is struct_OBJCLASS;
  6912.  
  6913.    type struct_SQPOPENDATA is
  6914.       record
  6915.             pszLogAddress   : PSZ;
  6916.             pszDriverName   : PSZ;
  6917.             pdriv           : PDRIVDATA;
  6918.             pszDataType     : PSZ;
  6919.             pszComment      : PSZ;
  6920.             pszProcParams   : PSZ;
  6921.             pszSpoolParams  : PSZ;
  6922.             pszNetworkParams: PSZ;
  6923.             pszDocName      : PSZ;
  6924.             pszQueueName    : PSZ;
  6925.             pszToken        : PSZ;
  6926.             idJobId         : USHORT;
  6927.       end record;
  6928.  
  6929.     pragma Convention(C,  struct_SQPOPENDATA);
  6930.  
  6931.    subtype SQPOPENDATA is struct_SQPOPENDATA;
  6932.  
  6933.    type struct_DRIVPROPS is
  6934.       record
  6935.             pszKeyName: PSZ;
  6936.             cbBuf     : ULONG;
  6937.             pBuf      : PVOID;
  6938.       end record;
  6939.  
  6940.     pragma Convention(C,  struct_DRIVPROPS);
  6941.  
  6942.    subtype DRIVPROPS is struct_DRIVPROPS;
  6943.  
  6944.    type struct_PRINTERINFO is
  6945.       record
  6946.             flType                 : ULONG;
  6947.             pszComputerName        : PSZ;
  6948.             pszPrintDestinationName: PSZ;
  6949.             pszDescription         : PSZ;
  6950.             pszLocalName           : PSZ;
  6951.       end record;
  6952.  
  6953.     pragma Convention(C,  struct_PRINTERINFO);
  6954.  
  6955.    subtype PRINTERINFO is struct_PRINTERINFO;
  6956.  
  6957.    type struct_PRJINFO is
  6958.       record
  6959.             uJobId      : USHORT;
  6960.             szUserName  : STR8;
  6961.             pad_1       : CHAR;
  6962.             szNotifyName: STR8;
  6963.             szDataType  : STR8;
  6964.             pszParms    : PSZ;
  6965.             uPosition   : USHORT;
  6966.             fsStatus    : USHORT;
  6967.             pszStatus   : PSZ;
  6968.             ulSubmitted : ULONG;
  6969.             ulSize      : ULONG;
  6970.             pszComment  : PSZ;
  6971.       end record;
  6972.  
  6973.     pragma Convention(C,  struct_PRJINFO);
  6974.  
  6975.    subtype PRJINFO is struct_PRJINFO;
  6976.  
  6977.    type struct_PRJINFO2 is
  6978.       record
  6979.             uJobId     : USHORT;
  6980.             uPriority  : USHORT;
  6981.             pszUserName: PSZ;
  6982.             uPosition  : USHORT;
  6983.             fsStatus   : USHORT;
  6984.             ulSubmitted: ULONG;
  6985.             ulSize     : ULONG;
  6986.             pszComment : PSZ;
  6987.             pszDocument: PSZ;
  6988.       end record;
  6989.  
  6990.     pragma Convention(C,  struct_PRJINFO2);
  6991.  
  6992.    subtype PRJINFO2 is struct_PRJINFO2;
  6993.  
  6994.    type struct_PRJINFO3 is
  6995.       record
  6996.             uJobId        : USHORT;
  6997.             uPriority     : USHORT;
  6998.             pszUserName   : PSZ;
  6999.             uPosition     : USHORT;
  7000.             fsStatus      : USHORT;
  7001.             ulSubmitted   : ULONG;
  7002.             ulSize        : ULONG;
  7003.             pszComment    : PSZ;
  7004.             pszDocument   : PSZ;
  7005.             pszNotifyName : PSZ;
  7006.             pszDataType   : PSZ;
  7007.             pszParms      : PSZ;
  7008.             pszStatus     : PSZ;
  7009.             pszQueue      : PSZ;
  7010.             pszQProcName  : PSZ;
  7011.             pszQProcParms : PSZ;
  7012.             pszDriverName : PSZ;
  7013.             pDriverData   : PDRIVDATA;
  7014.             pszPrinterName: PSZ;
  7015.       end record;
  7016.  
  7017.     pragma Convention(C,  struct_PRJINFO3);
  7018.  
  7019.    subtype PRJINFO3 is struct_PRJINFO3;
  7020.  
  7021.    type struct_PRDINFO is
  7022.       record
  7023.             szName    : STR8;
  7024.             szUserName: STR8;
  7025.             uJobId    : USHORT;
  7026.             fsStatus  : USHORT;
  7027.             pszStatus : PSZ;
  7028.             time      : USHORT;
  7029.       end record;
  7030.  
  7031.     pragma Convention(C,  struct_PRDINFO);
  7032.  
  7033.    subtype PRDINFO is struct_PRDINFO;
  7034.  
  7035.    type struct_PRDINFO3 is
  7036.       record
  7037.             pszPrinterName: PSZ;
  7038.             pszUserName   : PSZ;
  7039.             pszLogAddr    : PSZ;
  7040.             uJobId        : USHORT;
  7041.             fsStatus      : USHORT;
  7042.             pszStatus     : PSZ;
  7043.             pszComment    : PSZ;
  7044.             pszDrivers    : PSZ;
  7045.             time          : USHORT;
  7046.             usTimeOut     : USHORT;
  7047.       end record;
  7048.  
  7049.     pragma Convention(C,  struct_PRDINFO3);
  7050.  
  7051.    subtype PRDINFO3 is struct_PRDINFO3;
  7052.  
  7053.    type struct_PRQINFO is
  7054.       record
  7055.             szName         : STR8;
  7056.             pad_1          : CHAR;
  7057.             uPriority      : USHORT;
  7058.             uStartTime     : USHORT;
  7059.             uUntilTime     : USHORT;
  7060.             pszSepFile     : PSZ;
  7061.             pszPrProc      : PSZ;
  7062.             pszDestinations: PSZ;
  7063.             pszParms       : PSZ;
  7064.             pszComment     : PSZ;
  7065.             fsStatus       : USHORT;
  7066.             cJobs          : USHORT;
  7067.       end record;
  7068.  
  7069.     pragma Convention(C,  struct_PRQINFO);
  7070.  
  7071.    subtype PRQINFO is struct_PRQINFO;
  7072.  
  7073.    type struct_PRQINFO3 is
  7074.       record
  7075.             pszName      : PSZ;
  7076.             uPriority    : USHORT;
  7077.             uStartTime   : USHORT;
  7078.             uUntilTime   : USHORT;
  7079.             fsType       : USHORT;
  7080.             pszSepFile   : PSZ;
  7081.             pszPrProc    : PSZ;
  7082.             pszParms     : PSZ;
  7083.             pszComment   : PSZ;
  7084.             fsStatus     : USHORT;
  7085.             cJobs        : USHORT;
  7086.             pszPrinters  : PSZ;
  7087.             pszDriverName: PSZ;
  7088.             pDriverData  : PDRIVDATA;
  7089.       end record;
  7090.  
  7091.     pragma Convention(C,  struct_PRQINFO3);
  7092.  
  7093.    subtype PRQINFO3 is struct_PRQINFO3;
  7094.  
  7095.    type struct_PRQINFO6 is
  7096.       record
  7097.             pszName              : PSZ;
  7098.             uPriority            : USHORT;
  7099.             uStartTime           : USHORT;
  7100.             uUntilTime           : USHORT;
  7101.             fsType               : USHORT;
  7102.             pszSepFile           : PSZ;
  7103.             pszPrProc            : PSZ;
  7104.             pszParms             : PSZ;
  7105.             pszComment           : PSZ;
  7106.             fsStatus             : USHORT;
  7107.             cJobs                : USHORT;
  7108.             pszPrinters          : PSZ;
  7109.             pszDriverName        : PSZ;
  7110.             pDriverData          : PDRIVDATA;
  7111.             pszRemoteComputerName: PSZ;
  7112.             pszRemoteQueueName   : PSZ;
  7113.       end record;
  7114.  
  7115.     pragma Convention(C,  struct_PRQINFO6);
  7116.  
  7117.    subtype PRQINFO6 is struct_PRQINFO6;
  7118.  
  7119.    type struct_PRIDINFO is
  7120.       record
  7121.             uJobId        : USHORT;
  7122.             szComputerName: STR8;
  7123.             szQueueName   : STR8;
  7124.             pad_1         : CHAR;
  7125.       end record;
  7126.  
  7127.     pragma Convention(C,  struct_PRIDINFO);
  7128.  
  7129.    subtype PRIDINFO is struct_PRIDINFO;
  7130.  
  7131.    type struct_PRDRIVINFO is
  7132.       record
  7133.             szDrivName: STR8;
  7134.       end record;
  7135.  
  7136.     pragma Convention(C,  struct_PRDRIVINFO);
  7137.  
  7138.    subtype PRDRIVINFO is struct_PRDRIVINFO;
  7139.  
  7140.    type struct_PRQPROCINFO is
  7141.       record
  7142.             szQProcName: STR8;
  7143.       end record;
  7144.  
  7145.     pragma Convention(C,  struct_PRQPROCINFO);
  7146.  
  7147.    subtype PRQPROCINFO is struct_PRQPROCINFO;
  7148.  
  7149.    type struct_PRPORTINFO is
  7150.       record
  7151.             szPortName: STR8;
  7152.       end record;
  7153.  
  7154.     pragma Convention(C,  struct_PRPORTINFO);
  7155.  
  7156.    subtype PRPORTINFO is struct_PRPORTINFO;
  7157.  
  7158.    type struct_PRPORTINFO1 is
  7159.       record
  7160.             pszPortName          : PSZ;
  7161.             pszPortDriverName    : PSZ;
  7162.             pszPortDriverPathName: PSZ;
  7163.       end record;
  7164.  
  7165.     pragma Convention(C,  struct_PRPORTINFO1);
  7166.  
  7167.    subtype PRPORTINFO1 is struct_PRPORTINFO1;
  7168.  
  7169.    type struct_ACVP is
  7170.       record
  7171.             cb        : ULONG;
  7172.             hAB_hab   : HAB;
  7173.             hmq_hmq   : HMQ;
  7174.             ObjectID  : ULONG;
  7175.             hWndParent: HWND;
  7176.             hWndOwner : HWND;
  7177.             hWndACVP  : HWND;
  7178.       end record;
  7179.  
  7180.     pragma Convention(C,  struct_ACVP);
  7181.  
  7182.    subtype ACVP is struct_ACVP;
  7183.  
  7184.    type struct_HELPTABLE is
  7185.       record
  7186.             idAppWindow     : USHORT;
  7187.             phstHelpSubTable: PHELPSUBTABLE;
  7188.             idExtPanel      : USHORT;
  7189.       end record;
  7190.  
  7191.     pragma Convention(C,  struct_HELPTABLE);
  7192.  
  7193.    subtype HELPTABLE is struct_HELPTABLE;
  7194.  
  7195.    type struct_HELPINIT is
  7196.       record
  7197.             cb                      : ULONG;
  7198.             ulReturnCode            : ULONG;
  7199.             pszTutorialName         : PSZ;
  7200.             phtHelpTable            : PHELPTABLE;
  7201.             hmodHelpTableModule     : HMODULE;
  7202.             hmodAccelActionBarModule: HMODULE;
  7203.             idAccelTable            : ULONG;
  7204.             idActionBar             : ULONG;
  7205.             pszHelpWindowTitle      : PSZ;
  7206.             fShowPanelId            : ULONG;
  7207.             pszHelpLibraryName      : PSZ;
  7208.       end record;
  7209.  
  7210.     pragma Convention(C,  struct_HELPINIT);
  7211.  
  7212.    subtype HELPINIT is struct_HELPINIT;
  7213.  
  7214.    type struct_FOCAMETRICS is
  7215.       record
  7216.             ulIdentity         : ULONG;
  7217.             ulSize             : ULONG;
  7218.             szFamilyname       : STR8;
  7219.             szFacename         : STR8;
  7220.             usRegistryId       : SHORT;
  7221.             usCodePage         : SHORT;
  7222.             yEmHeight          : SHORT;
  7223.             yXHeight           : SHORT;
  7224.             yMaxAscender       : SHORT;
  7225.             yMaxDescender      : SHORT;
  7226.             yLowerCaseAscent   : SHORT;
  7227.             yLowerCaseDescent  : SHORT;
  7228.             yInternalLeading   : SHORT;
  7229.             yExternalLeading   : SHORT;
  7230.             xAveCharWidth      : SHORT;
  7231.             xMaxCharInc        : SHORT;
  7232.             xEmInc             : SHORT;
  7233.             yMaxBaselineExt    : SHORT;
  7234.             sCharSlope         : SHORT;
  7235.             sInlineDir         : SHORT;
  7236.             sCharRot           : SHORT;
  7237.             usWeightClass      : USHORT;
  7238.             usWidthClass       : USHORT;
  7239.             xDeviceRes         : SHORT;
  7240.             yDeviceRes         : SHORT;
  7241.             usFirstChar        : SHORT;
  7242.             usLastChar         : SHORT;
  7243.             usDefaultChar      : SHORT;
  7244.             usBreakChar        : SHORT;
  7245.             usNominalPointSize : SHORT;
  7246.             usMinimumPointSize : SHORT;
  7247.             usMaximumPointSize : SHORT;
  7248.             fsTypeFlags        : SHORT;
  7249.             fsDefn             : SHORT;
  7250.             fsSelectionFlags   : SHORT;
  7251.             fsCapabilities     : SHORT;
  7252.             ySubscriptXSize    : SHORT;
  7253.             ySubscriptYSize    : SHORT;
  7254.             ySubscriptXOffset  : SHORT;
  7255.             ySubscriptYOffset  : SHORT;
  7256.             ySuperscriptXSize  : SHORT;
  7257.             ySuperscriptYSize  : SHORT;
  7258.             ySuperscriptXOffset: SHORT;
  7259.             ySuperscriptYOffset: SHORT;
  7260.             yUnderscoreSize    : SHORT;
  7261.             yUnderscorePosition: SHORT;
  7262.             yStrikeoutSize     : SHORT;
  7263.             yStrikeoutPosition : SHORT;
  7264.             usKerningPairs     : SHORT;
  7265.             sFamilyClass       : SHORT;
  7266.             pszDeviceNameOffset: PSZ;
  7267.       end record;
  7268.  
  7269.     pragma Convention(C,  struct_FOCAMETRICS);
  7270.  
  7271.    subtype FOCAMETRICS is struct_FOCAMETRICS;
  7272.  
  7273.    type struct_FONTFILEMETRICS is
  7274.       record
  7275.             ulIdentity         : ULONG;
  7276.             ulSize             : ULONG;
  7277.             szFamilyname       : STR8;
  7278.             szFacename         : STR8;
  7279.             usRegistryId       : SHORT;
  7280.             usCodePage         : SHORT;
  7281.             yEmHeight          : SHORT;
  7282.             yXHeight           : SHORT;
  7283.             yMaxAscender       : SHORT;
  7284.             yMaxDescender      : SHORT;
  7285.             yLowerCaseAscent   : SHORT;
  7286.             yLowerCaseDescent  : SHORT;
  7287.             yInternalLeading   : SHORT;
  7288.             yExternalLeading   : SHORT;
  7289.             xAveCharWidth      : SHORT;
  7290.             xMaxCharInc        : SHORT;
  7291.             xEmInc             : SHORT;
  7292.             yMaxBaselineExt    : SHORT;
  7293.             sCharSlope         : SHORT;
  7294.             sInlineDir         : SHORT;
  7295.             sCharRot           : SHORT;
  7296.             usWeightClass      : USHORT;
  7297.             usWidthClass       : USHORT;
  7298.             xDeviceRes         : SHORT;
  7299.             yDeviceRes         : SHORT;
  7300.             usFirstChar        : SHORT;
  7301.             usLastChar         : SHORT;
  7302.             usDefaultChar      : SHORT;
  7303.             usBreakChar        : SHORT;
  7304.             usNominalPointSize : SHORT;
  7305.             usMinimumPointSize : SHORT;
  7306.             usMaximumPointSize : SHORT;
  7307.             fsTypeFlags        : SHORT;
  7308.             fsDefn             : SHORT;
  7309.             fsSelectionFlags   : SHORT;
  7310.             fsCapabilities     : SHORT;
  7311.             ySubscriptXSize    : SHORT;
  7312.             ySubscriptYSize    : SHORT;
  7313.             ySubscriptXOffset  : SHORT;
  7314.             ySubscriptYOffset  : SHORT;
  7315.             ySuperscriptXSize  : SHORT;
  7316.             ySuperscriptYSize  : SHORT;
  7317.             ySuperscriptXOffset: SHORT;
  7318.             ySuperscriptYOffset: SHORT;
  7319.             yUnderscoreSize    : SHORT;
  7320.             yUnderscorePosition: SHORT;
  7321.             yStrikeoutSize     : SHORT;
  7322.             yStrikeoutPosition : SHORT;
  7323.             usKerningPairs     : SHORT;
  7324.             sFamilyClass       : SHORT;
  7325.             ulReserved         : ULONG;
  7326.             panose_panose      : PANOSE;
  7327.       end record;
  7328.  
  7329.     pragma Convention(C,  struct_FONTFILEMETRICS);
  7330.  
  7331.    subtype FONTFILEMETRICS is struct_FONTFILEMETRICS;
  7332.  
  7333.    type struct_FONTDEFINITIONHEADER is
  7334.       record
  7335.             ulIdentity     : ULONG;
  7336.             ulSize         : ULONG;
  7337.             fsFontdef      : SHORT;
  7338.             fsChardef      : SHORT;
  7339.             usCellSize     : SHORT;
  7340.             xCellWidth     : SHORT;
  7341.             yCellHeight    : SHORT;
  7342.             xCellIncrement : SHORT;
  7343.             xCellA         : SHORT;
  7344.             xCellB         : SHORT;
  7345.             xCellC         : SHORT;
  7346.             pCellBaseOffset: SHORT;
  7347.       end record;
  7348.  
  7349.     pragma Convention(C,  struct_FONTDEFINITIONHEADER);
  7350.  
  7351.    subtype FONTDEFINITIONHEADER is struct_FONTDEFINITIONHEADER;
  7352.  
  7353.    type struct_FONTSIGNATURE is
  7354.       record
  7355.             ulIdentity  : ULONG;
  7356.             ulSize      : ULONG;
  7357.             achSignature: STR8;
  7358.       end record;
  7359.  
  7360.     pragma Convention(C,  struct_FONTSIGNATURE);
  7361.  
  7362.    subtype FONTSIGNATURE is struct_FONTSIGNATURE;
  7363.  
  7364.    type struct_ADDITIONALMETRICS is
  7365.       record
  7366.             ulIdentity: ULONG;
  7367.             ulSize    : ULONG;
  7368.             panose_panose    : PANOSE;
  7369.       end record;
  7370.  
  7371.     pragma Convention(C,  struct_ADDITIONALMETRICS);
  7372.  
  7373.    subtype ADDITIONALMETRICS is struct_ADDITIONALMETRICS;
  7374.  
  7375.    type struct_FOCAFONT is
  7376.       record
  7377.             fsSignature  : FONTSIGNATURE;
  7378.             fmMetrics    : FOCAMETRICS;
  7379.             fdDefinitions: FONTDEFINITIONHEADER;
  7380.       end record;
  7381.  
  7382.     pragma Convention(C,  struct_FOCAFONT);
  7383.  
  7384.    subtype FOCAFONT is struct_FOCAFONT;
  7385.  
  7386.    -- macro functions (VERY incomplete)
  7387.  
  7388.     function PVOIDFROMMP is
  7389.        new Unchecked_Conversion(Source => MPARAM, Target => PVOID);
  7390.  
  7391.     function HWNDFROMMP is
  7392.        new Unchecked_Conversion(Source => MPARAM, Target => HWND);
  7393.  
  7394.     function LONGFROMMP is
  7395.        new Unchecked_Conversion(Source => MPARAM, Target => LONG);
  7396.  
  7397.     function CHAR1FROMMP(mp: MPARAM) return CHAR;
  7398.     function CHAR2FROMMP(mp: MPARAM) return CHAR;
  7399.     function CHAR3FROMMP(mp: MPARAM) return CHAR;
  7400.     function CHAR4FROMMP(mp: MPARAM) return CHAR;
  7401.     function SHORT1FROMMP(mp: MPARAM) return SHORT;
  7402.     function SHORT2FROMMP(mp: MPARAM) return SHORT;
  7403.  
  7404.     function MPFROMP is
  7405.        new Unchecked_Conversion(Source => System.Address, Target => MPARAM);
  7406.  
  7407.     function MPFROMHWND is
  7408.        new Unchecked_Conversion(Source => HWND, Target => MPARAM);
  7409.  
  7410.     function MPFROMLONG is
  7411.        new Unchecked_Conversion(Source => LONG, Target => MPARAM);
  7412.  
  7413.     function MPFROMSHORT(s: SHORT) return MPARAM;
  7414.     function MPFROMCHAR(c: CHAR) return MPARAM;
  7415.  
  7416.  
  7417.    -- normal function
  7418.  
  7419.    function DosErrClass(ulCode   : ULONG;
  7420.                         pulClass : PULONG;
  7421.                         pulAction: PULONG;
  7422.                         pulLocus : PULONG)
  7423.                                    return ULONG;
  7424.  
  7425.    function DosError(ulError: ULONG) return ULONG;
  7426.  
  7427.    function DosFreeModule(hmod: HMODULE) return ULONG;
  7428.  
  7429.    function DosLoadModule(pszObject : PSZ;
  7430.                           uObjectLen: ULONG;
  7431.                           pszModule : PCSZ;
  7432.                           phmod     : PHMODULE)
  7433.                                       return ULONG;
  7434.  
  7435.    function DosQueryModuleHandle(pszModname: PCSZ;
  7436.                                  phmod     : PHMODULE)
  7437.                                              return ULONG;
  7438.  
  7439.    function DosQueryModuleName(hmod        : HMODULE;
  7440.                                ulNameLength: ULONG;
  7441.                                pNameBuf    : PCHAR)
  7442.                                              return ULONG;
  7443.  
  7444.    function DosQueryProcAddr(hmod       : HMODULE;
  7445.                              ulOrdinal  : ULONG;
  7446.                              pszProcName: PCSZ;
  7447.                              pProcAddr  : PPFN)
  7448.                                           return ULONG;
  7449.  
  7450.    function DosQueryProcType(hmod       : HMODULE;
  7451.                              ulOrdinal  : ULONG;
  7452.                              pszProcName: PCSZ;
  7453.                              pulProcType: PULONG)
  7454.                                           return ULONG;
  7455.  
  7456.    function DosFreeResource(pResAddr: PVOID) return ULONG;
  7457.  
  7458.    function DosGetResource(hmod    : HMODULE;
  7459.                            ulTypeID: ULONG;
  7460.                            ulNameID: ULONG;
  7461.                            pOffset : PPVOID)
  7462.                                      return ULONG;
  7463.  
  7464.    function DosQueryResourceSize(hmod    : HMODULE;
  7465.                                  ulTypeID: ULONG;
  7466.                                  ulNameID: ULONG;
  7467.                                  pulSize : PULONG)
  7468.                                            return ULONG;
  7469.  
  7470.    function DosBeep(ulFrequency: ULONG;
  7471.                     ulDuration : ULONG)
  7472.                                  return ULONG;
  7473.  
  7474.    function WinCancelShutdown(hmq          : HMQ;
  7475.                               fCancelAlways: BOOL)
  7476.                                              return BOOL;
  7477.  
  7478.    function WinCreateMsgQueue(hab : HAB;
  7479.                               cmsg: LONG)
  7480.                                     return HMQ;
  7481.  
  7482.    function WinDestroyMsgQueue(hmq: HMQ) return BOOL;
  7483.  
  7484.    function WinDispatchMsg(hab  : HAB;
  7485.                            pqmsg: PQMSG)
  7486.                                   return MRESULT;
  7487.  
  7488.    function WinGetMsg(hab           : HAB;
  7489.                       pqmsg         : PQMSG;
  7490.                       hwndFilter    : HWND;
  7491.                       msgFilterFirst: ULONG;
  7492.                       msgFilterLast : ULONG)
  7493.                                       return BOOL;
  7494.  
  7495.    function WinPeekMsg(hab           : HAB;
  7496.                        pqmsg         : PQMSG;
  7497.                        hwndFilter    : HWND;
  7498.                        msgFilterFirst: ULONG;
  7499.                        msgFilterLast : ULONG;
  7500.                        fl            : ULONG)
  7501.                                        return BOOL;
  7502.  
  7503.    function WinPostMsg(hwnd: HWND;
  7504.                        msg : ULONG;
  7505.                        mp1 : MPARAM;
  7506.                        mp2 : MPARAM)
  7507.                              return BOOL;
  7508.  
  7509.    function WinQueryQueueInfo(hmq   : HMQ;
  7510.                               pmqi  : PMQINFO;
  7511.                               cbCopy: ULONG)
  7512.                                       return BOOL;
  7513.  
  7514.    function WinRegisterUserDatatype(hab     : HAB;
  7515.                                     datatype: LONG;
  7516.                                     count   : LONG;
  7517.                                     types   : PLONG)
  7518.                                               return BOOL;
  7519.  
  7520.    function WinRegisterUserMsg(hab      : HAB;
  7521.                                msgid    : ULONG;
  7522.                                datatype1: LONG;
  7523.                                dir1     : LONG;
  7524.                                datatype2: LONG;
  7525.                                dir2     : LONG;
  7526.                                datatyper: LONG)
  7527.                                           return BOOL;
  7528.  
  7529.    function WinSendMsg(hwnd: HWND;
  7530.                        msg : ULONG;
  7531.                        mp1 : MPARAM;
  7532.                        mp2 : MPARAM)
  7533.                              return MRESULT;
  7534.  
  7535.    function WinSetMsgMode(hab      : HAB;
  7536.                           classname: PCSZ;
  7537.                           control  : LONG)
  7538.                                      return BOOL;
  7539.  
  7540.    function WinSetSynchroMode(hab : HAB;
  7541.                               mode: LONG)
  7542.                                     return BOOL;
  7543.  
  7544.    function WinCreateWindow(hwndParent      : HWND;
  7545.                             pszClass        : PCSZ;
  7546.                             pszName         : PCSZ;
  7547.                             flStyle         : ULONG;
  7548.                             x               : LONG;
  7549.                             y               : LONG;
  7550.                             cx              : LONG;
  7551.                             cy              : LONG;
  7552.                             hwndOwner       : HWND;
  7553.                             hwndInsertBehind: HWND;
  7554.                             id              : ULONG;
  7555.                             pCtlData        : PVOID;
  7556.                             pPresParams     : PVOID)
  7557.                                               return HWND;
  7558.  
  7559.    function WinDrawBitmap(hpsDst : HPS;
  7560.                           hbm    : HBITMAP;
  7561.                           pwrcSrc: PRECTL;
  7562.                           pptlDst: PPOINTL;
  7563.                           clrFore: LONG;
  7564.                           clrBack: LONG;
  7565.                           fl     : ULONG)
  7566.                                    return BOOL;
  7567.  
  7568.    function WinDrawBorder(hps_hps   : HPS;
  7569.                           prcl   : PRECTL;
  7570.                           cx     : LONG;
  7571.                           cy     : LONG;
  7572.                           clrFore: LONG;
  7573.                           clrBack: LONG;
  7574.                           flCmd  : ULONG)
  7575.                                    return BOOL;
  7576.  
  7577.    function WinDrawText(hps_hps    : HPS;
  7578.                         cchText : LONG;
  7579.                         lpchText: PCCH;
  7580.                         prcl    : PRECTL;
  7581.                         clrFore : LONG;
  7582.                         clrBack : LONG;
  7583.                         flCmd   : ULONG)
  7584.                                   return LONG;
  7585.  
  7586.    function WinEnableWindow(hwnd_hwnd  : HWND;
  7587.                             fEnable: BOOL)
  7588.                                      return BOOL;
  7589.  
  7590.    function WinEnableWindowUpdate(hwnd_hwnd  : HWND;
  7591.                                   fEnable: BOOL)
  7592.                                            return BOOL;
  7593.  
  7594.    function WinInvalidateRect(hwnd_hwnd           : HWND;
  7595.                               prcl            : PRECTL;
  7596.                               fIncludeChildren: BOOL)
  7597.                                                 return BOOL;
  7598.  
  7599.    function WinInvalidateRegion(hwnd_hwnd           : HWND;
  7600.                                 hrgn            : HRGN;
  7601.                                 fIncludeChildren: BOOL)
  7602.                                                   return BOOL;
  7603.  
  7604.    function WinInvertRect(hps_hps: HPS;
  7605.                           prcl: PRECTL)
  7606.                                 return BOOL;
  7607.  
  7608.    function WinIsChild(hwnd_hwnd     : HWND;
  7609.                        hwndParent: HWND)
  7610.                                    return BOOL;
  7611.  
  7612.    function WinIsWindow(hab : HAB;
  7613.                         hwnd: HWND)
  7614.                               return BOOL;
  7615.  
  7616.    function WinIsWindowEnabled(hwnd: HWND) return BOOL;
  7617.  
  7618.    function WinIsWindowVisible(hwnd: HWND) return BOOL;
  7619.  
  7620.    function WinLoadMessage(hab      : HAB;
  7621.                            hmod     : HMODULE;
  7622.                            id       : ULONG;
  7623.                            cchMax   : LONG;
  7624.                            pchBuffer: PSZ)
  7625.                                       return LONG;
  7626.  
  7627.    function WinLoadString(hab      : HAB;
  7628.                           hmod     : HMODULE;
  7629.                           id       : ULONG;
  7630.                           cchMax   : LONG;
  7631.                           pchBuffer: PSZ)
  7632.                                      return LONG;
  7633.  
  7634.    function WinMultWindowFromIDs(hwndParent: HWND;
  7635.                                  prghwnd_hwnd  : PHWND;
  7636.                                  idFirst   : ULONG;
  7637.                                  idLast    : ULONG)
  7638.                                              return LONG;
  7639.  
  7640.    function WinQueryDesktopWindow(hab: HAB;
  7641.                                   hdc: HDC)
  7642.                                        return HWND;
  7643.  
  7644.    function WinQueryObjectWindow(hwndDesktop: HWND) return HWND;
  7645.  
  7646.    function WinQueryPointer(hwndDesktop: HWND) return HPOINTER;
  7647.  
  7648.    function WinQueryWindow(hwnd: HWND;
  7649.                            cmd : LONG)
  7650.                                  return HWND;
  7651.  
  7652.    function WinQueryWindowPos(hwnd: HWND;
  7653.                               pswp: PSWP)
  7654.                                     return BOOL;
  7655.  
  7656.    function WinQueryWindowProcess(hwnd: HWND;
  7657.                                   ppid: PPID;
  7658.                                   ptid: PTID)
  7659.                                         return BOOL;
  7660.  
  7661.    function WinQueryWindowText(hwnd_hwnd       : HWND;
  7662.                                cchBufferMax: LONG;
  7663.                                pchBuffer   : PCH)
  7664.                                              return LONG;
  7665.  
  7666.    function WinQueryWindowTextLength(hwnd: HWND) return LONG;
  7667.  
  7668.    function WinSetMultWindowPos(hab : HAB;
  7669.                                 pswp: PSWP;
  7670.                                 cswp: ULONG)
  7671.                                       return BOOL;
  7672.  
  7673.    function WinSetOwner(hwnd_hwnd       : HWND;
  7674.                         hwndNewOwner: HWND)
  7675.                                       return BOOL;
  7676.  
  7677.    function WinSetParent(hwnd_hwnd        : HWND;
  7678.                          hwndNewParent: HWND;
  7679.                          fRedraw      : BOOL)
  7680.                                         return BOOL;
  7681.  
  7682.    function WinSetWindowPos(hwnd_hwnd           : HWND;
  7683.                             hwndInsertBehind: HWND;
  7684.                             x               : LONG;
  7685.                             y               : LONG;
  7686.                             cx              : LONG;
  7687.                             cy              : LONG;
  7688.                             fl              : ULONG)
  7689.                                               return BOOL;
  7690.  
  7691.    function WinSetWindowText(hwnd_hwnd  : HWND;
  7692.                              pszText: PCSZ)
  7693.                                       return BOOL;
  7694.  
  7695.    function WinUpdateWindow(hwnd: HWND) return BOOL;
  7696.  
  7697.    function WinWindowFromID(hwndParent: HWND;
  7698.                             id        : ULONG)
  7699.                                         return HWND;
  7700.  
  7701.    function WinCreateStdWindow(hwndParent    : HWND;
  7702.                                flStyle       : ULONG;
  7703.                                pflCreateFlags: PULONG;
  7704.                                pszClientClass: PCSZ;
  7705.                                pszTitle      : PCSZ;
  7706.                                styleClient   : ULONG;
  7707.                                hmod          : HMODULE;
  7708.                                idResources   : ULONG;
  7709.                                phwndClient   : PHWND)
  7710.                                                return HWND;
  7711.  
  7712.    function WinCalcFrameRect(hwndFrame: HWND;
  7713.                              prcl     : PRECTL;
  7714.                              fClient  : BOOL)
  7715.                                         return BOOL;
  7716.  
  7717.    function WinCreateFrameControls(hwndFrame: HWND;
  7718.                                    pfcdata  : PFRAMECDATA;
  7719.                                    pszTitle : PCSZ)
  7720.                                               return BOOL;
  7721.  
  7722.    function WinFlashWindow(hwndFrame: HWND;
  7723.                            fFlash   : BOOL)
  7724.                                       return BOOL;
  7725.  
  7726.    function WinGetMaxPosition(hwnd: HWND;
  7727.                               pswp: PSWP)
  7728.                                     return BOOL;
  7729.  
  7730.    function WinGetMinPosition(hwnd: HWND;
  7731.                               pswp: PSWP;
  7732.                               pptl: PPOINTL)
  7733.                                     return BOOL;
  7734.  
  7735.    function WinSaveWindowPos(hsvwp: HSAVEWP;
  7736.                              pswp : PSWP;
  7737.                              cswp : ULONG)
  7738.                                     return BOOL;
  7739.  
  7740.    function WinBeginPaint(hwnd_hwnd    : HWND;
  7741.                           hps_hps     : HPS;
  7742.                           prclPaint: PRECTL)
  7743.                                      return HPS;
  7744.  
  7745.    function WinDefWindowProc(hwnd: HWND;
  7746.                              msg : ULONG;
  7747.                              mp1 : MPARAM;
  7748.                              mp2 : MPARAM)
  7749.                                    return MRESULT;
  7750.  
  7751.    function WinDestroyWindow(hwnd: HWND) return BOOL;
  7752.  
  7753.    function WinEndPaint(hps: HPS) return BOOL;
  7754.  
  7755.    function WinFillRect(hps_hps  : HPS;
  7756.                         prcl  : PRECTL;
  7757.                         lColor: LONG)
  7758.                                 return BOOL;
  7759.  
  7760.    function WinGetClipPS(hwnd_hwnd   : HWND;
  7761.                          hwndClip: HWND;
  7762.                          fl      : ULONG)
  7763.                                    return HPS;
  7764.  
  7765.    function WinGetPS(hwnd: HWND) return HPS;
  7766.  
  7767.    function WinInitialize(fsOptions: ULONG) return HAB;
  7768.  
  7769.    function WinIsWindowShowing(hwnd: HWND) return BOOL;
  7770.  
  7771.    function WinOpenWindowDC(hwnd: HWND) return HDC;
  7772.  
  7773.    function WinQueryAnchorBlock(hwnd: HWND) return HAB;
  7774.  
  7775.    function WinQueryVersion(hab: HAB) return ULONG;
  7776.  
  7777.    function WinQueryWindowRect(hwnd_hwnd   : HWND;
  7778.                                prclDest: PRECTL)
  7779.                                          return BOOL;
  7780.  
  7781.    function WinRegisterClass(hab         : HAB;
  7782.                              pszClassName: PCSZ;
  7783.                              pfnWndProc  : PFNWP;
  7784.                              flStyle     : ULONG;
  7785.                              cbWindowData: ULONG)
  7786.                                            return BOOL;
  7787.  
  7788.    function WinReleasePS(hps: HPS) return BOOL;
  7789.  
  7790.    function WinScrollWindow(hwnd_hwnd     : HWND;
  7791.                             dx        : LONG;
  7792.                             dy        : LONG;
  7793.                             prclScroll: PRECTL;
  7794.                             prclClip  : PRECTL;
  7795.                             hrgnUpdate: HRGN;
  7796.                             prclUpdate: PRECTL;
  7797.                             rgfsw     : ULONG)
  7798.                                         return LONG;
  7799.  
  7800.    function WinSetActiveWindow(hwndDesktop: HWND;
  7801.                                hwnd_hwnd      : HWND)
  7802.                                             return BOOL;
  7803.  
  7804.    function WinShowWindow(hwnd_hwnd: HWND;
  7805.                           fShow: BOOL)
  7806.                                  return BOOL;
  7807.  
  7808.    function WinTerminate(hab: HAB) return BOOL;
  7809.  
  7810.    function WinBeginEnumWindows(hwnd: HWND) return HENUM;
  7811.  
  7812.    function WinEndEnumWindows(henum: HENUM) return BOOL;
  7813.  
  7814.    function WinExcludeUpdateRegion(hps_hps: HPS;
  7815.                                    hwnd: HWND)
  7816.                                          return LONG;
  7817.  
  7818.    function WinGetNextWindow(henum: HENUM) return HWND;
  7819.  
  7820.    function WinGetScreenPS(hwndDesktop: HWND) return HPS;
  7821.  
  7822.    function WinIsThreadActive(hab: HAB) return BOOL;
  7823.  
  7824.    function WinLockVisRegions(hwndDesktop: HWND;
  7825.                               fLock      : BOOL)
  7826.                                            return BOOL;
  7827.  
  7828.    function WinLockWindowUpdate(hwndDesktop   : HWND;
  7829.                                 hwndLockUpdate: HWND)
  7830.                                                 return BOOL;
  7831.  
  7832.    function WinMapWindowPoints(hwndFrom: HWND;
  7833.                                hwndTo  : HWND;
  7834.                                prgptl  : PPOINTL;
  7835.                                cwpt    : LONG)
  7836.                                          return BOOL;
  7837.  
  7838.    function WinQueryActiveWindow(hwndDesktop: HWND) return HWND;
  7839.  
  7840.    function WinQueryClassInfo(hab         : HAB;
  7841.                               pszClassName: PCSZ;
  7842.                               pClassInfo  : PCLASSINFO)
  7843.                                             return BOOL;
  7844.  
  7845.    function WinQueryClassName(hwnd_hwnd : HWND;
  7846.                               cchMax: LONG;
  7847.                               pch   : PCH)
  7848.                                       return LONG;
  7849.  
  7850.    function WinQueryUpdateRect(hwnd: HWND;
  7851.                                prcl: PRECTL)
  7852.                                      return BOOL;
  7853.  
  7854.    function WinQueryUpdateRegion(hwnd: HWND;
  7855.                                  hrgn: HRGN)
  7856.                                        return LONG;
  7857.  
  7858.    function WinQuerySysModalWindow(hwndDesktop: HWND) return HWND;
  7859.  
  7860.    function WinQueryWindowDC(hwnd: HWND) return HDC;
  7861.  
  7862.    function WinQueryWindowPtr(hwnd_hwnd: HWND;
  7863.                               index: LONG)
  7864.                                      return PVOID;
  7865.  
  7866.    function WinQueryWindowULong(hwnd_hwnd: HWND;
  7867.                                 index: LONG)
  7868.                                        return ULONG;
  7869.  
  7870.    function WinQueryWindowUShort(hwnd_hwnd: HWND;
  7871.                                  index: LONG)
  7872.                                         return USHORT;
  7873.  
  7874.    function WinSetSysModalWindow(hwndDesktop: HWND;
  7875.                                  hwnd_hwnd      : HWND)
  7876.                                               return BOOL;
  7877.  
  7878.    function WinSetWindowBits(hwnd_hwnd : HWND;
  7879.                              index : LONG;
  7880.                              flData: ULONG;
  7881.                              flMask: ULONG)
  7882.                                      return BOOL;
  7883.  
  7884.    function WinSetWindowPtr(hwnd_hwnd: HWND;
  7885.                             index: LONG;
  7886.                             p    : PVOID)
  7887.                                    return BOOL;
  7888.  
  7889.    function WinSetWindowULong(hwnd_hwnd: HWND;
  7890.                               index: LONG;
  7891.                               ul   : ULONG)
  7892.                                      return BOOL;
  7893.  
  7894.    function WinSetWindowUShort(hwnd_hwnd: HWND;
  7895.                                index: LONG;
  7896.                                us   : USHORT)
  7897.                                       return BOOL;
  7898.  
  7899.    function WinSubclassWindow(hwnd_hwnd: HWND;
  7900.                               pfnwp: PFNWP)
  7901.                                      return PFNWP;
  7902.  
  7903.    function WinValidateRect(hwnd_hwnd           : HWND;
  7904.                             prcl            : PRECTL;
  7905.                             fIncludeChildren: BOOL)
  7906.                                               return BOOL;
  7907.  
  7908.    function WinValidateRegion(hwnd_hwnd           : HWND;
  7909.                               hrgn            : HRGN;
  7910.                               fIncludeChildren: BOOL)
  7911.                                                 return BOOL;
  7912.  
  7913.    function WinWindowFromDC(hdc: HDC) return HWND;
  7914.  
  7915.    function WinWindowFromPoint(hwnd_hwnd    : HWND;
  7916.                                pptl     : PPOINTL;
  7917.                                fChildren: BOOL)
  7918.                                           return HWND;
  7919.  
  7920.    function WinCopyAccelTable(haccel     : HACCEL;
  7921.                               pAccelTable: PACCELTABLE;
  7922.                               cbCopyMax  : ULONG)
  7923.                                            return ULONG;
  7924.  
  7925.    function WinCreateAccelTable(hab        : HAB;
  7926.                                 pAccelTable: PACCELTABLE)
  7927.                                              return HACCEL;
  7928.  
  7929.    function WinDestroyAccelTable(haccel: HACCEL) return BOOL;
  7930.  
  7931.    function WinLoadAccelTable(hab         : HAB;
  7932.                               hmod        : HMODULE;
  7933.                               idAccelTable: ULONG)
  7934.                                             return HACCEL;
  7935.  
  7936.    function WinQueryAccelTable(hab      : HAB;
  7937.                                hwndFrame: HWND)
  7938.                                           return HACCEL;
  7939.  
  7940.    function WinSetAccelTable(hab      : HAB;
  7941.                              haccel   : HACCEL;
  7942.                              hwndFrame: HWND)
  7943.                                         return BOOL;
  7944.  
  7945.    function WinTranslateAccel(hab   : HAB;
  7946.                               hwnd_hwnd : HWND;
  7947.                               haccel: HACCEL;
  7948.                               pqmsg : PQMSG)
  7949.                                       return BOOL;
  7950.  
  7951.    function WinAddAtom(hAtomTbl   : HATOMTBL;
  7952.                        pszAtomName: PCSZ)
  7953.                                     return ATOM;
  7954.  
  7955.    function WinCreateAtomTable(cbInitial: ULONG;
  7956.                                cBuckets : ULONG)
  7957.                                           return HATOMTBL;
  7958.  
  7959.    function WinDeleteAtom(hAtomTbl: HATOMTBL;
  7960.                           atom    : ATOM)
  7961.                                     return ATOM;
  7962.  
  7963.    function WinDestroyAtomTable(hAtomTbl: HATOMTBL) return HATOMTBL;
  7964.  
  7965.    function WinFindAtom(hAtomTbl   : HATOMTBL;
  7966.                         pszAtomName: PCSZ)
  7967.                                      return ATOM;
  7968.  
  7969.    function WinQueryAtomLength(hAtomTbl: HATOMTBL;
  7970.                                atom    : ATOM)
  7971.                                          return ULONG;
  7972.  
  7973.    function WinQueryAtomName(hAtomTbl    : HATOMTBL;
  7974.                              atom        : ATOM;
  7975.                              pchBuffer   : PSZ;
  7976.                              cchBufferMax: ULONG)
  7977.                                            return ULONG;
  7978.  
  7979.    function WinQueryAtomUsage(hAtomTbl: HATOMTBL;
  7980.                               atom    : ATOM)
  7981.                                         return ULONG;
  7982.  
  7983.    function WinQuerySystemAtomTable return HATOMTBL;
  7984.  
  7985.    function WinCloseClipbrd(hab: HAB) return BOOL;
  7986.  
  7987.    function WinEmptyClipbrd(hab: HAB) return BOOL;
  7988.  
  7989.    function WinEnumClipbrdFmts(hab: HAB;
  7990.                                fmt: ULONG)
  7991.                                     return ULONG;
  7992.  
  7993.    function WinOpenClipbrd(hab: HAB) return BOOL;
  7994.  
  7995.    function WinQueryClipbrdData(hab: HAB;
  7996.                                 fmt: ULONG)
  7997.                                      return ULONG;
  7998.  
  7999.    function WinQueryClipbrdFmtInfo(hab        : HAB;
  8000.                                    fmt        : ULONG;
  8001.                                    prgfFmtInfo: PULONG)
  8002.                                                 return BOOL;
  8003.  
  8004.    function WinQueryClipbrdOwner(hab: HAB) return HWND;
  8005.  
  8006.    function WinQueryClipbrdViewer(hab: HAB) return HWND;
  8007.  
  8008.    function WinSetClipbrdData(hab       : HAB;
  8009.                               ulData    : ULONG;
  8010.                               fmt       : ULONG;
  8011.                               rgfFmtInfo: ULONG)
  8012.                                           return BOOL;
  8013.  
  8014.    function WinSetClipbrdOwner(hab : HAB;
  8015.                                hwnd: HWND)
  8016.                                      return BOOL;
  8017.  
  8018.    function WinSetClipbrdViewer(hab              : HAB;
  8019.                                 hwndNewClipViewer: HWND)
  8020.                                                    return BOOL;
  8021.  
  8022.    function WinDdeInitiate(hwndClient  : HWND;
  8023.                            pszAppName  : PCSZ;
  8024.                            pszTopicName: PCSZ;
  8025.                            pcctxt      : PCONVCONTEXT)
  8026.                                          return BOOL;
  8027.  
  8028.    function WinDdePostMsg(hwndTo   : HWND;
  8029.                           hwndFrom : HWND;
  8030.                           wm       : ULONG;
  8031.                           pddest   : PDDESTRUCT;
  8032.                           flOptions: ULONG)
  8033.                                      return BOOL;
  8034.  
  8035.    function WinDdeRespond(hwndClient  : HWND;
  8036.                           hwndServer  : HWND;
  8037.                           pszAppName  : PCSZ;
  8038.                           pszTopicName: PCSZ;
  8039.                           pcctxt      : PCONVCONTEXT)
  8040.                                         return MRESULT;
  8041.  
  8042.    function WinCompareStrings(hab     : HAB;
  8043.                               idcp    : ULONG;
  8044.                               idcc    : ULONG;
  8045.                               psz1    : PCSZ;
  8046.                               psz2    : PCSZ;
  8047.                               reserved: ULONG)
  8048.                                         return ULONG;
  8049.  
  8050.    function WinCpTranslateChar(hab  : HAB;
  8051.                                cpSrc: ULONG;
  8052.                                chSrc: UCHAR;
  8053.                                cpDst: ULONG)
  8054.                                       return UCHAR;
  8055.  
  8056.    function WinCpTranslateString(hab       : HAB;
  8057.                                  cpSrc     : ULONG;
  8058.                                  pszSrc    : PCSZ;
  8059.                                  cpDst     : ULONG;
  8060.                                  cchDestMax: ULONG;
  8061.                                  pchDest   : PSZ)
  8062.                                              return BOOL;
  8063.  
  8064.    function WinNextChar(hab : HAB;
  8065.                         idcp: ULONG;
  8066.                         idcc: ULONG;
  8067.                         psz : PCSZ)
  8068.                               return PSZ;
  8069.  
  8070.    function WinPrevChar(hab     : HAB;
  8071.                         idcp    : ULONG;
  8072.                         idcc    : ULONG;
  8073.                         pszStart: PCSZ;
  8074.                         psz     : PCSZ)
  8075.                                   return PSZ;
  8076.  
  8077.    function WinQueryCp(hmq: HMQ) return ULONG;
  8078.  
  8079.    function WinQueryCpList(hab   : HAB;
  8080.                            ccpMax: ULONG;
  8081.                            prgcp : PULONG)
  8082.                                    return ULONG;
  8083.  
  8084.    function WinSetCp(hmq       : HMQ;
  8085.                      idCodePage: ULONG)
  8086.                                  return BOOL;
  8087.  
  8088.    function WinUpper(hab : HAB;
  8089.                      idcp: ULONG;
  8090.                      idcc: ULONG;
  8091.                      psz : PSZ)
  8092.                            return ULONG;
  8093.  
  8094.    function WinUpperChar(hab : HAB;
  8095.                          idcp: ULONG;
  8096.                          idcc: ULONG;
  8097.                          c   : ULONG)
  8098.                                return ULONG;
  8099.  
  8100.    function WinCreateCursor(hwnd_hwnd   : HWND;
  8101.                             x       : LONG;
  8102.                             y       : LONG;
  8103.                             cx      : LONG;
  8104.                             cy      : LONG;
  8105.                             fs      : ULONG;
  8106.                             prclClip: PRECTL)
  8107.                                       return BOOL;
  8108.  
  8109.    function WinDestroyCursor(hwnd: HWND) return BOOL;
  8110.  
  8111.    function WinShowCursor(hwnd_hwnd: HWND;
  8112.                           fShow: BOOL)
  8113.                                  return BOOL;
  8114.  
  8115.    function WinQueryCursorInfo(hwndDesktop: HWND;
  8116.                                pCursorInfo: PCURSORINFO)
  8117.                                             return BOOL;
  8118.  
  8119.    function WinQueryDesktopBkgnd(hwndDesktop: HWND;
  8120.                                  pdsk       : PDESKTOP)
  8121.                                               return BOOL;
  8122.  
  8123.    function WinSetDesktopBkgnd(hwndDesktop: HWND;
  8124.                                pdskNew    : PDESKTOP)
  8125.                                             return HBITMAP;
  8126.  
  8127.    function WinAlarm(hwndDesktop: HWND;
  8128.                      rgfType    : ULONG)
  8129.                                   return BOOL;
  8130.  
  8131.    function WinDefDlgProc(hwndDlg: HWND;
  8132.                           msg    : ULONG;
  8133.                           mp1    : MPARAM;
  8134.                           mp2    : MPARAM)
  8135.                                    return MRESULT;
  8136.  
  8137.    function WinDismissDlg(hwndDlg : HWND;
  8138.                           usResult: ULONG)
  8139.                                     return BOOL;
  8140.  
  8141.    function WinDlgBox(hwndParent   : HWND;
  8142.                       hwndOwner    : HWND;
  8143.                       pfnDlgProc   : PFNWP;
  8144.                       hmod         : HMODULE;
  8145.                       idDlg        : ULONG;
  8146.                       pCreateParams: PVOID)
  8147.                                      return ULONG;
  8148.  
  8149.    function WinGetDlgMsg(hwndDlg: HWND;
  8150.                          pqmsg  : PQMSG)
  8151.                                   return BOOL;
  8152.  
  8153.    function WinLoadDlg(hwndParent   : HWND;
  8154.                        hwndOwner    : HWND;
  8155.                        pfnDlgProc   : PFNWP;
  8156.                        hmod         : HMODULE;
  8157.                        idDlg        : ULONG;
  8158.                        pCreateParams: PVOID)
  8159.                                       return HWND;
  8160.  
  8161.    function WinMessageBox(hwndParent: HWND;
  8162.                           hwndOwner : HWND;
  8163.                           pszText   : PCSZ;
  8164.                           pszCaption: PCSZ;
  8165.                           idWindow  : ULONG;
  8166.                           flStyle   : ULONG)
  8167.                                       return ULONG;
  8168.  
  8169.    function WinQueryDlgItemShort(hwndDlg: HWND;
  8170.                                  idItem : ULONG;
  8171.                                  pResult: PSHORT;
  8172.                                  fSigned: BOOL)
  8173.                                           return BOOL;
  8174.  
  8175.    function WinQueryDlgItemText(hwndDlg     : HWND;
  8176.                                 idItem      : ULONG;
  8177.                                 cchBufferMax: LONG;
  8178.                                 pchBuffer   : PSZ)
  8179.                                               return ULONG;
  8180.  
  8181.    function WinQueryDlgItemTextLength(hwndDlg: HWND;
  8182.                                       idItem : ULONG)
  8183.                                                return LONG;
  8184.  
  8185.    function WinSetDlgItemShort(hwndDlg: HWND;
  8186.                                idItem : ULONG;
  8187.                                usValue: USHORT;
  8188.                                fSigned: BOOL)
  8189.                                         return BOOL;
  8190.  
  8191.    function WinSetDlgItemText(hwndDlg: HWND;
  8192.                               idItem : ULONG;
  8193.                               pszText: PCSZ)
  8194.                                        return BOOL;
  8195.  
  8196.    function WinCreateDlg(hwndParent   : HWND;
  8197.                          hwndOwner    : HWND;
  8198.                          pfnDlgProc   : PFNWP;
  8199.                          pdlgt        : PDLGTEMPLATE;
  8200.                          pCreateParams: PVOID)
  8201.                                         return HWND;
  8202.  
  8203.    function WinEnumDlgItem(hwndDlg: HWND;
  8204.                            hwnd_hwnd  : HWND;
  8205.                            code   : ULONG)
  8206.                                     return HWND;
  8207.  
  8208.    function WinMapDlgPoints(hwndDlg          : HWND;
  8209.                             prgwptl          : PPOINTL;
  8210.                             cwpt             : ULONG;
  8211.                             fCalcWindowCoords: BOOL)
  8212.                                                return BOOL;
  8213.  
  8214.    function WinProcessDlg(hwndDlg: HWND) return ULONG;
  8215.  
  8216.    function WinSendDlgItemMsg(hwndDlg: HWND;
  8217.                               idItem : ULONG;
  8218.                               msg    : ULONG;
  8219.                               mp1    : MPARAM;
  8220.                               mp2    : MPARAM)
  8221.                                        return MRESULT;
  8222.  
  8223.    function WinSubstituteStrings(hwnd_hwnd    : HWND;
  8224.                                  pszSrc   : PCSZ;
  8225.                                  cchDstMax: LONG;
  8226.                                  pszDst   : PSZ)
  8227.                                             return LONG;
  8228.  
  8229.    function WinGetLastError(hab: HAB) return ERRORID;
  8230.  
  8231.    function WinFreeErrorInfo(perrinfo: PERRINFO) return BOOL;
  8232.  
  8233.    function WinGetErrorInfo(hab: HAB) return PERRINFO;
  8234.  
  8235.    function WinCallMsgFilter(hab  : HAB;
  8236.                              pqmsg: PQMSG;
  8237.                              msgf : ULONG)
  8238.                                     return BOOL;
  8239.  
  8240.    function WinReleaseHook(hab    : HAB;
  8241.                            hmq    : HMQ;
  8242.                            iHook  : LONG;
  8243.                            pfnHook: PFN;
  8244.                            hmod   : HMODULE)
  8245.                                     return BOOL;
  8246.  
  8247.    function WinSetHook(hab    : HAB;
  8248.                        hmq    : HMQ;
  8249.                        iHook  : LONG;
  8250.                        pfnHook: PFN;
  8251.                        hmod   : HMODULE)
  8252.                                 return BOOL;
  8253.  
  8254.    function WinFocusChange(hwndDesktop  : HWND;
  8255.                            hwndSetFocus : HWND;
  8256.                            flFocusChange: ULONG)
  8257.                                           return BOOL;
  8258.  
  8259.    function WinLockupSystem(hab: HAB) return BOOL;
  8260.  
  8261.    function WinSetFocus(hwndDesktop : HWND;
  8262.                         hwndSetFocus: HWND)
  8263.                                       return BOOL;
  8264.  
  8265.    function WinUnlockSystem(hab        : HAB;
  8266.                             pszPassword: PCSZ)
  8267.                                          return BOOL;
  8268.  
  8269.    function WinCheckInput(hab: HAB) return BOOL;
  8270.  
  8271.    function WinEnablePhysInput(hwndDesktop: HWND;
  8272.                                fEnable    : BOOL)
  8273.                                             return BOOL;
  8274.  
  8275.    function WinGetKeyState(hwndDesktop: HWND;
  8276.                            vkey       : LONG)
  8277.                                         return LONG;
  8278.  
  8279.    function WinGetPhysKeyState(hwndDesktop: HWND;
  8280.                                sc         : LONG)
  8281.                                             return LONG;
  8282.  
  8283.    function WinIsPhysInputEnabled(hwndDesktop: HWND) return BOOL;
  8284.  
  8285.    function WinQueryCapture(hwndDesktop: HWND) return HWND;
  8286.  
  8287.    function WinQueryFocus(hwndDesktop: HWND) return HWND;
  8288.  
  8289.    function WinQueryVisibleRegion(hwnd: HWND;
  8290.                                   hrgn: HRGN)
  8291.                                         return ULONG;
  8292.  
  8293.    function WinSetCapture(hwndDesktop: HWND;
  8294.                           hwnd_hwnd      : HWND)
  8295.                                        return BOOL;
  8296.  
  8297.    function WinSetKeyboardStateTable(hwndDesktop   : HWND;
  8298.                                      pKeyStateTable: PBYTE;
  8299.                                      fSet          : BOOL)
  8300.                                                      return BOOL;
  8301.  
  8302.    function WinSetVisibleRegionNotify(hwnd_hwnd  : HWND;
  8303.                                       fEnable: BOOL)
  8304.                                                return BOOL;
  8305.  
  8306.    function WinDeleteLibrary(hab      : HAB;
  8307.                              libhandle: HLIB)
  8308.                                         return BOOL;
  8309.  
  8310.    function WinDeleteProcedure(hab    : HAB;
  8311.                                wndproc: PFNWP)
  8312.                                         return BOOL;
  8313.  
  8314.    function WinLoadLibrary(hab    : HAB;
  8315.                            libname: PCSZ)
  8316.                                     return HLIB;
  8317.  
  8318.    function WinLoadProcedure(hab      : HAB;
  8319.                              libhandle: HLIB;
  8320.                              procname : PSZ)
  8321.                                         return PFNWP;
  8322.  
  8323.    function WinCreateMenu(hwndParent: HWND;
  8324.                           lpmt      : CPVOID)
  8325.                                       return HWND;
  8326.  
  8327.    function WinLoadMenu(hwndFrame: HWND;
  8328.                         hmod     : HMODULE;
  8329.                         idMenu   : ULONG)
  8330.                                    return HWND;
  8331.  
  8332.    function WinPopupMenu(hwndParent: HWND;
  8333.                          hwndOwner : HWND;
  8334.                          hwndMenu  : HWND;
  8335.                          x         : LONG;
  8336.                          y         : LONG;
  8337.                          idItem    : LONG;
  8338.                          fs        : ULONG)
  8339.                                      return BOOL;
  8340.  
  8341.    function WinBroadcastMsg(hwnd: HWND;
  8342.                             msg : ULONG;
  8343.                             mp1 : MPARAM;
  8344.                             mp2 : MPARAM;
  8345.                             rgf : ULONG)
  8346.                                   return BOOL;
  8347.  
  8348.    function WinInSendMsg(hab: HAB) return BOOL;
  8349.  
  8350.    function WinPostQueueMsg(hmq: HMQ;
  8351.                             msg: ULONG;
  8352.                             mp1: MPARAM;
  8353.                             mp2: MPARAM)
  8354.                                  return BOOL;
  8355.  
  8356.    function WinQueryMsgPos(hab : HAB;
  8357.                            pptl: PPOINTL)
  8358.                                  return BOOL;
  8359.  
  8360.    function WinQueryMsgTime(hab: HAB) return ULONG;
  8361.  
  8362.    function WinQueryQueueStatus(hwndDesktop: HWND) return ULONG;
  8363.  
  8364.    function WinRequestMutexSem(hmtx     : HMTX;
  8365.                                ulTimeout: ULONG)
  8366.                                           return ULONG;
  8367.  
  8368.    function WinSetClassMsgInterest(hab         : HAB;
  8369.                                    pszClassName: PCSZ;
  8370.                                    msg_class   : ULONG;
  8371.                                    control     : LONG)
  8372.                                                  return BOOL;
  8373.  
  8374.    function WinSetMsgInterest(hwnd_hwnd    : HWND;
  8375.                               msg_class: ULONG;
  8376.                               control  : LONG)
  8377.                                          return BOOL;
  8378.  
  8379.    function WinWaitEventSem(hev      : HEV;
  8380.                             ulTimeout: ULONG)
  8381.                                        return ULONG;
  8382.  
  8383.    function WinWaitMsg(hab     : HAB;
  8384.                        msgFirst: ULONG;
  8385.                        msgLast : ULONG)
  8386.                                  return BOOL;
  8387.  
  8388.    function WinWaitMuxWaitSem(hmux     : HMUX;
  8389.                               ulTimeout: ULONG;
  8390.                               pulUser  : PULONG)
  8391.                                          return ULONG;
  8392.  
  8393.    function WinRealizePalette(hwnd_hwnd: HWND;
  8394.                               hps_hps : HPS;
  8395.                               pcclr: PULONG)
  8396.                                      return LONG;
  8397.  
  8398.    function WinCreatePointer(hwndDesktop: HWND;
  8399.                              hbmPointer : HBITMAP;
  8400.                              fPointer   : BOOL;
  8401.                              xHotspot   : LONG;
  8402.                              yHotspot   : LONG)
  8403.                                           return HPOINTER;
  8404.  
  8405.    function WinCreatePointerIndirect(hwndDesktop: HWND;
  8406.                                      pptri      : PPOINTERINFO)
  8407.                                                   return HPOINTER;
  8408.  
  8409.    function WinDestroyPointer(hptr: HPOINTER) return BOOL;
  8410.  
  8411.    function WinDrawPointer(hps_hps: HPS;
  8412.                            x   : LONG;
  8413.                            y   : LONG;
  8414.                            hptr: HPOINTER;
  8415.                            fs  : ULONG)
  8416.                                  return BOOL;
  8417.  
  8418.    function WinGetSysBitmap(hwndDesktop: HWND;
  8419.                             ibm        : ULONG)
  8420.                                          return HBITMAP;
  8421.  
  8422.    function WinLoadPointer(hwndDesktop: HWND;
  8423.                            hmod       : HMODULE;
  8424.                            idres      : ULONG)
  8425.                                         return HPOINTER;
  8426.  
  8427.    function WinLockPointerUpdate(hwndDesktop   : HWND;
  8428.                                  hptrNew       : HPOINTER;
  8429.                                  ulTimeInterval: ULONG)
  8430.                                                  return BOOL;
  8431.  
  8432.    function WinQueryPointerPos(hwndDesktop: HWND;
  8433.                                pptl       : PPOINTL)
  8434.                                             return BOOL;
  8435.  
  8436.    function WinQueryPointerInfo(hptr        : HPOINTER;
  8437.                                 pPointerInfo: PPOINTERINFO)
  8438.                                               return BOOL;
  8439.  
  8440.    function WinQuerySysPointer(hwndDesktop: HWND;
  8441.                                lId        : LONG;
  8442.                                fCopy      : BOOL)
  8443.                                             return HPOINTER;
  8444.  
  8445.    function WinQuerySysPointerData(hwndDesktop: HWND;
  8446.                                    ulId       : ULONG;
  8447.                                    pIconInfo  : PICONINFO)
  8448.                                                 return BOOL;
  8449.  
  8450.    function WinSetPointer(hwndDesktop: HWND;
  8451.                           hptrNew    : HPOINTER)
  8452.                                        return BOOL;
  8453.  
  8454.    function WinSetPointerOwner(hptr    : HPOINTER;
  8455.                                pid     : PID;
  8456.                                fDestroy: BOOL)
  8457.                                          return BOOL;
  8458.  
  8459.    function WinSetPointerPos(hwndDesktop: HWND;
  8460.                              x          : LONG;
  8461.                              y          : LONG)
  8462.                                           return BOOL;
  8463.  
  8464.    function WinSetSysPointerData(hwndDesktop: HWND;
  8465.                                  ulId       : ULONG;
  8466.                                  pIconInfo  : PICONINFO)
  8467.                                               return BOOL;
  8468.  
  8469.    function WinShowPointer(hwndDesktop: HWND;
  8470.                            fShow      : BOOL)
  8471.                                         return BOOL;
  8472.  
  8473.    function WinCopyRect(hab    : HAB;
  8474.                         prclDst: PRECTL;
  8475.                         prclSrc: PRECTL)
  8476.                                  return BOOL;
  8477.  
  8478.    function WinEqualRect(hab  : HAB;
  8479.                          prcl1: PRECTL;
  8480.                          prcl2: PRECTL)
  8481.                                 return BOOL;
  8482.  
  8483.    function WinInflateRect(hab : HAB;
  8484.                            prcl: PRECTL;
  8485.                            cx  : LONG;
  8486.                            cy  : LONG)
  8487.                                  return BOOL;
  8488.  
  8489.    function WinIntersectRect(hab     : HAB;
  8490.                              prclDst : PRECTL;
  8491.                              prclSrc1: PRECTL;
  8492.                              prclSrc2: PRECTL)
  8493.                                        return BOOL;
  8494.  
  8495.    function WinIsRectEmpty(hab : HAB;
  8496.                            prcl: PRECTL)
  8497.                                  return BOOL;
  8498.  
  8499.    function WinMakePoints(hab : HAB;
  8500.                           pwpt: PPOINTL;
  8501.                           cwpt: ULONG)
  8502.                                 return BOOL;
  8503.  
  8504.    function WinMakeRect(hab : HAB;
  8505.                         pwrc: PRECTL)
  8506.                               return BOOL;
  8507.  
  8508.    function WinOffsetRect(hab : HAB;
  8509.                           prcl: PRECTL;
  8510.                           cx  : LONG;
  8511.                           cy  : LONG)
  8512.                                 return BOOL;
  8513.  
  8514.    function WinPtInRect(hab : HAB;
  8515.                         prcl: PRECTL;
  8516.                         pptl: PPOINTL)
  8517.                               return BOOL;
  8518.  
  8519.    function WinSetRect(hab    : HAB;
  8520.                        prcl   : PRECTL;
  8521.                        xLeft  : LONG;
  8522.                        yBottom: LONG;
  8523.                        xRight : LONG;
  8524.                        yTop   : LONG)
  8525.                                 return BOOL;
  8526.  
  8527.    function WinSetRectEmpty(hab : HAB;
  8528.                             prcl: PRECTL)
  8529.                                   return BOOL;
  8530.  
  8531.    function WinSubtractRect(hab     : HAB;
  8532.                             prclDst : PRECTL;
  8533.                             prclSrc1: PRECTL;
  8534.                             prclSrc2: PRECTL)
  8535.                                       return BOOL;
  8536.  
  8537.    function WinUnionRect(hab     : HAB;
  8538.                          prclDst : PRECTL;
  8539.                          prclSrc1: PRECTL;
  8540.                          prclSrc2: PRECTL)
  8541.                                    return BOOL;
  8542.  
  8543.    function WinQueryPresParam(hwnd_hwnd: HWND;
  8544.                               id1  : ULONG;
  8545.                               id2  : ULONG;
  8546.                               pulId: PULONG;
  8547.                               cbBuf: ULONG;
  8548.                               pbBuf: PVOID;
  8549.                               fs   : ULONG)
  8550.                                      return ULONG;
  8551.  
  8552.    function WinQuerySysColor(hwndDesktop: HWND;
  8553.                              clr        : LONG;
  8554.                              lReserved  : LONG)
  8555.                                           return LONG;
  8556.  
  8557.    function WinQuerySysValue(hwndDesktop: HWND;
  8558.                              iSysValue  : LONG)
  8559.                                           return LONG;
  8560.  
  8561.    function WinRemovePresParam(hwnd: HWND;
  8562.                                id  : ULONG)
  8563.                                      return BOOL;
  8564.  
  8565.    function WinSetPresParam(hwnd_hwnd  : HWND;
  8566.                             id     : ULONG;
  8567.                             cbParam: ULONG;
  8568.                             pbParam: PVOID)
  8569.                                      return BOOL;
  8570.  
  8571.    function WinSetSysColors(hwndDesktop: HWND;
  8572.                             flOptions  : ULONG;
  8573.                             flFormat   : ULONG;
  8574.                             clrFirst   : LONG;
  8575.                             cclr       : ULONG;
  8576.                             pclr       : PLONG)
  8577.                                          return BOOL;
  8578.  
  8579.    function WinSetSysValue(hwndDesktop: HWND;
  8580.                            iSysValue  : LONG;
  8581.                            lValue     : LONG)
  8582.                                         return BOOL;
  8583.  
  8584.    function WinQueryClassThunkProc(pszClassname: PCSZ) return PFN;
  8585.  
  8586.    function WinQueryWindowModel(hwnd: HWND) return LONG;
  8587.  
  8588.    function WinQueryWindowThunkProc(hwnd: HWND) return PFN;
  8589.  
  8590.    function WinSetClassThunkProc(pszClassname: PCSZ;
  8591.                                  pfnThunkProc: PFN)
  8592.                                                return BOOL;
  8593.  
  8594.    function WinSetWindowThunkProc(hwnd_hwnd       : HWND;
  8595.                                   pfnThunkProc: PFN)
  8596.                                                 return BOOL;
  8597.  
  8598.    function WinGetCurrentTime(hab: HAB) return ULONG;
  8599.  
  8600.    function WinStartTimer(hab      : HAB;
  8601.                           hwnd_hwnd    : HWND;
  8602.                           idTimer  : ULONG;
  8603.                           dtTimeout: ULONG)
  8604.                                      return ULONG;
  8605.  
  8606.    function WinStopTimer(hab    : HAB;
  8607.                          hwnd_hwnd  : HWND;
  8608.                          idTimer: ULONG)
  8609.                                   return BOOL;
  8610.  
  8611.    function WinShowTrackRect(hwnd_hwnd: HWND;
  8612.                              fShow: BOOL)
  8613.                                     return BOOL;
  8614.  
  8615.    function WinTrackRect(hwnd: HWND;
  8616.                          hps_hps: HPS;
  8617.                          pti : PTRACKINFO)
  8618.                                return BOOL;
  8619.  
  8620.    function GpiAnimatePalette(hpal    : HPAL;
  8621.                               ulFormat: ULONG;
  8622.                               ulStart : ULONG;
  8623.                               ulCount : ULONG;
  8624.                               aulTable: PULONG)
  8625.                                         return LONG;
  8626.  
  8627.    function GpiAssociate(hps: HPS;
  8628.                          hdc: HDC)
  8629.                               return BOOL;
  8630.  
  8631.    function GpiBeginArea(hps_hps     : HPS;
  8632.                          flOptions: ULONG)
  8633.                                     return BOOL;
  8634.  
  8635.    function GpiBeginElement(hps_hps   : HPS;
  8636.                             lType  : LONG;
  8637.                             pszDesc: PCSZ)
  8638.                                      return BOOL;
  8639.  
  8640.    function GpiBeginPath(hps_hps : HPS;
  8641.                          lPath: LONG)
  8642.                                 return BOOL;
  8643.  
  8644.    function GpiBitBlt(hpsTarget : HPS;
  8645.                       hpsSource : HPS;
  8646.                       lCount    : LONG;
  8647.                       aptlPoints: PPOINTL;
  8648.                       lRop      : LONG;
  8649.                       flOptions : ULONG)
  8650.                                   return LONG;
  8651.  
  8652.    function GpiBox(hps_hps     : HPS;
  8653.                    lControl : LONG;
  8654.                    pptlPoint: PPOINTL;
  8655.                    lHRound  : LONG;
  8656.                    lVRound  : LONG)
  8657.                               return LONG;
  8658.  
  8659.    function GpiCallSegmentMatrix(hps_hps       : HPS;
  8660.                                  lSegment   : LONG;
  8661.                                  lCount     : LONG;
  8662.                                  pmatlfArray: PMATRIXLF;
  8663.                                  lOptions   : LONG)
  8664.                                               return LONG;
  8665.  
  8666.    function GpiCharString(hps_hps     : HPS;
  8667.                           lCount   : LONG;
  8668.                           pchString: PCCH)
  8669.                                      return LONG;
  8670.  
  8671.    function GpiCharStringAt(hps_hps     : HPS;
  8672.                             pptlPoint: PPOINTL;
  8673.                             lCount   : LONG;
  8674.                             pchString: PCCH)
  8675.                                        return LONG;
  8676.  
  8677.    function GpiCharStringPos(hps_hps     : HPS;
  8678.                              prclRect : PRECTL;
  8679.                              flOptions: ULONG;
  8680.                              lCount   : LONG;
  8681.                              pchString: PCCH;
  8682.                              alAdx    : PLONG)
  8683.                                         return LONG;
  8684.  
  8685.    function GpiCharStringPosAt(hps_hps     : HPS;
  8686.                                pptlStart: PPOINTL;
  8687.                                prclRect : PRECTL;
  8688.                                flOptions: ULONG;
  8689.                                lCount   : LONG;
  8690.                                pchString: PCCH;
  8691.                                alAdx    : PLONG)
  8692.                                           return LONG;
  8693.  
  8694.    function GpiCloseFigure(hps: HPS) return BOOL;
  8695.  
  8696.    function GpiCloseSegment(hps: HPS) return BOOL;
  8697.  
  8698.    function GpiCombineRegion(hps_hps    : HPS;
  8699.                              hrgnDest: HRGN;
  8700.                              hrgnSrc1: HRGN;
  8701.                              hrgnSrc2: HRGN;
  8702.                              lMode   : LONG)
  8703.                                        return LONG;
  8704.  
  8705.    function GpiComment(hps_hps   : HPS;
  8706.                        lLength: LONG;
  8707.                        pbData : PBYTE)
  8708.                                 return BOOL;
  8709.  
  8710.    function GpiConvert(hps_hps      : HPS;
  8711.                        lSrc      : LONG;
  8712.                        lTarg     : LONG;
  8713.                        lCount    : LONG;
  8714.                        aptlPoints: PPOINTL)
  8715.                                    return BOOL;
  8716.  
  8717.    function GpiConvertWithMatrix(hps_hps       : HPS;
  8718.                                  lCountp    : LONG;
  8719.                                  aptlPoints : PPOINTL;
  8720.                                  lCount     : LONG;
  8721.                                  pmatlfArray: PMATRIXLF)
  8722.                                               return BOOL;
  8723.  
  8724.    function GpiCopyMetaFile(hmf: HMF) return HMF;
  8725.  
  8726.    function GpiCorrelateChain(hps_hps     : HPS;
  8727.                               lType    : LONG;
  8728.                               pptlPick : PPOINTL;
  8729.                               lMaxHits : LONG;
  8730.                               lMaxDepth: LONG;
  8731.                               pl2      : PLONG)
  8732.                                          return LONG;
  8733.  
  8734.    function GpiCorrelateFrom(hps_hps         : HPS;
  8735.                              lFirstSegment: LONG;
  8736.                              lLastSegment : LONG;
  8737.                              lType        : LONG;
  8738.                              pptlPick     : PPOINTL;
  8739.                              lMaxHits     : LONG;
  8740.                              lMaxDepth    : LONG;
  8741.                              plSegTag     : PLONG)
  8742.                                             return LONG;
  8743.  
  8744.    function GpiCorrelateSegment(hps_hps     : HPS;
  8745.                                 lSegment : LONG;
  8746.                                 lType    : LONG;
  8747.                                 pptlPick : PPOINTL;
  8748.                                 lMaxHits : LONG;
  8749.                                 lMaxDepth: LONG;
  8750.                                 alSegTag : PLONG)
  8751.                                            return LONG;
  8752.  
  8753.    function GpiCreateBitmap(hps_hps         : HPS;
  8754.                             pbmpNew      : PBITMAPINFOHEADER2;
  8755.                             flOptions    : ULONG;
  8756.                             pbInitData   : PBYTE;
  8757.                             pbmiInfoTable: PBITMAPINFO2)
  8758.                                            return HBITMAP;
  8759.  
  8760.    function GpiCreateLogColorTable(hps_hps     : HPS;
  8761.                                    flOptions: ULONG;
  8762.                                    lFormat  : LONG;
  8763.                                    lStart   : LONG;
  8764.                                    lCount   : LONG;
  8765.                                    alTable  : PLONG)
  8766.                                               return BOOL;
  8767.  
  8768.    function GpiCreateLogFont(hps_hps     : HPS;
  8769.                              pName    : PSTR8;
  8770.                              lLcid    : LONG;
  8771.                              pfatAttrs: PFATTRS)
  8772.                                         return LONG;
  8773.  
  8774.    function GpiCreatePalette(hab      : HAB;
  8775.                              flOptions: ULONG;
  8776.                              ulFormat : ULONG;
  8777.                              ulCount  : ULONG;
  8778.                              aulTable : PULONG)
  8779.                                         return HPAL;
  8780.  
  8781.    function GpiCreatePS(hab      : HAB;
  8782.                         hdc      : HDC;
  8783.                         psizlSize: PSIZEL;
  8784.                         flOptions: ULONG)
  8785.                                    return HPS;
  8786.  
  8787.    function GpiCreateRegion(hps_hps          : HPS;
  8788.                             lCount        : LONG;
  8789.                             arclRectangles: PRECTL)
  8790.                                             return HRGN;
  8791.  
  8792.    function GpiDeleteBitmap(hbm: HBITMAP) return BOOL;
  8793.  
  8794.    function GpiDeleteElement(hps: HPS) return BOOL;
  8795.  
  8796.    function GpiDeleteElementRange(hps_hps         : HPS;
  8797.                                   lFirstElement: LONG;
  8798.                                   lLastElement : LONG)
  8799.                                                  return BOOL;
  8800.  
  8801.    function GpiDeleteElementsBetweenLabels(hps_hps       : HPS;
  8802.                                            lFirstLabel: LONG;
  8803.                                            lLastLabel : LONG)
  8804.                                                         return BOOL;
  8805.  
  8806.    function GpiDeleteMetaFile(hmf: HMF) return BOOL;
  8807.  
  8808.    function GpiDeletePalette(hpal: HPAL) return BOOL;
  8809.  
  8810.    function GpiDeleteSegment(hps_hps  : HPS;
  8811.                              lSegid: LONG)
  8812.                                      return BOOL;
  8813.  
  8814.    function GpiDeleteSegments(hps_hps         : HPS;
  8815.                               lFirstSegment: LONG;
  8816.                               lLastSegment : LONG)
  8817.                                              return BOOL;
  8818.  
  8819.    function GpiDeleteSetId(hps_hps : HPS;
  8820.                            lLcid: LONG)
  8821.                                   return BOOL;
  8822.  
  8823.    function GpiDestroyPS(hps: HPS) return BOOL;
  8824.  
  8825.    function GpiDestroyRegion(hps_hps: HPS;
  8826.                              hrgn: HRGN)
  8827.                                    return BOOL;
  8828.  
  8829.    function GpiDrawBits(hps_hps         : HPS;
  8830.                         pBits        : system.address;
  8831.                         pbmiInfoTable: PBITMAPINFO2;
  8832.                         lCount       : LONG;
  8833.                         aptlPoints   : PPOINTL;
  8834.                         lRop         : LONG;
  8835.                         flOptions    : ULONG)
  8836.                                        return LONG;
  8837.  
  8838.    function GpiDrawChain(hps: HPS) return BOOL;
  8839.  
  8840.    function GpiDrawDynamics(hps: HPS) return BOOL;
  8841.  
  8842.    function GpiDrawFrom(hps_hps         : HPS;
  8843.                         lFirstSegment: LONG;
  8844.                         lLastSegment : LONG)
  8845.                                        return BOOL;
  8846.  
  8847.    function GpiDrawSegment(hps_hps    : HPS;
  8848.                            lSegment: LONG)
  8849.                                      return BOOL;
  8850.  
  8851.    function GpiElement(hps_hps   : HPS;
  8852.                        lType  : LONG;
  8853.                        pszDesc: PCSZ;
  8854.                        lLength: LONG;
  8855.                        pbData : PBYTE)
  8856.                                 return LONG;
  8857.  
  8858.    function GpiEndArea(hps: HPS) return LONG;
  8859.  
  8860.    function GpiEndElement(hps: HPS) return BOOL;
  8861.  
  8862.    function GpiEndPath(hps: HPS) return BOOL;
  8863.  
  8864.    function GpiEqualRegion(hps_hps    : HPS;
  8865.                            hrgnSrc1: HRGN;
  8866.                            hrgnSrc2: HRGN)
  8867.                                      return LONG;
  8868.  
  8869.    function GpiErase(hps: HPS) return BOOL;
  8870.  
  8871.    function GpiErrorSegmentData(hps_hps     : HPS;
  8872.                                 plSegment: PLONG;
  8873.                                 plContext: PLONG)
  8874.                                            return LONG;
  8875.  
  8876.    function GpiExcludeClipRectangle(hps_hps         : HPS;
  8877.                                     prclRectangle: PRECTL)
  8878.                                                    return LONG;
  8879.  
  8880.    function GpiFillPath(hps_hps    : HPS;
  8881.                         lPath   : LONG;
  8882.                         lOptions: LONG)
  8883.                                   return LONG;
  8884.  
  8885.    function GpiFloodFill(hps_hps    : HPS;
  8886.                          lOptions: LONG;
  8887.                          lColor  : LONG)
  8888.                                    return LONG;
  8889.  
  8890.    function GpiFrameRegion(hps_hps     : HPS;
  8891.                            hrgn     : HRGN;
  8892.                            thickness: PSIZEL)
  8893.                                       return LONG;
  8894.  
  8895.    function GpiFullArc(hps_hps        : HPS;
  8896.                        lControl    : LONG;
  8897.                        fxMultiplier: FIXED)
  8898.                                      return LONG;
  8899.  
  8900.    function GpiGetData(hps_hps    : HPS;
  8901.                        lSegid  : LONG;
  8902.                        plOffset: PLONG;
  8903.                        lFormat : LONG;
  8904.                        lLength : LONG;
  8905.                        pbData  : PBYTE)
  8906.                                  return LONG;
  8907.  
  8908.    function GpiImage(hps_hps          : HPS;
  8909.                      lFormat       : LONG;
  8910.                      psizlImageSize: PSIZEL;
  8911.                      lLength       : LONG;
  8912.                      pbData        : PBYTE)
  8913.                                      return LONG;
  8914.  
  8915.    function GpiIntersectClipRectangle(hps_hps         : HPS;
  8916.                                       prclRectangle: PRECTL)
  8917.                                                      return LONG;
  8918.  
  8919.    function GpiLabel(hps_hps  : HPS;
  8920.                      lLabel: LONG)
  8921.                              return BOOL;
  8922.  
  8923.    function GpiLine(hps_hps        : HPS;
  8924.                     pptlEndPoint: PPOINTL)
  8925.                                   return LONG;
  8926.  
  8927.    function GpiLoadBitmap(hps_hps    : HPS;
  8928.                           Resource: HMODULE;
  8929.                           idBitmap: ULONG;
  8930.                           lWidth  : LONG;
  8931.                           lHeight : LONG)
  8932.                                     return HBITMAP;
  8933.  
  8934.    function GpiLoadFonts(hab        : HAB;
  8935.                          pszFilename: PCSZ)
  8936.                                       return BOOL;
  8937.  
  8938.    function GpiLoadMetaFile(hab        : HAB;
  8939.                             pszFilename: PCSZ)
  8940.                                          return HMF;
  8941.  
  8942.    function GpiLoadPublicFonts(hab        : HAB;
  8943.                                pszFileName: PCSZ)
  8944.                                             return BOOL;
  8945.  
  8946.    function GpiMarker(hps_hps     : HPS;
  8947.                       pptlPoint: PPOINTL)
  8948.                                  return LONG;
  8949.  
  8950.    function GpiModifyPath(hps_hps : HPS;
  8951.                           lPath: LONG;
  8952.                           lMode: LONG)
  8953.                                  return BOOL;
  8954.  
  8955.    function GpiMove(hps_hps     : HPS;
  8956.                     pptlPoint: PPOINTL)
  8957.                                return BOOL;
  8958.  
  8959.    function GpiOffsetClipRegion(hps_hps     : HPS;
  8960.                                 pptlPoint: PPOINTL)
  8961.                                            return LONG;
  8962.  
  8963.    function GpiOffsetElementPointer(hps_hps   : HPS;
  8964.                                     loffset: LONG)
  8965.                                              return BOOL;
  8966.  
  8967.    function GpiOffsetRegion(hps_hps      : HPS;
  8968.                             Hrgn      : HRGN;
  8969.                             pptlOffset: PPOINTL)
  8970.                                         return BOOL;
  8971.  
  8972.    function GpiOpenSegment(hps_hps    : HPS;
  8973.                            lSegment: LONG)
  8974.                                      return BOOL;
  8975.  
  8976.    function GpiOutlinePath(hps_hps    : HPS;
  8977.                            lPath   : LONG;
  8978.                            lOptions: LONG)
  8979.                                      return LONG;
  8980.  
  8981.    function GpiPaintRegion(hps_hps: HPS;
  8982.                            hrgn: HRGN)
  8983.                                  return LONG;
  8984.  
  8985.    function GpiPartialArc(hps_hps        : HPS;
  8986.                           pptlCenter  : PPOINTL;
  8987.                           fxMultiplier: FIXED;
  8988.                           fxStartAngle: FIXED;
  8989.                           fxSweepAngle: FIXED)
  8990.                                         return LONG;
  8991.  
  8992.    function GpiPathToRegion(GpiH    : HPS;
  8993.                             lPath   : LONG;
  8994.                             lOptions: LONG)
  8995.                                       return HRGN;
  8996.  
  8997.    function GpiPlayMetaFile(hps_hps      : HPS;
  8998.                             hmf       : HMF;
  8999.                             lCount1   : LONG;
  9000.                             alOptarray: PLONG;
  9001.                             plSegCount: PLONG;
  9002.                             lCount2   : LONG;
  9003.                             pszDesc   : PSZ)
  9004.                                         return LONG;
  9005.  
  9006.    function GpiPointArc(hps_hps : HPS;
  9007.                         pptl2: PPOINTL)
  9008.                                return LONG;
  9009.  
  9010.    function GpiPolyFillet(hps_hps      : HPS;
  9011.                           lCount    : LONG;
  9012.                           aptlPoints: PPOINTL)
  9013.                                       return LONG;
  9014.  
  9015.    function GpiPolyFilletSharp(hps_hps      : HPS;
  9016.                                lCount    : LONG;
  9017.                                aptlPoints: PPOINTL;
  9018.                                afxPoints : PFIXED)
  9019.                                            return LONG;
  9020.  
  9021.    function GpiPolygons(hps_hps     : HPS;
  9022.                         ulCount  : ULONG;
  9023.                         paplgn   : PPOLYGON;
  9024.                         flOptions: ULONG;
  9025.                         flModel  : ULONG)
  9026.                                    return LONG;
  9027.  
  9028.    function GpiPolyLine(hps_hps      : HPS;
  9029.                         lCount    : LONG;
  9030.                         aptlPoints: PPOINTL)
  9031.                                     return LONG;
  9032.  
  9033.    function GpiPolyLineDisjoint(hps_hps      : HPS;
  9034.                                 lCount    : LONG;
  9035.                                 aptlPoints: PPOINTL)
  9036.                                             return LONG;
  9037.  
  9038.    function GpiPolyMarker(hps_hps      : HPS;
  9039.                           lCount    : LONG;
  9040.                           aptlPoints: PPOINTL)
  9041.                                       return LONG;
  9042.  
  9043.    function GpiPolySpline(hps_hps      : HPS;
  9044.                           lCount    : LONG;
  9045.                           aptlPoints: PPOINTL)
  9046.                                       return LONG;
  9047.  
  9048.    function GpiPop(hps_hps  : HPS;
  9049.                    lCount: LONG)
  9050.                            return BOOL;
  9051.  
  9052.    function GpiPtInRegion(hps_hps     : HPS;
  9053.                           hrgn     : HRGN;
  9054.                           pptlPoint: PPOINTL)
  9055.                                      return LONG;
  9056.  
  9057.    function GpiPtVisible(hps_hps     : HPS;
  9058.                          pptlPoint: PPOINTL)
  9059.                                     return LONG;
  9060.  
  9061.    function GpiPutData(hps_hps   : HPS;
  9062.                        lFormat: LONG;
  9063.                        plCount: PLONG;
  9064.                        pbData : PBYTE)
  9065.                                 return LONG;
  9066.  
  9067.    function GpiQueryArcParams(hps_hps          : HPS;
  9068.                               parcpArcParams: PARCPARAMS)
  9069.                                               return BOOL;
  9070.  
  9071.    function GpiQueryAttrMode(hps: HPS) return LONG;
  9072.  
  9073.    function GpiQueryAttrs(hps_hps      : HPS;
  9074.                           lPrimType : LONG;
  9075.                           flAttrMask: ULONG;
  9076.                           ppbunAttrs: PBUNDLE)
  9077.                                       return LONG;
  9078.  
  9079.    function GpiQueryBackColor(hps: HPS) return LONG;
  9080.  
  9081.    function GpiQueryBackMix(hps: HPS) return LONG;
  9082.  
  9083.    function GpiQueryBitmapBits(hps_hps         : HPS;
  9084.                                lScanStart   : LONG;
  9085.                                lScans       : LONG;
  9086.                                pbBuffer     : PBYTE;
  9087.                                pbmiInfoTable: PBITMAPINFO2)
  9088.                                               return LONG;
  9089.  
  9090.    function GpiQueryBitmapDimension(hbm                 : HBITMAP;
  9091.                                     psizlBitmapDimension: PSIZEL)
  9092.                                                           return BOOL;
  9093.  
  9094.    function GpiQueryBitmapHandle(hps_hps : HPS;
  9095.                                  lLcid: LONG)
  9096.                                         return HBITMAP;
  9097.  
  9098.    function GpiQueryBitmapInfoHeader(hbm     : HBITMAP;
  9099.                                      pbmpData: PBITMAPINFOHEADER2)
  9100.                                                return BOOL;
  9101.  
  9102.    function GpiQueryBitmapParameters(hbm     : HBITMAP;
  9103.                                      pbmpData: PBITMAPINFOHEADER)
  9104.                                                return BOOL;
  9105.  
  9106.    function GpiQueryBoundaryData(hps_hps        : HPS;
  9107.                                  prclBoundary: PRECTL)
  9108.                                                return BOOL;
  9109.  
  9110.    function GpiQueryCharAngle(hps_hps       : HPS;
  9111.                               pgradlAngle: PGRADIENTL)
  9112.                                            return BOOL;
  9113.  
  9114.    function GpiQueryCharBox(hps_hps      : HPS;
  9115.                             psizfxSize: PSIZEF)
  9116.                                         return BOOL;
  9117.  
  9118.    function GpiQueryCharBreakExtra(hps_hps      : HPS;
  9119.                                    BreakExtra: PFIXED)
  9120.                                                return BOOL;
  9121.  
  9122.    function GpiQueryCharDirection(hps: HPS) return LONG;
  9123.  
  9124.    function GpiQueryCharExtra(hps_hps : HPS;
  9125.                               Extra: PFIXED)
  9126.                                      return BOOL;
  9127.  
  9128.    function GpiQueryCharMode(hps: HPS) return LONG;
  9129.  
  9130.    function GpiQueryCharSet(hps: HPS) return LONG;
  9131.  
  9132.    function GpiQueryCharShear(hps_hps     : HPS;
  9133.                               pptlShear: PPOINTL)
  9134.                                          return BOOL;
  9135.  
  9136.    function GpiQueryCharStringPos(hps_hps         : HPS;
  9137.                                   flOptions    : ULONG;
  9138.                                   lCount       : LONG;
  9139.                                   pchString    : PCCH;
  9140.                                   alXincrements: PLONG;
  9141.                                   aptlPositions: PPOINTL)
  9142.                                                  return BOOL;
  9143.  
  9144.    function GpiQueryCharStringPosAt(hps_hps         : HPS;
  9145.                                     pptlStart    : PPOINTL;
  9146.                                     flOptions    : ULONG;
  9147.                                     lCount       : LONG;
  9148.                                     pchString    : PCCH;
  9149.                                     alXincrements: PLONG;
  9150.                                     aptlPositions: PPOINTL)
  9151.                                                    return BOOL;
  9152.  
  9153.    function GpiQueryClipBox(hps_hps     : HPS;
  9154.                             prclBound: PRECTL)
  9155.                                        return LONG;
  9156.  
  9157.    function GpiQueryClipRegion(hps: HPS) return HRGN;
  9158.  
  9159.    function GpiQueryColor(hps: HPS) return LONG;
  9160.  
  9161.    function GpiQueryColorData(hps_hps   : HPS;
  9162.                               lCount : LONG;
  9163.                               alArray: PLONG)
  9164.                                        return BOOL;
  9165.  
  9166.    function GpiQueryColorIndex(hps_hps     : HPS;
  9167.                                flOptions: ULONG;
  9168.                                lRgbColor: LONG)
  9169.                                           return LONG;
  9170.  
  9171.    function GpiQueryCp(hps: HPS) return ULONG;
  9172.  
  9173.    function GpiQueryCurrentPosition(hps_hps     : HPS;
  9174.                                     pptlPoint: PPOINTL)
  9175.                                                return BOOL;
  9176.  
  9177.    function GpiQueryDefArcParams(hps_hps          : HPS;
  9178.                                  parcpArcParams: PARCPARAMS)
  9179.                                                  return BOOL;
  9180.  
  9181.    function GpiQueryDefAttrs(hps_hps      : HPS;
  9182.                              lPrimType : LONG;
  9183.                              flAttrMask: ULONG;
  9184.                              ppbunAttrs: PBUNDLE)
  9185.                                          return BOOL;
  9186.  
  9187.    function GpiQueryDefCharBox(hps_hps     : HPS;
  9188.                                psizlSize: PSIZEL)
  9189.                                           return BOOL;
  9190.  
  9191.    function GpiQueryDefTag(hps_hps : HPS;
  9192.                            plTag: PLONG)
  9193.                                   return BOOL;
  9194.  
  9195.    function GpiQueryDefViewingLimits(hps_hps      : HPS;
  9196.                                      prclLimits: PRECTL)
  9197.                                                  return BOOL;
  9198.  
  9199.    function GpiQueryDefaultViewMatrix(hps_hps       : HPS;
  9200.                                       lCount     : LONG;
  9201.                                       pmatlfArray: PMATRIXLF)
  9202.                                                    return BOOL;
  9203.  
  9204.    function GpiQueryDevice(hps: HPS) return HDC;
  9205.  
  9206.    function GpiQueryDeviceBitmapFormats(hps_hps   : HPS;
  9207.                                         lCount : LONG;
  9208.                                         alArray: PLONG)
  9209.                                                  return BOOL;
  9210.  
  9211.    function GpiQueryDrawControl(hps_hps    : HPS;
  9212.                                 lControl: LONG)
  9213.                                           return LONG;
  9214.  
  9215.    function GpiQueryDrawingMode(hps: HPS) return LONG;
  9216.  
  9217.    function GpiQueryEditMode(hps: HPS) return LONG;
  9218.  
  9219.    function GpiQueryElement(hps_hps      : HPS;
  9220.                             lOff      : LONG;
  9221.                             lMaxLength: LONG;
  9222.                             pbData    : PBYTE)
  9223.                                         return LONG;
  9224.  
  9225.    function GpiQueryElementPointer(hps: HPS) return LONG;
  9226.  
  9227.    function GpiQueryElementType(hps_hps   : HPS;
  9228.                                 plType : PLONG;
  9229.                                 lLength: LONG;
  9230.                                 pszData: PSZ)
  9231.                                          return LONG;
  9232.  
  9233.    function GpiQueryFaceString(PS              : HPS;
  9234.                                FamilyName      : PCSZ;
  9235.                                attrs           : PFACENAMEDESC;
  9236.                                length          : LONG;
  9237.                                CompoundFaceName: PSZ)
  9238.                                                  return ULONG;
  9239.  
  9240.    function GpiQueryFontAction(anchor : HAB;
  9241.                                options: ULONG)
  9242.                                         return ULONG;
  9243.  
  9244.    function GpiQueryFontFileDescriptions(hab          : HAB;
  9245.                                          pszFilename  : PCSZ;
  9246.                                          plCount      : PLONG;
  9247.                                          affdescsNames: PFFDESCS)
  9248.                                                         return LONG;
  9249.  
  9250.    function GpiQueryFontMetrics(hps_hps          : HPS;
  9251.                                 lMetricsLength: LONG;
  9252.                                 pfmMetrics    : PFONTMETRICS)
  9253.                                                 return BOOL;
  9254.  
  9255.    function GpiQueryFonts(hps_hps          : HPS;
  9256.                           flOptions     : ULONG;
  9257.                           pszFacename   : PCSZ;
  9258.                           plReqFonts    : PLONG;
  9259.                           lMetricsLength: LONG;
  9260.                           afmMetrics    : PFONTMETRICS)
  9261.                                           return LONG;
  9262.  
  9263.    function GpiQueryFullFontFileDescs(hab              : HAB;
  9264.                                       pszFilename      : PCSZ;
  9265.                                       plCount          : PLONG;
  9266.                                       pNames           : PVOID;
  9267.                                       plNamesBuffLength: PLONG)
  9268.                                                          return LONG;
  9269.  
  9270.    function GpiQueryGraphicsField(hps_hps     : HPS;
  9271.                                   prclField: PRECTL)
  9272.                                              return BOOL;
  9273.  
  9274.    function GpiQueryInitialSegmentAttrs(hps_hps      : HPS;
  9275.                                         lAttribute: LONG)
  9276.                                                     return LONG;
  9277.  
  9278.    function GpiQueryKerningPairs(hps_hps      : HPS;
  9279.                                  lCount    : LONG;
  9280.                                  akrnprData: PKERNINGPAIRS)
  9281.                                              return LONG;
  9282.  
  9283.    function GpiQueryLineEnd(hps: HPS) return LONG;
  9284.  
  9285.    function GpiQueryLineJoin(hps: HPS) return LONG;
  9286.  
  9287.    function GpiQueryLineType(hps: HPS) return LONG;
  9288.  
  9289.    function GpiQueryLineWidth(hps: HPS) return FIXED;
  9290.  
  9291.    function GpiQueryLineWidthGeom(hps: HPS) return LONG;
  9292.  
  9293.    function GpiQueryLogColorTable(hps_hps     : HPS;
  9294.                                   flOptions: ULONG;
  9295.                                   lStart   : LONG;
  9296.                                   lCount   : LONG;
  9297.                                   alArray  : PLONG)
  9298.                                              return LONG;
  9299.  
  9300.    function GpiQueryLogicalFont(PS    : HPS;
  9301.                                 lcid  : LONG;
  9302.                                 name  : PSTR8;
  9303.                                 attrs : PFATTRS;
  9304.                                 length: LONG)
  9305.                                         return BOOL;
  9306.  
  9307.    function GpiQueryMarker(hps: HPS) return LONG;
  9308.  
  9309.    function GpiQueryMarkerBox(hps_hps      : HPS;
  9310.                               psizfxSize: PSIZEF)
  9311.                                           return BOOL;
  9312.  
  9313.    function GpiQueryMarkerSet(hps: HPS) return LONG;
  9314.  
  9315.    function GpiQueryMetaFileBits(hmf    : HMF;
  9316.                                  lOffset: LONG;
  9317.                                  lLength: LONG;
  9318.                                  pbData : PBYTE)
  9319.                                           return BOOL;
  9320.  
  9321.    function GpiQueryMetaFileLength(hmf: HMF) return LONG;
  9322.  
  9323.    function GpiQueryMix(hps: HPS) return LONG;
  9324.  
  9325.    function GpiQueryModelTransformMatrix(hps_hps       : HPS;
  9326.                                          lCount     : LONG;
  9327.                                          pmatlfArray: PMATRIXLF)
  9328.                                                       return BOOL;
  9329.  
  9330.    function GpiQueryNearestColor(hps_hps     : HPS;
  9331.                                  flOptions: ULONG;
  9332.                                  lRgbIn   : LONG)
  9333.                                             return LONG;
  9334.  
  9335.    function GpiQueryNumberSetIds(hps: HPS) return LONG;
  9336.  
  9337.    function GpiQueryPageViewport(hps_hps        : HPS;
  9338.                                  prclViewport: PRECTL)
  9339.                                                return BOOL;
  9340.  
  9341.    function GpiQueryPalette(hps: HPS) return HPAL;
  9342.  
  9343.    function GpiQueryPaletteInfo(hpal     : HPAL;
  9344.                                 hps_hps     : HPS;
  9345.                                 flOptions: ULONG;
  9346.                                 ulStart  : ULONG;
  9347.                                 ulCount  : ULONG;
  9348.                                 aulArray : PULONG)
  9349.                                            return LONG;
  9350.  
  9351.    function GpiQueryPS(hps_hps     : HPS;
  9352.                        psizlSize: PSIZEL)
  9353.                                   return ULONG;
  9354.  
  9355.    function GpiQueryPattern(hps: HPS) return LONG;
  9356.  
  9357.    function GpiQueryPatternRefPoint(hps_hps        : HPS;
  9358.                                     pptlRefPoint: PPOINTL)
  9359.                                                   return BOOL;
  9360.  
  9361.    function GpiQueryPatternSet(hps: HPS) return LONG;
  9362.  
  9363.    function GpiQueryPel(hps_hps     : HPS;
  9364.                         pptlPoint: PPOINTL)
  9365.                                    return LONG;
  9366.  
  9367.    function GpiQueryPickAperturePosition(hps_hps     : HPS;
  9368.                                          pptlPoint: PPOINTL)
  9369.                                                     return BOOL;
  9370.  
  9371.    function GpiQueryPickApertureSize(hps_hps     : HPS;
  9372.                                      psizlSize: PSIZEL)
  9373.                                                 return BOOL;
  9374.  
  9375.    function GpiQueryRealColors(hps_hps     : HPS;
  9376.                                flOptions: ULONG;
  9377.                                lStart   : LONG;
  9378.                                lCount   : LONG;
  9379.                                alColors : PLONG)
  9380.                                           return LONG;
  9381.  
  9382.    function GpiQueryRegionBox(hps_hps     : HPS;
  9383.                               hrgn     : HRGN;
  9384.                               prclBound: PRECTL)
  9385.                                          return LONG;
  9386.  
  9387.    function GpiQueryRegionRects(hps_hps         : HPS;
  9388.                                 hrgn         : HRGN;
  9389.                                 prclBound    : PRECTL;
  9390.                                 prgnrcControl: PRGNRECT;
  9391.                                 prclRect     : PRECTL)
  9392.                                                return BOOL;
  9393.  
  9394.    function GpiQueryRGBColor(hps_hps       : HPS;
  9395.                              flOptions  : ULONG;
  9396.                              lColorIndex: LONG)
  9397.                                           return LONG;
  9398.  
  9399.    function GpiQuerySegmentAttrs(hps_hps      : HPS;
  9400.                                  lSegid    : LONG;
  9401.                                  lAttribute: LONG)
  9402.                                              return LONG;
  9403.  
  9404.    function GpiQuerySegmentNames(hps_hps       : HPS;
  9405.                                  lFirstSegid: LONG;
  9406.                                  lLastSegid : LONG;
  9407.                                  lMax       : LONG;
  9408.                                  alSegids   : PLONG)
  9409.                                               return LONG;
  9410.  
  9411.    function GpiQuerySegmentPriority(hps_hps     : HPS;
  9412.                                     lRefSegid: LONG;
  9413.                                     lOrder   : LONG)
  9414.                                                return LONG;
  9415.  
  9416.    function GpiQuerySegmentTransformMatrix(hps_hps       : HPS;
  9417.                                            lSegid     : LONG;
  9418.                                            lCount     : LONG;
  9419.                                            pmatlfArray: PMATRIXLF)
  9420.                                                         return BOOL;
  9421.  
  9422.    function GpiQuerySetIds(hps_hps   : HPS;
  9423.                            lCount : LONG;
  9424.                            alTypes: PLONG;
  9425.                            aNames : PSTR8;
  9426.                            allcids: PLONG)
  9427.                                     return BOOL;
  9428.  
  9429.    function GpiQueryStopDraw(hps: HPS) return LONG;
  9430.  
  9431.    function GpiQueryTag(hps_hps : HPS;
  9432.                         plTag: PLONG)
  9433.                                return BOOL;
  9434.  
  9435.    function GpiQueryTextAlignment(hps_hps   : HPS;
  9436.                                   plHoriz: PLONG;
  9437.                                   plVert : PLONG)
  9438.                                            return BOOL;
  9439.  
  9440.    function GpiQueryTextBox(hps_hps      : HPS;
  9441.                             lCount1   : LONG;
  9442.                             pchString : PCH;
  9443.                             lCount2   : LONG;
  9444.                             aptlPoints: PPOINTL)
  9445.                                         return BOOL;
  9446.  
  9447.    function GpiQueryViewingLimits(hps_hps      : HPS;
  9448.                                   prclLimits: PRECTL)
  9449.                                               return BOOL;
  9450.  
  9451.    function GpiQueryViewingTransformMatrix(hps_hps       : HPS;
  9452.                                            lCount     : LONG;
  9453.                                            pmatlfArray: PMATRIXLF)
  9454.                                                         return BOOL;
  9455.  
  9456.    function GpiQueryWidthTable(hps_hps      : HPS;
  9457.                                lFirstChar: LONG;
  9458.                                lCount    : LONG;
  9459.                                alData    : PLONG)
  9460.                                            return BOOL;
  9461.  
  9462.    function GpiRectInRegion(hps_hps    : HPS;
  9463.                             hrgn    : HRGN;
  9464.                             prclRect: PRECTL)
  9465.                                       return LONG;
  9466.  
  9467.    function GpiRectVisible(hps_hps         : HPS;
  9468.                            prclRectangle: PRECTL)
  9469.                                           return LONG;
  9470.  
  9471.    function GpiRemoveDynamics(hps_hps       : HPS;
  9472.                               lFirstSegid: LONG;
  9473.                               lLastSegid : LONG)
  9474.                                            return BOOL;
  9475.  
  9476.    function GpiResetBoundaryData(hps: HPS) return BOOL;
  9477.  
  9478.    function GpiResetPS(hps_hps     : HPS;
  9479.                        flOptions: ULONG)
  9480.                                   return BOOL;
  9481.  
  9482.    function GpiRestorePS(hps_hps : HPS;
  9483.                          lPSid: LONG)
  9484.                                 return BOOL;
  9485.  
  9486.    function GpiRotate(hps_hps       : HPS;
  9487.                       pmatlfArray: PMATRIXLF;
  9488.                       lOptions   : LONG;
  9489.                       fxAngle    : FIXED;
  9490.                       pptlCenter : PPOINTL)
  9491.                                    return BOOL;
  9492.  
  9493.    function GpiSaveMetaFile(hmf        : HMF;
  9494.                             pszFilename: PCSZ)
  9495.                                          return BOOL;
  9496.  
  9497.    function GpiSavePS(hps: HPS) return LONG;
  9498.  
  9499.    function GpiScale(hps_hps        : HPS;
  9500.                      pmfatlfArray: PMATRIXLF;
  9501.                      lOptions    : LONG;
  9502.                      afxScale    : PFIXED;
  9503.                      pptlCenter  : PPOINTL)
  9504.                                    return BOOL;
  9505.  
  9506.    function GpiSelectPalette(hps_hps: HPS;
  9507.                              hpal: HPAL)
  9508.                                    return HPAL;
  9509.  
  9510.    function GpiSetArcParams(hps_hps          : HPS;
  9511.                             parcpArcParams: PARCPARAMS)
  9512.                                             return BOOL;
  9513.  
  9514.    function GpiSetAttrMode(hps_hps : HPS;
  9515.                            lMode: LONG)
  9516.                                   return BOOL;
  9517.  
  9518.    function GpiSetAttrs(hps_hps      : HPS;
  9519.                         lPrimType : LONG;
  9520.                         flAttrMask: ULONG;
  9521.                         flDefMask : ULONG;
  9522.                         ppbunAttrs: system.address)
  9523.                                     return BOOL;
  9524.  
  9525.    function GpiSetBackColor(hps_hps  : HPS;
  9526.                             lColor: LONG)
  9527.                                     return BOOL;
  9528.  
  9529.    function GpiSetBackMix(hps_hps    : HPS;
  9530.                           lMixMode: LONG)
  9531.                                     return BOOL;
  9532.  
  9533.    function GpiSetBitmap(hps: HPS;
  9534.                          hbm: HBITMAP)
  9535.                               return HBITMAP;
  9536.  
  9537.    function GpiSetBitmapBits(hps_hps         : HPS;
  9538.                              lScanStart   : LONG;
  9539.                              lScans       : LONG;
  9540.                              pbBuffer     : PBYTE;
  9541.                              pbmiInfoTable: PBITMAPINFO2)
  9542.                                             return LONG;
  9543.  
  9544.    function GpiSetBitmapDimension(hbm                 : HBITMAP;
  9545.                                   psizlBitmapDimension: PSIZEL)
  9546.                                                         return BOOL;
  9547.  
  9548.    function GpiSetBitmapId(hps_hps : HPS;
  9549.                            hbm  : HBITMAP;
  9550.                            lLcid: LONG)
  9551.                                   return BOOL;
  9552.  
  9553.    function GpiSetCharAngle(hps_hps       : HPS;
  9554.                             pgradlAngle: PGRADIENTL)
  9555.                                          return BOOL;
  9556.  
  9557.    function GpiSetCharBox(hps_hps     : HPS;
  9558.                           psizfxBox: PSIZEF)
  9559.                                      return BOOL;
  9560.  
  9561.    function GpiSetCharBreakExtra(hps_hps      : HPS;
  9562.                                  BreakExtra: FIXED)
  9563.                                              return BOOL;
  9564.  
  9565.    function GpiSetCharDirection(hps_hps      : HPS;
  9566.                                 lDirection: LONG)
  9567.                                             return BOOL;
  9568.  
  9569.    function GpiSetCharExtra(hps_hps : HPS;
  9570.                             Extra: FIXED)
  9571.                                    return BOOL;
  9572.  
  9573.    function GpiSetCharMode(hps_hps : HPS;
  9574.                            lMode: LONG)
  9575.                                   return BOOL;
  9576.  
  9577.    function GpiSetCharSet(hps_hps : HPS;
  9578.                           llcid: LONG)
  9579.                                  return BOOL;
  9580.  
  9581.    function GpiSetCharShear(hps_hps     : HPS;
  9582.                             pptlAngle: PPOINTL)
  9583.                                        return BOOL;
  9584.  
  9585.    function GpiSetClipPath(hps_hps    : HPS;
  9586.                            lPath   : LONG;
  9587.                            lOptions: LONG)
  9588.                                      return BOOL;
  9589.  
  9590.    function GpiSetClipRegion(hps_hps    : HPS;
  9591.                              hrgn    : HRGN;
  9592.                              phrgnOld: PHRGN)
  9593.                                        return LONG;
  9594.  
  9595.    function GpiSetColor(hps_hps  : HPS;
  9596.                         lColor: LONG)
  9597.                                 return BOOL;
  9598.  
  9599.    function GpiSetCp(hps_hps      : HPS;
  9600.                      ulCodePage: ULONG)
  9601.                                  return BOOL;
  9602.  
  9603.    function GpiSetCurrentPosition(hps_hps     : HPS;
  9604.                                   pptlPoint: PPOINTL)
  9605.                                              return BOOL;
  9606.  
  9607.    function GpiSetDefArcParams(hps_hps          : HPS;
  9608.                                parcpArcParams: PARCPARAMS)
  9609.                                                return BOOL;
  9610.  
  9611.    function GpiSetDefAttrs(hps_hps      : HPS;
  9612.                            lPrimType : LONG;
  9613.                            flAttrMask: ULONG;
  9614.                            ppbunAttrs: system.address)
  9615.                                        return BOOL;
  9616.  
  9617.    function GpiSetDefaultViewMatrix(hps_hps       : HPS;
  9618.                                     lCount     : LONG;
  9619.                                     pmatlfarray: PMATRIXLF;
  9620.                                     lOptions   : LONG)
  9621.                                                  return BOOL;
  9622.  
  9623.    function GpiSetDefTag(hps_hps: HPS;
  9624.                          lTag: LONG)
  9625.                                return BOOL;
  9626.  
  9627.    function GpiSetDefViewingLimits(hps_hps      : HPS;
  9628.                                    prclLimits: PRECTL)
  9629.                                                return BOOL;
  9630.  
  9631.    function GpiSetDrawControl(hps_hps    : HPS;
  9632.                               lControl: LONG;
  9633.                               lValue  : LONG)
  9634.                                         return BOOL;
  9635.  
  9636.    function GpiSetDrawingMode(hps_hps : HPS;
  9637.                               lMode: LONG)
  9638.                                      return BOOL;
  9639.  
  9640.    function GpiSetEditMode(hps_hps : HPS;
  9641.                            lMode: LONG)
  9642.                                   return BOOL;
  9643.  
  9644.    function GpiSetElementPointer(hps_hps    : HPS;
  9645.                                  lElement: LONG)
  9646.                                            return BOOL;
  9647.  
  9648.    function GpiSetElementPointerAtLabel(hps_hps  : HPS;
  9649.                                         lLabel: LONG)
  9650.                                                 return BOOL;
  9651.  
  9652.    function GpiSetGraphicsField(hps_hps     : HPS;
  9653.                                 prclField: PRECTL)
  9654.                                            return BOOL;
  9655.  
  9656.    function GpiSetInitialSegmentAttrs(hps_hps      : HPS;
  9657.                                       lAttribute: LONG;
  9658.                                       lValue    : LONG)
  9659.                                                   return BOOL;
  9660.  
  9661.    function GpiSetLineEnd(hps_hps    : HPS;
  9662.                           lLineEnd: LONG)
  9663.                                     return BOOL;
  9664.  
  9665.    function GpiSetLineJoin(hps_hps     : HPS;
  9666.                            lLineJoin: LONG)
  9667.                                       return BOOL;
  9668.  
  9669.    function GpiSetLineType(hps_hps     : HPS;
  9670.                            lLineType: LONG)
  9671.                                       return BOOL;
  9672.  
  9673.    function GpiSetLineWidth(hps_hps       : HPS;
  9674.                             fxLineWidth: FIXED)
  9675.                                          return BOOL;
  9676.  
  9677.    function GpiSetLineWidthGeom(hps_hps      : HPS;
  9678.                                 lLineWidth: LONG)
  9679.                                             return BOOL;
  9680.  
  9681.    function GpiSetMarker(hps_hps   : HPS;
  9682.                          lSymbol: LONG)
  9683.                                   return BOOL;
  9684.  
  9685.    function GpiSetMarkerBox(hps_hps      : HPS;
  9686.                             psizfxSize: PSIZEF)
  9687.                                         return BOOL;
  9688.  
  9689.    function GpiSetMarkerSet(hps_hps: HPS;
  9690.                             lSet: LONG)
  9691.                                   return BOOL;
  9692.  
  9693.    function GpiSetMetaFileBits(hmf     : HMF;
  9694.                                lOffset : LONG;
  9695.                                lLength : LONG;
  9696.                                pbBuffer: PBYTE)
  9697.                                          return BOOL;
  9698.  
  9699.    function GpiSetMix(hps_hps    : HPS;
  9700.                       lMixMode: LONG)
  9701.                                 return BOOL;
  9702.  
  9703.    function GpiSetModelTransformMatrix(hps_hps       : HPS;
  9704.                                        lCount     : LONG;
  9705.                                        pmatlfArray: PMATRIXLF;
  9706.                                        lOptions   : LONG)
  9707.                                                     return BOOL;
  9708.  
  9709.    function GpiSetPageViewport(hps_hps        : HPS;
  9710.                                prclViewport: PRECTL)
  9711.                                              return BOOL;
  9712.  
  9713.    function GpiSetPaletteEntries(hpal    : HPAL;
  9714.                                  ulFormat: ULONG;
  9715.                                  ulStart : ULONG;
  9716.                                  ulCount : ULONG;
  9717.                                  aulTable: PULONG)
  9718.                                            return BOOL;
  9719.  
  9720.    function GpiSetPattern(hps_hps          : HPS;
  9721.                           lPatternSymbol: LONG)
  9722.                                           return BOOL;
  9723.  
  9724.    function GpiSetPatternRefPoint(hps_hps        : HPS;
  9725.                                   pptlRefPoint: PPOINTL)
  9726.                                                 return BOOL;
  9727.  
  9728.    function GpiSetPatternSet(hps_hps: HPS;
  9729.                              lSet: LONG)
  9730.                                    return BOOL;
  9731.  
  9732.    function GpiSetPel(hps_hps     : HPS;
  9733.                       pptlPoint: PPOINTL)
  9734.                                  return LONG;
  9735.  
  9736.    function GpiSetPickAperturePosition(hps_hps    : HPS;
  9737.                                        pptlPick: PPOINTL)
  9738.                                                  return BOOL;
  9739.  
  9740.    function GpiSetPickApertureSize(hps_hps     : HPS;
  9741.                                    lOptions : LONG;
  9742.                                    psizlSize: PSIZEL)
  9743.                                               return BOOL;
  9744.  
  9745.    function GpiSetPS(hps_hps     : HPS;
  9746.                      psizlsize: PSIZEL;
  9747.                      flOptions: ULONG)
  9748.                                 return BOOL;
  9749.  
  9750.    function GpiSetRegion(hps_hps          : HPS;
  9751.                          hrgn          : HRGN;
  9752.                          lcount        : LONG;
  9753.                          arclRectangles: PRECTL)
  9754.                                          return BOOL;
  9755.  
  9756.    function GpiSetSegmentAttrs(hps_hps      : HPS;
  9757.                                lSegid    : LONG;
  9758.                                lAttribute: LONG;
  9759.                                lValue    : LONG)
  9760.                                            return BOOL;
  9761.  
  9762.    function GpiSetSegmentPriority(hps_hps     : HPS;
  9763.                                   lSegid   : LONG;
  9764.                                   lRefSegid: LONG;
  9765.                                   lOrder   : LONG)
  9766.                                              return BOOL;
  9767.  
  9768.    function GpiSetSegmentTransformMatrix(hps_hps       : HPS;
  9769.                                          lSegid     : LONG;
  9770.                                          lCount     : LONG;
  9771.                                          pmatlfarray: PMATRIXLF;
  9772.                                          lOptions   : LONG)
  9773.                                                       return BOOL;
  9774.  
  9775.    function GpiSetStopDraw(hps_hps  : HPS;
  9776.                            lValue: LONG)
  9777.                                    return BOOL;
  9778.  
  9779.    function GpiSetTag(hps_hps: HPS;
  9780.                       lTag: LONG)
  9781.                             return BOOL;
  9782.  
  9783.    function GpiSetTextAlignment(hps_hps  : HPS;
  9784.                                 lHoriz: LONG;
  9785.                                 lVert : LONG)
  9786.                                         return BOOL;
  9787.  
  9788.    function GpiSetViewingLimits(hps_hps      : HPS;
  9789.                                 prclLimits: PRECTL)
  9790.                                             return BOOL;
  9791.  
  9792.    function GpiSetViewingTransformMatrix(hps_hps       : HPS;
  9793.                                          lCount     : LONG;
  9794.                                          pmatlfArray: PMATRIXLF;
  9795.                                          lOptions   : LONG)
  9796.                                                       return BOOL;
  9797.  
  9798.    function GpiStrokePath(hps_hps     : HPS;
  9799.                           lPath    : LONG;
  9800.                           flOptions: ULONG)
  9801.                                      return LONG;
  9802.  
  9803.    function GpiTranslate(hps_hps           : HPS;
  9804.                          pmatlfArray    : PMATRIXLF;
  9805.                          lOptions       : LONG;
  9806.                          pptlTranslation: PPOINTL)
  9807.                                           return BOOL;
  9808.  
  9809.    function GpiUnloadFonts(hab        : HAB;
  9810.                            pszFilename: PCSZ)
  9811.                                         return BOOL;
  9812.  
  9813.    function GpiUnloadPublicFonts(hab        : HAB;
  9814.                                  pszFilename: PCSZ)
  9815.                                               return BOOL;
  9816.  
  9817.    function GpiWCBitBlt(hpsTarget : HPS;
  9818.                         hbmSource : HBITMAP;
  9819.                         lCount    : LONG;
  9820.                         aptlPoints: PPOINTL;
  9821.                         lRop      : LONG;
  9822.                         flOptions : ULONG)
  9823.                                     return LONG;
  9824.  
  9825.    function DevCloseDC(hdc: HDC) return HMF;
  9826.  
  9827.    function DevEscape(hdc       : HDC;
  9828.                       lCode     : LONG;
  9829.                       lInCount  : LONG;
  9830.                       pbInData  : PBYTE;
  9831.                       plOutCount: PLONG;
  9832.                       pbOutData : PBYTE)
  9833.                                   return LONG;
  9834.  
  9835.    function DevOpenDC(hab     : HAB;
  9836.                       lType   : LONG;
  9837.                       pszToken: PCSZ;
  9838.                       lCount  : LONG;
  9839.                       pdopData: PDEVOPENDATA;
  9840.                       hdcComp : HDC)
  9841.                                 return HDC;
  9842.  
  9843.    function DevPostDeviceModes(hab            : HAB;
  9844.                                pdrivDriverData: PDRIVDATA;
  9845.                                pszDriverName  : PCSZ;
  9846.                                pszDeviceName  : PCSZ;
  9847.                                pszName        : PCSZ;
  9848.                                flOptions      : ULONG)
  9849.                                                 return LONG;
  9850.  
  9851.    function DevQueryCaps(hdc    : HDC;
  9852.                          lStart : LONG;
  9853.                          lCount : LONG;
  9854.                          alArray: PLONG)
  9855.                                   return BOOL;
  9856.  
  9857.    function DevQueryDeviceNames(hab          : HAB;
  9858.                                 pszDriverName: PCSZ;
  9859.                                 pldn         : PLONG;
  9860.                                 aDeviceName  : PSTR32;
  9861.                                 aDeviceDesc  : PSTR64;
  9862.                                 pldt         : PLONG;
  9863.                                 aDataType    : PSTR16)
  9864.                                                return BOOL;
  9865.  
  9866.    function DevQueryHardcopyCaps(hdc       : HDC;
  9867.                                  lStartForm: LONG;
  9868.                                  lForms    : LONG;
  9869.                                  phciHcInfo: PHCINFO)
  9870.                                              return LONG;
  9871.  
  9872.    function PrfAddProgram(hini      : HINI;
  9873.                           pDetails  : PPROGDETAILS;
  9874.                           hprogGroup: HPROGRAM)
  9875.                                       return HPROGRAM;
  9876.  
  9877.    function PrfChangeProgram(hini    : HINI;
  9878.                              hprog   : HPROGRAM;
  9879.                              pDetails: PPROGDETAILS)
  9880.                                        return BOOL;
  9881.  
  9882.    function PrfCreateGroup(hini        : HINI;
  9883.                            pszTitle    : PCSZ;
  9884.                            chVisibility: UCHAR)
  9885.                                          return HPROGRAM;
  9886.  
  9887.    function PrfDestroyGroup(hini      : HINI;
  9888.                             hprogGroup: HPROGRAM)
  9889.                                         return BOOL;
  9890.  
  9891.    function PrfQueryProgramCategory(hini  : HINI;
  9892.                                     pszExe: PCSZ)
  9893.                                             return PROGCATEGORY;
  9894.  
  9895.    function PrfQueryProgramHandle(hini        : HINI;
  9896.                                   pszExe      : PCSZ;
  9897.                                   phprogArray : PHPROGARRAY;
  9898.                                   cchBufferMax: ULONG;
  9899.                                   pulCount    : PULONG)
  9900.                                                 return ULONG;
  9901.  
  9902.    function PrfQueryProgramTitles(hini          : HINI;
  9903.                                   hprogGroup    : HPROGRAM;
  9904.                                   pTitles       : PPROGTITLE;
  9905.                                   ulBufferLength: ULONG;
  9906.                                   pulCount      : PULONG)
  9907.                                                   return ULONG;
  9908.  
  9909.    function PrfQueryDefinition(hini          : HINI;
  9910.                                hprog         : HPROGRAM;
  9911.                                pDetails      : PPROGDETAILS;
  9912.                                ulBufferLength: ULONG)
  9913.                                                return ULONG;
  9914.  
  9915.    function PrfRemoveProgram(hini : HINI;
  9916.                              hprog: HPROGRAM)
  9917.                                     return BOOL;
  9918.  
  9919.    function WinStartApp(hwndNotify: HWND;
  9920.                         pDetails  : PPROGDETAILS;
  9921.                         pszParams : PCSZ;
  9922.                         Reserved  : PVOID;
  9923.                         fbOptions : ULONG)
  9924.                                     return HAPP;
  9925.  
  9926.    function WinTerminateApp(happ: HAPP) return BOOL;
  9927.  
  9928.    function WinAddSwitchEntry(pswctl: PSWCNTRL) return HSWITCH;
  9929.  
  9930.    function WinRemoveSwitchEntry(hsw: HSWITCH) return ULONG;
  9931.  
  9932.    function WinChangeSwitchEntry(hsw   : HSWITCH;
  9933.                                  pswctl: PSWCNTRL)
  9934.                                          return ULONG;
  9935.  
  9936.    function WinCreateSwitchEntry(hab   : HAB;
  9937.                                  pswctl: PSWCNTRL)
  9938.                                          return HSWITCH;
  9939.  
  9940.    function WinQuerySessionTitle(hab       : HAB;
  9941.                                  usSession : ULONG;
  9942.                                  pszTitle  : PSZ;
  9943.                                  usTitlelen: ULONG)
  9944.                                              return ULONG;
  9945.  
  9946.    function WinQuerySwitchEntry(hsw   : HSWITCH;
  9947.                                 pswctl: PSWCNTRL)
  9948.                                         return ULONG;
  9949.  
  9950.    function WinQuerySwitchHandle(hwnd: HWND;
  9951.                                  pid : PID)
  9952.                                        return HSWITCH;
  9953.  
  9954.    function WinQuerySwitchList(hab         : HAB;
  9955.                                pswblk      : PSWBLOCK;
  9956.                                usDataLength: ULONG)
  9957.                                              return ULONG;
  9958.  
  9959.    function WinQueryTaskSizePos(hab          : HAB;
  9960.                                 usScreenGroup: ULONG;
  9961.                                 pswp         : PSWP)
  9962.                                                return ULONG;
  9963.  
  9964.    function WinQueryTaskTitle(usSession : ULONG;
  9965.                               pszTitle  : PSZ;
  9966.                               usTitlelen: ULONG)
  9967.                                           return ULONG;
  9968.  
  9969.    function WinSwitchToProgram(hsw: HSWITCH) return ULONG;
  9970.  
  9971.    function PrfCloseProfile(hini: HINI) return BOOL;
  9972.  
  9973.    function PrfOpenProfile(hab        : HAB;
  9974.                            pszFileName: PCSZ)
  9975.                                         return HINI;
  9976.  
  9977.    function PrfQueryProfile(hab        : HAB;
  9978.                             pPrfProfile: PPRFPROFILE)
  9979.                                          return BOOL;
  9980.  
  9981.    function PrfQueryProfileData(hini           : HINI;
  9982.                                 pszApp         : PCSZ;
  9983.                                 pszKey         : PCSZ;
  9984.                                 pBuffer        : PVOID;
  9985.                                 pulBufferLength: PULONG)
  9986.                                                  return BOOL;
  9987.  
  9988.    function PrfQueryProfileInt(hini    : HINI;
  9989.                                pszApp  : PCSZ;
  9990.                                pszKey  : PCSZ;
  9991.                                sDefault: LONG)
  9992.                                          return LONG;
  9993.  
  9994.    function PrfQueryProfileSize(hini     : HINI;
  9995.                                 pszApp   : PCSZ;
  9996.                                 pszKey   : PCSZ;
  9997.                                 pulReqLen: PULONG)
  9998.                                            return BOOL;
  9999.  
  10000.    function PrfQueryProfileString(hini          : HINI;
  10001.                                   pszApp        : PCSZ;
  10002.                                   pszKey        : PCSZ;
  10003.                                   pszDefault    : PCSZ;
  10004.                                   pBuffer       : PVOID;
  10005.                                   ulBufferLength: ULONG)
  10006.                                                   return ULONG;
  10007.  
  10008.    function PrfReset(hab        : HAB;
  10009.                      pPrfProfile: PPRFPROFILE)
  10010.                                   return BOOL;
  10011.  
  10012.    function PrfWriteProfileData(hini        : HINI;
  10013.                                 pszApp      : PCSZ;
  10014.                                 pszKey      : PCSZ;
  10015.                                 pData       : CPVOID;
  10016.                                 ulDataLength: ULONG)
  10017.                                               return BOOL;
  10018.  
  10019.    function PrfWriteProfileString(hini   : HINI;
  10020.                                   pszApp : PCSZ;
  10021.                                   pszKey : PCSZ;
  10022.                                   pszData: PCSZ)
  10023.                                            return BOOL;
  10024.  
  10025.    function WinDefFileDlgProc(hwnd: HWND;
  10026.                               msg : ULONG;
  10027.                               mp1 : MPARAM;
  10028.                               mp2 : MPARAM)
  10029.                                     return MRESULT;
  10030.  
  10031.    function WinFileDlg(hwndP: HWND;
  10032.                        hwndO: HWND;
  10033.                        pfild: PFILEDLG)
  10034.                               return HWND;
  10035.  
  10036.    function WinFreeFileDlgList(papszFQFilename: PAPSZ) return BOOL;
  10037.  
  10038.    function WinFontDlg(hwndP: HWND;
  10039.                        hwndO: HWND;
  10040.                        pfntd: PFONTDLG)
  10041.                               return HWND;
  10042.  
  10043.    function WinDefFontDlgProc(hwnd: HWND;
  10044.                               msg : ULONG;
  10045.                               mp1 : MPARAM;
  10046.                               mp2 : MPARAM)
  10047.                                     return MRESULT;
  10048.  
  10049.    function DrgAcceptDroppedFiles(hwnd_hwnd      : HWND;
  10050.                                   pszPath    : PCSZ;
  10051.                                   pszTypes   : PCSZ;
  10052.                                   ulDefaultOp: ULONG;
  10053.                                   ulReserved : ULONG)
  10054.                                                return BOOL;
  10055.  
  10056.    function DrgAccessDraginfo(pdinfo: PDRAGINFO) return BOOL;
  10057.  
  10058.    function DrgAddStrHandle(psz: PCSZ) return HSTR;
  10059.  
  10060.    function DrgAllocDraginfo(cDitem: ULONG) return PDRAGINFO;
  10061.  
  10062.    function DrgAllocDragtransfer(cdxfer: ULONG) return PDRAGTRANSFER;
  10063.  
  10064.    function DrgDeleteDraginfoStrHandles(pdinfo: PDRAGINFO) return BOOL;
  10065.  
  10066.    function DrgDeleteStrHandle(hstr: HSTR) return BOOL;
  10067.  
  10068.    function DrgDrag(hwndSource : HWND;
  10069.                     pdinfo     : PDRAGINFO;
  10070.                     pdimg      : PDRAGIMAGE;
  10071.                     cdimg      : ULONG;
  10072.                     vkTerminate: LONG;
  10073.                     pReserved  : PVOID)
  10074.                                  return HWND;
  10075.  
  10076.    function DrgDragFiles(hwnd_hwnd        : HWND;
  10077.                          apszFiles    : PPSZ;
  10078.                          apszTypes    : PPSZ;
  10079.                          apszTargets  : PPSZ;
  10080.                          cFiles       : ULONG;
  10081.                          hptrDrag     : HPOINTER;
  10082.                          vkTerm       : ULONG;
  10083.                          fSourceRender: BOOL;
  10084.                          ulReserved   : ULONG)
  10085.                                         return BOOL;
  10086.  
  10087.    function DrgFreeDraginfo(pdinfo: PDRAGINFO) return BOOL;
  10088.  
  10089.    function DrgFreeDragtransfer(pdxfer: PDRAGTRANSFER) return BOOL;
  10090.  
  10091.    function DrgGetPS(hwnd: HWND) return HPS;
  10092.  
  10093.    function DrgPostTransferMsg(hwnd_hwnd     : HWND;
  10094.                                msg       : ULONG;
  10095.                                pdxfer    : PDRAGTRANSFER;
  10096.                                fl        : ULONG;
  10097.                                ulReserved: ULONG;
  10098.                                fRetry    : BOOL)
  10099.                                            return BOOL;
  10100.  
  10101.    function DrgPushDraginfo(pdinfo  : PDRAGINFO;
  10102.                             hwndDest: HWND)
  10103.                                       return BOOL;
  10104.  
  10105.    function DrgQueryDragitem(pdinfo  : PDRAGINFO;
  10106.                              cbBuffer: ULONG;
  10107.                              pditem  : PDRAGITEM;
  10108.                              iItem   : ULONG)
  10109.                                        return BOOL;
  10110.  
  10111.    function DrgQueryDragitemCount(pdinfo: PDRAGINFO) return ULONG;
  10112.  
  10113.    function DrgQueryDragitemPtr(pdinfo : PDRAGINFO;
  10114.                                 ulIndex: ULONG)
  10115.                                          return PDRAGITEM;
  10116.  
  10117.    function DrgQueryNativeRMF(pditem  : PDRAGITEM;
  10118.                               cbBuffer: ULONG;
  10119.                               pBuffer : PCHAR)
  10120.                                         return BOOL;
  10121.  
  10122.    function DrgQueryNativeRMFLen(pditem: PDRAGITEM) return ULONG;
  10123.  
  10124.    function DrgQueryStrName(hstr    : HSTR;
  10125.                             cbBuffer: ULONG;
  10126.                             pBuffer : PSZ)
  10127.                                       return ULONG;
  10128.  
  10129.    function DrgQueryStrNameLen(hstr: HSTR) return ULONG;
  10130.  
  10131.    function DrgQueryTrueType(pditem  : PDRAGITEM;
  10132.                              cbBuffer: ULONG;
  10133.                              pBuffer : PSZ)
  10134.                                        return BOOL;
  10135.  
  10136.    function DrgQueryTrueTypeLen(pditem: PDRAGITEM) return ULONG;
  10137.  
  10138.    function DrgReleasePS(hps: HPS) return BOOL;
  10139.  
  10140.    function DrgSendTransferMsg(hwnd: HWND;
  10141.                                msg : ULONG;
  10142.                                mp1 : MPARAM;
  10143.                                mp2 : MPARAM)
  10144.                                      return MRESULT;
  10145.  
  10146.    function DrgSetDragImage(pdinfo   : PDRAGINFO;
  10147.                             pdimg    : PDRAGIMAGE;
  10148.                             cdimg    : ULONG;
  10149.                             pReserved: PVOID)
  10150.                                        return BOOL;
  10151.  
  10152.    function DrgSetDragitem(pdinfo  : PDRAGINFO;
  10153.                            pditem  : PDRAGITEM;
  10154.                            cbBuffer: ULONG;
  10155.                            iItem   : ULONG)
  10156.                                      return BOOL;
  10157.  
  10158.    function DrgSetDragPointer(pdinfo: PDRAGINFO;
  10159.                               hptr  : HPOINTER)
  10160.                                       return BOOL;
  10161.  
  10162.    function DrgVerifyNativeRMF(pditem: PDRAGITEM;
  10163.                                pszRMF: PCSZ)
  10164.                                        return BOOL;
  10165.  
  10166.    function DrgVerifyRMF(pditem : PDRAGITEM;
  10167.                          pszMech: PCSZ;
  10168.                          pszFmt : PCSZ)
  10169.                                   return BOOL;
  10170.  
  10171.    function DrgVerifyTrueType(pditem : PDRAGITEM;
  10172.                               pszType: PCSZ)
  10173.                                        return BOOL;
  10174.  
  10175.    function DrgVerifyType(pditem : PDRAGITEM;
  10176.                           pszType: PCSZ)
  10177.                                    return BOOL;
  10178.  
  10179.    function DrgVerifyTypeSet(pditem  : PDRAGITEM;
  10180.                              pszType : PCSZ;
  10181.                              cbMatch : ULONG;
  10182.                              pszMatch: PSZ)
  10183.                                        return BOOL;
  10184.  
  10185.    function WinCreateObject(pszClassName  : PCSZ;
  10186.                             pszTitle      : PCSZ;
  10187.                             pszSetupString: PCSZ;
  10188.                             pszLocation   : PCSZ;
  10189.                             ulFlags       : ULONG)
  10190.                                             return HOBJECT;
  10191.  
  10192.    function WinDeregisterObjectClass(pszClassName: PCSZ) return BOOL;
  10193.  
  10194.    function WinDestroyObject(hObject: HOBJECT) return BOOL;
  10195.  
  10196.    function WinEnumObjectClasses(pObjClass: POBJCLASS;
  10197.                                  pulSize  : PULONG)
  10198.                                             return BOOL;
  10199.  
  10200.    function WinQueryObject(pszObjectID: PCSZ) return HOBJECT;
  10201.  
  10202.    function WinRegisterObjectClass(pszClassName: PCSZ;
  10203.                                    pszModName  : PCSZ)
  10204.                                                  return BOOL;
  10205.  
  10206.    function WinReplaceObjectClass(pszOldClassName: PCSZ;
  10207.                                   pszNewClassName: PCSZ;
  10208.                                   fReplace       : BOOL)
  10209.                                                    return BOOL;
  10210.  
  10211.    function WinSetObjectData(hObject       : HOBJECT;
  10212.                              pszSetupString: PCSZ)
  10213.                                              return BOOL;
  10214.  
  10215.    function WinFreeFileIcon(hptr: HPOINTER) return BOOL;
  10216.  
  10217.    function WinLoadFileIcon(pszFileName: PCSZ;
  10218.                             fPrivate   : BOOL)
  10219.                                          return HPOINTER;
  10220.  
  10221.    function WinRestoreWindowPos(pszAppName: PCSZ;
  10222.                                 pszKeyName: PCSZ;
  10223.                                 hwnd_hwnd     : HWND)
  10224.                                             return BOOL;
  10225.  
  10226.    function WinSetFileIcon(pszFileName: PCSZ;
  10227.                            pIconInfo  : PICONINFO)
  10228.                                         return BOOL;
  10229.  
  10230.    function WinShutdownSystem(hab: HAB;
  10231.                               hmq: HMQ)
  10232.                                    return BOOL;
  10233.  
  10234.    function WinStoreWindowPos(pszAppName: PCSZ;
  10235.                               pszKeyName: PCSZ;
  10236.                               hwnd_hwnd     : HWND)
  10237.                                           return BOOL;
  10238.  
  10239.    function SplStdClose(hdc: HDC) return BOOL;
  10240.  
  10241.    function SplStdDelete(hMetaFile: HSTD) return BOOL;
  10242.  
  10243.    function SplStdGetBits(hMetaFile: HSTD;
  10244.                           offData  : LONG;
  10245.                           cbData   : LONG;
  10246.                           pchData  : PCH)
  10247.                                      return BOOL;
  10248.  
  10249.    function SplStdOpen(hdc: HDC) return BOOL;
  10250.  
  10251.    function SplStdQueryLength(hMetaFile: HSTD) return LONG;
  10252.  
  10253.    function SplStdStart(hdc: HDC) return BOOL;
  10254.  
  10255.    function SplStdStop(hdc: HDC) return HSTD;
  10256.  
  10257.    function SplControlDevice(pszComputerName: PSZ;
  10258.                              pszPortName    : PSZ;
  10259.                              ulControl      : ULONG)
  10260.                                               return SPLERR;
  10261.  
  10262.    function SplCopyJob(pszSrcComputerName: PSZ;
  10263.                        pszSrcQueueName   : PSZ;
  10264.                        ulSrcJob          : ULONG;
  10265.                        pszTrgComputerName: PSZ;
  10266.                        pszTrgQueueName   : PSZ;
  10267.                        pulTrgJob         : PULONG)
  10268.                                            return SPLERR;
  10269.  
  10270.    function SplCreateDevice(pszComputerName: PSZ;
  10271.                             ulLevel        : ULONG;
  10272.                             pBuf           : PVOID;
  10273.                             cbBuf          : ULONG)
  10274.                                              return SPLERR;
  10275.  
  10276.    function SplCreateQueue(pszComputerName: PSZ;
  10277.                            ulLevel        : ULONG;
  10278.                            pBuf           : PVOID;
  10279.                            cbBuf          : ULONG)
  10280.                                             return SPLERR;
  10281.  
  10282.    function SplDeleteDevice(pszComputerName   : PSZ;
  10283.                             pszPrintDeviceName: PSZ)
  10284.                                                 return SPLERR;
  10285.  
  10286.    function SplDeleteJob(pszComputerName: PSZ;
  10287.                          pszQueueName   : PSZ;
  10288.                          ulJob          : ULONG)
  10289.                                           return SPLERR;
  10290.  
  10291.    function SplDeleteQueue(pszComputerName: PSZ;
  10292.                            pszQueueName   : PSZ)
  10293.                                             return SPLERR;
  10294.  
  10295.    function SplEnumDevice(pszComputerName: PSZ;
  10296.                           ulLevel        : ULONG;
  10297.                           pBuf           : PVOID;
  10298.                           cbBuf          : ULONG;
  10299.                           pcReturned     : PULONG;
  10300.                           pcTotal        : PULONG;
  10301.                           pcbNeeded      : PULONG;
  10302.                           pReserved      : PVOID)
  10303.                                            return SPLERR;
  10304.  
  10305.    function SplEnumDriver(pszComputerName: PSZ;
  10306.                           ulLevel        : ULONG;
  10307.                           pBuf           : PVOID;
  10308.                           cbBuf          : ULONG;
  10309.                           pcReturned     : PULONG;
  10310.                           pcTotal        : PULONG;
  10311.                           pcbNeeded      : PULONG;
  10312.                           pReserved      : PVOID)
  10313.                                            return SPLERR;
  10314.  
  10315.    function SplEnumJob(pszComputerName: PSZ;
  10316.                        pszQueueName   : PSZ;
  10317.                        ulLevel        : ULONG;
  10318.                        pBuf           : PVOID;
  10319.                        cbBuf          : ULONG;
  10320.                        pcReturned     : PULONG;
  10321.                        pcTotal        : PULONG;
  10322.                        pcbNeeded      : PULONG;
  10323.                        pReserved      : PVOID)
  10324.                                         return SPLERR;
  10325.  
  10326.    function SplEnumPort(pszComputerName: PSZ;
  10327.                         ulLevel        : ULONG;
  10328.                         pBuf           : PVOID;
  10329.                         cbBuf          : ULONG;
  10330.                         pcReturned     : PULONG;
  10331.                         pcTotal        : PULONG;
  10332.                         pcbNeeded      : PULONG;
  10333.                         pReserved      : PVOID)
  10334.                                          return SPLERR;
  10335.  
  10336.    function SplEnumPrinter(pszComputerName: PSZ;
  10337.                            uLevel         : ULONG;
  10338.                            flType         : ULONG;
  10339.                            pBuf           : PVOID;
  10340.                            cbbuf          : ULONG;
  10341.                            pcReturned     : PULONG;
  10342.                            pcTotal        : PULONG;
  10343.                            pcbNeeded      : PULONG;
  10344.                            pReserved      : PVOID)
  10345.                                             return SPLERR;
  10346.  
  10347.    function SplEnumQueue(pszComputerName: PSZ;
  10348.                          ulLevel        : ULONG;
  10349.                          pBuf           : PVOID;
  10350.                          cbBuf          : ULONG;
  10351.                          pcReturned     : PULONG;
  10352.                          pcTotal        : PULONG;
  10353.                          pcbNeeded      : PULONG;
  10354.                          pReserved      : PVOID)
  10355.                                           return SPLERR;
  10356.  
  10357.    function SplEnumQueueProcessor(pszComputerName: PSZ;
  10358.                                   ulLevel        : ULONG;
  10359.                                   pBuf           : PVOID;
  10360.                                   cbBuf          : ULONG;
  10361.                                   pcReturned     : PULONG;
  10362.                                   pcTotal        : PULONG;
  10363.                                   pcbNeeded      : PULONG;
  10364.                                   pReserved      : PVOID)
  10365.                                                    return SPLERR;
  10366.  
  10367.    function SplHoldJob(pszComputerName: PSZ;
  10368.                        pszQueueName   : PSZ;
  10369.                        ulJob          : ULONG)
  10370.                                         return SPLERR;
  10371.  
  10372.    function SplHoldQueue(pszComputerName: PSZ;
  10373.                          pszQueueName   : PSZ)
  10374.                                           return SPLERR;
  10375.  
  10376.    function SplPurgeQueue(pszComputerName: PSZ;
  10377.                           pszQueueName   : PSZ)
  10378.                                            return SPLERR;
  10379.  
  10380.    function SplQueryDevice(pszComputerName   : PSZ;
  10381.                            pszPrintDeviceName: PSZ;
  10382.                            ulLevel           : ULONG;
  10383.                            pBuf              : PVOID;
  10384.                            cbBuf             : ULONG;
  10385.                            pcbNeeded         : PULONG)
  10386.                                                return SPLERR;
  10387.  
  10388.    function SplQueryJob(pszComputerName: PSZ;
  10389.                         pszQueueName   : PSZ;
  10390.                         ulJob          : ULONG;
  10391.                         ulLevel        : ULONG;
  10392.                         pBuf           : PVOID;
  10393.                         cbBuf          : ULONG;
  10394.                         pcbNeeded      : PULONG)
  10395.                                          return SPLERR;
  10396.  
  10397.    function SplQueryQueue(pszComputerName: PSZ;
  10398.                           pszQueueName   : PSZ;
  10399.                           ulLevel        : ULONG;
  10400.                           pBuf           : PVOID;
  10401.                           cbBuf          : ULONG;
  10402.                           pcbNeeded      : PULONG)
  10403.                                            return SPLERR;
  10404.  
  10405.    function SplReleaseJob(pszComputerName: PSZ;
  10406.                           pszQueueName   : PSZ;
  10407.                           ulJob          : ULONG)
  10408.                                            return SPLERR;
  10409.  
  10410.    function SplReleaseQueue(pszComputerName: PSZ;
  10411.                             pszQueueName   : PSZ)
  10412.                                              return SPLERR;
  10413.  
  10414.    function SplSetDevice(pszComputerName   : PSZ;
  10415.                          pszPrintDeviceName: PSZ;
  10416.                          ulLevel           : ULONG;
  10417.                          pBuf              : PVOID;
  10418.                          cbBuf             : ULONG;
  10419.                          ulParmNum         : ULONG)
  10420.                                              return SPLERR;
  10421.  
  10422.    function SplSetJob(pszComputerName: PSZ;
  10423.                       pszQueueName   : PSZ;
  10424.                       ulJob          : ULONG;
  10425.                       ulLevel        : ULONG;
  10426.                       pBuf           : PVOID;
  10427.                       cbBuf          : ULONG;
  10428.                       ulParmNum      : ULONG)
  10429.                                        return SPLERR;
  10430.  
  10431.    function SplSetQueue(pszComputerName: PSZ;
  10432.                         pszQueueName   : PSZ;
  10433.                         ulLevel        : ULONG;
  10434.                         pBuf           : PVOID;
  10435.                         cbBuf          : ULONG;
  10436.                         ulParmNum      : ULONG)
  10437.                                          return SPLERR;
  10438.  
  10439.    function SplMessageBox(pszLogAddr: PSZ;
  10440.                           fErrInfo  : ULONG;
  10441.                           fErrData  : ULONG;
  10442.                           pszText   : PSZ;
  10443.                           pszCaption: PSZ;
  10444.                           idWindow  : ULONG;
  10445.                           fStyle    : ULONG)
  10446.                                       return ULONG;
  10447.  
  10448.    function SplQmAbort(hspl: HSPL) return BOOL;
  10449.  
  10450.    function SplQmAbortDoc(hspl: HSPL) return BOOL;
  10451.  
  10452.    function SplQmClose(hspl: HSPL) return BOOL;
  10453.  
  10454.    function SplQmEndDoc(hspl: HSPL) return BOOL;
  10455.  
  10456.    function SplQmOpen(pszToken  : PSZ;
  10457.                       lCount    : LONG;
  10458.                       pqmdopData: PQMOPENDATA)
  10459.                                   return HSPL;
  10460.  
  10461.    function SplQmStartDoc(hspl      : HSPL;
  10462.                           pszDocName: PSZ)
  10463.                                       return BOOL;
  10464.  
  10465.    function SplQmWrite(hspl  : HSPL;
  10466.                        lCount: LONG;
  10467.                        pData : PVOID)
  10468.                                return BOOL;
  10469.  
  10470.    function WinAssociateHelpInstance(hwndHelpInstance: HWND;
  10471.                                      hwndApp         : HWND)
  10472.                                                        return BOOL;
  10473.  
  10474.    function WinCreateHelpInstance(hab                  : HAB;
  10475.                                   phinitHMInitStructure: PHELPINIT)
  10476.                                                          return HWND;
  10477.  
  10478.    function WinCreateHelpTable(hwndHelpInstance: HWND;
  10479.                                phtHelpTable    : PHELPTABLE)
  10480.                                                  return BOOL;
  10481.  
  10482.    function WinDestroyHelpInstance(hwndHelpInstance: HWND) return BOOL;
  10483.  
  10484.    function WinLoadHelpTable(hwndHelpInstance: HWND;
  10485.                              idHelpTable     : ULONG;
  10486.                              Module          : HMODULE)
  10487.                                                return BOOL;
  10488.  
  10489.    function WinQueryHelpInstance(hwndApp: HWND) return HWND;
  10490.  
  10491.    function DdfBeginList(hddf      : HDDF;
  10492.                          ulWidthDT : ULONG;
  10493.                          fBreakType: ULONG;
  10494.                          fSpacing  : ULONG)
  10495.                                      return BOOL;
  10496.  
  10497.    function DdfBitmap(hddf  : HDDF;
  10498.                       hbm   : HBITMAP;
  10499.                       fAlign: ULONG)
  10500.                               return BOOL;
  10501.  
  10502.    function DdfEndList(hddf: HDDF) return BOOL;
  10503.  
  10504.    function DdfHyperText(hddf          : HDDF;
  10505.                          pszText       : PCSZ;
  10506.                          pszReference  : PCSZ;
  10507.                          fReferenceType: ULONG)
  10508.                                          return BOOL;
  10509.  
  10510.    function DdfInform(hddf           : HDDF;
  10511.                       pszText        : PCSZ;
  10512.                       resInformNumber: ULONG)
  10513.                                        return BOOL;
  10514.  
  10515.    function DdfInitialize(hwndHelpInstance: HWND;
  10516.                           cbBuffer        : ULONG;
  10517.                           ulIncrement     : ULONG)
  10518.                                             return HDDF;
  10519.  
  10520.    function DdfListItem(hddf          : HDDF;
  10521.                         pszTerm       : PCSZ;
  10522.                         pszDescription: PCSZ)
  10523.                                         return BOOL;
  10524.  
  10525.    function DdfMetafile(hddf    : HDDF;
  10526.                         hmf     : HMF;
  10527.                         prclRect: PRECTL)
  10528.                                   return BOOL;
  10529.  
  10530.    function DdfPara(hddf: HDDF) return BOOL;
  10531.  
  10532.    function DdfSetColor(hddf      : HDDF;
  10533.                         fBackColor: COLOR;
  10534.                         fForColor : COLOR)
  10535.                                     return BOOL;
  10536.  
  10537.    function DdfSetFont(hddf       : HDDF;
  10538.                        pszFaceName: PCSZ;
  10539.                        ulWidth    : ULONG;
  10540.                        ulHeight   : ULONG)
  10541.                                     return BOOL;
  10542.  
  10543.    function DdfSetFontStyle(hddf      : HDDF;
  10544.                             fFontStyle: ULONG)
  10545.                                         return BOOL;
  10546.  
  10547.    function DdfSetFormat(hddf       : HDDF;
  10548.                          fFormatType: ULONG)
  10549.                                       return BOOL;
  10550.  
  10551.    function DdfSetTextAlign(hddf  : HDDF;
  10552.                             fAlign: ULONG)
  10553.                                     return BOOL;
  10554.  
  10555.    function DdfText(hddf   : HDDF;
  10556.                     pszText: PCSZ)
  10557.                              return BOOL;
  10558.  
  10559.    function VioAssociate(hdc : HDC;
  10560.                          hvps: HVPS)
  10561.                                return USHORT;
  10562.  
  10563.    function VioCreateLogFont(pfatattrs: PFATTRS;
  10564.                              llcid    : LONG;
  10565.                              pName    : PSTR8;
  10566.                              hvps     : HVPS)
  10567.                                         return USHORT;
  10568.  
  10569.    function VioCreatePS(phvps       : PHVPS;
  10570.                         sDepth      : SHORT;
  10571.                         sWidth      : SHORT;
  10572.                         sFormat     : SHORT;
  10573.                         sAttrs      : SHORT;
  10574.                         hvpsReserved: HVPS)
  10575.                                       return USHORT;
  10576.  
  10577.    function VioDeleteSetId(llcid: LONG;
  10578.                            hvps : HVPS)
  10579.                                   return USHORT;
  10580.  
  10581.    function VioDestroyPS(hvps: HVPS) return USHORT;
  10582.  
  10583.    function VioGetDeviceCellSize(psHeight: PSHORT;
  10584.                                  psWidth : PSHORT;
  10585.                                  hvps    : HVPS)
  10586.                                            return USHORT;
  10587.  
  10588.    function VioGetOrg(psRow   : PSHORT;
  10589.                       psColumn: PSHORT;
  10590.                       hvps    : HVPS)
  10591.                                 return USHORT;
  10592.  
  10593.    function VioQueryFonts(plRemfonts    : PLONG;
  10594.                           afmMetrics    : PFONTMETRICS;
  10595.                           lMetricsLength: LONG;
  10596.                           plFonts       : PLONG;
  10597.                           pszFacename   : PSZ;
  10598.                           flOptions     : ULONG;
  10599.                           hvps          : HVPS)
  10600.                                           return USHORT;
  10601.  
  10602.    function VioQuerySetIds(allcids: PLONG;
  10603.                            pNames : PSTR8;
  10604.                            alTypes: PLONG;
  10605.                            lcount : LONG;
  10606.                            hvps   : HVPS)
  10607.                                     return USHORT;
  10608.  
  10609.    function VioSetDeviceCellSize(sHeight: SHORT;
  10610.                                  sWidth : SHORT;
  10611.                                  hvps   : HVPS)
  10612.                                           return USHORT;
  10613.  
  10614.    function VioSetOrg(sRow   : SHORT;
  10615.                       sColumn: SHORT;
  10616.                       hvps   : HVPS)
  10617.                                return USHORT;
  10618.  
  10619.    function VioShowPS(sDepth  : SHORT;
  10620.                       sWidth  : SHORT;
  10621.                       soffCell: SHORT;
  10622.                       hvps    : HVPS)
  10623.                                 return USHORT;
  10624.  
  10625.    function WinDefAVioWindowProc(hwnd: HWND;
  10626.                                  msg : USHORT;
  10627.                                  mp1 : ULONG;
  10628.                                  mp2 : ULONG)
  10629.                                        return MRESULT;
  10630.  
  10631. private
  10632.  
  10633.     pragma Import(C, DosErrClass, "DosErrClass");
  10634.  
  10635.     pragma Import(C, DosError, "DosError");
  10636.  
  10637.     pragma Import(C, DosFreeModule, "DosFreeModule");
  10638.  
  10639.     pragma Import(C, DosLoadModule, "DosLoadModule");
  10640.  
  10641.     pragma Import(C, DosQueryModuleHandle, "DosQueryModuleHandle");
  10642.  
  10643.     pragma Import(C, DosQueryModuleName, "DosQueryModuleName");
  10644.  
  10645.     pragma Import(C, DosQueryProcAddr, "DosQueryProcAddr");
  10646.  
  10647.     pragma Import(C, DosQueryProcType, "DosQueryProcType");
  10648.  
  10649.     pragma Import(C, DosFreeResource, "DosFreeResource");
  10650.  
  10651.     pragma Import(C, DosGetResource, "DosGetResource");
  10652.  
  10653.     pragma Import(C, DosQueryResourceSize, "DosQueryResourceSize");
  10654.  
  10655.     pragma Import(C, DosBeep, "DosBeep");
  10656.  
  10657.     pragma Import(C, WinCancelShutdown, "WinCancelShutdown");
  10658.  
  10659.     pragma Import(C, WinCreateMsgQueue, "WinCreateMsgQueue");
  10660.  
  10661.     pragma Import(C, WinDestroyMsgQueue, "WinDestroyMsgQueue");
  10662.  
  10663.     pragma Import(C, WinDispatchMsg, "WinDispatchMsg");
  10664.  
  10665.     pragma Import(C, WinGetMsg, "WinGetMsg");
  10666.  
  10667.     pragma Import(C, WinPeekMsg, "WinPeekMsg");
  10668.  
  10669.     pragma Import(C, WinPostMsg, "WinPostMsg");
  10670.  
  10671.     pragma Import(C, WinQueryQueueInfo, "WinQueryQueueInfo");
  10672.  
  10673.     pragma Import(C, WinRegisterUserDatatype, "WinRegisterUserDatatype");
  10674.  
  10675.     pragma Import(C, WinRegisterUserMsg, "WinRegisterUserMsg");
  10676.  
  10677.     pragma Import(C, WinSendMsg, "WinSendMsg");
  10678.  
  10679.     pragma Import(C, WinSetMsgMode, "WinSetMsgMode");
  10680.  
  10681.     pragma Import(C, WinSetSynchroMode, "WinSetSynchroMode");
  10682.  
  10683.     pragma Import(C, WinCreateWindow, "WinCreateWindow");
  10684.  
  10685.     pragma Import(C, WinDrawBitmap, "WinDrawBitmap");
  10686.  
  10687.     pragma Import(C, WinDrawBorder, "WinDrawBorder");
  10688.  
  10689.     pragma Import(C, WinDrawText, "WinDrawText");
  10690.  
  10691.     pragma Import(C, WinEnableWindow, "WinEnableWindow");
  10692.  
  10693.     pragma Import(C, WinEnableWindowUpdate, "WinEnableWindowUpdate");
  10694.  
  10695.     pragma Import(C, WinInvalidateRect, "WinInvalidateRect");
  10696.  
  10697.     pragma Import(C, WinInvalidateRegion, "WinInvalidateRegion");
  10698.  
  10699.     pragma Import(C, WinInvertRect, "WinInvertRect");
  10700.  
  10701.     pragma Import(C, WinIsChild, "WinIsChild");
  10702.  
  10703.     pragma Import(C, WinIsWindow, "WinIsWindow");
  10704.  
  10705.     pragma Import(C, WinIsWindowEnabled, "WinIsWindowEnabled");
  10706.  
  10707.     pragma Import(C, WinIsWindowVisible, "WinIsWindowVisible");
  10708.  
  10709.     pragma Import(C, WinLoadMessage, "WinLoadMessage");
  10710.  
  10711.     pragma Import(C, WinLoadString, "WinLoadString");
  10712.  
  10713.     pragma Import(C, WinMultWindowFromIDs, "WinMultWindowFromIDs");
  10714.  
  10715.     pragma Import(C, WinQueryDesktopWindow, "WinQueryDesktopWindow");
  10716.  
  10717.     pragma Import(C, WinQueryObjectWindow, "WinQueryObjectWindow");
  10718.  
  10719.     pragma Import(C, WinQueryPointer, "WinQueryPointer");
  10720.  
  10721.     pragma Import(C, WinQueryWindow, "WinQueryWindow");
  10722.  
  10723.     pragma Import(C, WinQueryWindowPos, "WinQueryWindowPos");
  10724.  
  10725.     pragma Import(C, WinQueryWindowProcess, "WinQueryWindowProcess");
  10726.  
  10727.     pragma Import(C, WinQueryWindowText, "WinQueryWindowText");
  10728.  
  10729.     pragma Import(C, WinQueryWindowTextLength, "WinQueryWindowTextLength");
  10730.  
  10731.     pragma Import(C, WinSetMultWindowPos, "WinSetMultWindowPos");
  10732.  
  10733.     pragma Import(C, WinSetOwner, "WinSetOwner");
  10734.  
  10735.     pragma Import(C, WinSetParent, "WinSetParent");
  10736.  
  10737.     pragma Import(C, WinSetWindowPos, "WinSetWindowPos");
  10738.  
  10739.     pragma Import(C, WinSetWindowText, "WinSetWindowText");
  10740.  
  10741.     pragma Import(C, WinUpdateWindow, "WinUpdateWindow");
  10742.  
  10743.     pragma Import(C, WinWindowFromID, "WinWindowFromID");
  10744.  
  10745.     pragma Import(C, WinCreateStdWindow, "WinCreateStdWindow");
  10746.  
  10747.     pragma Import(C, WinCalcFrameRect, "WinCalcFrameRect");
  10748.  
  10749.     pragma Import(C, WinCreateFrameControls, "WinCreateFrameControls");
  10750.  
  10751.     pragma Import(C, WinFlashWindow, "WinFlashWindow");
  10752.  
  10753.     pragma Import(C, WinGetMaxPosition, "WinGetMaxPosition");
  10754.  
  10755.     pragma Import(C, WinGetMinPosition, "WinGetMinPosition");
  10756.  
  10757.     pragma Import(C, WinSaveWindowPos, "WinSaveWindowPos");
  10758.  
  10759.     pragma Import(C, WinBeginPaint, "WinBeginPaint");
  10760.  
  10761.     pragma Import(C, WinDefWindowProc, "WinDefWindowProc");
  10762.  
  10763.     pragma Import(C, WinDestroyWindow, "WinDestroyWindow");
  10764.  
  10765.     pragma Import(C, WinEndPaint, "WinEndPaint");
  10766.  
  10767.     pragma Import(C, WinFillRect, "WinFillRect");
  10768.  
  10769.     pragma Import(C, WinGetClipPS, "WinGetClipPS");
  10770.  
  10771.     pragma Import(C, WinGetPS, "WinGetPS");
  10772.  
  10773.     pragma Import(C, WinInitialize, "WinInitialize");
  10774.  
  10775.     pragma Import(C, WinIsWindowShowing, "WinIsWindowShowing");
  10776.  
  10777.     pragma Import(C, WinOpenWindowDC, "WinOpenWindowDC");
  10778.  
  10779.     pragma Import(C, WinQueryAnchorBlock, "WinQueryAnchorBlock");
  10780.  
  10781.     pragma Import(C, WinQueryVersion, "WinQueryVersion");
  10782.  
  10783.     pragma Import(C, WinQueryWindowRect, "WinQueryWindowRect");
  10784.  
  10785.     pragma Import(C, WinRegisterClass, "WinRegisterClass");
  10786.  
  10787.     pragma Import(C, WinReleasePS, "WinReleasePS");
  10788.  
  10789.     pragma Import(C, WinScrollWindow, "WinScrollWindow");
  10790.  
  10791.     pragma Import(C, WinSetActiveWindow, "WinSetActiveWindow");
  10792.  
  10793.     pragma Import(C, WinShowWindow, "WinShowWindow");
  10794.  
  10795.     pragma Import(C, WinTerminate, "WinTerminate");
  10796.  
  10797.     pragma Import(C, WinBeginEnumWindows, "WinBeginEnumWindows");
  10798.  
  10799.     pragma Import(C, WinEndEnumWindows, "WinEndEnumWindows");
  10800.  
  10801.     pragma Import(C, WinExcludeUpdateRegion, "WinExcludeUpdateRegion");
  10802.  
  10803.     pragma Import(C, WinGetNextWindow, "WinGetNextWindow");
  10804.  
  10805.     pragma Import(C, WinGetScreenPS, "WinGetScreenPS");
  10806.  
  10807.     pragma Import(C, WinIsThreadActive, "WinIsThreadActive");
  10808.  
  10809.     pragma Import(C, WinLockVisRegions, "WinLockVisRegions");
  10810.  
  10811.     pragma Import(C, WinLockWindowUpdate, "WinLockWindowUpdate");
  10812.  
  10813.     pragma Import(C, WinMapWindowPoints, "WinMapWindowPoints");
  10814.  
  10815.     pragma Import(C, WinQueryActiveWindow, "WinQueryActiveWindow");
  10816.  
  10817.     pragma Import(C, WinQueryClassInfo, "WinQueryClassInfo");
  10818.  
  10819.     pragma Import(C, WinQueryClassName, "WinQueryClassName");
  10820.  
  10821.     pragma Import(C, WinQueryUpdateRect, "WinQueryUpdateRect");
  10822.  
  10823.     pragma Import(C, WinQueryUpdateRegion, "WinQueryUpdateRegion");
  10824.  
  10825.     pragma Import(C, WinQuerySysModalWindow, "WinQuerySysModalWindow");
  10826.  
  10827.     pragma Import(C, WinQueryWindowDC, "WinQueryWindowDC");
  10828.  
  10829.     pragma Import(C, WinQueryWindowPtr, "WinQueryWindowPtr");
  10830.  
  10831.     pragma Import(C, WinQueryWindowULong, "WinQueryWindowULong");
  10832.  
  10833.     pragma Import(C, WinQueryWindowUShort, "WinQueryWindowUShort");
  10834.  
  10835.     pragma Import(C, WinSetSysModalWindow, "WinSetSysModalWindow");
  10836.  
  10837.     pragma Import(C, WinSetWindowBits, "WinSetWindowBits");
  10838.  
  10839.     pragma Import(C, WinSetWindowPtr, "WinSetWindowPtr");
  10840.  
  10841.     pragma Import(C, WinSetWindowULong, "WinSetWindowULong");
  10842.  
  10843.     pragma Import(C, WinSetWindowUShort, "WinSetWindowUShort");
  10844.  
  10845.     pragma Import(C, WinSubclassWindow, "WinSubclassWindow");
  10846.  
  10847.     pragma Import(C, WinValidateRect, "WinValidateRect");
  10848.  
  10849.     pragma Import(C, WinValidateRegion, "WinValidateRegion");
  10850.  
  10851.     pragma Import(C, WinWindowFromDC, "WinWindowFromDC");
  10852.  
  10853.     pragma Import(C, WinWindowFromPoint, "WinWindowFromPoint");
  10854.  
  10855.     pragma Import(C, WinCopyAccelTable, "WinCopyAccelTable");
  10856.  
  10857.     pragma Import(C, WinCreateAccelTable, "WinCreateAccelTable");
  10858.  
  10859.     pragma Import(C, WinDestroyAccelTable, "WinDestroyAccelTable");
  10860.  
  10861.     pragma Import(C, WinLoadAccelTable, "WinLoadAccelTable");
  10862.  
  10863.     pragma Import(C, WinQueryAccelTable, "WinQueryAccelTable");
  10864.  
  10865.     pragma Import(C, WinSetAccelTable, "WinSetAccelTable");
  10866.  
  10867.     pragma Import(C, WinTranslateAccel, "WinTranslateAccel");
  10868.  
  10869.     pragma Import(C, WinAddAtom, "WinAddAtom");
  10870.  
  10871.     pragma Import(C, WinCreateAtomTable, "WinCreateAtomTable");
  10872.  
  10873.     pragma Import(C, WinDeleteAtom, "WinDeleteAtom");
  10874.  
  10875.     pragma Import(C, WinDestroyAtomTable, "WinDestroyAtomTable");
  10876.  
  10877.     pragma Import(C, WinFindAtom, "WinFindAtom");
  10878.  
  10879.     pragma Import(C, WinQueryAtomLength, "WinQueryAtomLength");
  10880.  
  10881.     pragma Import(C, WinQueryAtomName, "WinQueryAtomName");
  10882.  
  10883.     pragma Import(C, WinQueryAtomUsage, "WinQueryAtomUsage");
  10884.  
  10885.     pragma Import(C, WinQuerySystemAtomTable, "WinQuerySystemAtomTable");
  10886.  
  10887.     pragma Import(C, WinCloseClipbrd, "WinCloseClipbrd");
  10888.  
  10889.     pragma Import(C, WinEmptyClipbrd, "WinEmptyClipbrd");
  10890.  
  10891.     pragma Import(C, WinEnumClipbrdFmts, "WinEnumClipbrdFmts");
  10892.  
  10893.     pragma Import(C, WinOpenClipbrd, "WinOpenClipbrd");
  10894.  
  10895.     pragma Import(C, WinQueryClipbrdData, "WinQueryClipbrdData");
  10896.  
  10897.     pragma Import(C, WinQueryClipbrdFmtInfo, "WinQueryClipbrdFmtInfo");
  10898.  
  10899.     pragma Import(C, WinQueryClipbrdOwner, "WinQueryClipbrdOwner");
  10900.  
  10901.     pragma Import(C, WinQueryClipbrdViewer, "WinQueryClipbrdViewer");
  10902.  
  10903.     pragma Import(C, WinSetClipbrdData, "WinSetClipbrdData");
  10904.  
  10905.     pragma Import(C, WinSetClipbrdOwner, "WinSetClipbrdOwner");
  10906.  
  10907.     pragma Import(C, WinSetClipbrdViewer, "WinSetClipbrdViewer");
  10908.  
  10909.     pragma Import(C, WinDdeInitiate, "WinDdeInitiate");
  10910.  
  10911.     pragma Import(C, WinDdePostMsg, "WinDdePostMsg");
  10912.  
  10913.     pragma Import(C, WinDdeRespond, "WinDdeRespond");
  10914.  
  10915.     pragma Import(C, WinCompareStrings, "WinCompareStrings");
  10916.  
  10917.     pragma Import(C, WinCpTranslateChar, "WinCpTranslateChar");
  10918.  
  10919.     pragma Import(C, WinCpTranslateString, "WinCpTranslateString");
  10920.  
  10921.     pragma Import(C, WinNextChar, "WinNextChar");
  10922.  
  10923.     pragma Import(C, WinPrevChar, "WinPrevChar");
  10924.  
  10925.     pragma Import(C, WinQueryCp, "WinQueryCp");
  10926.  
  10927.     pragma Import(C, WinQueryCpList, "WinQueryCpList");
  10928.  
  10929.     pragma Import(C, WinSetCp, "WinSetCp");
  10930.  
  10931.     pragma Import(C, WinUpper, "WinUpper");
  10932.  
  10933.     pragma Import(C, WinUpperChar, "WinUpperChar");
  10934.  
  10935.     pragma Import(C, WinCreateCursor, "WinCreateCursor");
  10936.  
  10937.     pragma Import(C, WinDestroyCursor, "WinDestroyCursor");
  10938.  
  10939.     pragma Import(C, WinShowCursor, "WinShowCursor");
  10940.  
  10941.     pragma Import(C, WinQueryCursorInfo, "WinQueryCursorInfo");
  10942.  
  10943.     pragma Import(C, WinQueryDesktopBkgnd, "WinQueryDesktopBkgnd");
  10944.  
  10945.     pragma Import(C, WinSetDesktopBkgnd, "WinSetDesktopBkgnd");
  10946.  
  10947.     pragma Import(C, WinAlarm, "WinAlarm");
  10948.  
  10949.     pragma Import(C, WinDefDlgProc, "WinDefDlgProc");
  10950.  
  10951.     pragma Import(C, WinDismissDlg, "WinDismissDlg");
  10952.  
  10953.     pragma Import(C, WinDlgBox, "WinDlgBox");
  10954.  
  10955.     pragma Import(C, WinGetDlgMsg, "WinGetDlgMsg");
  10956.  
  10957.     pragma Import(C, WinLoadDlg, "WinLoadDlg");
  10958.  
  10959.     pragma Import(C, WinMessageBox, "WinMessageBox");
  10960.  
  10961.     pragma Import(C, WinQueryDlgItemShort, "WinQueryDlgItemShort");
  10962.  
  10963.     pragma Import(C, WinQueryDlgItemText, "WinQueryDlgItemText");
  10964.  
  10965.     pragma Import(C, WinQueryDlgItemTextLength, "WinQueryDlgItemTextLength");
  10966.  
  10967.     pragma Import(C, WinSetDlgItemShort, "WinSetDlgItemShort");
  10968.  
  10969.     pragma Import(C, WinSetDlgItemText, "WinSetDlgItemText");
  10970.  
  10971.     pragma Import(C, WinCreateDlg, "WinCreateDlg");
  10972.  
  10973.     pragma Import(C, WinEnumDlgItem, "WinEnumDlgItem");
  10974.  
  10975.     pragma Import(C, WinMapDlgPoints, "WinMapDlgPoints");
  10976.  
  10977.     pragma Import(C, WinProcessDlg, "WinProcessDlg");
  10978.  
  10979.     pragma Import(C, WinSendDlgItemMsg, "WinSendDlgItemMsg");
  10980.  
  10981.     pragma Import(C, WinSubstituteStrings, "WinSubstituteStrings");
  10982.  
  10983.     pragma Import(C, WinGetLastError, "WinGetLastError");
  10984.  
  10985.     pragma Import(C, WinFreeErrorInfo, "WinFreeErrorInfo");
  10986.  
  10987.     pragma Import(C, WinGetErrorInfo, "WinGetErrorInfo");
  10988.  
  10989.     pragma Import(C, WinCallMsgFilter, "WinCallMsgFilter");
  10990.  
  10991.     pragma Import(C, WinReleaseHook, "WinReleaseHook");
  10992.  
  10993.     pragma Import(C, WinSetHook, "WinSetHook");
  10994.  
  10995.     pragma Import(C, WinFocusChange, "WinFocusChange");
  10996.  
  10997.     pragma Import(C, WinLockupSystem, "WinLockupSystem");
  10998.  
  10999.     pragma Import(C, WinSetFocus, "WinSetFocus");
  11000.  
  11001.     pragma Import(C, WinUnlockSystem, "WinUnlockSystem");
  11002.  
  11003.     pragma Import(C, WinCheckInput, "WinCheckInput");
  11004.  
  11005.     pragma Import(C, WinEnablePhysInput, "WinEnablePhysInput");
  11006.  
  11007.     pragma Import(C, WinGetKeyState, "WinGetKeyState");
  11008.  
  11009.     pragma Import(C, WinGetPhysKeyState, "WinGetPhysKeyState");
  11010.  
  11011.     pragma Import(C, WinIsPhysInputEnabled, "WinIsPhysInputEnabled");
  11012.  
  11013.     pragma Import(C, WinQueryCapture, "WinQueryCapture");
  11014.  
  11015.     pragma Import(C, WinQueryFocus, "WinQueryFocus");
  11016.  
  11017.     pragma Import(C, WinQueryVisibleRegion, "WinQueryVisibleRegion");
  11018.  
  11019.     pragma Import(C, WinSetCapture, "WinSetCapture");
  11020.  
  11021.     pragma Import(C, WinSetKeyboardStateTable, "WinSetKeyboardStateTable");
  11022.  
  11023.     pragma Import(C, WinSetVisibleRegionNotify, "WinSetVisibleRegionNotify");
  11024.  
  11025.     pragma Import(C, WinDeleteLibrary, "WinDeleteLibrary");
  11026.  
  11027.     pragma Import(C, WinDeleteProcedure, "WinDeleteProcedure");
  11028.  
  11029.     pragma Import(C, WinLoadLibrary, "WinLoadLibrary");
  11030.  
  11031.     pragma Import(C, WinLoadProcedure, "WinLoadProcedure");
  11032.  
  11033.     pragma Import(C, WinCreateMenu, "WinCreateMenu");
  11034.  
  11035.     pragma Import(C, WinLoadMenu, "WinLoadMenu");
  11036.  
  11037.     pragma Import(C, WinPopupMenu, "WinPopupMenu");
  11038.  
  11039.     pragma Import(C, WinBroadcastMsg, "WinBroadcastMsg");
  11040.  
  11041.     pragma Import(C, WinInSendMsg, "WinInSendMsg");
  11042.  
  11043.     pragma Import(C, WinPostQueueMsg, "WinPostQueueMsg");
  11044.  
  11045.     pragma Import(C, WinQueryMsgPos, "WinQueryMsgPos");
  11046.  
  11047.     pragma Import(C, WinQueryMsgTime, "WinQueryMsgTime");
  11048.  
  11049.     pragma Import(C, WinQueryQueueStatus, "WinQueryQueueStatus");
  11050.  
  11051.     pragma Import(C, WinRequestMutexSem, "WinRequestMutexSem");
  11052.  
  11053.     pragma Import(C, WinSetClassMsgInterest, "WinSetClassMsgInterest");
  11054.  
  11055.     pragma Import(C, WinSetMsgInterest, "WinSetMsgInterest");
  11056.  
  11057.     pragma Import(C, WinWaitEventSem, "WinWaitEventSem");
  11058.  
  11059.     pragma Import(C, WinWaitMsg, "WinWaitMsg");
  11060.  
  11061.     pragma Import(C, WinWaitMuxWaitSem, "WinWaitMuxWaitSem");
  11062.  
  11063.     pragma Import(C, WinRealizePalette, "WinRealizePalette");
  11064.  
  11065.     pragma Import(C, WinCreatePointer, "WinCreatePointer");
  11066.  
  11067.     pragma Import(C, WinCreatePointerIndirect, "WinCreatePointerIndirect");
  11068.  
  11069.     pragma Import(C, WinDestroyPointer, "WinDestroyPointer");
  11070.  
  11071.     pragma Import(C, WinDrawPointer, "WinDrawPointer");
  11072.  
  11073.     pragma Import(C, WinGetSysBitmap, "WinGetSysBitmap");
  11074.  
  11075.     pragma Import(C, WinLoadPointer, "WinLoadPointer");
  11076.  
  11077.     pragma Import(C, WinLockPointerUpdate, "WinLockPointerUpdate");
  11078.  
  11079.     pragma Import(C, WinQueryPointerPos, "WinQueryPointerPos");
  11080.  
  11081.     pragma Import(C, WinQueryPointerInfo, "WinQueryPointerInfo");
  11082.  
  11083.     pragma Import(C, WinQuerySysPointer, "WinQuerySysPointer");
  11084.  
  11085.     pragma Import(C, WinQuerySysPointerData, "WinQuerySysPointerData");
  11086.  
  11087.     pragma Import(C, WinSetPointer, "WinSetPointer");
  11088.  
  11089.     pragma Import(C, WinSetPointerOwner, "WinSetPointerOwner");
  11090.  
  11091.     pragma Import(C, WinSetPointerPos, "WinSetPointerPos");
  11092.  
  11093.     pragma Import(C, WinSetSysPointerData, "WinSetSysPointerData");
  11094.  
  11095.     pragma Import(C, WinShowPointer, "WinShowPointer");
  11096.  
  11097.     pragma Import(C, WinCopyRect, "WinCopyRect");
  11098.  
  11099.     pragma Import(C, WinEqualRect, "WinEqualRect");
  11100.  
  11101.     pragma Import(C, WinInflateRect, "WinInflateRect");
  11102.  
  11103.     pragma Import(C, WinIntersectRect, "WinIntersectRect");
  11104.  
  11105.     pragma Import(C, WinIsRectEmpty, "WinIsRectEmpty");
  11106.  
  11107.     pragma Import(C, WinMakePoints, "WinMakePoints");
  11108.  
  11109.     pragma Import(C, WinMakeRect, "WinMakeRect");
  11110.  
  11111.     pragma Import(C, WinOffsetRect, "WinOffsetRect");
  11112.  
  11113.     pragma Import(C, WinPtInRect, "WinPtInRect");
  11114.  
  11115.     pragma Import(C, WinSetRect, "WinSetRect");
  11116.  
  11117.     pragma Import(C, WinSetRectEmpty, "WinSetRectEmpty");
  11118.  
  11119.     pragma Import(C, WinSubtractRect, "WinSubtractRect");
  11120.  
  11121.     pragma Import(C, WinUnionRect, "WinUnionRect");
  11122.  
  11123.     pragma Import(C, WinQueryPresParam, "WinQueryPresParam");
  11124.  
  11125.     pragma Import(C, WinQuerySysColor, "WinQuerySysColor");
  11126.  
  11127.     pragma Import(C, WinQuerySysValue, "WinQuerySysValue");
  11128.  
  11129.     pragma Import(C, WinRemovePresParam, "WinRemovePresParam");
  11130.  
  11131.     pragma Import(C, WinSetPresParam, "WinSetPresParam");
  11132.  
  11133.     pragma Import(C, WinSetSysColors, "WinSetSysColors");
  11134.  
  11135.     pragma Import(C, WinSetSysValue, "WinSetSysValue");
  11136.  
  11137.     pragma Import(C, WinQueryClassThunkProc, "WinQueryClassThunkProc");
  11138.  
  11139.     pragma Import(C, WinQueryWindowModel, "WinQueryWindowModel");
  11140.  
  11141.     pragma Import(C, WinQueryWindowThunkProc, "WinQueryWindowThunkProc");
  11142.  
  11143.     pragma Import(C, WinSetClassThunkProc, "WinSetClassThunkProc");
  11144.  
  11145.     pragma Import(C, WinSetWindowThunkProc, "WinSetWindowThunkProc");
  11146.  
  11147.     pragma Import(C, WinGetCurrentTime, "WinGetCurrentTime");
  11148.  
  11149.     pragma Import(C, WinStartTimer, "WinStartTimer");
  11150.  
  11151.     pragma Import(C, WinStopTimer, "WinStopTimer");
  11152.  
  11153.     pragma Import(C, WinShowTrackRect, "WinShowTrackRect");
  11154.  
  11155.     pragma Import(C, WinTrackRect, "WinTrackRect");
  11156.  
  11157.     pragma Import(C, GpiAnimatePalette, "GpiAnimatePalette");
  11158.  
  11159.     pragma Import(C, GpiAssociate, "GpiAssociate");
  11160.  
  11161.     pragma Import(C, GpiBeginArea, "GpiBeginArea");
  11162.  
  11163.     pragma Import(C, GpiBeginElement, "GpiBeginElement");
  11164.  
  11165.     pragma Import(C, GpiBeginPath, "GpiBeginPath");
  11166.  
  11167.     pragma Import(C, GpiBitBlt, "GpiBitBlt");
  11168.  
  11169.     pragma Import(C, GpiBox, "GpiBox");
  11170.  
  11171.     pragma Import(C, GpiCallSegmentMatrix, "GpiCallSegmentMatrix");
  11172.  
  11173.     pragma Import(C, GpiCharString, "GpiCharString");
  11174.  
  11175.     pragma Import(C, GpiCharStringAt, "GpiCharStringAt");
  11176.  
  11177.     pragma Import(C, GpiCharStringPos, "GpiCharStringPos");
  11178.  
  11179.     pragma Import(C, GpiCharStringPosAt, "GpiCharStringPosAt");
  11180.  
  11181.     pragma Import(C, GpiCloseFigure, "GpiCloseFigure");
  11182.  
  11183.     pragma Import(C, GpiCloseSegment, "GpiCloseSegment");
  11184.  
  11185.     pragma Import(C, GpiCombineRegion, "GpiCombineRegion");
  11186.  
  11187.     pragma Import(C, GpiComment, "GpiComment");
  11188.  
  11189.     pragma Import(C, GpiConvert, "GpiConvert");
  11190.  
  11191.     pragma Import(C, GpiConvertWithMatrix, "GpiConvertWithMatrix");
  11192.  
  11193.     pragma Import(C, GpiCopyMetaFile, "GpiCopyMetaFile");
  11194.  
  11195.     pragma Import(C, GpiCorrelateChain, "GpiCorrelateChain");
  11196.  
  11197.     pragma Import(C, GpiCorrelateFrom, "GpiCorrelateFrom");
  11198.  
  11199.     pragma Import(C, GpiCorrelateSegment, "GpiCorrelateSegment");
  11200.  
  11201.     pragma Import(C, GpiCreateBitmap, "GpiCreateBitmap");
  11202.  
  11203.     pragma Import(C, GpiCreateLogColorTable, "GpiCreateLogColorTable");
  11204.  
  11205.     pragma Import(C, GpiCreateLogFont, "GpiCreateLogFont");
  11206.  
  11207.     pragma Import(C, GpiCreatePalette, "GpiCreatePalette");
  11208.  
  11209.     pragma Import(C, GpiCreatePS, "GpiCreatePS");
  11210.  
  11211.     pragma Import(C, GpiCreateRegion, "GpiCreateRegion");
  11212.  
  11213.     pragma Import(C, GpiDeleteBitmap, "GpiDeleteBitmap");
  11214.  
  11215.     pragma Import(C, GpiDeleteElement, "GpiDeleteElement");
  11216.  
  11217.     pragma Import(C, GpiDeleteElementRange, "GpiDeleteElementRange");
  11218.  
  11219.     pragma Import(C, GpiDeleteElementsBetweenLabels, "GpiDeleteElementsBetweenLabels");
  11220.  
  11221.     pragma Import(C, GpiDeleteMetaFile, "GpiDeleteMetaFile");
  11222.  
  11223.     pragma Import(C, GpiDeletePalette, "GpiDeletePalette");
  11224.  
  11225.     pragma Import(C, GpiDeleteSegment, "GpiDeleteSegment");
  11226.  
  11227.     pragma Import(C, GpiDeleteSegments, "GpiDeleteSegments");
  11228.  
  11229.     pragma Import(C, GpiDeleteSetId, "GpiDeleteSetId");
  11230.  
  11231.     pragma Import(C, GpiDestroyPS, "GpiDestroyPS");
  11232.  
  11233.     pragma Import(C, GpiDestroyRegion, "GpiDestroyRegion");
  11234.  
  11235.     pragma Import(C, GpiDrawBits, "GpiDrawBits");
  11236.  
  11237.     pragma Import(C, GpiDrawChain, "GpiDrawChain");
  11238.  
  11239.     pragma Import(C, GpiDrawDynamics, "GpiDrawDynamics");
  11240.  
  11241.     pragma Import(C, GpiDrawFrom, "GpiDrawFrom");
  11242.  
  11243.     pragma Import(C, GpiDrawSegment, "GpiDrawSegment");
  11244.  
  11245.     pragma Import(C, GpiElement, "GpiElement");
  11246.  
  11247.     pragma Import(C, GpiEndArea, "GpiEndArea");
  11248.  
  11249.     pragma Import(C, GpiEndElement, "GpiEndElement");
  11250.  
  11251.     pragma Import(C, GpiEndPath, "GpiEndPath");
  11252.  
  11253.     pragma Import(C, GpiEqualRegion, "GpiEqualRegion");
  11254.  
  11255.     pragma Import(C, GpiErase, "GpiErase");
  11256.  
  11257.     pragma Import(C, GpiErrorSegmentData, "GpiErrorSegmentData");
  11258.  
  11259.     pragma Import(C, GpiExcludeClipRectangle, "GpiExcludeClipRectangle");
  11260.  
  11261.     pragma Import(C, GpiFillPath, "GpiFillPath");
  11262.  
  11263.     pragma Import(C, GpiFloodFill, "GpiFloodFill");
  11264.  
  11265.     pragma Import(C, GpiFrameRegion, "GpiFrameRegion");
  11266.  
  11267.     pragma Import(C, GpiFullArc, "GpiFullArc");
  11268.  
  11269.     pragma Import(C, GpiGetData, "GpiGetData");
  11270.  
  11271.     pragma Import(C, GpiImage, "GpiImage");
  11272.  
  11273.     pragma Import(C, GpiIntersectClipRectangle, "GpiIntersectClipRectangle");
  11274.  
  11275.     pragma Import(C, GpiLabel, "GpiLabel");
  11276.  
  11277.     pragma Import(C, GpiLine, "GpiLine");
  11278.  
  11279.     pragma Import(C, GpiLoadBitmap, "GpiLoadBitmap");
  11280.  
  11281.     pragma Import(C, GpiLoadFonts, "GpiLoadFonts");
  11282.  
  11283.     pragma Import(C, GpiLoadMetaFile, "GpiLoadMetaFile");
  11284.  
  11285.     pragma Import(C, GpiLoadPublicFonts, "GpiLoadPublicFonts");
  11286.  
  11287.     pragma Import(C, GpiMarker, "GpiMarker");
  11288.  
  11289.     pragma Import(C, GpiModifyPath, "GpiModifyPath");
  11290.  
  11291.     pragma Import(C, GpiMove, "GpiMove");
  11292.  
  11293.     pragma Import(C, GpiOffsetClipRegion, "GpiOffsetClipRegion");
  11294.  
  11295.     pragma Import(C, GpiOffsetElementPointer, "GpiOffsetElementPointer");
  11296.  
  11297.     pragma Import(C, GpiOffsetRegion, "GpiOffsetRegion");
  11298.  
  11299.     pragma Import(C, GpiOpenSegment, "GpiOpenSegment");
  11300.  
  11301.     pragma Import(C, GpiOutlinePath, "GpiOutlinePath");
  11302.  
  11303.     pragma Import(C, GpiPaintRegion, "GpiPaintRegion");
  11304.  
  11305.     pragma Import(C, GpiPartialArc, "GpiPartialArc");
  11306.  
  11307.     pragma Import(C, GpiPathToRegion, "GpiPathToRegion");
  11308.  
  11309.     pragma Import(C, GpiPlayMetaFile, "GpiPlayMetaFile");
  11310.  
  11311.     pragma Import(C, GpiPointArc, "GpiPointArc");
  11312.  
  11313.     pragma Import(C, GpiPolyFillet, "GpiPolyFillet");
  11314.  
  11315.     pragma Import(C, GpiPolyFilletSharp, "GpiPolyFilletSharp");
  11316.  
  11317.     pragma Import(C, GpiPolygons, "GpiPolygons");
  11318.  
  11319.     pragma Import(C, GpiPolyLine, "GpiPolyLine");
  11320.  
  11321.     pragma Import(C, GpiPolyLineDisjoint, "GpiPolyLineDisjoint");
  11322.  
  11323.     pragma Import(C, GpiPolyMarker, "GpiPolyMarker");
  11324.  
  11325.     pragma Import(C, GpiPolySpline, "GpiPolySpline");
  11326.  
  11327.     pragma Import(C, GpiPop, "GpiPop");
  11328.  
  11329.     pragma Import(C, GpiPtInRegion, "GpiPtInRegion");
  11330.  
  11331.     pragma Import(C, GpiPtVisible, "GpiPtVisible");
  11332.  
  11333.     pragma Import(C, GpiPutData, "GpiPutData");
  11334.  
  11335.     pragma Import(C, GpiQueryArcParams, "GpiQueryArcParams");
  11336.  
  11337.     pragma Import(C, GpiQueryAttrMode, "GpiQueryAttrMode");
  11338.  
  11339.     pragma Import(C, GpiQueryAttrs, "GpiQueryAttrs");
  11340.  
  11341.     pragma Import(C, GpiQueryBackColor, "GpiQueryBackColor");
  11342.  
  11343.     pragma Import(C, GpiQueryBackMix, "GpiQueryBackMix");
  11344.  
  11345.     pragma Import(C, GpiQueryBitmapBits, "GpiQueryBitmapBits");
  11346.  
  11347.     pragma Import(C, GpiQueryBitmapDimension, "GpiQueryBitmapDimension");
  11348.  
  11349.     pragma Import(C, GpiQueryBitmapHandle, "GpiQueryBitmapHandle");
  11350.  
  11351.     pragma Import(C, GpiQueryBitmapInfoHeader, "GpiQueryBitmapInfoHeader");
  11352.  
  11353.     pragma Import(C, GpiQueryBitmapParameters, "GpiQueryBitmapParameters");
  11354.  
  11355.     pragma Import(C, GpiQueryBoundaryData, "GpiQueryBoundaryData");
  11356.  
  11357.     pragma Import(C, GpiQueryCharAngle, "GpiQueryCharAngle");
  11358.  
  11359.     pragma Import(C, GpiQueryCharBox, "GpiQueryCharBox");
  11360.  
  11361.     pragma Import(C, GpiQueryCharBreakExtra, "GpiQueryCharBreakExtra");
  11362.  
  11363.     pragma Import(C, GpiQueryCharDirection, "GpiQueryCharDirection");
  11364.  
  11365.     pragma Import(C, GpiQueryCharExtra, "GpiQueryCharExtra");
  11366.  
  11367.     pragma Import(C, GpiQueryCharMode, "GpiQueryCharMode");
  11368.  
  11369.     pragma Import(C, GpiQueryCharSet, "GpiQueryCharSet");
  11370.  
  11371.     pragma Import(C, GpiQueryCharShear, "GpiQueryCharShear");
  11372.  
  11373.     pragma Import(C, GpiQueryCharStringPos, "GpiQueryCharStringPos");
  11374.  
  11375.     pragma Import(C, GpiQueryCharStringPosAt, "GpiQueryCharStringPosAt");
  11376.  
  11377.     pragma Import(C, GpiQueryClipBox, "GpiQueryClipBox");
  11378.  
  11379.     pragma Import(C, GpiQueryClipRegion, "GpiQueryClipRegion");
  11380.  
  11381.     pragma Import(C, GpiQueryColor, "GpiQueryColor");
  11382.  
  11383.     pragma Import(C, GpiQueryColorData, "GpiQueryColorData");
  11384.  
  11385.     pragma Import(C, GpiQueryColorIndex, "GpiQueryColorIndex");
  11386.  
  11387.     pragma Import(C, GpiQueryCp, "GpiQueryCp");
  11388.  
  11389.     pragma Import(C, GpiQueryCurrentPosition, "GpiQueryCurrentPosition");
  11390.  
  11391.     pragma Import(C, GpiQueryDefArcParams, "GpiQueryDefArcParams");
  11392.  
  11393.     pragma Import(C, GpiQueryDefAttrs, "GpiQueryDefAttrs");
  11394.  
  11395.     pragma Import(C, GpiQueryDefCharBox, "GpiQueryDefCharBox");
  11396.  
  11397.     pragma Import(C, GpiQueryDefTag, "GpiQueryDefTag");
  11398.  
  11399.     pragma Import(C, GpiQueryDefViewingLimits, "GpiQueryDefViewingLimits");
  11400.  
  11401.     pragma Import(C, GpiQueryDefaultViewMatrix, "GpiQueryDefaultViewMatrix");
  11402.  
  11403.     pragma Import(C, GpiQueryDevice, "GpiQueryDevice");
  11404.  
  11405.     pragma Import(C, GpiQueryDeviceBitmapFormats, "GpiQueryDeviceBitmapFormats");
  11406.  
  11407.     pragma Import(C, GpiQueryDrawControl, "GpiQueryDrawControl");
  11408.  
  11409.     pragma Import(C, GpiQueryDrawingMode, "GpiQueryDrawingMode");
  11410.  
  11411.     pragma Import(C, GpiQueryEditMode, "GpiQueryEditMode");
  11412.  
  11413.     pragma Import(C, GpiQueryElement, "GpiQueryElement");
  11414.  
  11415.     pragma Import(C, GpiQueryElementPointer, "GpiQueryElementPointer");
  11416.  
  11417.     pragma Import(C, GpiQueryElementType, "GpiQueryElementType");
  11418.  
  11419.     pragma Import(C, GpiQueryFaceString, "GpiQueryFaceString");
  11420.  
  11421.     pragma Import(C, GpiQueryFontAction, "GpiQueryFontAction");
  11422.  
  11423.     pragma Import(C, GpiQueryFontFileDescriptions, "GpiQueryFontFileDescriptions");
  11424.  
  11425.     pragma Import(C, GpiQueryFontMetrics, "GpiQueryFontMetrics");
  11426.  
  11427.     pragma Import(C, GpiQueryFonts, "GpiQueryFonts");
  11428.  
  11429.     pragma Import(C, GpiQueryFullFontFileDescs, "GpiQueryFullFontFileDescs");
  11430.  
  11431.     pragma Import(C, GpiQueryGraphicsField, "GpiQueryGraphicsField");
  11432.  
  11433.     pragma Import(C, GpiQueryInitialSegmentAttrs, "GpiQueryInitialSegmentAttrs");
  11434.  
  11435.     pragma Import(C, GpiQueryKerningPairs, "GpiQueryKerningPairs");
  11436.  
  11437.     pragma Import(C, GpiQueryLineEnd, "GpiQueryLineEnd");
  11438.  
  11439.     pragma Import(C, GpiQueryLineJoin, "GpiQueryLineJoin");
  11440.  
  11441.     pragma Import(C, GpiQueryLineType, "GpiQueryLineType");
  11442.  
  11443.     pragma Import(C, GpiQueryLineWidth, "GpiQueryLineWidth");
  11444.  
  11445.     pragma Import(C, GpiQueryLineWidthGeom, "GpiQueryLineWidthGeom");
  11446.  
  11447.     pragma Import(C, GpiQueryLogColorTable, "GpiQueryLogColorTable");
  11448.  
  11449.     pragma Import(C, GpiQueryLogicalFont, "GpiQueryLogicalFont");
  11450.  
  11451.     pragma Import(C, GpiQueryMarker, "GpiQueryMarker");
  11452.  
  11453.     pragma Import(C, GpiQueryMarkerBox, "GpiQueryMarkerBox");
  11454.  
  11455.     pragma Import(C, GpiQueryMarkerSet, "GpiQueryMarkerSet");
  11456.  
  11457.     pragma Import(C, GpiQueryMetaFileBits, "GpiQueryMetaFileBits");
  11458.  
  11459.     pragma Import(C, GpiQueryMetaFileLength, "GpiQueryMetaFileLength");
  11460.  
  11461.     pragma Import(C, GpiQueryMix, "GpiQueryMix");
  11462.  
  11463.     pragma Import(C, GpiQueryModelTransformMatrix, "GpiQueryModelTransformMatrix");
  11464.  
  11465.     pragma Import(C, GpiQueryNearestColor, "GpiQueryNearestColor");
  11466.  
  11467.     pragma Import(C, GpiQueryNumberSetIds, "GpiQueryNumberSetIds");
  11468.  
  11469.     pragma Import(C, GpiQueryPageViewport, "GpiQueryPageViewport");
  11470.  
  11471.     pragma Import(C, GpiQueryPalette, "GpiQueryPalette");
  11472.  
  11473.     pragma Import(C, GpiQueryPaletteInfo, "GpiQueryPaletteInfo");
  11474.  
  11475.     pragma Import(C, GpiQueryPS, "GpiQueryPS");
  11476.  
  11477.     pragma Import(C, GpiQueryPattern, "GpiQueryPattern");
  11478.  
  11479.     pragma Import(C, GpiQueryPatternRefPoint, "GpiQueryPatternRefPoint");
  11480.  
  11481.     pragma Import(C, GpiQueryPatternSet, "GpiQueryPatternSet");
  11482.  
  11483.     pragma Import(C, GpiQueryPel, "GpiQueryPel");
  11484.  
  11485.     pragma Import(C, GpiQueryPickAperturePosition, "GpiQueryPickAperturePosition");
  11486.  
  11487.     pragma Import(C, GpiQueryPickApertureSize, "GpiQueryPickApertureSize");
  11488.  
  11489.     pragma Import(C, GpiQueryRealColors, "GpiQueryRealColors");
  11490.  
  11491.     pragma Import(C, GpiQueryRegionBox, "GpiQueryRegionBox");
  11492.  
  11493.     pragma Import(C, GpiQueryRegionRects, "GpiQueryRegionRects");
  11494.  
  11495.     pragma Import(C, GpiQueryRGBColor, "GpiQueryRGBColor");
  11496.  
  11497.     pragma Import(C, GpiQuerySegmentAttrs, "GpiQuerySegmentAttrs");
  11498.  
  11499.     pragma Import(C, GpiQuerySegmentNames, "GpiQuerySegmentNames");
  11500.  
  11501.     pragma Import(C, GpiQuerySegmentPriority, "GpiQuerySegmentPriority");
  11502.  
  11503.     pragma Import(C, GpiQuerySegmentTransformMatrix, "GpiQuerySegmentTransformMatrix");
  11504.  
  11505.     pragma Import(C, GpiQuerySetIds, "GpiQuerySetIds");
  11506.  
  11507.     pragma Import(C, GpiQueryStopDraw, "GpiQueryStopDraw");
  11508.  
  11509.     pragma Import(C, GpiQueryTag, "GpiQueryTag");
  11510.  
  11511.     pragma Import(C, GpiQueryTextAlignment, "GpiQueryTextAlignment");
  11512.  
  11513.     pragma Import(C, GpiQueryTextBox, "GpiQueryTextBox");
  11514.  
  11515.     pragma Import(C, GpiQueryViewingLimits, "GpiQueryViewingLimits");
  11516.  
  11517.     pragma Import(C, GpiQueryViewingTransformMatrix, "GpiQueryViewingTransformMatrix");
  11518.  
  11519.     pragma Import(C, GpiQueryWidthTable, "GpiQueryWidthTable");
  11520.  
  11521.     pragma Import(C, GpiRectInRegion, "GpiRectInRegion");
  11522.  
  11523.     pragma Import(C, GpiRectVisible, "GpiRectVisible");
  11524.  
  11525.     pragma Import(C, GpiRemoveDynamics, "GpiRemoveDynamics");
  11526.  
  11527.     pragma Import(C, GpiResetBoundaryData, "GpiResetBoundaryData");
  11528.  
  11529.     pragma Import(C, GpiResetPS, "GpiResetPS");
  11530.  
  11531.     pragma Import(C, GpiRestorePS, "GpiRestorePS");
  11532.  
  11533.     pragma Import(C, GpiRotate, "GpiRotate");
  11534.  
  11535.     pragma Import(C, GpiSaveMetaFile, "GpiSaveMetaFile");
  11536.  
  11537.     pragma Import(C, GpiSavePS, "GpiSavePS");
  11538.  
  11539.     pragma Import(C, GpiScale, "GpiScale");
  11540.  
  11541.     pragma Import(C, GpiSelectPalette, "GpiSelectPalette");
  11542.  
  11543.     pragma Import(C, GpiSetArcParams, "GpiSetArcParams");
  11544.  
  11545.     pragma Import(C, GpiSetAttrMode, "GpiSetAttrMode");
  11546.  
  11547.     pragma Import(C, GpiSetAttrs, "GpiSetAttrs");
  11548.  
  11549.     pragma Import(C, GpiSetBackColor, "GpiSetBackColor");
  11550.  
  11551.     pragma Import(C, GpiSetBackMix, "GpiSetBackMix");
  11552.  
  11553.     pragma Import(C, GpiSetBitmap, "GpiSetBitmap");
  11554.  
  11555.     pragma Import(C, GpiSetBitmapBits, "GpiSetBitmapBits");
  11556.  
  11557.     pragma Import(C, GpiSetBitmapDimension, "GpiSetBitmapDimension");
  11558.  
  11559.     pragma Import(C, GpiSetBitmapId, "GpiSetBitmapId");
  11560.  
  11561.     pragma Import(C, GpiSetCharAngle, "GpiSetCharAngle");
  11562.  
  11563.     pragma Import(C, GpiSetCharBox, "GpiSetCharBox");
  11564.  
  11565.     pragma Import(C, GpiSetCharBreakExtra, "GpiSetCharBreakExtra");
  11566.  
  11567.     pragma Import(C, GpiSetCharDirection, "GpiSetCharDirection");
  11568.  
  11569.     pragma Import(C, GpiSetCharExtra, "GpiSetCharExtra");
  11570.  
  11571.     pragma Import(C, GpiSetCharMode, "GpiSetCharMode");
  11572.  
  11573.     pragma Import(C, GpiSetCharSet, "GpiSetCharSet");
  11574.  
  11575.     pragma Import(C, GpiSetCharShear, "GpiSetCharShear");
  11576.  
  11577.     pragma Import(C, GpiSetClipPath, "GpiSetClipPath");
  11578.  
  11579.     pragma Import(C, GpiSetClipRegion, "GpiSetClipRegion");
  11580.  
  11581.     pragma Import(C, GpiSetColor, "GpiSetColor");
  11582.  
  11583.     pragma Import(C, GpiSetCp, "GpiSetCp");
  11584.  
  11585.     pragma Import(C, GpiSetCurrentPosition, "GpiSetCurrentPosition");
  11586.  
  11587.     pragma Import(C, GpiSetDefArcParams, "GpiSetDefArcParams");
  11588.  
  11589.     pragma Import(C, GpiSetDefAttrs, "GpiSetDefAttrs");
  11590.  
  11591.     pragma Import(C, GpiSetDefaultViewMatrix, "GpiSetDefaultViewMatrix");
  11592.  
  11593.     pragma Import(C, GpiSetDefTag, "GpiSetDefTag");
  11594.  
  11595.     pragma Import(C, GpiSetDefViewingLimits, "GpiSetDefViewingLimits");
  11596.  
  11597.     pragma Import(C, GpiSetDrawControl, "GpiSetDrawControl");
  11598.  
  11599.     pragma Import(C, GpiSetDrawingMode, "GpiSetDrawingMode");
  11600.  
  11601.     pragma Import(C, GpiSetEditMode, "GpiSetEditMode");
  11602.  
  11603.     pragma Import(C, GpiSetElementPointer, "GpiSetElementPointer");
  11604.  
  11605.     pragma Import(C, GpiSetElementPointerAtLabel, "GpiSetElementPointerAtLabel");
  11606.  
  11607.     pragma Import(C, GpiSetGraphicsField, "GpiSetGraphicsField");
  11608.  
  11609.     pragma Import(C, GpiSetInitialSegmentAttrs, "GpiSetInitialSegmentAttrs");
  11610.  
  11611.     pragma Import(C, GpiSetLineEnd, "GpiSetLineEnd");
  11612.  
  11613.     pragma Import(C, GpiSetLineJoin, "GpiSetLineJoin");
  11614.  
  11615.     pragma Import(C, GpiSetLineType, "GpiSetLineType");
  11616.  
  11617.     pragma Import(C, GpiSetLineWidth, "GpiSetLineWidth");
  11618.  
  11619.     pragma Import(C, GpiSetLineWidthGeom, "GpiSetLineWidthGeom");
  11620.  
  11621.     pragma Import(C, GpiSetMarker, "GpiSetMarker");
  11622.  
  11623.     pragma Import(C, GpiSetMarkerBox, "GpiSetMarkerBox");
  11624.  
  11625.     pragma Import(C, GpiSetMarkerSet, "GpiSetMarkerSet");
  11626.  
  11627.     pragma Import(C, GpiSetMetaFileBits, "GpiSetMetaFileBits");
  11628.  
  11629.     pragma Import(C, GpiSetMix, "GpiSetMix");
  11630.  
  11631.     pragma Import(C, GpiSetModelTransformMatrix, "GpiSetModelTransformMatrix");
  11632.  
  11633.     pragma Import(C, GpiSetPageViewport, "GpiSetPageViewport");
  11634.  
  11635.     pragma Import(C, GpiSetPaletteEntries, "GpiSetPaletteEntries");
  11636.  
  11637.     pragma Import(C, GpiSetPattern, "GpiSetPattern");
  11638.  
  11639.     pragma Import(C, GpiSetPatternRefPoint, "GpiSetPatternRefPoint");
  11640.  
  11641.     pragma Import(C, GpiSetPatternSet, "GpiSetPatternSet");
  11642.  
  11643.     pragma Import(C, GpiSetPel, "GpiSetPel");
  11644.  
  11645.     pragma Import(C, GpiSetPickAperturePosition, "GpiSetPickAperturePosition");
  11646.  
  11647.     pragma Import(C, GpiSetPickApertureSize, "GpiSetPickApertureSize");
  11648.  
  11649.     pragma Import(C, GpiSetPS, "GpiSetPS");
  11650.  
  11651.     pragma Import(C, GpiSetRegion, "GpiSetRegion");
  11652.  
  11653.     pragma Import(C, GpiSetSegmentAttrs, "GpiSetSegmentAttrs");
  11654.  
  11655.     pragma Import(C, GpiSetSegmentPriority, "GpiSetSegmentPriority");
  11656.  
  11657.     pragma Import(C, GpiSetSegmentTransformMatrix, "GpiSetSegmentTransformMatrix");
  11658.  
  11659.     pragma Import(C, GpiSetStopDraw, "GpiSetStopDraw");
  11660.  
  11661.     pragma Import(C, GpiSetTag, "GpiSetTag");
  11662.  
  11663.     pragma Import(C, GpiSetTextAlignment, "GpiSetTextAlignment");
  11664.  
  11665.     pragma Import(C, GpiSetViewingLimits, "GpiSetViewingLimits");
  11666.  
  11667.     pragma Import(C, GpiSetViewingTransformMatrix, "GpiSetViewingTransformMatrix");
  11668.  
  11669.     pragma Import(C, GpiStrokePath, "GpiStrokePath");
  11670.  
  11671.     pragma Import(C, GpiTranslate, "GpiTranslate");
  11672.  
  11673.     pragma Import(C, GpiUnloadFonts, "GpiUnloadFonts");
  11674.  
  11675.     pragma Import(C, GpiUnloadPublicFonts, "GpiUnloadPublicFonts");
  11676.  
  11677.     pragma Import(C, GpiWCBitBlt, "GpiWCBitBlt");
  11678.  
  11679.     pragma Import(C, DevCloseDC, "DevCloseDC");
  11680.  
  11681.     pragma Import(C, DevEscape, "DevEscape");
  11682.  
  11683.     pragma Import(C, DevOpenDC, "DevOpenDC");
  11684.  
  11685.     pragma Import(C, DevPostDeviceModes, "DevPostDeviceModes");
  11686.  
  11687.     pragma Import(C, DevQueryCaps, "DevQueryCaps");
  11688.  
  11689.     pragma Import(C, DevQueryDeviceNames, "DevQueryDeviceNames");
  11690.  
  11691.     pragma Import(C, DevQueryHardcopyCaps, "DevQueryHardcopyCaps");
  11692.  
  11693.     pragma Import(C, PrfAddProgram, "PrfAddProgram");
  11694.  
  11695.     pragma Import(C, PrfChangeProgram, "PrfChangeProgram");
  11696.  
  11697.     pragma Import(C, PrfCreateGroup, "PrfCreateGroup");
  11698.  
  11699.     pragma Import(C, PrfDestroyGroup, "PrfDestroyGroup");
  11700.  
  11701.     pragma Import(C, PrfQueryProgramCategory, "PrfQueryProgramCategory");
  11702.  
  11703.     pragma Import(C, PrfQueryProgramHandle, "PrfQueryProgramHandle");
  11704.  
  11705.     pragma Import(C, PrfQueryProgramTitles, "PrfQueryProgramTitles");
  11706.  
  11707.     pragma Import(C, PrfQueryDefinition, "PrfQueryDefinition");
  11708.  
  11709.     pragma Import(C, PrfRemoveProgram, "PrfRemoveProgram");
  11710.  
  11711.     pragma Import(C, WinStartApp, "WinStartApp");
  11712.  
  11713.     pragma Import(C, WinTerminateApp, "WinTerminateApp");
  11714.  
  11715.     pragma Import(C, WinAddSwitchEntry, "WinAddSwitchEntry");
  11716.  
  11717.     pragma Import(C, WinRemoveSwitchEntry, "WinRemoveSwitchEntry");
  11718.  
  11719.     pragma Import(C, WinChangeSwitchEntry, "WinChangeSwitchEntry");
  11720.  
  11721.     pragma Import(C, WinCreateSwitchEntry, "WinCreateSwitchEntry");
  11722.  
  11723.     pragma Import(C, WinQuerySessionTitle, "WinQuerySessionTitle");
  11724.  
  11725.     pragma Import(C, WinQuerySwitchEntry, "WinQuerySwitchEntry");
  11726.  
  11727.     pragma Import(C, WinQuerySwitchHandle, "WinQuerySwitchHandle");
  11728.  
  11729.     pragma Import(C, WinQuerySwitchList, "WinQuerySwitchList");
  11730.  
  11731.     pragma Import(C, WinQueryTaskSizePos, "WinQueryTaskSizePos");
  11732.  
  11733.     pragma Import(C, WinQueryTaskTitle, "WinQueryTaskTitle");
  11734.  
  11735.     pragma Import(C, WinSwitchToProgram, "WinSwitchToProgram");
  11736.  
  11737.     pragma Import(C, PrfCloseProfile, "PrfCloseProfile");
  11738.  
  11739.     pragma Import(C, PrfOpenProfile, "PrfOpenProfile");
  11740.  
  11741.     pragma Import(C, PrfQueryProfile, "PrfQueryProfile");
  11742.  
  11743.     pragma Import(C, PrfQueryProfileData, "PrfQueryProfileData");
  11744.  
  11745.     pragma Import(C, PrfQueryProfileInt, "PrfQueryProfileInt");
  11746.  
  11747.     pragma Import(C, PrfQueryProfileSize, "PrfQueryProfileSize");
  11748.  
  11749.     pragma Import(C, PrfQueryProfileString, "PrfQueryProfileString");
  11750.  
  11751.     pragma Import(C, PrfReset, "PrfReset");
  11752.  
  11753.     pragma Import(C, PrfWriteProfileData, "PrfWriteProfileData");
  11754.  
  11755.     pragma Import(C, PrfWriteProfileString, "PrfWriteProfileString");
  11756.  
  11757.     pragma Import(C, WinDefFileDlgProc, "WinDefFileDlgProc");
  11758.  
  11759.     pragma Import(C, WinFileDlg, "WinFileDlg");
  11760.  
  11761.     pragma Import(C, WinFreeFileDlgList, "WinFreeFileDlgList");
  11762.  
  11763.     pragma Import(C, WinFontDlg, "WinFontDlg");
  11764.  
  11765.     pragma Import(C, WinDefFontDlgProc, "WinDefFontDlgProc");
  11766.  
  11767.     pragma Import(C, DrgAcceptDroppedFiles, "DrgAcceptDroppedFiles");
  11768.  
  11769.     pragma Import(C, DrgAccessDraginfo, "DrgAccessDraginfo");
  11770.  
  11771.     pragma Import(C, DrgAddStrHandle, "DrgAddStrHandle");
  11772.  
  11773.     pragma Import(C, DrgAllocDraginfo, "DrgAllocDraginfo");
  11774.  
  11775.     pragma Import(C, DrgAllocDragtransfer, "DrgAllocDragtransfer");
  11776.  
  11777.     pragma Import(C, DrgDeleteDraginfoStrHandles, "DrgDeleteDraginfoStrHandles");
  11778.  
  11779.     pragma Import(C, DrgDeleteStrHandle, "DrgDeleteStrHandle");
  11780.  
  11781.     pragma Import(C, DrgDrag, "DrgDrag");
  11782.  
  11783.     pragma Import(C, DrgDragFiles, "DrgDragFiles");
  11784.  
  11785.     pragma Import(C, DrgFreeDraginfo, "DrgFreeDraginfo");
  11786.  
  11787.     pragma Import(C, DrgFreeDragtransfer, "DrgFreeDragtransfer");
  11788.  
  11789.     pragma Import(C, DrgGetPS, "DrgGetPS");
  11790.  
  11791.     pragma Import(C, DrgPostTransferMsg, "DrgPostTransferMsg");
  11792.  
  11793.     pragma Import(C, DrgPushDraginfo, "DrgPushDraginfo");
  11794.  
  11795.     pragma Import(C, DrgQueryDragitem, "DrgQueryDragitem");
  11796.  
  11797.     pragma Import(C, DrgQueryDragitemCount, "DrgQueryDragitemCount");
  11798.  
  11799.     pragma Import(C, DrgQueryDragitemPtr, "DrgQueryDragitemPtr");
  11800.  
  11801.     pragma Import(C, DrgQueryNativeRMF, "DrgQueryNativeRMF");
  11802.  
  11803.     pragma Import(C, DrgQueryNativeRMFLen, "DrgQueryNativeRMFLen");
  11804.  
  11805.     pragma Import(C, DrgQueryStrName, "DrgQueryStrName");
  11806.  
  11807.     pragma Import(C, DrgQueryStrNameLen, "DrgQueryStrNameLen");
  11808.  
  11809.     pragma Import(C, DrgQueryTrueType, "DrgQueryTrueType");
  11810.  
  11811.     pragma Import(C, DrgQueryTrueTypeLen, "DrgQueryTrueTypeLen");
  11812.  
  11813.     pragma Import(C, DrgReleasePS, "DrgReleasePS");
  11814.  
  11815.     pragma Import(C, DrgSendTransferMsg, "DrgSendTransferMsg");
  11816.  
  11817.     pragma Import(C, DrgSetDragImage, "DrgSetDragImage");
  11818.  
  11819.     pragma Import(C, DrgSetDragitem, "DrgSetDragitem");
  11820.  
  11821.     pragma Import(C, DrgSetDragPointer, "DrgSetDragPointer");
  11822.  
  11823.     pragma Import(C, DrgVerifyNativeRMF, "DrgVerifyNativeRMF");
  11824.  
  11825.     pragma Import(C, DrgVerifyRMF, "DrgVerifyRMF");
  11826.  
  11827.     pragma Import(C, DrgVerifyTrueType, "DrgVerifyTrueType");
  11828.  
  11829.     pragma Import(C, DrgVerifyType, "DrgVerifyType");
  11830.  
  11831.     pragma Import(C, DrgVerifyTypeSet, "DrgVerifyTypeSet");
  11832.  
  11833.     pragma Import(C, WinCreateObject, "WinCreateObject");
  11834.  
  11835.     pragma Import(C, WinDeregisterObjectClass, "WinDeregisterObjectClass");
  11836.  
  11837.     pragma Import(C, WinDestroyObject, "WinDestroyObject");
  11838.  
  11839.     pragma Import(C, WinEnumObjectClasses, "WinEnumObjectClasses");
  11840.  
  11841.     pragma Import(C, WinQueryObject, "WinQueryObject");
  11842.  
  11843.     pragma Import(C, WinRegisterObjectClass, "WinRegisterObjectClass");
  11844.  
  11845.     pragma Import(C, WinReplaceObjectClass, "WinReplaceObjectClass");
  11846.  
  11847.     pragma Import(C, WinSetObjectData, "WinSetObjectData");
  11848.  
  11849.     pragma Import(C, WinFreeFileIcon, "WinFreeFileIcon");
  11850.  
  11851.     pragma Import(C, WinLoadFileIcon, "WinLoadFileIcon");
  11852.  
  11853.     pragma Import(C, WinRestoreWindowPos, "WinRestoreWindowPos");
  11854.  
  11855.     pragma Import(C, WinSetFileIcon, "WinSetFileIcon");
  11856.  
  11857.     pragma Import(C, WinShutdownSystem, "WinShutdownSystem");
  11858.  
  11859.     pragma Import(C, WinStoreWindowPos, "WinStoreWindowPos");
  11860.  
  11861.     pragma Import(C, SplStdClose, "SplStdClose");
  11862.  
  11863.     pragma Import(C, SplStdDelete, "SplStdDelete");
  11864.  
  11865.     pragma Import(C, SplStdGetBits, "SplStdGetBits");
  11866.  
  11867.     pragma Import(C, SplStdOpen, "SplStdOpen");
  11868.  
  11869.     pragma Import(C, SplStdQueryLength, "SplStdQueryLength");
  11870.  
  11871.     pragma Import(C, SplStdStart, "SplStdStart");
  11872.  
  11873.     pragma Import(C, SplStdStop, "SplStdStop");
  11874.  
  11875.     pragma Import(C, SplControlDevice, "SplControlDevice");
  11876.  
  11877.     pragma Import(C, SplCopyJob, "SplCopyJob");
  11878.  
  11879.     pragma Import(C, SplCreateDevice, "SplCreateDevice");
  11880.  
  11881.     pragma Import(C, SplCreateQueue, "SplCreateQueue");
  11882.  
  11883.     pragma Import(C, SplDeleteDevice, "SplDeleteDevice");
  11884.  
  11885.     pragma Import(C, SplDeleteJob, "SplDeleteJob");
  11886.  
  11887.     pragma Import(C, SplDeleteQueue, "SplDeleteQueue");
  11888.  
  11889.     pragma Import(C, SplEnumDevice, "SplEnumDevice");
  11890.  
  11891.     pragma Import(C, SplEnumDriver, "SplEnumDriver");
  11892.  
  11893.     pragma Import(C, SplEnumJob, "SplEnumJob");
  11894.  
  11895.     pragma Import(C, SplEnumPort, "SplEnumPort");
  11896.  
  11897.     pragma Import(C, SplEnumPrinter, "SplEnumPrinter");
  11898.  
  11899.     pragma Import(C, SplEnumQueue, "SplEnumQueue");
  11900.  
  11901.     pragma Import(C, SplEnumQueueProcessor, "SplEnumQueueProcessor");
  11902.  
  11903.     pragma Import(C, SplHoldJob, "SplHoldJob");
  11904.  
  11905.     pragma Import(C, SplHoldQueue, "SplHoldQueue");
  11906.  
  11907.     pragma Import(C, SplPurgeQueue, "SplPurgeQueue");
  11908.  
  11909.     pragma Import(C, SplQueryDevice, "SplQueryDevice");
  11910.  
  11911.     pragma Import(C, SplQueryJob, "SplQueryJob");
  11912.  
  11913.     pragma Import(C, SplQueryQueue, "SplQueryQueue");
  11914.  
  11915.     pragma Import(C, SplReleaseJob, "SplReleaseJob");
  11916.  
  11917.     pragma Import(C, SplReleaseQueue, "SplReleaseQueue");
  11918.  
  11919.     pragma Import(C, SplSetDevice, "SplSetDevice");
  11920.  
  11921.     pragma Import(C, SplSetJob, "SplSetJob");
  11922.  
  11923.     pragma Import(C, SplSetQueue, "SplSetQueue");
  11924.  
  11925.     pragma Import(C, SplMessageBox, "SplMessageBox");
  11926.  
  11927.     pragma Import(C, SplQmAbort, "SplQmAbort");
  11928.  
  11929.     pragma Import(C, SplQmAbortDoc, "SplQmAbortDoc");
  11930.  
  11931.     pragma Import(C, SplQmClose, "SplQmClose");
  11932.  
  11933.     pragma Import(C, SplQmEndDoc, "SplQmEndDoc");
  11934.  
  11935.     pragma Import(C, SplQmOpen, "SplQmOpen");
  11936.  
  11937.     pragma Import(C, SplQmStartDoc, "SplQmStartDoc");
  11938.  
  11939.     pragma Import(C, SplQmWrite, "SplQmWrite");
  11940.  
  11941.     pragma Import(C, WinAssociateHelpInstance, "WinAssociateHelpInstance");
  11942.  
  11943.     pragma Import(C, WinCreateHelpInstance, "WinCreateHelpInstance");
  11944.  
  11945.     pragma Import(C, WinCreateHelpTable, "WinCreateHelpTable");
  11946.  
  11947.     pragma Import(C, WinDestroyHelpInstance, "WinDestroyHelpInstance");
  11948.  
  11949.     pragma Import(C, WinLoadHelpTable, "WinLoadHelpTable");
  11950.  
  11951.     pragma Import(C, WinQueryHelpInstance, "WinQueryHelpInstance");
  11952.  
  11953.     pragma Import(C, DdfBeginList, "DdfBeginList");
  11954.  
  11955.     pragma Import(C, DdfBitmap, "DdfBitmap");
  11956.  
  11957.     pragma Import(C, DdfEndList, "DdfEndList");
  11958.  
  11959.     pragma Import(C, DdfHyperText, "DdfHyperText");
  11960.  
  11961.     pragma Import(C, DdfInform, "DdfInform");
  11962.  
  11963.     pragma Import(C, DdfInitialize, "DdfInitialize");
  11964.  
  11965.     pragma Import(C, DdfListItem, "DdfListItem");
  11966.  
  11967.     pragma Import(C, DdfMetafile, "DdfMetafile");
  11968.  
  11969.     pragma Import(C, DdfPara, "DdfPara");
  11970.  
  11971.     pragma Import(C, DdfSetColor, "DdfSetColor");
  11972.  
  11973.     pragma Import(C, DdfSetFont, "DdfSetFont");
  11974.  
  11975.     pragma Import(C, DdfSetFontStyle, "DdfSetFontStyle");
  11976.  
  11977.     pragma Import(C, DdfSetFormat, "DdfSetFormat");
  11978.  
  11979.     pragma Import(C, DdfSetTextAlign, "DdfSetTextAlign");
  11980.  
  11981.     pragma Import(C, DdfText, "DdfText");
  11982.  
  11983.     pragma Import(C, VioAssociate, "VioAssociate");
  11984.  
  11985.     pragma Import(C, VioCreateLogFont, "VioCreateLogFont");
  11986.  
  11987.     pragma Import(C, VioCreatePS, "VioCreatePS");
  11988.  
  11989.     pragma Import(C, VioDeleteSetId, "VioDeleteSetId");
  11990.  
  11991.     pragma Import(C, VioDestroyPS, "VioDestroyPS");
  11992.  
  11993.     pragma Import(C, VioGetDeviceCellSize, "VioGetDeviceCellSize");
  11994.  
  11995.     pragma Import(C, VioGetOrg, "VioGetOrg");
  11996.  
  11997.     pragma Import(C, VioQueryFonts, "VioQueryFonts");
  11998.  
  11999.     pragma Import(C, VioQuerySetIds, "VioQuerySetIds");
  12000.  
  12001.     pragma Import(C, VioSetDeviceCellSize, "VioSetDeviceCellSize");
  12002.  
  12003.     pragma Import(C, VioSetOrg, "VioSetOrg");
  12004.  
  12005.     pragma Import(C, VioShowPS, "VioShowPS");
  12006.  
  12007.     pragma Import(C, WinDefAVioWindowProc, "WinDefAVioWindowProc");
  12008.  
  12009. end OS2;
  12010.  
  12011. -- eof
  12012.