home *** CD-ROM | disk | FTP | other *** search
/ Solo Programadores 22 / SOLO_22.iso / packages / win32ada / data.z / win32-winbase.ads < prev    next >
Encoding:
Text File  |  1996-03-15  |  353.4 KB  |  6,004 lines

  1. -- $Source: /home/harp/1/proto/monoBANK/winnt/win32-winbase.ads,v $ 
  2. -- $Revision: 1.16 $ $Date: 96/03/15 12:56:38 $ $Author: stm $ 
  3. -- See end of file for Copyright (c) information.
  4.  
  5. with Ada.Unchecked_Conversion;
  6. with Stdarg;
  7. with Win32.Strings;
  8. with Win32.Windef;
  9. with Win32.Winnt;
  10.  
  11. package Win32.Winbase is
  12.  
  13.     INVALID_HANDLE_VALUE          : constant Win32.Winnt.HANDLE;  
  14.                                                             -- winbase.h:57
  15.     INVALID_FILE_SIZE             : constant DWORD := 16#ffffffff#;
  16.                                                             -- winbase.h:58
  17.     FILE_BEGIN                    : constant := 0;          -- winbase.h:60
  18.     FILE_CURRENT                  : constant := 1;          -- winbase.h:61
  19.     FILE_END                      : constant := 2;          -- winbase.h:62
  20.     TIME_ZONE_ID_INVALID          : constant DWORD := 16#ffffffff#;
  21.                                                             -- winbase.h:64
  22.     WAIT_FAILED                   : constant DWORD := 16#ffffffff#;
  23.                                                             --winbase.h:66
  24.     WAIT_OBJECT_0                 : DWORD renames Win32.Winnt.STATUS_WAIT_0;
  25.                                                             --winbase.h:67
  26.     WAIT_ABANDONED                : DWORD renames 
  27.                                     Win32.Winnt.STATUS_ABANDONED_WAIT_0;
  28.                                                             --winbase.h:79
  29.     WAIT_ABANDONED_0              : DWORD renames 
  30.                                     Win32.Winnt.STATUS_ABANDONED_WAIT_0;
  31.                                                             --winbase.h:80
  32.     WAIT_TIMEOUT                  : DWORD renames 
  33.                                     Win32.Winnt.STATUS_TIMEOUT;
  34.                                                             --winbase.h:72
  35.     WAIT_IO_COMPLETION            : DWORD renames 
  36.                                     Win32.Winnt.STATUS_USER_APC;
  37.                                                             --winbase.h:73
  38.     STILL_ACTIVE                  : DWORD renames 
  39.                                     Win32.Winnt.STATUS_PENDING;
  40.                                                             --winbase.h:74
  41.     EXCEPTION_ACCESS_VIOLATION    : DWORD renames 
  42.                                     Win32.Winnt.STATUS_ACCESS_VIOLATION;
  43.                                                             --winbase.h:75
  44.     EXCEPTION_DATATYPE_MISALIGNMENT   : DWORD renames Win32.Winnt.
  45.                                         STATUS_DATATYPE_MISALIGNMENT;
  46.                                                             --winbase.h:76
  47.     EXCEPTION_BREAKPOINT          : DWORD renames Win32.Winnt.
  48.                                     STATUS_BREAKPOINT;
  49.                                                             --winbase.h:77
  50.     EXCEPTION_SINGLE_STEP         : DWORD renames
  51.                                     Win32.Winnt.STATUS_SINGLE_STEP;
  52.                                                             --winbase.h:78
  53.     EXCEPTION_ARRAY_BOUNDS_EXCEEDED   : DWORD renames Win32.Winnt.
  54.                                         STATUS_ARRAY_BOUNDS_EXCEEDED;
  55.                                                             --winbase.h:79
  56.     EXCEPTION_FLT_DENORMAL_OPERAND: DWORD renames Win32.Winnt.
  57.                                     STATUS_FLOAT_DENORMAL_OPERAND;
  58.                                                             -- winbase.h:80
  59.     EXCEPTION_FLT_DIVIDE_BY_ZERO  : DWORD renames
  60.                                     Win32.Winnt.STATUS_FLOAT_DIVIDE_BY_ZERO;
  61.                                                             --winbase.h:81
  62.     EXCEPTION_FLT_INEXACT_RESULT  : DWORD renames
  63.                                     Win32.Winnt.STATUS_FLOAT_INEXACT_RESULT;
  64.                                                             --winbase.h:82
  65.     EXCEPTION_FLT_INVALID_OPERATION   : DWORD renames Win32.Winnt.
  66.                                         STATUS_FLOAT_INVALID_OPERATION;
  67.                                                             --winbase.h:83
  68.     EXCEPTION_FLT_OVERFLOW        : DWORD renames
  69.                                     Win32.Winnt.STATUS_FLOAT_OVERFLOW;
  70.                                                             --winbase.h:84
  71.     EXCEPTION_FLT_STACK_CHECK     : DWORD renames
  72.                                     Win32.Winnt.STATUS_FLOAT_STACK_CHECK;
  73.                                                             --winbase.h:85
  74.     EXCEPTION_FLT_UNDERFLOW       : DWORD renames
  75.                                     Win32.Winnt.STATUS_FLOAT_UNDERFLOW;
  76.                                                             --winbase.h:86
  77.     EXCEPTION_INT_DIVIDE_BY_ZERO  : DWORD renames Win32.Winnt.
  78.                                     STATUS_INTEGER_DIVIDE_BY_ZERO;
  79.                                                             --winbase.h:87
  80.     EXCEPTION_INT_OVERFLOW        : DWORD renames
  81.                                     Win32.Winnt.STATUS_INTEGER_OVERFLOW;
  82.                                                             --winbase.h:88
  83.     EXCEPTION_PRIV_INSTRUCTION    : DWORD renames Win32.Winnt.
  84.                                     STATUS_PRIVILEGED_INSTRUCTION;
  85.                                                             --winbase.h:89
  86.     EXCEPTION_IN_PAGE_ERROR       : DWORD renames
  87.                                     Win32.Winnt.STATUS_IN_PAGE_ERROR;
  88.                                                             --winbase.h:90
  89.     EXCEPTION_ILLEGAL_INSTRUCTION : DWORD renames
  90.                                     Win32.Winnt.STATUS_ILLEGAL_INSTRUCTION;
  91.                                                             --winbase.h:91
  92.     EXCEPTION_NONCONTINUABLE_EXCEPTION: DWORD renames Win32.Winnt.
  93.                                         STATUS_NONCONTINUABLE_EXCEPTION;
  94.                                                             --winbase.h:92
  95.     EXCEPTION_STACK_OVERFLOW      : DWORD renames 
  96.                                     Win32.Winnt.STATUS_STACK_OVERFLOW;
  97.                                                             --winbase.h:93
  98.     EXCEPTION_INVALID_DISPOSITION : DWORD renames 
  99.                                     Win32.Winnt.STATUS_INVALID_DISPOSITION;
  100.                                                             --winbase.h:94
  101.     EXCEPTION_GUARD_PAGE          : DWORD renames 
  102.                                     Win32.Winnt.STATUS_GUARD_PAGE_VIOLATION;
  103.                                                             --winbase.h:95
  104.     CONTROL_C_EXIT                : DWORD renames
  105.                                     Win32.Winnt.STATUS_CONTROL_C_EXIT;
  106.                                                             --winbase.h:96
  107.     FILE_FLAG_WRITE_THROUGH       : constant := 16#80000000#;
  108.                                                             -- winbase.h:107
  109.     FILE_FLAG_OVERLAPPED          : constant := 16#40000000#;
  110.                                                             -- winbase.h:108
  111.     FILE_FLAG_NO_BUFFERING        : constant := 16#20000000#;
  112.                                                             -- winbase.h:109
  113.     FILE_FLAG_RANDOM_ACCESS       : constant := 16#10000000#;
  114.                                                             -- winbase.h:110
  115.     FILE_FLAG_SEQUENTIAL_SCAN     : constant := 16#8000000#;-- winbase.h:111
  116.     FILE_FLAG_DELETE_ON_CLOSE     : constant := 16#4000000#;-- winbase.h:112
  117.     FILE_FLAG_BACKUP_SEMANTICS    : constant := 16#2000000#;-- winbase.h:113
  118.     FILE_FLAG_POSIX_SEMANTICS     : constant := 16#1000000#;-- winbase.h:114
  119.     CREATE_NEW                    : constant := 1;          -- winbase.h:116
  120.     CREATE_ALWAYS                 : constant := 2;          -- winbase.h:117
  121.     OPEN_EXISTING                 : constant := 3;          -- winbase.h:118
  122.     OPEN_ALWAYS                   : constant := 4;          -- winbase.h:119
  123.     TRUNCATE_EXISTING             : constant := 5;          -- winbase.h:120
  124.     PIPE_ACCESS_INBOUND           : constant := 16#1#;      -- winbase.h:131
  125.     PIPE_ACCESS_OUTBOUND          : constant := 16#2#;      -- winbase.h:132
  126.     PIPE_ACCESS_DUPLEX            : constant := 16#3#;      -- winbase.h:133
  127.     PIPE_CLIENT_END               : constant := 16#0#;      -- winbase.h:139
  128.     PIPE_SERVER_END               : constant := 16#1#;      -- winbase.h:140
  129.     PIPE_WAIT                     : constant := 16#0#;      -- winbase.h:146
  130.     PIPE_NOWAIT                   : constant := 16#1#;      -- winbase.h:147
  131.     PIPE_READMODE_BYTE            : constant := 16#0#;      -- winbase.h:148
  132.     PIPE_READMODE_MESSAGE         : constant := 16#2#;      -- winbase.h:149
  133.     PIPE_TYPE_BYTE                : constant := 16#0#;      -- winbase.h:150
  134.     PIPE_TYPE_MESSAGE             : constant := 16#4#;      -- winbase.h:151
  135.     PIPE_UNLIMITED_INSTANCES      : constant := 255;        -- winbase.h:157
  136.     SECURITY_ANONYMOUS            : constant := Win32.Winnt.
  137.                                         SECURITY_IMPERSONATION_LEVEL'Pos(
  138.                                         Win32.Winnt.SecurityAnonymous) * 2**16; 
  139.                                                             -- winbase.h:164
  140.     SECURITY_IDENTIFICATION       : constant := Win32.Winnt.
  141.                                         SECURITY_IMPERSONATION_LEVEL'Pos(
  142.                                         Win32.Winnt.SecurityIdentification) * 
  143.                                         2**16;              -- winbase.h:165
  144.  
  145.     SECURITY_IMPERSONATION        : constant := Win32.Winnt.
  146.                                         SECURITY_IMPERSONATION_LEVEL'Pos(
  147.                                         Win32.Winnt.SecurityImpersonation) *
  148.                                         2**16;              -- winbase.h:166
  149.  
  150.     SECURITY_DELEGATION           : constant := Win32.Winnt.
  151.                                         SECURITY_IMPERSONATION_LEVEL'Pos(
  152.                                         Win32.Winnt.SecurityDelegation)* 2**16;
  153.                                                             -- winbase.h:167
  154.  
  155.     SECURITY_CONTEXT_TRACKING     : constant := 16#40000#;  -- winbase.h:169
  156.     SECURITY_EFFECTIVE_ONLY       : constant := 16#80000#;  -- winbase.h:170
  157.     SECURITY_SQOS_PRESENT         : constant := 16#100000#; -- winbase.h:172
  158.     SECURITY_VALID_SQOS_FLAGS     : constant := 16#1f0000#; -- winbase.h:173
  159.     MUTEX_MODIFY_STATE            : constant := 16#1#;      -- winbase.h:243
  160.     MUTEX_ALL_ACCESS              : constant := 16#1f0001#; -- winbase.h:244
  161.     SP_SERIALCOMM                 : constant DWORD := 16#1#;-- winbase.h:250
  162.     PST_UNSPECIFIED               : constant DWORD := 16#0#;-- winbase.h:256
  163.     PST_RS232                     : constant DWORD := 16#1#;-- winbase.h:257
  164.     PST_PARALLELPORT              : constant DWORD := 16#2#;-- winbase.h:258
  165.     PST_RS422                     : constant DWORD := 16#3#;-- winbase.h:259
  166.     PST_RS423                     : constant DWORD := 16#4#;-- winbase.h:260
  167.     PST_RS449                     : constant DWORD := 16#5#;-- winbase.h:261
  168.     PST_MODEM                     : constant DWORD := 16#6#;-- winbase.h:262
  169.     PST_FAX                       : constant DWORD := 16#21#;
  170.                                                             -- winbase.h:263
  171.     PST_SCANNER                   : constant DWORD := 16#22#;
  172.                                                             -- winbase.h:264
  173.     PST_NETWORK_BRIDGE            : constant DWORD := 16#100#;
  174.                                                             -- winbase.h:265
  175.     PST_LAT                       : constant DWORD := 16#101#;
  176.                                                             -- winbase.h:266
  177.     PST_TCPIP_TELNET              : constant DWORD := 16#102#;
  178.                                                             -- winbase.h:267
  179.     PST_X25                       : constant DWORD := 16#103#;
  180.                                                             -- winbase.h:268
  181.     PCF_DTRDSR                    : constant DWORD := 16#1#;-- winbase.h:275
  182.     PCF_RTSCTS                    : constant DWORD := 16#2#;-- winbase.h:276
  183.     PCF_RLSD                      : constant DWORD := 16#4#;-- winbase.h:277
  184.     PCF_PARITY_CHECK              : constant DWORD := 16#8#;-- winbase.h:278
  185.     PCF_XONXOFF                   : constant DWORD := 16#10#;
  186.                                                             -- winbase.h:279
  187.     PCF_SETXCHAR                  : constant DWORD := 16#20#;
  188.                                                             -- winbase.h:280
  189.     PCF_TOTALTIMEOUTS             : constant DWORD := 16#40#;
  190.                                                             -- winbase.h:281
  191.     PCF_INTTIMEOUTS               : constant DWORD := 16#80#;
  192.                                                             -- winbase.h:282
  193.     PCF_SPECIALCHARS              : constant DWORD := 16#100#;
  194.                                                             -- winbase.h:283
  195.     PCF_16BITMODE                 : constant DWORD := 16#200#;
  196.                                                             -- winbase.h:284
  197.     SP_PARITY                     : constant DWORD := 16#1#;-- winbase.h:290
  198.     SP_BAUD                       : constant DWORD := 16#2#;-- winbase.h:291
  199.     SP_DATABITS                   : constant DWORD := 16#4#;-- winbase.h:292
  200.     SP_STOPBITS                   : constant DWORD := 16#8#;-- winbase.h:293
  201.     SP_HANDSHAKING                : constant DWORD := 16#10#;
  202.                                                             -- winbase.h:294
  203.     SP_PARITY_CHECK               : constant DWORD := 16#20#;
  204.                                                             -- winbase.h:295
  205.     SP_RLSD                       : constant DWORD := 16#40#;
  206.                                                             -- winbase.h:296
  207.     BAUD_075                      : constant DWORD := 16#1#;-- winbase.h:302
  208.     BAUD_110                      : constant DWORD := 16#2#;-- winbase.h:303
  209.     BAUD_134_5                    : constant DWORD := 16#4#;-- winbase.h:304
  210.     BAUD_150                      : constant DWORD := 16#8#;-- winbase.h:305
  211.     BAUD_300                      : constant DWORD := 16#10#;
  212.                                                             -- winbase.h:306
  213.     BAUD_600                      : constant DWORD := 16#20#;
  214.                                                             -- winbase.h:307
  215.     BAUD_1200                     : constant DWORD := 16#40#;
  216.                                                             -- winbase.h:308
  217.     BAUD_1800                     : constant DWORD := 16#80#;
  218.                                                             -- winbase.h:309
  219.     BAUD_2400                     : constant DWORD := 16#100#;
  220.                                                             -- winbase.h:310
  221.     BAUD_4800                     : constant DWORD := 16#200#;
  222.                                                             -- winbase.h:311
  223.     BAUD_7200                     : constant DWORD := 16#400#;
  224.                                                             -- winbase.h:312
  225.     BAUD_9600                     : constant DWORD := 16#800#;
  226.                                                             -- winbase.h:313
  227.     BAUD_14400                    : constant DWORD := 16#1000#;
  228.                                                             -- winbase.h:314
  229.     BAUD_19200                    : constant DWORD := 16#2000#;
  230.                                                             -- winbase.h:315
  231.     BAUD_38400                    : constant DWORD := 16#4000#;
  232.                                                             -- winbase.h:316
  233.     BAUD_56K                      : constant DWORD := 16#8000#;
  234.                                                             -- winbase.h:317
  235.     BAUD_128K                     : constant DWORD := 16#10000#;
  236.                                                             -- winbase.h:318
  237.     BAUD_115200                   : constant DWORD := 16#20000#;
  238.                                                             -- winbase.h:319
  239.     BAUD_57600                    : constant DWORD := 16#40000#;
  240.                                                             -- winbase.h:320
  241.     BAUD_USER                     : constant DWORD := 16#10000000#;
  242.                                                             -- winbase.h:321
  243.     DATABITS_5                    : constant WORD := 16#1#; -- winbase.h:327
  244.     DATABITS_6                    : constant WORD := 16#2#; -- winbase.h:328
  245.     DATABITS_7                    : constant WORD := 16#4#; -- winbase.h:329
  246.     DATABITS_8                    : constant WORD := 16#8#; -- winbase.h:330
  247.     DATABITS_16                   : constant WORD := 16#10#;-- winbase.h:331
  248.     DATABITS_16X                  : constant WORD := 16#20#;-- winbase.h:332
  249.     STOPBITS_10                   : constant WORD := 16#1#; -- winbase.h:338
  250.     STOPBITS_15                   : constant WORD := 16#2#; -- winbase.h:339
  251.     STOPBITS_20                   : constant WORD := 16#4#; -- winbase.h:340
  252.     PARITY_NONE                   : constant WORD := 16#100#;
  253.                                                             -- winbase.h:341
  254.     PARITY_ODD                    : constant WORD := 16#200#;
  255.                                                             -- winbase.h:342
  256.     PARITY_EVEN                   : constant WORD := 16#400#;
  257.                                                             -- winbase.h:343
  258.     PARITY_MARK                   : constant WORD := 16#800#;
  259.                                                             -- winbase.h:344
  260.     PARITY_SPACE                  : constant WORD := 16#1000#;
  261.                                                             -- winbase.h:345
  262.     COMMPROP_INITIALIZED          : constant DWORD := 16#e73cf52e#;
  263.                                                             -- winbase.h:372
  264.     DTR_CONTROL_DISABLE           : constant := 16#0#;      -- winbase.h:390
  265.     DTR_CONTROL_ENABLE            : constant := 16#1#;      -- winbase.h:391
  266.     DTR_CONTROL_HANDSHAKE         : constant := 16#2#;      -- winbase.h:392
  267.     RTS_CONTROL_DISABLE           : constant := 16#0#;      -- winbase.h:397
  268.     RTS_CONTROL_ENABLE            : constant := 16#1#;      -- winbase.h:398
  269.     RTS_CONTROL_HANDSHAKE         : constant := 16#2#;      -- winbase.h:399
  270.     RTS_CONTROL_TOGGLE            : constant := 16#3#;      -- winbase.h:400
  271.     GMEM_FIXED                    : constant := 16#0#;      -- winbase.h:471
  272.     GMEM_MOVEABLE                 : constant := 16#2#;      -- winbase.h:472
  273.     GMEM_NOCOMPACT                : constant := 16#10#;     -- winbase.h:473
  274.     GMEM_NODISCARD                : constant := 16#20#;     -- winbase.h:474
  275.     GMEM_ZEROINIT                 : constant := 16#40#;     -- winbase.h:475
  276.     GMEM_MODIFY                   : constant := 16#80#;     -- winbase.h:476
  277.     GMEM_DISCARDABLE              : constant := 16#100#;    -- winbase.h:477
  278.     GMEM_NOT_BANKED               : constant := 16#1000#;   -- winbase.h:478
  279.     GMEM_SHARE                    : constant := 16#2000#;   -- winbase.h:479
  280.     GMEM_DDESHARE                 : constant := 16#2000#;   -- winbase.h:480
  281.     GMEM_NOTIFY                   : constant := 16#4000#;   -- winbase.h:481
  282.     GMEM_LOWER                    : constant := 16#1000#;   -- winbase.h:482
  283.     GMEM_VALID_FLAGS              : constant := 16#7f72#;   -- winbase.h:483
  284.     GMEM_INVALID_HANDLE           : constant := 16#8000#;   -- winbase.h:484
  285.     GHND                          : constant := 16#42#;     -- winbase.h:486
  286.     GPTR                          : constant := 16#40#;     -- winbase.h:487
  287.     GMEM_DISCARDED                : constant := 16#4000#;   -- winbase.h:494
  288.     GMEM_LOCKCOUNT                : constant := 16#ff#;     -- winbase.h:495
  289.     LMEM_FIXED                    : constant := 16#0#;      -- winbase.h:509
  290.     LMEM_MOVEABLE                 : constant := 16#2#;      -- winbase.h:510
  291.     LMEM_NOCOMPACT                : constant := 16#10#;     -- winbase.h:511
  292.     LMEM_NODISCARD                : constant := 16#20#;     -- winbase.h:512
  293.     LMEM_ZEROINIT                 : constant := 16#40#;     -- winbase.h:513
  294.     LMEM_MODIFY                   : constant := 16#80#;     -- winbase.h:514
  295.     LMEM_DISCARDABLE              : constant := 16#f00#;    -- winbase.h:515
  296.     LMEM_VALID_FLAGS              : constant := 16#f72#;    -- winbase.h:516
  297.     LMEM_INVALID_HANDLE           : constant := 16#8000#;   -- winbase.h:517
  298.     LHND                          : constant := 16#42#;     -- winbase.h:519
  299.     LPTR                          : constant := 16#40#;     -- winbase.h:520
  300.     NONZEROLHND                   : constant := 16#2#;      -- winbase.h:522
  301.     NONZEROLPTR                   : constant := 16#0#;      -- winbase.h:523
  302.     LMEM_DISCARDED                : constant := 16#4000#;   -- winbase.h:528
  303.     LMEM_LOCKCOUNT                : constant := 16#ff#;     -- winbase.h:529
  304.     DEBUG_PROCESS                 : constant := 16#1#;      -- winbase.h:535
  305.     DEBUG_ONLY_THIS_PROCESS       : constant := 16#2#;      -- winbase.h:536
  306.     CREATE_SUSPENDED              : constant := 16#4#;      -- winbase.h:538
  307.     DETACHED_PROCESS              : constant := 16#8#;      -- winbase.h:540
  308.     CREATE_NEW_CONSOLE            : constant := 16#10#;     -- winbase.h:542
  309.     NORMAL_PRIORITY_CLASS         : constant := 16#20#;     -- winbase.h:544
  310.     IDLE_PRIORITY_CLASS           : constant := 16#40#;     -- winbase.h:545
  311.     HIGH_PRIORITY_CLASS           : constant := 16#80#;     -- winbase.h:546
  312.     REALTIME_PRIORITY_CLASS       : constant := 16#100#;    -- winbase.h:547
  313.     CREATE_NEW_PROCESS_GROUP      : constant := 16#200#;    -- winbase.h:549
  314.     CREATE_UNICODE_ENVIRONMENT    : constant := 16#400#;    -- winbase.h:550
  315.     CREATE_SEPARATE_WOW_VDM       : constant := 16#800#;    -- winbase.h:552
  316.     CREATE_DEFAULT_ERROR_MODE     : constant := 16#4000000#;-- winbase.h:554
  317.     CREATE_NO_WINDOW              : constant := 16#8000000#;-- winbase.h:555
  318.     THREAD_PRIORITY_LOWEST        : constant := -2;         -- winbase.h:557
  319.     THREAD_PRIORITY_BELOW_NORMAL  : constant := -1;         -- winbase.h:558
  320.     THREAD_PRIORITY_NORMAL        : constant := 0;          -- winbase.h:559
  321.     THREAD_PRIORITY_HIGHEST       : constant := 2;          -- winbase.h:560
  322.     THREAD_PRIORITY_ABOVE_NORMAL  : constant := 1;          -- winbase.h:561
  323.     THREAD_PRIORITY_ERROR_RETURN  : constant := 16#7fffffff#;
  324.                                                             -- winbase.h:562
  325.     THREAD_PRIORITY_TIME_CRITICAL : constant := 15;         -- winbase.h:564
  326.     THREAD_PRIORITY_IDLE          : constant := -15;        -- winbase.h:565
  327.     EXCEPTION_DEBUG_EVENT         : constant := 1;          -- winbase.h:570
  328.     CREATE_THREAD_DEBUG_EVENT     : constant := 2;          -- winbase.h:571
  329.     CREATE_PROCESS_DEBUG_EVENT    : constant := 3;          -- winbase.h:572
  330.     EXIT_THREAD_DEBUG_EVENT       : constant := 4;          -- winbase.h:573
  331.     EXIT_PROCESS_DEBUG_EVENT      : constant := 5;          -- winbase.h:574
  332.     LOAD_DLL_DEBUG_EVENT          : constant := 6;          -- winbase.h:575
  333.     UNLOAD_DLL_DEBUG_EVENT        : constant := 7;          -- winbase.h:576
  334.     OUTPUT_DEBUG_STRING_EVENT     : constant := 8;          -- winbase.h:577
  335.     RIP_EVENT                     : constant := 9;          -- winbase.h:578
  336.     DRIVE_UNKNOWN                 : constant := 0;          -- winbase.h:658
  337.     DRIVE_NO_ROOT_DIR             : constant := 1;          -- winbase.h:659
  338.     DRIVE_REMOVABLE               : constant := 2;          -- winbase.h:660
  339.     DRIVE_FIXED                   : constant := 3;          -- winbase.h:661
  340.     DRIVE_REMOTE                  : constant := 4;          -- winbase.h:662
  341.     DRIVE_CDROM                   : constant := 5;          -- winbase.h:663
  342.     DRIVE_RAMDISK                 : constant := 6;          -- winbase.h:664
  343.     FILE_TYPE_UNKNOWN             : constant := 16#0#;      -- winbase.h:670
  344.     FILE_TYPE_DISK                : constant := 16#1#;      -- winbase.h:671
  345.     FILE_TYPE_CHAR                : constant := 16#2#;      -- winbase.h:672
  346.     FILE_TYPE_PIPE                : constant := 16#3#;      -- winbase.h:673
  347.     FILE_TYPE_REMOTE              : constant := 16#8000#;   -- winbase.h:674
  348.  
  349.     function To_DWORD is new Ada.Unchecked_Conversion(LONG, DWORD);
  350.     STD_INPUT_HANDLE              : constant DWORD := To_Dword(-10);  
  351.                                                             -- winbase.h:677
  352.     STD_OUTPUT_HANDLE             : constant DWORD := To_Dword(-11);  
  353.                                                             -- winbase.h:678
  354.     STD_ERROR_HANDLE              : constant DWORD := To_Dword(-12);  
  355.                                                             -- winbase.h:679
  356.  
  357.     NOPARITY                      : constant := 0;          -- winbase.h:681
  358.     ODDPARITY                     : constant := 1;          -- winbase.h:682
  359.     EVENPARITY                    : constant := 2;          -- winbase.h:683
  360.     MARKPARITY                    : constant := 3;          -- winbase.h:684
  361.     SPACEPARITY                   : constant := 4;          -- winbase.h:685
  362.     ONESTOPBIT                    : constant := 0;          -- winbase.h:687
  363.     ONE5STOPBITS                  : constant := 1;          -- winbase.h:688
  364.     TWOSTOPBITS                   : constant := 2;          -- winbase.h:689
  365.     IGNORE                        : constant := 0;          -- winbase.h:691
  366.     INFINITE                      : constant := 16#ffffffff#;
  367.                                                             -- winbase.h:692
  368.     CBR_110                       : constant := 110;        -- winbase.h:698
  369.     CBR_300                       : constant := 300;        -- winbase.h:699
  370.     CBR_600                       : constant := 600;        -- winbase.h:700
  371.     CBR_1200                      : constant := 1200;       -- winbase.h:701
  372.     CBR_2400                      : constant := 2400;       -- winbase.h:702
  373.     CBR_4800                      : constant := 4800;       -- winbase.h:703
  374.     CBR_9600                      : constant := 9600;       -- winbase.h:704
  375.     CBR_14400                     : constant := 14400;      -- winbase.h:705
  376.     CBR_19200                     : constant := 19200;      -- winbase.h:706
  377.     CBR_38400                     : constant := 38400;      -- winbase.h:707
  378.     CBR_56000                     : constant := 56000;      -- winbase.h:708
  379.     CBR_57600                     : constant := 57600;      -- winbase.h:709
  380.     CBR_115200                    : constant := 115200;     -- winbase.h:710
  381.     CBR_128000                    : constant := 128000;     -- winbase.h:711
  382.     CBR_256000                    : constant := 256000;     -- winbase.h:712
  383.     CE_RXOVER                     : constant := 16#1#;      -- winbase.h:718
  384.     CE_OVERRUN                    : constant := 16#2#;      -- winbase.h:719
  385.     CE_RXPARITY                   : constant := 16#4#;      -- winbase.h:720
  386.     CE_FRAME                      : constant := 16#8#;      -- winbase.h:721
  387.     CE_BREAK                      : constant := 16#10#;     -- winbase.h:722
  388.     CE_TXFULL                     : constant := 16#100#;    -- winbase.h:723
  389.     CE_PTO                        : constant := 16#200#;    -- winbase.h:724
  390.     CE_IOE                        : constant := 16#400#;    -- winbase.h:725
  391.     CE_DNS                        : constant := 16#800#;    -- winbase.h:726
  392.     CE_OOP                        : constant := 16#1000#;   -- winbase.h:727
  393.     CE_MODE                       : constant := 16#8000#;   -- winbase.h:728
  394.     IE_BADID                      : constant := -1;         -- winbase.h:730
  395.     IE_OPEN                       : constant := -2;         -- winbase.h:731
  396.     IE_NOPEN                      : constant := -3;         -- winbase.h:732
  397.     IE_MEMORY                     : constant := -4;         -- winbase.h:733
  398.     IE_DEFAULT                    : constant := -5;         -- winbase.h:734
  399.     IE_HARDWARE                   : constant := -10;        -- winbase.h:735
  400.     IE_BYTESIZE                   : constant := -11;        -- winbase.h:736
  401.     IE_BAUDRATE                   : constant := -12;        -- winbase.h:737
  402.     EV_RXCHAR                     : constant := 16#1#;      -- winbase.h:743
  403.     EV_RXFLAG                     : constant := 16#2#;      -- winbase.h:744
  404.     EV_TXEMPTY                    : constant := 16#4#;      -- winbase.h:745
  405.     EV_CTS                        : constant := 16#8#;      -- winbase.h:746
  406.     EV_DSR                        : constant := 16#10#;     -- winbase.h:747
  407.     EV_RLSD                       : constant := 16#20#;     -- winbase.h:748
  408.     EV_BREAK                      : constant := 16#40#;     -- winbase.h:749
  409.     EV_ERR                        : constant := 16#80#;     -- winbase.h:750
  410.     EV_RING                       : constant := 16#100#;    -- winbase.h:751
  411.     EV_PERR                       : constant := 16#200#;    -- winbase.h:752
  412.     EV_RX80FULL                   : constant := 16#400#;    -- winbase.h:753
  413.     EV_EVENT1                     : constant := 16#800#;    -- winbase.h:754
  414.     EV_EVENT2                     : constant := 16#1000#;   -- winbase.h:755
  415.     SETXOFF                       : constant := 1;          -- winbase.h:761
  416.     SETXON                        : constant := 2;          -- winbase.h:762
  417.     SETRTS                        : constant := 3;          -- winbase.h:763
  418.     CLRRTS                        : constant := 4;          -- winbase.h:764
  419.     SETDTR                        : constant := 5;          -- winbase.h:765
  420.     CLRDTR                        : constant := 6;          -- winbase.h:766
  421.     RESETDEV                      : constant := 7;          -- winbase.h:767
  422.     SETBREAK                      : constant := 8;          -- winbase.h:768
  423.     CLRBREAK                      : constant := 9;          -- winbase.h:769
  424.     PURGE_TXABORT                 : constant := 16#1#;      -- winbase.h:774
  425.     PURGE_RXABORT                 : constant := 16#2#;      -- winbase.h:775
  426.     PURGE_TXCLEAR                 : constant := 16#4#;      -- winbase.h:776
  427.     PURGE_RXCLEAR                 : constant := 16#8#;      -- winbase.h:777
  428.     LPTX                          : constant := 16#80#;     -- winbase.h:779
  429.     MS_CTS_ON                     : constant DWORD := 16#10#;
  430.                                                             -- winbase.h:784
  431.     MS_DSR_ON                     : constant DWORD := 16#20#;
  432.                                                             -- winbase.h:785
  433.     MS_RING_ON                    : constant DWORD := 16#40#;
  434.                                                             -- winbase.h:786
  435.     MS_RLSD_ON                    : constant DWORD := 16#80#;
  436.                                                             -- winbase.h:787
  437.     S_QUEUEEMPTY                  : constant := 0;          -- winbase.h:793
  438.     S_THRESHOLD                   : constant := 1;          -- winbase.h:794
  439.     S_ALLTHRESHOLD                : constant := 2;          -- winbase.h:795
  440.     S_NORMAL                      : constant := 0;          -- winbase.h:801
  441.     S_LEGATO                      : constant := 1;          -- winbase.h:802
  442.     S_STACCATO                    : constant := 2;          -- winbase.h:803
  443.     S_PERIOD512                   : constant := 0;          -- winbase.h:809
  444.     S_PERIOD1024                  : constant := 1;          -- winbase.h:810
  445.     S_PERIOD2048                  : constant := 2;          -- winbase.h:811
  446.     S_PERIODVOICE                 : constant := 3;          -- winbase.h:812
  447.     S_WHITE512                    : constant := 4;          -- winbase.h:813
  448.     S_WHITE1024                   : constant := 5;          -- winbase.h:814
  449.     S_WHITE2048                   : constant := 6;          -- winbase.h:815
  450.     S_WHITEVOICE                  : constant := 7;          -- winbase.h:816
  451.     S_SERDVNA                     : constant := -1;         -- winbase.h:818
  452.     S_SEROFM                      : constant := -2;         -- winbase.h:819
  453.     S_SERMACT                     : constant := -3;         -- winbase.h:820
  454.     S_SERQFUL                     : constant := -4;         -- winbase.h:821
  455.     S_SERBDNT                     : constant := -5;         -- winbase.h:822
  456.     S_SERDLN                      : constant := -6;         -- winbase.h:823
  457.     S_SERDCC                      : constant := -7;         -- winbase.h:824
  458.     S_SERDTP                      : constant := -8;         -- winbase.h:825
  459.     S_SERDVL                      : constant := -9;         -- winbase.h:826
  460.     S_SERDMD                      : constant := -10;        -- winbase.h:827
  461.     S_SERDSH                      : constant := -11;        -- winbase.h:828
  462.     S_SERDPT                      : constant := -12;        -- winbase.h:829
  463.     S_SERDFQ                      : constant := -13;        -- winbase.h:830
  464.     S_SERDDR                      : constant := -14;        -- winbase.h:831
  465.     S_SERDSR                      : constant := -15;        -- winbase.h:832
  466.     S_SERDST                      : constant := -16;        -- winbase.h:833
  467.     NMPWAIT_WAIT_FOREVER          : constant := 16#ffffffff#;
  468.                                                             -- winbase.h:835
  469.     NMPWAIT_NOWAIT                : constant := 16#1#;      -- winbase.h:836
  470.     NMPWAIT_USE_DEFAULT_WAIT      : constant := 16#0#;      -- winbase.h:837
  471.     FS_CASE_IS_PRESERVED          : constant := 16#2#;      -- winbase.h:839
  472.     FS_CASE_SENSITIVE             : constant := 16#1#;      -- winbase.h:840
  473.     FS_UNICODE_STORED_ON_DISK     : constant := 16#4#;      -- winbase.h:841
  474.     FS_PERSISTENT_ACLS            : constant := 16#8#;      -- winbase.h:842
  475.     FS_VOL_IS_COMPRESSED          : constant := 16#8000#;   -- winbase.h:843
  476.     FS_FILE_COMPRESSION           : constant := 16#10#;     -- winbase.h:844
  477.     FILE_MAP_COPY                 : constant := 16#1#;      -- winbase.h:851
  478.     FILE_MAP_WRITE                : constant := 16#2#;      -- winbase.h:852
  479.     FILE_MAP_READ                 : constant := 16#4#;      -- winbase.h:853
  480.     FILE_MAP_ALL_ACCESS           : constant := 16#f001f#;  -- winbase.h:854
  481.     OF_READ                       : constant := 16#0#;      -- winbase.h:856
  482.     OF_WRITE                      : constant := 16#1#;      -- winbase.h:857
  483.     OF_READWRITE                  : constant := 16#2#;      -- winbase.h:858
  484.     OF_SHARE_COMPAT               : constant := 16#0#;      -- winbase.h:859
  485.     OF_SHARE_EXCLUSIVE            : constant := 16#10#;     -- winbase.h:860
  486.     OF_SHARE_DENY_WRITE           : constant := 16#20#;     -- winbase.h:861
  487.     OF_SHARE_DENY_READ            : constant := 16#30#;     -- winbase.h:862
  488.     OF_SHARE_DENY_NONE            : constant := 16#40#;     -- winbase.h:863
  489.     OF_PARSE                      : constant := 16#100#;    -- winbase.h:864
  490.     OF_DELETE                     : constant := 16#200#;    -- winbase.h:865
  491.     OF_VERIFY                     : constant := 16#400#;    -- winbase.h:866
  492.     OF_CANCEL                     : constant := 16#800#;    -- winbase.h:867
  493.     OF_CREATE                     : constant := 16#1000#;   -- winbase.h:868
  494.     OF_PROMPT                     : constant := 16#2000#;   -- winbase.h:869
  495.     OF_EXIST                      : constant := 16#4000#;   -- winbase.h:870
  496.     OF_REOPEN                     : constant := 16#8000#;   -- winbase.h:871
  497.     OFS_MAXPATHNAME               : constant := 128;        -- winbase.h:873
  498.     MAXINTATOM                    : constant := 16#c000#;   -- winbase.h:958
  499.     INVALID_ATOM                  : constant Win32.Windef.ATOM := 0;     
  500.                                                             -- winbase.h:960
  501.     PROCESS_HEAP_REGION           : constant := 16#1#;      -- winbase.h:1357
  502.     PROCESS_HEAP_UNCOMMITTED_RANGE: constant := 16#2#;      -- winbase.h:1358
  503.     PROCESS_HEAP_ENTRY_BUSY       : constant := 16#4#;      -- winbase.h:1359
  504.     PROCESS_HEAP_ENTRY_MOVEABLE   : constant := 16#10#;     -- winbase.h:1360
  505.     PROCESS_HEAP_ENTRY_DDESHARE   : constant := 16#20#;     -- winbase.h:1361
  506.     SCS_32BIT_BINARY              : constant := 0;          -- winbase.h:1387
  507.     SCS_DOS_BINARY                : constant := 1;          -- winbase.h:1388
  508.     SCS_WOW_BINARY                : constant := 2;          -- winbase.h:1389
  509.     SCS_PIF_BINARY                : constant := 3;          -- winbase.h:1390
  510.     SCS_POSIX_BINARY              : constant := 4;          -- winbase.h:1391
  511.     SCS_OS216_BINARY              : constant := 5;          -- winbase.h:1392
  512.     SEM_FAILCRITICALERRORS        : constant := 16#1#;      -- winbase.h:1745
  513.     SEM_NOGPFAULTERRORBOX         : constant := 16#2#;      -- winbase.h:1746
  514.     SEM_NOALIGNMENTFAULTEXCEPT    : constant := 16#4#;      -- winbase.h:1747
  515.     SEM_NOOPENFILEERRORBOX        : constant := 16#8000#;   
  516.                                                             -- winbase.h:1748
  517.     LOCKFILE_FAIL_IMMEDIATELY     : constant := 16#1#;      -- winbase.h:2016
  518.     LOCKFILE_EXCLUSIVE_LOCK       : constant := 16#2#;      -- winbase.h:2017
  519.     HANDLE_FLAG_INHERIT           : constant := 16#1#;      -- winbase.h:2205
  520.     HANDLE_FLAG_PROTECT_FROM_CLOSE: constant := 16#2#;      -- winbase.h:2206
  521.     HINSTANCE_ERROR               : constant := 32;         -- winbase.h:2208
  522.     GET_TAPE_MEDIA_INFORMATION    : constant := 0;          -- winbase.h:2452
  523.     GET_TAPE_DRIVE_INFORMATION    : constant := 1;          -- winbase.h:2453
  524.     SET_TAPE_MEDIA_INFORMATION    : constant := 0;          -- winbase.h:2464
  525.     SET_TAPE_DRIVE_INFORMATION    : constant := 1;          -- winbase.h:2465
  526.     FORMAT_MESSAGE_ALLOCATE_BUFFER: constant := 16#100#;    
  527.                                                             -- winbase.h:2794
  528.     FORMAT_MESSAGE_IGNORE_INSERTS : constant := 16#200#;    
  529.                                                             -- winbase.h:2795
  530.     FORMAT_MESSAGE_FROM_STRING    : constant := 16#400#;    
  531.                                                             -- winbase.h:2796
  532.     FORMAT_MESSAGE_FROM_HMODULE   : constant := 16#800#;    
  533.                                                             -- winbase.h:2797
  534.     FORMAT_MESSAGE_FROM_SYSTEM    : constant := 16#1000#;   
  535.                                                             -- winbase.h:2798
  536.     FORMAT_MESSAGE_ARGUMENT_ARRAY : constant := 16#2000#;   
  537.                                                             -- winbase.h:2799
  538.     FORMAT_MESSAGE_MAX_WIDTH_MASK : constant := 16#ff#;     -- winbase.h:2800
  539.     TLS_OUT_OF_INDEXES            : constant DWORD := 16#ffffffff#;
  540.                                                             -- winbase.h:3160
  541.     BACKUP_INVALID                : constant := 16#0#;      -- winbase.h:3295
  542.     BACKUP_DATA                   : constant := 16#1#;      -- winbase.h:3296
  543.     BACKUP_EA_DATA                : constant := 16#2#;      -- winbase.h:3297
  544.     BACKUP_SECURITY_DATA          : constant := 16#3#;      -- winbase.h:3298
  545.     BACKUP_ALTERNATE_DATA         : constant := 16#4#;      -- winbase.h:3299
  546.     BACKUP_LINK                   : constant := 16#5#;      -- winbase.h:3300
  547.     BACKUP_PROPERTY_DATA          : constant := 16#6#;      -- winbase.h:3301
  548.     STREAM_NORMAL_ATTRIBUTE       : constant := 16#0#;      -- winbase.h:3307
  549.     STREAM_MODIFIED_WHEN_READ     : constant := 16#1#;      -- winbase.h:3308
  550.     STREAM_CONTAINS_SECURITY      : constant := 16#2#;      -- winbase.h:3309
  551.     STREAM_CONTAINS_PROPERTIES    : constant := 16#4#;      -- winbase.h:3310
  552.     STARTF_USESHOWWINDOW          : constant := 16#1#;      -- winbase.h:3316
  553.     STARTF_USESIZE                : constant := 16#2#;      -- winbase.h:3317
  554.     STARTF_USEPOSITION            : constant := 16#4#;      -- winbase.h:3318
  555.     STARTF_USECOUNTCHARS          : constant := 16#8#;      -- winbase.h:3319
  556.     STARTF_USEFILLATTRIBUTE       : constant := 16#10#;     -- winbase.h:3320
  557.     STARTF_RUNFULLSCREEN          : constant := 16#20#;     -- winbase.h:3321
  558.     STARTF_FORCEONFEEDBACK        : constant := 16#40#;     -- winbase.h:3322
  559.     STARTF_FORCEOFFFEEDBACK       : constant := 16#80#;     -- winbase.h:3323
  560.     STARTF_USESTDHANDLES          : constant := 16#100#;    
  561.                                                             -- winbase.h:3324
  562.     SHUTDOWN_NORETRY              : constant := 16#1#;      -- winbase.h:3374
  563.     DONT_RESOLVE_DLL_REFERENCES   : constant := 16#1#;      -- winbase.h:3656
  564.     LOAD_LIBRARY_AS_DATAFILE      : constant := 16#2#;      -- winbase.h:3657
  565.     LOAD_WITH_ALTERED_SEARCH_PATH : constant := 16#8#;      -- winbase.h:3658
  566.     DDD_RAW_TARGET_PATH           : constant := 16#1#;      -- winbase.h:4692
  567.     DDD_REMOVE_DEFINITION         : constant := 16#2#;      -- winbase.h:4693
  568.     DDD_EXACT_MATCH_ON_REMOVE     : constant := 16#4#;      -- winbase.h:4694
  569.     MOVEFILE_REPLACE_EXISTING     : constant := 16#1#;      -- winbase.h:4980
  570.     MOVEFILE_COPY_ALLOWED         : constant := 16#2#;      -- winbase.h:4981
  571.     MOVEFILE_DELAY_UNTIL_REBOOT   : constant := 16#4#;      -- winbase.h:4982
  572.     MAX_COMPUTERNAME_LENGTH       : constant := 15;         -- winbase.h:6571
  573.     VER_PLATFORM_WIN32S           : constant := 0;          -- winbase.h:6679
  574.     VER_PLATFORM_WIN32_NT         : constant := 2;          -- winbase.h:6680
  575.     TC_NORMAL                     : constant := 0;          -- winbase.h:6710
  576.     TC_HARDERR                    : constant := 1;          -- winbase.h:6711
  577.     TC_GP_TRAP                    : constant := 2;          -- winbase.h:6712
  578.     TC_SIGNAL                     : constant := 3;          -- winbase.h:6713
  579.  
  580.     type OVERLAPPED;                                        -- winbase.h:179
  581.     type SECURITY_ATTRIBUTES;                               -- winbase.h:187
  582.     type PROCESS_INFORMATION;                               -- winbase.h:193
  583.     type FILETIME;                                          -- winbase.h:204
  584.     type SYSTEMTIME;                                        -- winbase.h:213
  585.     type COMMPROP;                                          -- winbase.h:347
  586.     type COMMTIMEOUTS;                                      -- winbase.h:433
  587.     type COMMCONFIG;                                        -- winbase.h:441
  588.     type SYSTEM_INFO;                                       -- winbase.h:454
  589.     type MEMORYSTATUS;                                      -- winbase.h:497
  590.     type EXCEPTION_DEBUG_INFO;                              -- winbase.h:580
  591.     type CREATE_THREAD_DEBUG_INFO;                          -- winbase.h:585
  592.     type CREATE_PROCESS_DEBUG_INFO;                         -- winbase.h:591
  593.     type EXIT_THREAD_DEBUG_INFO;                            -- winbase.h:604
  594.     type EXIT_PROCESS_DEBUG_INFO;                           -- winbase.h:608
  595.     type LOAD_DLL_DEBUG_INFO;                               -- winbase.h:612
  596.     type UNLOAD_DLL_DEBUG_INFO;                             -- winbase.h:621
  597.     type OUTPUT_DEBUG_STRING_INFO;                          -- winbase.h:625
  598.     type RIP_INFO;                                          -- winbase.h:631
  599.     type union_anonymous0_t;                                -- winbase.h:651
  600.     type DEBUG_EVENT;                                       -- winbase.h:637
  601.     type OFSTRUCT;                                          -- winbase.h:874
  602.     type struct_anonymous2_t;                               -- winbase.h:1347
  603.     type struct_anonymous3_t;                               -- winbase.h:1353
  604.     type union_anonymous4_t;                                -- winbase.h:1354
  605.     type PROCESS_HEAP_ENTRY;                                -- winbase.h:1337
  606.     type BY_HANDLE_FILE_INFORMATION;                        -- winbase.h:2030
  607.     type TIME_ZONE_INFORMATION;                             -- winbase.h:2645
  608.     type WIN32_STREAM_ID;                                   -- winbase.h:3283
  609.     type STARTUPINFOA;                                      -- winbase.h:3326
  610.     type STARTUPINFOW;                                      -- winbase.h:3346
  611.     type WIN32_FIND_DATAA;                                  -- winbase.h:3376
  612.     type WIN32_FIND_DATAW;                                  -- winbase.h:3388
  613.     type OSVERSIONINFOA;                                    -- winbase.h:6649
  614.     type OSVERSIONINFOW;                                    -- winbase.h:6657
  615.  
  616.     type LPOVERLAPPED is access all OVERLAPPED;             -- winbase.h:185
  617.     type PSECURITY_ATTRIBUTES is access all SECURITY_ATTRIBUTES;
  618.                                                             -- winbase.h:191
  619.     subtype LPSECURITY_ATTRIBUTES is PSECURITY_ATTRIBUTES;
  620.                                                             -- winbase.h:191
  621.     type PPROCESS_INFORMATION is access all PROCESS_INFORMATION;
  622.                                                             -- winbase.h:198
  623.     subtype LPPROCESS_INFORMATION is PPROCESS_INFORMATION;
  624.                                                             -- winbase.h:198
  625.     type PFILETIME is access all FILETIME;                  -- winbase.h:207
  626.     subtype LPFILETIME is PFILETIME;                        -- winbase.h:207
  627.     type PSYSTEMTIME is access all SYSTEMTIME;              -- winbase.h:222
  628.     subtype LPSYSTEMTIME is PSYSTEMTIME;                    -- winbase.h:222
  629.     type PCRITICAL_SECTION is access all Win32.Winnt.RTL_CRITICAL_SECTION;
  630.                                                             -- winbase.h:230
  631.     subtype LPCRITICAL_SECTION is PCRITICAL_SECTION;
  632.                                                             -- winbase.h:231
  633.     type PCRITICAL_SECTION_DEBUG is access all 
  634.            Win32.Winnt.RTL_CRITICAL_SECTION_DEBUG;          -- winbase.h:234
  635.     subtype LPCRITICAL_SECTION_DEBUG is PCRITICAL_SECTION_DEBUG;
  636.                                                             -- winbase.h:235
  637.     type LPLDT_ENTRY is access all Win32.Winnt.LDT_ENTRY;   -- winbase.h:238
  638.     type LPCOMMPROP is access all COMMPROP;                 -- winbase.h:366
  639.     type PCHANDLE is access all Win32.Winnt.HANDLE;    -- winbase.h:1921
  640.     type ac_FILETIME_t is access all FILETIME;         -- winbase.h:2166
  641.  
  642.     type COMSTAT is                                         -- winbase.h:374
  643.         record
  644.             fCtsHold : Win32.bits1;                         -- winbase.h:375
  645.             fDsrHold : Win32.bits1;                         -- winbase.h:376
  646.             fRlsdHold: Win32.bits1;                         -- winbase.h:377
  647.             fXoffHold: Win32.bits1;                         -- winbase.h:378
  648.             fXoffSent: Win32.bits1;                         -- winbase.h:379
  649.             fEof     : Win32.bits1;                         -- winbase.h:380
  650.             fTxim    : Win32.bits1;                         -- winbase.h:381
  651.             fReserved: Win32.bits25;                        -- winbase.h:382
  652.             cbInQue  : Win32.DWORD;                         -- winbase.h:383
  653.             cbOutQue : Win32.DWORD;                         -- winbase.h:384
  654.         end record;
  655.     for COMSTAT use record
  656.             fCtsHold  at 0 range 0..0;                      -- winbase.h:375
  657.             fDsrHold  at 0 range 1..1;                      -- winbase.h:376
  658.             fRlsdHold at 0 range 2..2;                      -- winbase.h:377
  659.             fXoffHold at 0 range 3..3;                      -- winbase.h:378
  660.             fXoffSent at 0 range 4..4;                      -- winbase.h:379
  661.             fEof      at 0 range 5..5;                      -- winbase.h:380
  662.             fTxim     at 0 range 6..6;                      -- winbase.h:381
  663.             fReserved at 0 range 7..31;                     -- winbase.h:382
  664.             cbInQue   at 4 range 0..31;                     -- winbase.h:383
  665.             cbOutQue  at 8 range 0..31;                     -- winbase.h:384
  666.         end record;
  667.     -- pragma pack(COMSTAT);
  668.  
  669.     type LPCOMSTAT is access all COMSTAT;                   -- winbase.h:385
  670.  
  671.     type DCB is                                             -- winbase.h:402
  672.         record
  673.             DCBLENGTH        : Win32.DWORD;                 -- winbase.h:403
  674.             BaudRate         : Win32.DWORD;                 -- winbase.h:404
  675.             fBinary          : Win32.bits1;                 -- winbase.h:405
  676.             fParity          : Win32.bits1;                 -- winbase.h:406
  677.             fOutxCtsFlow     : Win32.bits1;                 -- winbase.h:407
  678.             fOutxDsrFlow     : Win32.bits1;                 -- winbase.h:408
  679.             fDtrControl      : Win32.bits2;                 -- winbase.h:409
  680.             fDsrSensitivity  : Win32.bits1;                 -- winbase.h:410
  681.             fTXContinueOnXoff: Win32.bits1;                 -- winbase.h:411
  682.             fOutX            : Win32.bits1;                 -- winbase.h:412
  683.             fInX             : Win32.bits1;                 -- winbase.h:413
  684.             fErrorChar       : Win32.bits1;                 -- winbase.h:414
  685.             fNull            : Win32.bits1;                 -- winbase.h:415
  686.             fRtsControl      : Win32.bits2;                 -- winbase.h:416
  687.             fAbortOnError    : Win32.bits1;                 -- winbase.h:417
  688.             fDummy2          : Win32.bits17;                -- winbase.h:418
  689.             wReserved        : Win32.WORD;                  -- winbase.h:419
  690.             XonLim           : Win32.WORD;                  -- winbase.h:420
  691.             XoffLim          : Win32.WORD;                  -- winbase.h:421
  692.             ByteSize         : Win32.BYTE;                  -- winbase.h:422
  693.             Parity           : Win32.BYTE;                  -- winbase.h:423
  694.             StopBits         : Win32.BYTE;                  -- winbase.h:424
  695.             XonChar          : Win32.CHAR;                  -- winbase.h:425
  696.             XoffChar         : Win32.CHAR;                  -- winbase.h:426
  697.             ErrorChar        : Win32.CHAR;                  -- winbase.h:427
  698.             EofChar          : Win32.CHAR;                  -- winbase.h:428
  699.             EvtChar          : Win32.CHAR;                  -- winbase.h:429
  700.             wReserved1       : Win32.WORD;                  -- winbase.h:430
  701.         end record;
  702.     for DCB use record
  703.             DCBLENGTH         at 0 range 0..31;             -- winbase.h:403
  704.             BaudRate          at 4 range 0..31;             -- winbase.h:404
  705.             fBinary           at 8 range 0..0;              -- winbase.h:405
  706.             fParity           at 8 range 1..1;              -- winbase.h:406
  707.             fOutxCtsFlow      at 8 range 2..2;              -- winbase.h:407
  708.             fOutxDsrFlow      at 8 range 3..3;              -- winbase.h:408
  709.             fDtrControl       at 8 range 4..5;              -- winbase.h:409
  710.             fDsrSensitivity   at 8 range 6..6;              -- winbase.h:410
  711.             fTXContinueOnXoff at 8 range 7..7;              -- winbase.h:411
  712.             fOutX             at 9 range 0..0;              -- winbase.h:412
  713.             fInX              at 9 range 1..1;              -- winbase.h:413
  714.             fErrorChar        at 9 range 2..2;              -- winbase.h:414
  715.             fNull             at 9 range 3..3;              -- winbase.h:415
  716.             fRtsControl       at 9 range 4..5;              -- winbase.h:416
  717.             fAbortOnError     at 9 range 6..6;              -- winbase.h:417
  718.             fDummy2           at 9 range 7..23;             -- winbase.h:418
  719.             wReserved         at 12 range 0..15;            -- winbase.h:419
  720.             XonLim            at 14 range 0..15;            -- winbase.h:420
  721.             XoffLim           at 16 range 0..15;            -- winbase.h:421
  722.             ByteSize          at 18 range 0..7;             -- winbase.h:422
  723.             Parity            at 19 range 0..7;             -- winbase.h:423
  724.             StopBits          at 20 range 0..7;             -- winbase.h:424
  725.             XonChar           at 21 range 0..7;             -- winbase.h:425
  726.             XoffChar          at 22 range 0..7;             -- winbase.h:426
  727.             ErrorChar         at 23 range 0..7;             -- winbase.h:427
  728.             EofChar           at 24 range 0..7;             -- winbase.h:428
  729.             EvtChar           at 25 range 0..7;             -- winbase.h:429
  730.             wReserved1        at 26 range 0..15;            -- winbase.h:430
  731.         end record;
  732.     -- pragma pack(DCB);
  733.  
  734.     type LPDCB is access all DCB;                           -- winbase.h:431
  735.     type LPCOMMTIMEOUTS is access all COMMTIMEOUTS;         -- winbase.h:439
  736.     type LPCOMMCONFIG is access all COMMCONFIG;             -- winbase.h:452
  737.     type LPSYSTEM_INFO is access all SYSTEM_INFO;           -- winbase.h:464
  738.     type LPMEMORYSTATUS is access all MEMORYSTATUS;         -- winbase.h:506
  739.     type LPEXCEPTION_DEBUG_INFO is access all EXCEPTION_DEBUG_INFO;
  740.                                                             -- winbase.h:583
  741.     type LPCREATE_THREAD_DEBUG_INFO is 
  742.          access all CREATE_THREAD_DEBUG_INFO;               -- winbase.h:589
  743.     type LPCREATE_PROCESS_DEBUG_INFO is 
  744.          access all CREATE_PROCESS_DEBUG_INFO;              -- winbase.h:602
  745.     type LPEXIT_THREAD_DEBUG_INFO is 
  746.          access all EXIT_THREAD_DEBUG_INFO;                 -- winbase.h:606
  747.     type LPEXIT_PROCESS_DEBUG_INFO is 
  748.          access all EXIT_PROCESS_DEBUG_INFO;                -- winbase.h:610
  749.     type LPLOAD_DLL_DEBUG_INFO is 
  750.          access all LOAD_DLL_DEBUG_INFO;                    -- winbase.h:619
  751.     type LPUNLOAD_DLL_DEBUG_INFO is 
  752.          access all UNLOAD_DLL_DEBUG_INFO;                  -- winbase.h:623
  753.     type LPOUTPUT_DEBUG_STRING_INFO is 
  754.          access all OUTPUT_DEBUG_STRING_INFO;               -- winbase.h:629
  755.     type LPRIP_INFO is access all RIP_INFO;                 -- winbase.h:634
  756.     type LPDEBUG_EVENT is access all DEBUG_EVENT;           -- winbase.h:652
  757.     type LPCONTEXT is access all Win32.Winnt.CONTEXT;       -- winbase.h:654
  758.     type LPEXCEPTION_RECORD is access all Win32.Winnt.EXCEPTION_RECORD;
  759.                                                             -- winbase.h:655
  760.     type LPEXCEPTION_POINTERS is access all Win32.Winnt.EXCEPTION_POINTERS;
  761.                                                             -- winbase.h:656
  762.     type LPOFSTRUCT is access all OFSTRUCT;                 -- winbase.h:881
  763.     type POFSTRUCT is access all OFSTRUCT;                  -- winbase.h:881
  764.     type LPPROCESS_HEAP_ENTRY is 
  765.          access all PROCESS_HEAP_ENTRY;                     -- winbase.h:1355
  766.     type PPROCESS_HEAP_ENTRY is 
  767.          access all PROCESS_HEAP_ENTRY;                     -- winbase.h:1355
  768.     type PBY_HANDLE_FILE_INFORMATION is 
  769.          access all BY_HANDLE_FILE_INFORMATION;             -- winbase.h:2041
  770.     type LPBY_HANDLE_FILE_INFORMATION is 
  771.          access all BY_HANDLE_FILE_INFORMATION;             -- winbase.h:2041
  772.     type PTIME_ZONE_INFORMATION is 
  773.          access all TIME_ZONE_INFORMATION;                  -- winbase.h:2653
  774.     type LPTIME_ZONE_INFORMATION is 
  775.          access all TIME_ZONE_INFORMATION;                  -- winbase.h:2653
  776.     type LPWIN32_STREAM_ID is access all WIN32_STREAM_ID;
  777.                                                             -- winbase.h:3289
  778.     type LPSTARTUPINFOA is access all STARTUPINFOA;         -- winbase.h:3345
  779.     type LPSTARTUPINFOW is access all STARTUPINFOW;         -- winbase.h:3365
  780.     type LPSTARTUPINFO is access all STARTUPINFOA;          -- winbase.h:3371
  781.     type PWIN32_FIND_DATAA is access all WIN32_FIND_DATAA;  -- winbase.h:3387
  782.     type LPWIN32_FIND_DATAA is access all WIN32_FIND_DATAA; -- winbase.h:3387
  783.     type PWIN32_FIND_DATAW is access all WIN32_FIND_DATAW;  -- winbase.h:3399
  784.     type LPWIN32_FIND_DATAW is access all WIN32_FIND_DATAW; -- winbase.h:3399
  785.     type PWIN32_FIND_DATA is access all WIN32_FIND_DATAA;   -- winbase.h:3406
  786.     type LPWIN32_FIND_DATA is access all WIN32_FIND_DATAA;  -- winbase.h:3407
  787.     type POSVERSIONINFOA is access all OSVERSIONINFOA;      -- winbase.h:6656
  788.     type LPOSVERSIONINFOA is access all OSVERSIONINFOA;     -- winbase.h:6656
  789.     type POSVERSIONINFOW is access all OSVERSIONINFOW;      -- winbase.h:6664
  790.     type LPOSVERSIONINFOW is access all OSVERSIONINFOW;     -- winbase.h:6664
  791.     type POSVERSIONINFO is access all OSVERSIONINFOA;       -- winbase.h:6671
  792.     type LPOSVERSIONINFO is access all OSVERSIONINFOA;      -- winbase.h:6672
  793.  
  794.     type ac_CONTEXT_t is access all Win32.Winnt.CONTEXT;
  795.                                                             -- winbase.h:1793
  796.     type ac_SYSTEMTIME_t is access all SYSTEMTIME;     -- winbase.h:2622
  797.     type ac_TIME_ZONE_INFORMATION_t is access all TIME_ZONE_INFORMATION;
  798.  
  799.     type OVERLAPPED is                                      -- winbase.h:179
  800.         record
  801.             Internal    : Win32.DWORD;                      -- winbase.h:180
  802.             InternalHigh: Win32.DWORD;                      -- winbase.h:181
  803.             Offset      : Win32.DWORD;                      -- winbase.h:182
  804.             OffsetHigh  : Win32.DWORD;                      -- winbase.h:183
  805.             hEvent      : Win32.Winnt.HANDLE;               -- winbase.h:184
  806.         end record;
  807.  
  808.     type SECURITY_ATTRIBUTES is                             -- winbase.h:187
  809.         record
  810.             nLength             : Win32.DWORD;              -- winbase.h:188
  811.             lpSecurityDescriptor: Win32.LPVOID;             -- winbase.h:189
  812.             bInheritHandle      : Win32.BOOL;               -- winbase.h:190
  813.         end record;
  814.  
  815.     type PROCESS_INFORMATION is                             -- winbase.h:193
  816.         record
  817.             hProcess   : Win32.Winnt.HANDLE;                -- winbase.h:194
  818.             hThread    : Win32.Winnt.HANDLE;                -- winbase.h:195
  819.             dwProcessId: Win32.DWORD;                       -- winbase.h:196
  820.             dwThreadId : Win32.DWORD;                       -- winbase.h:197
  821.         end record;
  822.  
  823.     type FILETIME is                                        -- winbase.h:204
  824.         record
  825.             dwLowDateTime : Win32.DWORD;                    -- winbase.h:205
  826.             dwHighDateTime: Win32.DWORD;                    -- winbase.h:206
  827.         end record;
  828.  
  829.     type SYSTEMTIME is                                      -- winbase.h:213
  830.         record
  831.             wYear        : Win32.WORD;                      -- winbase.h:214
  832.             wMonth       : Win32.WORD;                      -- winbase.h:215
  833.             wDayOfWeek   : Win32.WORD;                      -- winbase.h:216
  834.             wDay         : Win32.WORD;                      -- winbase.h:217
  835.             wHour        : Win32.WORD;                      -- winbase.h:218
  836.             wMinute      : Win32.WORD;                      -- winbase.h:219
  837.             wSecond      : Win32.WORD;                      -- winbase.h:220
  838.             wMilliseconds: Win32.WORD;                      -- winbase.h:221
  839.         end record;
  840.  
  841.     type PTHREAD_START_ROUTINE is 
  842.         access function (lpThreadParameter: Win32.LPVOID) return Win32.DWORD;
  843.                                                             -- winbase.h:224
  844.     type LPTHREAD_START_ROUTINE is access function  return Win32.DWORD;
  845.     pragma Convention(Stdcall, LPTHREAD_START_ROUTINE);
  846.                                                             -- winbase.h:227
  847.  
  848.     subtype CRITICAL_SECTION is Win32.Winnt.RTL_CRITICAL_SECTION;   
  849.                                                             -- winbase.h:229
  850.  
  851.     subtype CRITICAL_SECTION_DEBUG is Win32.Winnt.RTL_CRITICAL_SECTION_DEBUG;
  852.                                                             -- winbase.h:233
  853.  
  854.     type COMMPROP is                                        -- winbase.h:347
  855.         record
  856.             wPacketLength      : Win32.WORD;                -- winbase.h:348
  857.             wPacketVersion     : Win32.WORD;                -- winbase.h:349
  858.             dwServiceMask      : Win32.DWORD;               -- winbase.h:350
  859.             dwReserved1        : Win32.DWORD;               -- winbase.h:351
  860.             dwMaxTxQueue       : Win32.DWORD;               -- winbase.h:352
  861.             dwMaxRxQueue       : Win32.DWORD;               -- winbase.h:353
  862.             dwMaxBaud          : Win32.DWORD;               -- winbase.h:354
  863.             dwProvSubType      : Win32.DWORD;               -- winbase.h:355
  864.             dwProvCapabilities : Win32.DWORD;               -- winbase.h:356
  865.             dwSettableParams   : Win32.DWORD;               -- winbase.h:357
  866.             dwSettableBaud     : Win32.DWORD;               -- winbase.h:358
  867.             wSettableData      : Win32.WORD;                -- winbase.h:359
  868.             wSettableStopParity: Win32.WORD;                -- winbase.h:360
  869.             dwCurrentTxQueue   : Win32.DWORD;               -- winbase.h:361
  870.             dwCurrentRxQueue   : Win32.DWORD;               -- winbase.h:362
  871.             dwProvSpec1        : Win32.DWORD;               -- winbase.h:363
  872.             dwProvSpec2        : Win32.DWORD;               -- winbase.h:364
  873.             wcProvChar         : Win32.WCHAR_Array(0..Win32.ANYSIZE_ARRAY);
  874.                                                             -- winbase.h:365
  875.         end record;
  876.  
  877.     type COMMTIMEOUTS is                                    -- winbase.h:433
  878.         record
  879.             ReadIntervalTimeout        : Win32.DWORD;       -- winbase.h:434
  880.             ReadTotalTimeoutMultiplier : Win32.DWORD;       -- winbase.h:435
  881.             ReadTotalTimeoutConstant   : Win32.DWORD;       -- winbase.h:436
  882.             WriteTotalTimeoutMultiplier: Win32.DWORD;       -- winbase.h:437
  883.             WriteTotalTimeoutConstant  : Win32.DWORD;       -- winbase.h:438
  884.         end record;
  885.  
  886.     type COMMCONFIG is                                      -- winbase.h:441
  887.         record
  888.             dwSize           : Win32.DWORD;                 -- winbase.h:442
  889.             wVersion         : Win32.WORD;                  -- winbase.h:443
  890.             wReserved        : Win32.WORD;                  -- winbase.h:444
  891.             dcb              : Win32.Winbase.DCB;           -- winbase.h:445
  892.             dwProviderSubType: Win32.DWORD;                 -- winbase.h:446
  893.             dwProviderOffset : Win32.DWORD;                 -- winbase.h:448
  894.             dwProviderSize   : Win32.DWORD;                 -- winbase.h:450
  895.             wcProviderData   : Win32.WCHAR_Array(0..Win32.ANYSIZE_ARRAY);
  896.                                                             -- winbase.h:451
  897.         end record;
  898.  
  899.     type SYSTEM_INFO is                                     -- winbase.h:454
  900.         record
  901.             dwOemId                    : Win32.DWORD;       -- winbase.h:455
  902.             dwPageSize                 : Win32.DWORD;       -- winbase.h:456
  903.             lpMinimumApplicationAddress: Win32.LPVOID;      -- winbase.h:457
  904.             lpMaximumApplicationAddress: Win32.LPVOID;      -- winbase.h:458
  905.             dwActiveProcessorMask      : Win32.DWORD;       -- winbase.h:459
  906.             dwNumberOfProcessors       : Win32.DWORD;       -- winbase.h:460
  907.             dwProcessorType            : Win32.DWORD;       -- winbase.h:461
  908.             dwAllocationGranularity    : Win32.DWORD;       -- winbase.h:462
  909.             dwReserved                 : Win32.DWORD;       -- winbase.h:463
  910.         end record;
  911.  
  912.     type MEMORYSTATUS is                                    -- winbase.h:497
  913.         record
  914.             dwLength       : Win32.DWORD;                   -- winbase.h:498
  915.             dwMemoryLoad   : Win32.DWORD;                   -- winbase.h:499
  916.             dwTotalPhys    : Win32.DWORD;                   -- winbase.h:500
  917.             dwAvailPhys    : Win32.DWORD;                   -- winbase.h:501
  918.             dwTotalPageFile: Win32.DWORD;                   -- winbase.h:502
  919.             dwAvailPageFile: Win32.DWORD;                   -- winbase.h:503
  920.             dwTotalVirtual : Win32.DWORD;                   -- winbase.h:504
  921.             dwAvailVirtual : Win32.DWORD;                   -- winbase.h:505
  922.         end record;
  923.  
  924.     type EXCEPTION_DEBUG_INFO is                            -- winbase.h:580
  925.         record
  926.             ExceptionRecord: Win32.Winnt.EXCEPTION_RECORD;  -- winbase.h:581
  927.             dwFirstChance  : Win32.DWORD;                   -- winbase.h:582
  928.         end record;
  929.  
  930.     type CREATE_THREAD_DEBUG_INFO is                        -- winbase.h:585
  931.         record
  932.             hThread          : Win32.Winnt.HANDLE;          -- winbase.h:586
  933.             lpThreadLocalBase: Win32.LPVOID;                -- winbase.h:587
  934.             lpStartAddress   : LPTHREAD_START_ROUTINE;      -- winbase.h:588
  935.         end record;
  936.  
  937.     type CREATE_PROCESS_DEBUG_INFO is                       -- winbase.h:591
  938.         record
  939.             hFile                : Win32.Winnt.HANDLE;      -- winbase.h:592
  940.             hProcess             : Win32.Winnt.HANDLE;      -- winbase.h:593
  941.             hThread              : Win32.Winnt.HANDLE;      -- winbase.h:594
  942.             lpBaseOfImage        : Win32.LPVOID;            -- winbase.h:595
  943.             dwDebugInfoFileOffset: Win32.DWORD;             -- winbase.h:596
  944.             nDebugInfoSize       : Win32.DWORD;             -- winbase.h:597
  945.             lpThreadLocalBase    : Win32.LPVOID;            -- winbase.h:598
  946.             lpStartAddress       : LPTHREAD_START_ROUTINE;  -- winbase.h:599
  947.             lpImageName          : Win32.LPVOID;            -- winbase.h:600
  948.             fUnicode             : Win32.WORD;              -- winbase.h:601
  949.         end record;
  950.  
  951.     type EXIT_THREAD_DEBUG_INFO is                          -- winbase.h:604
  952.         record
  953.             dwExitCode: Win32.DWORD;                        -- winbase.h:605
  954.         end record;
  955.  
  956.     type EXIT_PROCESS_DEBUG_INFO is                         -- winbase.h:608
  957.         record
  958.             dwExitCode: Win32.DWORD;                        -- winbase.h:609
  959.         end record;
  960.  
  961.     type LOAD_DLL_DEBUG_INFO is                             -- winbase.h:612
  962.         record
  963.             hFile                : Win32.Winnt.HANDLE;      -- winbase.h:613
  964.             lpBaseOfDll          : Win32.LPVOID;            -- winbase.h:614
  965.             dwDebugInfoFileOffset: Win32.DWORD;             -- winbase.h:615
  966.             nDebugInfoSize       : Win32.DWORD;             -- winbase.h:616
  967.             lpImageName          : Win32.LPVOID;            -- winbase.h:617
  968.             fUnicode             : Win32.WORD;              -- winbase.h:618
  969.         end record;
  970.  
  971.     type UNLOAD_DLL_DEBUG_INFO is                           -- winbase.h:621
  972.         record
  973.             lpBaseOfDll: Win32.LPVOID;                      -- winbase.h:622
  974.         end record;
  975.  
  976.     type OUTPUT_DEBUG_STRING_INFO is                        -- winbase.h:625
  977.         record
  978.             lpDebugStringData : Win32.LPSTR;                -- winbase.h:626
  979.             fUnicode          : Win32.WORD;                 -- winbase.h:627
  980.             nDebugStringLength: Win32.WORD;                 -- winbase.h:628
  981.         end record;
  982.  
  983.     type RIP_INFO is                                        -- winbase.h:631
  984.         record
  985.             dwError: Win32.DWORD;                           -- winbase.h:632
  986.             dwType : Win32.DWORD;                           -- winbase.h:633
  987.         end record;
  988.  
  989.     type union_anonymous0_t_kind is (                       -- winbase.h:651
  990.         C_Exception_kind,
  991.         CreateThread_kind,
  992.         CreateProcessInfo_kind,
  993.         ExitThread_kind,
  994.         ExitProcess_kind,
  995.         LoadDll_kind,
  996.         UnloadDll_kind,
  997.         DebugString_kind,
  998.         RipInfo_kind
  999.     );
  1000.  
  1001.     type union_anonymous0_t
  1002.          (Which: union_anonymous0_t_kind := C_Exception_kind) is
  1003.                                                             -- winbase.h:651
  1004.         record
  1005.             case Which is
  1006.                 when C_Exception_kind =>
  1007.                     C_Exception: EXCEPTION_DEBUG_INFO;      -- winbase.h:642
  1008.                 when CreateThread_kind =>
  1009.                     CreateThread: CREATE_THREAD_DEBUG_INFO; -- winbase.h:643
  1010.                 when CreateProcessInfo_kind =>
  1011.                     CreateProcessInfo: CREATE_PROCESS_DEBUG_INFO;
  1012.                                                             -- winbase.h:644
  1013.                 when ExitThread_kind =>
  1014.                     ExitThread: EXIT_THREAD_DEBUG_INFO;     -- winbase.h:645
  1015.                 when ExitProcess_kind =>
  1016.                     ExitProcess: EXIT_PROCESS_DEBUG_INFO;    -- winbase.h:646
  1017.                 when LoadDll_kind =>
  1018.                     LoadDll  : LOAD_DLL_DEBUG_INFO;         -- winbase.h:647
  1019.                 when UnloadDll_kind =>
  1020.                     UnloadDll: UNLOAD_DLL_DEBUG_INFO;       -- winbase.h:648
  1021.                 when DebugString_kind =>
  1022.                     DebugString: OUTPUT_DEBUG_STRING_INFO;  -- winbase.h:649
  1023.                 when RipInfo_kind =>
  1024.                     RipInfo  : RIP_INFO;                    -- winbase.h:650
  1025.             end case;
  1026.         end record;
  1027.  
  1028.     pragma Convention(C, union_anonymous0_t);
  1029.     pragma Unchecked_Union(union_anonymous0_t);
  1030.  
  1031.     type DEBUG_EVENT is                                     -- winbase.h:637
  1032.         record
  1033.             dwDebugEventCode: Win32.DWORD;                  -- winbase.h:638
  1034.             dwProcessId     : Win32.DWORD;                  -- winbase.h:639
  1035.             dwThreadId      : Win32.DWORD;                  -- winbase.h:640
  1036.             u               : union_anonymous0_t;           -- winbase.h:651
  1037.         end record;
  1038.  
  1039.     type OFSTRUCT is                                        -- winbase.h:874
  1040.         record
  1041.             cBytes    : Win32.BYTE;                         -- winbase.h:875
  1042.             fFixedDisk: Win32.BYTE;                         -- winbase.h:876
  1043.             nErrCode  : Win32.WORD;                         -- winbase.h:877
  1044.             Reserved1 : Win32.WORD;                         -- winbase.h:878
  1045.             Reserved2 : Win32.WORD;                         -- winbase.h:879
  1046.             szPathName: Win32.CHAR_Array(0..127);           -- winbase.h:880
  1047.         end record;
  1048.  
  1049.     type struct_anonymous2_t is                             -- winbase.h:1347
  1050.         record
  1051.             hMem      : Win32.Winnt.HANDLE;                 -- winbase.h:1345
  1052.             dwReserved: Win32.DWORD_Array(0..2);            -- winbase.h:1346
  1053.         end record;
  1054.  
  1055.     type struct_anonymous3_t is                             -- winbase.h:1353
  1056.         record
  1057.             dwCommittedSize  : Win32.DWORD;                 -- winbase.h:1349
  1058.             dwUnCommittedSize: Win32.DWORD;                 -- winbase.h:1350
  1059.             lpFirstBlock     : Win32.LPVOID;                -- winbase.h:1351
  1060.             lpLastBlock      : Win32.LPVOID;                -- winbase.h:1352
  1061.         end record;
  1062.  
  1063.     type union_anonymous4_t_kind is (                       -- winbase.h:1354
  1064.         Block_kind,
  1065.         Region_kind
  1066.     );
  1067.  
  1068.     type union_anonymous4_t (Which: union_anonymous4_t_kind := Block_kind) is
  1069.                                                             -- winbase.h:1354
  1070.         record
  1071.             case Which is
  1072.                 when Block_kind =>
  1073.                     Block: struct_anonymous2_t;             -- winbase.h:1347
  1074.                 when Region_kind =>                        
  1075.                     Region: struct_anonymous3_t;            -- winbase.h:1353
  1076.             end case;
  1077.         end record;
  1078.  
  1079.     pragma Convention(C, union_anonymous4_t);
  1080.     pragma Unchecked_Union(union_anonymous4_t);
  1081.  
  1082.     type PROCESS_HEAP_ENTRY is                              -- winbase.h:1337
  1083.         record
  1084.             lpData      : Win32.PVOID;                      -- winbase.h:1338
  1085.             cbData      : Win32.DWORD;                      -- winbase.h:1339
  1086.             cbOverhead  : Win32.BYTE;                       -- winbase.h:1340
  1087.             iRegionIndex: Win32.BYTE;                       -- winbase.h:1341
  1088.             wFlags      : Win32.WORD;                       -- winbase.h:1342
  1089.             u           : union_anonymous4_t;               -- winbase.h:1354
  1090.         end record;
  1091.  
  1092.     type PTOP_LEVEL_EXCEPTION_FILTER is 
  1093.         access function(ExceptionInfo:Win32.Winnt.PEXCEPTION_POINTERS)
  1094.             return Win32.LONG;                              -- winbase.h:1583
  1095.     type LPTOP_LEVEL_EXCEPTION_FILTER is access function  return Win32.LONG;
  1096.     pragma Convention(Stdcall, LPTOP_LEVEL_EXCEPTION_FILTER);
  1097.                                                             -- winbase.h:1586
  1098.  
  1099.     type BY_HANDLE_FILE_INFORMATION is                      -- winbase.h:2030
  1100.         record
  1101.             dwFileAttributes    : Win32.DWORD;              -- winbase.h:2031
  1102.             ftCreationTime      : FILETIME;                 -- winbase.h:2032
  1103.             ftLastAccessTime    : FILETIME;                 -- winbase.h:2033
  1104.             ftLastWriteTime     : FILETIME;                 -- winbase.h:2034
  1105.             dwVolumeSerialNumber: Win32.DWORD;              -- winbase.h:2035
  1106.             nFileSizeHigh       : Win32.DWORD;              -- winbase.h:2036
  1107.             nFileSizeLow        : Win32.DWORD;              -- winbase.h:2037
  1108.             nNumberOfLinks      : Win32.DWORD;              -- winbase.h:2038
  1109.             nFileIndexHigh      : Win32.DWORD;              -- winbase.h:2039
  1110.             nFileIndexLow       : Win32.DWORD;              -- winbase.h:2040
  1111.         end record;
  1112.  
  1113.     type TIME_ZONE_INFORMATION is                           -- winbase.h:2645
  1114.         record
  1115.             Bias        : Win32.LONG;                       -- winbase.h:2646
  1116.             StandardName: Win32.WCHAR_Array(0..31);         -- winbase.h:2647
  1117.             StandardDate: SYSTEMTIME;                       -- winbase.h:2648
  1118.             StandardBias: Win32.LONG;                       -- winbase.h:2649
  1119.             DaylightName: Win32.WCHAR_Array(0..31);         -- winbase.h:2650
  1120.             DaylightDate: SYSTEMTIME;                       -- winbase.h:2651
  1121.             DaylightBias: Win32.LONG;                       -- winbase.h:2652
  1122.         end record;
  1123.  
  1124.     type LPOVERLAPPED_COMPLETION_ROUTINE is 
  1125.          access procedure (dwErrorCode              : Win32.DWORD;
  1126.                            dwNumberOfBytesTransfered: Win32.DWORD;
  1127.                            lpOverlapped             : Win32.Winbase.LPOVERLAPPED);
  1128.                                                             -- winbase.h:3186
  1129.  
  1130.     type WIN32_STREAM_ID is                                 -- winbase.h:3283
  1131.         record
  1132.             dwStreamId        : Win32.DWORD;                -- winbase.h:3284
  1133.             dwStreamAttributes: Win32.DWORD;                -- winbase.h:3285
  1134.             Size              : Win32.Winnt.LARGE_INTEGER;  -- winbase.h:3286
  1135.             dwStreamNameSize  : Win32.DWORD;                -- winbase.h:3287
  1136.             cStreamName       : Win32.WCHAR_Array(0..Win32.ANYSIZE_ARRAY);
  1137.                                                             -- winbase.h:3288
  1138.         end record;
  1139.  
  1140.     type STARTUPINFOA is                                    -- winbase.h:3326
  1141.         record
  1142.             cb             : Win32.DWORD;                   -- winbase.h:3327
  1143.             lpReserved     : Win32.LPSTR;                   -- winbase.h:3328
  1144.             lpDesktop      : Win32.LPSTR;                   -- winbase.h:3329
  1145.             lpTitle        : Win32.LPSTR;                   -- winbase.h:3330
  1146.             dwX            : Win32.DWORD;                   -- winbase.h:3331
  1147.             dwY            : Win32.DWORD;                   -- winbase.h:3332
  1148.             dwXSize        : Win32.DWORD;                   -- winbase.h:3333
  1149.             dwYSize        : Win32.DWORD;                   -- winbase.h:3334
  1150.             dwXCountChars  : Win32.DWORD;                   -- winbase.h:3335
  1151.             dwYCountChars  : Win32.DWORD;                   -- winbase.h:3336
  1152.             dwFillAttribute: Win32.DWORD;                   -- winbase.h:3337
  1153.             dwFlags        : Win32.DWORD;                   -- winbase.h:3338
  1154.             wShowWindow    : Win32.WORD;                    -- winbase.h:3339
  1155.             cbReserved2    : Win32.WORD;                    -- winbase.h:3340
  1156.             lpReserved2    : Win32.LPBYTE;                  -- winbase.h:3341
  1157.             hStdInput      : Win32.Winnt.HANDLE;            -- winbase.h:3342
  1158.             hStdOutput     : Win32.Winnt.HANDLE;            -- winbase.h:3343
  1159.             hStdError      : Win32.Winnt.HANDLE;            -- winbase.h:3344
  1160.         end record;
  1161.  
  1162.     type STARTUPINFOW is                                    -- winbase.h:3346
  1163.         record
  1164.             cb             : Win32.DWORD;                   -- winbase.h:3347
  1165.             lpReserved     : Win32.LPWSTR;                  -- winbase.h:3348
  1166.             lpDesktop      : Win32.LPWSTR;                  -- winbase.h:3349
  1167.             lpTitle        : Win32.LPWSTR;                  -- winbase.h:3350
  1168.             dwX            : Win32.DWORD;                   -- winbase.h:3351
  1169.             dwY            : Win32.DWORD;                   -- winbase.h:3352
  1170.             dwXSize        : Win32.DWORD;                   -- winbase.h:3353
  1171.             dwYSize        : Win32.DWORD;                   -- winbase.h:3354
  1172.             dwXCountChars  : Win32.DWORD;                   -- winbase.h:3355
  1173.             dwYCountChars  : Win32.DWORD;                   -- winbase.h:3356
  1174.             dwFillAttribute: Win32.DWORD;                   -- winbase.h:3357
  1175.             dwFlags        : Win32.DWORD;                   -- winbase.h:3358
  1176.             wShowWindow    : Win32.WORD;                    -- winbase.h:3359
  1177.             cbReserved2    : Win32.WORD;                    -- winbase.h:3360
  1178.             lpReserved2    : Win32.LPBYTE;                  -- winbase.h:3361
  1179.             hStdInput      : Win32.Winnt.HANDLE;            -- winbase.h:3362
  1180.             hStdOutput     : Win32.Winnt.HANDLE;            -- winbase.h:3363
  1181.             hStdError      : Win32.Winnt.HANDLE;            -- winbase.h:3364
  1182.         end record;
  1183.  
  1184.     subtype STARTUPINFO is STARTUPINFOA;                    -- winbase.h:3370
  1185.                                                            
  1186.     type WIN32_FIND_DATAA is                                -- winbase.h:3376
  1187.         record
  1188.             dwFileAttributes  : Win32.DWORD;                -- winbase.h:3377
  1189.             ftCreationTime    : FILETIME;                   -- winbase.h:3378
  1190.             ftLastAccessTime  : FILETIME;                   -- winbase.h:3379
  1191.             ftLastWriteTime   : FILETIME;                   -- winbase.h:3380
  1192.             nFileSizeHigh     : Win32.DWORD;                -- winbase.h:3381
  1193.             nFileSizeLow      : Win32.DWORD;                -- winbase.h:3382
  1194.             dwReserved0       : Win32.DWORD;                -- winbase.h:3383
  1195.             dwReserved1       : Win32.DWORD;                -- winbase.h:3384
  1196.             cFileName         : Win32.CHAR_Array(0..259);   -- winbase.h:3385
  1197.             cAlternateFileName: Win32.CHAR_Array(0..13);    -- winbase.h:3386
  1198.         end record;                                        
  1199.                                                            
  1200.     type WIN32_FIND_DATAW is                                -- winbase.h:3388
  1201.         record
  1202.             dwFileAttributes  : Win32.DWORD;                -- winbase.h:3389
  1203.             ftCreationTime    : FILETIME;                   -- winbase.h:3390
  1204.             ftLastAccessTime  : FILETIME;                   -- winbase.h:3391
  1205.             ftLastWriteTime   : FILETIME;                   -- winbase.h:3392
  1206.             nFileSizeHigh     : Win32.DWORD;                -- winbase.h:3393
  1207.             nFileSizeLow      : Win32.DWORD;                -- winbase.h:3394
  1208.             dwReserved0       : Win32.DWORD;                -- winbase.h:3395
  1209.             dwReserved1       : Win32.DWORD;                -- winbase.h:3396
  1210.             cFileName         : Win32.WCHAR_Array(0..259);  -- winbase.h:3397
  1211.             cAlternateFileName: Win32.WCHAR_Array(0..13);   -- winbase.h:3398
  1212.         end record;
  1213.  
  1214.     subtype WIN32_FIND_DATA is WIN32_FIND_DATAA;            -- winbase.h:3405
  1215.  
  1216.     type ENUMRESTYPEPROC is access function (hModule: Win32.Windef.HINSTANCE;
  1217.                                              lpType : Win32.Winnt.LPTSTR;
  1218.                                              lParam : Win32.LONG)
  1219.                                                       return Win32.BOOL;
  1220.     pragma Convention(Stdcall, ENUMRESTYPEPROC);
  1221.                                                             -- winbase.h:3938
  1222.  
  1223.     type ENUMRESNAMEPROC is access function (hModule: Win32.Windef.HINSTANCE;
  1224.                                              lpType : Win32.Winnt.LPCTSTR;
  1225.                                              lpName : Win32.Winnt.LPTSTR;
  1226.                                              lParam : Win32.LONG)
  1227.                                                       return Win32.BOOL;
  1228.     pragma Convention(Stdcall, ENUMRESNAMEPROC);
  1229.                                                             -- winbase.h:3940
  1230.  
  1231.     type ENUMRESLANGPROC is access function (hModule  : Win32.Windef.HINSTANCE;
  1232.                                              lpType   : Win32.Winnt.LPCTSTR;
  1233.                                              lpName   : Win32.Winnt.LPCTSTR;
  1234.                                              wLanguage: Win32.WORD;
  1235.                                              lParam   : Win32.LONG)
  1236.                                                         return Win32.BOOL;
  1237.     pragma Convention(Stdcall, ENUMRESLANGPROC);
  1238.                                                             -- winbase.h:3942
  1239.  
  1240.     type OSVERSIONINFOA is                                  -- winbase.h:6649
  1241.         record
  1242.             dwOSVersionInfoSize: Win32.DWORD;               -- winbase.h:6650
  1243.             dwMajorVersion     : Win32.DWORD;               -- winbase.h:6651
  1244.             dwMinorVersion     : Win32.DWORD;               -- winbase.h:6652
  1245.             dwBuildNumber      : Win32.DWORD;               -- winbase.h:6653
  1246.             dwPlatformId       : Win32.DWORD;               -- winbase.h:6654
  1247.             szCSDVersion       : Win32.CHAR_Array(0..127);  -- winbase.h:6655
  1248.         end record;
  1249.  
  1250.     type OSVERSIONINFOW is                                  -- winbase.h:6657
  1251.         record
  1252.             dwOSVersionInfoSize: Win32.DWORD;               -- winbase.h:6658
  1253.             dwMajorVersion     : Win32.DWORD;               -- winbase.h:6659
  1254.             dwMinorVersion     : Win32.DWORD;               -- winbase.h:6660
  1255.             dwBuildNumber      : Win32.DWORD;               -- winbase.h:6661
  1256.             dwPlatformId       : Win32.DWORD;               -- winbase.h:6662
  1257.             szCSDVersion       : Win32.WCHAR_Array(0..127); -- winbase.h:6663
  1258.         end record;
  1259.  
  1260.     subtype OSVERSIONINFO is OSVERSIONINFOA;                -- winbase.h:6670
  1261.  
  1262.     function MoveMemory
  1263.         (Destination : in Win32.pvoid;
  1264.          Source      : in Win32.pcvoid;
  1265.          Length      : in Win32.Strings.size_t) return Win32.pvoid
  1266.       renames Win32.Winnt.RtlMoveMemory;                    -- winbase.h:97
  1267.  
  1268.     function CopyMemory
  1269.         (Destination : in Win32.pvoid;
  1270.          Source      : in Win32.pcvoid;
  1271.          Length      : in Win32.Strings.size_t) return Win32.pvoid
  1272.       renames Win32.Winnt.RtlCopyMemory;                    -- winbase.h:98
  1273.  
  1274.     function FillMemory
  1275.         (Destination : in Win32.PVOID;
  1276.          Length      : in Win32.Strings.size_t;
  1277.          Fill        : in Win32.BYTE) return Win32.pvoid
  1278.         renames Win32.Winnt.RtlFillMemory;                  -- winbase.h:99
  1279.  
  1280.     function ZeroMemory
  1281.         (Destination : in Win32.pvoid;
  1282.          Length      : in Win32.Strings.size_t) return Win32.pvoid
  1283.         renames Win32.Winnt.RtlZeroMemory;                  -- winbase.h:100
  1284.  
  1285.     function InterlockedIncrement(lpAddend: access Win32.LONG) 
  1286.         return Win32.LONG;                                  -- winbase.h:922
  1287.  
  1288.     function InterlockedDecrement(lpAddend: access Win32.LONG) 
  1289.         return Win32.LONG;                                  -- winbase.h:929
  1290.  
  1291.     function InterlockedExchange(Target: access Win32.LONG;
  1292.                                  Value : Win32.LONG)
  1293.                                          return Win32.LONG; -- winbase.h:936
  1294.  
  1295.     function FreeResource(hResData: Win32.Windef.HGLOBAL) return Win32.BOOL;
  1296.                                                             -- winbase.h:946
  1297.  
  1298.     function LockResource(hResData: Win32.Windef.HGLOBAL) return Win32.LPVOID;
  1299.                                                             -- winbase.h:953
  1300.  
  1301.     function MAKEINTATOM(wInteger: WORD) return Win32.Winnt.LPTSTR;     
  1302.                                                             -- winbase.h:959
  1303.  
  1304.     function WinMain(hInstance    : Win32.Windef.HINSTANCE;
  1305.                      hPrevInstance: Win32.Windef.HINSTANCE;
  1306.                      lpCmdLine    : Win32.LPSTR;
  1307.                      nShowCmd     : Win32.INT)
  1308.                                     return Win32.INT;       -- winbase.h:964
  1309.  
  1310.     function FreeLibrary(hLibModule: Win32.Windef.HINSTANCE) return Win32.BOOL;
  1311.                                                             -- winbase.h:974
  1312.  
  1313.     function FreeModule (hLibModule: Win32.Windef.HINSTANCE) return BOOL
  1314.         renames FreeLibrary;                                -- winbase.h:466
  1315.  
  1316.  
  1317.     procedure FreeLibraryAndExitThread(hLibModule: Win32.Windef.HMODULE;
  1318.                                        dwExitCode: Win32.DWORD);
  1319.                                                             -- winbase.h:982
  1320.  
  1321.     function DisableThreadLibraryCalls(hLibModule: Win32.Windef.HMODULE) 
  1322.              return Win32.BOOL;                             -- winbase.h:990
  1323.  
  1324.     function GetProcAddress(hModule   : Win32.Windef.HINSTANCE;
  1325.                             lpProcName: Win32.LPCSTR)
  1326.                                         return Win32.Windef.FARPROC;
  1327.                                                             -- winbase.h:997
  1328.  
  1329.     function GetVersion return Win32.DWORD;                 -- winbase.h:1005
  1330.  
  1331.     function GlobalAlloc(uFlags : Win32.UINT;
  1332.                          dwBytes: Win32.DWORD)
  1333.                                   return Win32.Windef.HGLOBAL;
  1334.                                                             -- winbase.h:1010
  1335.  
  1336.     function GlobalDiscard(hglbMem: Win32.Windef.HGLOBAL)   -- winbase.h:491
  1337.         return Win32.Windef.HGLOBAL;
  1338.  
  1339.     function GlobalReAlloc(hMem   : Win32.Windef.HGLOBAL;
  1340.                            dwBytes: Win32.DWORD;
  1341.                            uFlags : Win32.UINT)
  1342.                                     return Win32.Windef.HGLOBAL;
  1343.                                                             -- winbase.h:1018
  1344.  
  1345.     function GlobalSize(hMem: Win32.Windef.HGLOBAL) return Win32.DWORD;
  1346.                                                             -- winbase.h:1027
  1347.  
  1348.     function GlobalFlags(hMem: Win32.Windef.HGLOBAL) return Win32.UINT;
  1349.                                                             -- winbase.h:1034
  1350.  
  1351.     function GlobalLock(hMem: Win32.Windef.HGLOBAL) return Win32.LPVOID;
  1352.                                                             -- winbase.h:1042
  1353.  
  1354.     function GlobalHandle(pMem: Win32.LPCVOID) return Win32.Windef.HGLOBAL;
  1355.                                                             -- winbase.h:1050
  1356.  
  1357.     function GlobalUnlock(hMem: Win32.Windef.HGLOBAL) return Win32.BOOL;
  1358.                                                             -- winbase.h:1058
  1359.  
  1360.     function GlobalFree(hMem: Win32.Windef.HGLOBAL) return Win32.Windef.HGLOBAL;
  1361.                                                             -- winbase.h:1066
  1362.  
  1363.     function GlobalCompact(dwMinFree: Win32.DWORD) return Win32.UINT;
  1364.                                                             -- winbase.h:1073
  1365.  
  1366.     procedure GlobalFix(hMem: Win32.Windef.HGLOBAL);        -- winbase.h:1080
  1367.  
  1368.     procedure GlobalUnfix(hMem: Win32.Windef.HGLOBAL);      -- winbase.h:1087
  1369.  
  1370.     function GlobalWire(hMem: Win32.Windef.HGLOBAL) return Win32.LPVOID;
  1371.                                                             -- winbase.h:1094
  1372.  
  1373.     function GlobalUnWire(hMem: Win32.Windef.HGLOBAL) return Win32.BOOL;
  1374.                                                             -- winbase.h:1101
  1375.  
  1376.     procedure GlobalMemoryStatus(lpBuffer: LPMEMORYSTATUS); -- winbase.h:1108
  1377.  
  1378.     function LocalAlloc(uFlags: Win32.UINT;
  1379.                         uBytes: Win32.UINT)
  1380.                                 return Win32.Windef.HLOCAL; -- winbase.h:1115
  1381.  
  1382.     function LocalReAlloc(hMem  : Win32.Windef.HLOCAL;
  1383.                           uBytes: Win32.UINT;
  1384.                           uFlags: Win32.UINT)
  1385.                                   return Win32.Windef.HLOCAL;
  1386.                                                             -- winbase.h:1123
  1387.  
  1388.     function LocalDiscard(hlocMem: Win32.Windef.HLOCAL)
  1389.         return Win32.Windef.HLOCAL;                         -- winbase.h:525
  1390.  
  1391.     function LocalLock(hMem: Win32.Windef.HLOCAL) return Win32.LPVOID;
  1392.                                                             -- winbase.h:1132
  1393.  
  1394.     function LocalHandle(pMem: Win32.LPCVOID) return Win32.Windef.HLOCAL;
  1395.                                                             -- winbase.h:1139
  1396.  
  1397.     function LocalUnlock(hMem: Win32.Windef.HLOCAL) return Win32.BOOL;
  1398.                                                             -- winbase.h:1146
  1399.  
  1400.     function LocalSize(hMem: Win32.Windef.HLOCAL) return Win32.UINT;
  1401.                                                             -- winbase.h:1153
  1402.  
  1403.     function LocalFlags(hMem: Win32.Windef.HLOCAL) return Win32.UINT;
  1404.                                                             -- winbase.h:1160
  1405.  
  1406.     function LocalFree(hMem: Win32.Windef.HLOCAL) return Win32.Windef.HLOCAL;
  1407.                                                             -- winbase.h:1167
  1408.  
  1409.     function LocalShrink(hMem     : Win32.Windef.HLOCAL;
  1410.                          cbNewSize: Win32.UINT)
  1411.                                     return Win32.UINT;      -- winbase.h:1174
  1412.  
  1413.     function LocalCompact(uMinFree: Win32.UINT) return Win32.UINT;
  1414.                                                             -- winbase.h:1182
  1415.  
  1416.     function FlushInstructionCache(hProcess     : Win32.Winnt.HANDLE;
  1417.                                    lpBaseAddress: Win32.LPCVOID;
  1418.                                    dwSize       : Win32.DWORD)
  1419.                                                   return Win32.BOOL;
  1420.                                                             -- winbase.h:1189
  1421.  
  1422.     function VirtualAlloc(lpAddress       : Win32.LPVOID;
  1423.                           dwSize          : Win32.DWORD;
  1424.                           flAllocationType: Win32.DWORD;
  1425.                           flProtect       : Win32.DWORD)
  1426.                                             return Win32.LPVOID;
  1427.                                                             -- winbase.h:1198
  1428.  
  1429.     function VirtualFree(lpAddress : Win32.LPVOID;
  1430.                          dwSize    : Win32.DWORD;
  1431.                          dwFreeType: Win32.DWORD)
  1432.                                      return Win32.BOOL;     -- winbase.h:1208
  1433.  
  1434.     function VirtualProtect(lpAddress     : Win32.LPVOID;
  1435.                             dwSize        : Win32.DWORD;
  1436.                             flNewProtect  : Win32.DWORD;
  1437.                             lpflOldProtect: access Win32.DWORD)
  1438.                                             return Win32.BOOL;
  1439.                                                             -- winbase.h:1217
  1440.  
  1441.     function VirtualQuery(lpAddress: Win32.LPCVOID;
  1442.                           lpBuffer : Win32.Winnt.PMEMORY_BASIC_INFORMATION;
  1443.                           dwLength : Win32.DWORD)
  1444.                                      return Win32.DWORD;    -- winbase.h:1227
  1445.  
  1446.     function VirtualProtectEx(hProcess      : Win32.Winnt.HANDLE;
  1447.                               lpAddress     : Win32.LPVOID;
  1448.                               dwSize        : Win32.DWORD;
  1449.                               flNewProtect  : Win32.DWORD;
  1450.                               lpflOldProtect: access Win32.DWORD)
  1451.                                               return Win32.BOOL;
  1452.                                                             -- winbase.h:1236
  1453.  
  1454.     function VirtualQueryEx(hProcess : Win32.Winnt.HANDLE;
  1455.                             lpAddress: Win32.LPCVOID;
  1456.                             lpBuffer : Win32.Winnt.PMEMORY_BASIC_INFORMATION;
  1457.                             dwLength : Win32.DWORD)
  1458.                                        return Win32.DWORD;  -- winbase.h:1247
  1459.  
  1460.     function HeapCreate(flOptions    : Win32.DWORD;
  1461.                         dwInitialSize: Win32.DWORD;
  1462.                         dwMaximumSize: Win32.DWORD)
  1463.                                        return Win32.Winnt.HANDLE;   
  1464.                                                             -- winbase.h:1257
  1465.  
  1466.     function HeapDestroy(hHeap: Win32.Winnt.HANDLE) return Win32.BOOL;
  1467.                                                             -- winbase.h:1266
  1468.  
  1469.     function HeapAlloc(hHeap  : Win32.Winnt.HANDLE;
  1470.                        dwFlags: Win32.DWORD;
  1471.                        dwBytes: Win32.DWORD)
  1472.                                 return Win32.LPVOID;        -- winbase.h:1273
  1473.  
  1474.     function HeapReAlloc(hHeap  : Win32.Winnt.HANDLE;
  1475.                          dwFlags: Win32.DWORD;
  1476.                          lpMem  : Win32.LPVOID;
  1477.                          dwBytes: Win32.DWORD)
  1478.                                   return Win32.LPVOID;      -- winbase.h:1282
  1479.  
  1480.     function HeapFree(hHeap  : Win32.Winnt.HANDLE;
  1481.                       dwFlags: Win32.DWORD;
  1482.                       lpMem  : Win32.LPVOID)
  1483.                                return Win32.BOOL;           -- winbase.h:1292
  1484.  
  1485.     function HeapSize(hHeap  : Win32.Winnt.HANDLE;
  1486.                       dwFlags: Win32.DWORD;
  1487.                       lpMem  : Win32.LPCVOID)
  1488.                                return Win32.DWORD;          -- winbase.h:1301
  1489.  
  1490.     function HeapValidate(hHeap  : Win32.Winnt.HANDLE;
  1491.                           dwFlags: Win32.DWORD;
  1492.                           lpMem  : Win32.LPCVOID)
  1493.                                    return Win32.BOOL;       -- winbase.h:1310
  1494.  
  1495.     function HeapCompact(hHeap  : Win32.Winnt.HANDLE;
  1496.                          dwFlags: Win32.DWORD)
  1497.                                   return Win32.UINT;        -- winbase.h:1319
  1498.  
  1499.     function GetProcessHeap return Win32.Winnt.HANDLE;      -- winbase.h:1327
  1500.  
  1501.     function GetProcessHeaps(NumberOfHeaps: Win32.DWORD;
  1502.                              ProcessHeaps : Win32.Winnt.PHANDLE)
  1503.                                             return Win32.DWORD;
  1504.                                                             -- winbase.h:1332
  1505.  
  1506.     function HeapLock(hHeap: Win32.Winnt.HANDLE) return Win32.BOOL;
  1507.                                                             -- winbase.h:1366
  1508.  
  1509.     function HeapUnlock(hHeap: Win32.Winnt.HANDLE) return Win32.BOOL;
  1510.                                                             -- winbase.h:1373
  1511.  
  1512.     function HeapWalk(hHeap  : Win32.Winnt.HANDLE;
  1513.                       lpEntry: LPPROCESS_HEAP_ENTRY)
  1514.                                return Win32.BOOL;           -- winbase.h:1380
  1515.  
  1516.     function GetBinaryTypeA(lpApplicationName: Win32.LPCSTR;
  1517.                             lpBinaryType     : Win32.LPDWORD)
  1518.                                                return Win32.BOOL;
  1519.                                                             -- winbase.h:1397
  1520.  
  1521.     function GetBinaryType(lpApplicationName: Win32.LPCSTR;
  1522.                            lpBinaryType     : Win32.LPDWORD)
  1523.                                               return Win32.BOOL
  1524.                                               renames GetBinaryTypeA;
  1525.                                                             -- winbase.h:1397
  1526.  
  1527.     function GetBinaryTypeW(lpApplicationName: Win32.LPCWSTR;
  1528.                             lpBinaryType     : Win32.LPDWORD)
  1529.                                                return Win32.BOOL;
  1530.                                                             -- winbase.h:1404
  1531.  
  1532.     function GetShortPathNameA(lpszLongPath : Win32.LPCSTR;
  1533.                                lpszShortPath: Win32.LPSTR;
  1534.                                cchBuffer    : Win32.DWORD)
  1535.                                               return Win32.DWORD;
  1536.                                                             -- winbase.h:1417
  1537.  
  1538.     function GetShortPathName(lpszLongPath : Win32.LPCSTR;
  1539.                               lpszShortPath: Win32.LPSTR;
  1540.                               cchBuffer    : Win32.DWORD)
  1541.                                              return Win32.DWORD
  1542.                                              renames GetShortPathNameA;
  1543.                                                             -- winbase.h:1417
  1544.  
  1545.     function GetShortPathNameW(lpszLongPath : Win32.LPCWSTR;
  1546.                                lpszShortPath: Win32.LPWSTR;
  1547.                                cchBuffer    : Win32.DWORD)
  1548.                                               return Win32.DWORD;
  1549.                                                             -- winbase.h:1425
  1550.  
  1551.     function GetProcessAffinityMask(hProcess             : Win32.Winnt.HANDLE;
  1552.                                     lpProcessAffinityMask: Win32.LPDWORD;
  1553.                                     lpSystemAffinityMask : Win32.LPDWORD)
  1554.                                                            return Win32.BOOL;
  1555.                                                             -- winbase.h:1439
  1556.  
  1557.     function GetProcessTimes(hProcess      : Win32.Winnt.HANDLE;
  1558.                              lpCreationTime: LPFILETIME;
  1559.                              lpExitTime    : LPFILETIME;
  1560.                              lpKernelTime  : LPFILETIME;
  1561.                              lpUserTime    : LPFILETIME)
  1562.                                              return Win32.BOOL;
  1563.                                                             -- winbase.h:1448
  1564.  
  1565.     function GetProcessWorkingSetSize(hProcess             : Win32.Winnt.HANDLE;
  1566.                                       lpMinimumWorkingSetSize: Win32.LPDWORD;
  1567.                                       lpMaximumWorkingSetSize: Win32.LPDWORD)
  1568.                                       return Win32.BOOL;    -- winbase.h:1459
  1569.  
  1570.     function SetProcessWorkingSetSize(hProcess             : Win32.Winnt.HANDLE;
  1571.                                       dwMinimumWorkingSetSize: Win32.DWORD;
  1572.                                       dwMaximumWorkingSetSize: Win32.DWORD)
  1573.                                       return Win32.BOOL;    -- winbase.h:1468
  1574.  
  1575.     function OpenProcess(dwDesiredAccess: Win32.DWORD;
  1576.                          bInheritHandle : Win32.BOOL;
  1577.                          dwProcessId    : Win32.DWORD)
  1578.                                           return Win32.Winnt.HANDLE;
  1579.                                                             -- winbase.h:1477
  1580.  
  1581.     function GetCurrentProcess return Win32.Winnt.HANDLE;   -- winbase.h:1486
  1582.  
  1583.     function GetCurrentProcessId return Win32.DWORD;        -- winbase.h:1493
  1584.  
  1585.     procedure ExitProcess(uExitCode: Win32.UINT);           -- winbase.h:1500
  1586.  
  1587.     function TerminateProcess(hProcess : Win32.Winnt.HANDLE;
  1588.                               uExitCode: Win32.UINT)
  1589.                                          return Win32.BOOL; -- winbase.h:1507
  1590.  
  1591.     function GetExitCodeProcess(hProcess  : Win32.Winnt.HANDLE;
  1592.                                 lpExitCode: Win32.LPDWORD)
  1593.                                             return Win32.BOOL;
  1594.                                                             -- winbase.h:1515
  1595.  
  1596.     procedure FatalExit(ExitCode: Win32.INT);               -- winbase.h:1524
  1597.  
  1598.     function GetEnvironmentStrings return Win32.LPSTR;      -- winbase.h:1531
  1599.  
  1600.     function GetEnvironmentStringsA return Win32.LPSTR
  1601.                                     renames GetEnvironmentStrings;
  1602.                                                             -- winbase.h:1531
  1603.  
  1604.     function GetEnvironmentStringsW return Win32.LPWSTR;    -- winbase.h:1538
  1605.  
  1606.     function FreeEnvironmentStringsA(lpszEnvironmentBlock: Win32.LPSTR) 
  1607.         return Win32.BOOL;                                  -- winbase.h:1551
  1608.  
  1609.     function FreeEnvironmentStrings(lpszEnvironmentBlock: Win32.LPSTR) 
  1610.         return Win32.BOOL
  1611.         renames FreeEnvironmentStringsA;                    -- winbase.h:1551
  1612.  
  1613.     function FreeEnvironmentStringsW(lpszEnvironmentBlock: Win32.LPWSTR) 
  1614.         return Win32.BOOL;
  1615.                                                             -- winbase.h:1557
  1616.  
  1617.     procedure RaiseException(dwExceptionCode   : Win32.DWORD;
  1618.                              dwExceptionFlags  : Win32.DWORD;
  1619.                              nNumberOfArguments: Win32.DWORD;
  1620.                              lpArguments       : Win32.PCDWORD); 
  1621.                                                             -- winbase.h:1569
  1622.  
  1623.     function UnhandledExceptionFilter(
  1624.         ExceptionInfo: Win32.Winnt.PEXCEPTION_POINTERS) 
  1625.         return Win32.LONG;                                  -- winbase.h:1579
  1626.  
  1627.     function SetUnhandledExceptionFilter(
  1628.         lpTopLevelExceptionFilter: LPTOP_LEVEL_EXCEPTION_FILTER) 
  1629.         return LPTOP_LEVEL_EXCEPTION_FILTER;                -- winbase.h:1591
  1630.  
  1631.     function CreateThread(lpThreadAttributes: LPSECURITY_ATTRIBUTES;
  1632.                           dwStackSize       : Win32.DWORD;
  1633.                           lpStartAddress    : LPTHREAD_START_ROUTINE;
  1634.                           lpParameter       : Win32.LPVOID;
  1635.                           dwCreationFlags   : Win32.DWORD;
  1636.                           lpThreadId        : Win32.LPDWORD)
  1637.                                               return Win32.Winnt.HANDLE;
  1638.                                                             -- winbase.h:1598
  1639.  
  1640.     function CreateRemoteThread(hProcess          : Win32.Winnt.HANDLE;
  1641.                                 lpThreadAttributes: LPSECURITY_ATTRIBUTES;
  1642.                                 dwStackSize       : Win32.DWORD;
  1643.                                 lpStartAddress    : LPTHREAD_START_ROUTINE;
  1644.                                 lpParameter       : Win32.LPVOID;
  1645.                                 dwCreationFlags   : Win32.DWORD;
  1646.                                 lpThreadId        : Win32.LPDWORD)
  1647.                                                     return Win32.Winnt.HANDLE;
  1648.                                                             -- winbase.h:1610
  1649.  
  1650.     function GetCurrentThread return Win32.Winnt.HANDLE;    -- winbase.h:1623
  1651.  
  1652.     function GetCurrentThreadId return Win32.DWORD;         -- winbase.h:1630
  1653.  
  1654.     function SetThreadAffinityMask(hThread             : Win32.Winnt.HANDLE;
  1655.                                    dwThreadAffinityMask: Win32.DWORD)
  1656.                                                          return Win32.DWORD;
  1657.                                                             -- winbase.h:1637
  1658.  
  1659.     function SetThreadPriority(hThread  : Win32.Winnt.HANDLE;
  1660.                                nPriority: Win32.INT)
  1661.                                           return Win32.BOOL;-- winbase.h:1645
  1662.  
  1663.     function GetThreadPriority(hThread: Win32.Winnt.HANDLE) return Win32.INT;
  1664.                                                             -- winbase.h:1653
  1665.  
  1666.     function GetThreadTimes(hThread       : Win32.Winnt.HANDLE;
  1667.                             lpCreationTime: LPFILETIME;
  1668.                             lpExitTime    : LPFILETIME;
  1669.                             lpKernelTime  : LPFILETIME;
  1670.                             lpUserTime    : LPFILETIME)
  1671.                                             return Win32.BOOL;
  1672.                                                             -- winbase.h:1660
  1673.  
  1674.     procedure ExitThread(dwExitCode: Win32.DWORD);          -- winbase.h:1671
  1675.  
  1676.     function TerminateThread(hThread   : Win32.Winnt.HANDLE;
  1677.                              dwExitCode: Win32.DWORD)
  1678.                                          return Win32.BOOL; -- winbase.h:1678
  1679.  
  1680.     function GetExitCodeThread(hThread   : Win32.Winnt.HANDLE;
  1681.                                lpExitCode: Win32.LPDWORD)
  1682.                                            return Win32.BOOL;
  1683.                                                             -- winbase.h:1686
  1684.  
  1685.     function GetThreadSelectorEntry(hThread        : Win32.Winnt.HANDLE;
  1686.                                     dwSelector     : Win32.DWORD;
  1687.                                     lpSelectorEntry: LPLDT_ENTRY)
  1688.                                                      return Win32.BOOL;
  1689.                                                             -- winbase.h:1694
  1690.  
  1691.     function GetLastError return Win32.DWORD;               -- winbase.h:1703
  1692.  
  1693.     procedure SetLastError(dwErrCode: Win32.DWORD);         -- winbase.h:1710
  1694.  
  1695.     function GetOverlappedResult(hFile                     : Win32.Winnt.HANDLE;
  1696.                                  lpOverlapped              : Win32.Winbase.LPOVERLAPPED;
  1697.                                  lpNumberOfBytesTransferred: Win32.LPDWORD;
  1698.                                  bWait                     : Win32.BOOL)
  1699.                                                              return Win32.BOOL;
  1700.                                                             -- winbase.h:1717
  1701.  
  1702.     function CreateIoCompletionPort(
  1703.         FileHandle               : Win32.Winnt.HANDLE;
  1704.         ExistingCompletionPort   : Win32.Winnt.HANDLE;
  1705.         CompletionKey            : Win32.DWORD;
  1706.         NumberOfConcurrentThreads: Win32.DWORD)
  1707.                                    return Win32.Winnt.HANDLE;
  1708.                                                             -- winbase.h:1727
  1709.  
  1710.     function GetQueuedCompletionStatus(
  1711.         CompletionPort            : Win32.Winnt.HANDLE;
  1712.         lpNumberOfBytesTransferred: Win32.LPDWORD;
  1713.         lpCompletionKey           : Win32.LPDWORD;
  1714.         lpOverlapped              : access Win32.Winbase.LPOVERLAPPED;
  1715.         dwMilliseconds            : Win32.DWORD)
  1716.                                     return Win32.BOOL;      -- winbase.h:1737
  1717.  
  1718.     function SetErrorMode(uMode: Win32.UINT) return Win32.UINT;
  1719.                                                             -- winbase.h:1753
  1720.  
  1721.     function ReadProcessMemory(hProcess           : Win32.Winnt.HANDLE;
  1722.                                lpBaseAddress      : Win32.LPCVOID;
  1723.                                lpBuffer           : Win32.LPVOID;
  1724.                                nSize              : Win32.DWORD;
  1725.                                lpNumberOfBytesRead: Win32.LPDWORD)
  1726.                                                     return Win32.BOOL;
  1727.                                                             -- winbase.h:1760
  1728.  
  1729.     function WriteProcessMemory(hProcess              : Win32.Winnt.HANDLE;
  1730.                                 lpBaseAddress         : Win32.LPVOID;
  1731.                                 lpBuffer              : Win32.LPVOID;
  1732.                                 nSize                 : Win32.DWORD;
  1733.                                 lpNumberOfBytesWritten: Win32.LPDWORD)
  1734.                                                         return Win32.BOOL;
  1735.                                                             -- winbase.h:1771
  1736.  
  1737.     function GetThreadContext(hThread  : Win32.Winnt.HANDLE;
  1738.                               lpContext: Win32.Winbase.LPCONTEXT)
  1739.                                          return Win32.BOOL; -- winbase.h:1782
  1740.  
  1741.     function SetThreadContext(hThread  : Win32.Winnt.HANDLE;
  1742.                               lpContext: ac_CONTEXT_t)
  1743.                                          return Win32.BOOL; -- winbase.h:1790
  1744.  
  1745.     function SuspendThread(hThread: Win32.Winnt.HANDLE) return Win32.DWORD;
  1746.                                                             -- winbase.h:1798
  1747.  
  1748.     function ResumeThread(hThread: Win32.Winnt.HANDLE) return Win32.DWORD;
  1749.                                                             -- winbase.h:1805
  1750.  
  1751.     procedure DebugBreak;                                   -- winbase.h:1812
  1752.  
  1753.     function WaitForDebugEvent(lpDebugEvent  : LPDEBUG_EVENT;
  1754.                                dwMilliseconds: Win32.DWORD)
  1755.                                                return Win32.BOOL;
  1756.                                                             -- winbase.h:1819
  1757.  
  1758.     function ContinueDebugEvent(dwProcessId     : Win32.DWORD;
  1759.                                 dwThreadId      : Win32.DWORD;
  1760.                                 dwContinueStatus: Win32.DWORD)
  1761.                                                   return Win32.BOOL;
  1762.                                                             -- winbase.h:1827
  1763.  
  1764.     function DebugActiveProcess(dwProcessId: Win32.DWORD) return Win32.BOOL;
  1765.                                                             -- winbase.h:1836
  1766.  
  1767.     procedure InitializeCriticalSection(lpCriticalSection: LPCRITICAL_SECTION);
  1768.                                                             -- winbase.h:1843
  1769.  
  1770.     procedure EnterCriticalSection(lpCriticalSection: LPCRITICAL_SECTION);
  1771.                                                             -- winbase.h:1850
  1772.  
  1773.     procedure LeaveCriticalSection(lpCriticalSection: LPCRITICAL_SECTION);
  1774.                                                             -- winbase.h:1857
  1775.  
  1776.     procedure DeleteCriticalSection(lpCriticalSection: LPCRITICAL_SECTION);
  1777.                                                             -- winbase.h:1864
  1778.  
  1779.     function SetEvent(hEvent: Win32.Winnt.HANDLE) return Win32.BOOL;
  1780.                                                             -- winbase.h:1871
  1781.  
  1782.     function ResetEvent(hEvent: Win32.Winnt.HANDLE) return Win32.BOOL;
  1783.                                                             -- winbase.h:1878
  1784.  
  1785.     function PulseEvent(hEvent: Win32.Winnt.HANDLE) return Win32.BOOL;
  1786.                                                             -- winbase.h:1885
  1787.  
  1788.     function ReleaseSemaphore(hSemaphore     : Win32.Winnt.HANDLE;
  1789.                               lReleaseCount  : Win32.LONG;
  1790.                               lpPreviousCount: access Win32.LONG)
  1791.                                                return Win32.BOOL;
  1792.                                                             -- winbase.h:1892
  1793.  
  1794.     function ReleaseMutex(hMutex: Win32.Winnt.HANDLE) return Win32.BOOL;
  1795.                                                             -- winbase.h:1901
  1796.  
  1797.     function WaitForSingleObject(hHandle       : Win32.Winnt.HANDLE;
  1798.                                  dwMilliseconds: Win32.DWORD)
  1799.                                                  return Win32.DWORD;
  1800.                                                             -- winbase.h:1908
  1801.  
  1802.     function WaitForMultipleObjects(nCount        : Win32.DWORD;
  1803.                                     lpHandles     : PCHANDLE;
  1804.                                     bWaitAll      : Win32.BOOL;
  1805.                                     dwMilliseconds: Win32.DWORD)
  1806.                                                     return Win32.DWORD;
  1807.                                                             -- winbase.h:1916
  1808.  
  1809.     procedure Sleep(dwMilliseconds: Win32.DWORD);           -- winbase.h:1926
  1810.  
  1811.     function LoadResource(hModule : Win32.Windef.HINSTANCE;
  1812.                           hResInfo: Win32.Windef.HRSRC)
  1813.                                     return Win32.Windef.HGLOBAL;    
  1814.                                                             -- winbase.h:1933
  1815.  
  1816.     function SizeofResource(hModule : Win32.Windef.HINSTANCE;
  1817.                             hResInfo: Win32.Windef.HRSRC)
  1818.                                       return Win32.DWORD;   -- winbase.h:1941
  1819.  
  1820.     function GlobalDeleteAtom(nAtom: Win32.Windef.ATOM) 
  1821.                return Win32.Windef.ATOM;                    -- winbase.h:1950
  1822.  
  1823.     function InitAtomTable(nSize: Win32.DWORD) return Win32.BOOL;
  1824.                                                             -- winbase.h:1957
  1825.  
  1826.     function DeleteAtom(nAtom: Win32.Windef.ATOM) return Win32.Windef.ATOM;
  1827.                                                             -- winbase.h:1964
  1828.  
  1829.     function SetHandleCount(uNumber: Win32.UINT) return Win32.UINT;
  1830.                                                             -- winbase.h:1971
  1831.  
  1832.     function GetLogicalDrives return Win32.DWORD;           -- winbase.h:1978
  1833.  
  1834.     function LockFile(hFile                   : Win32.Winnt.HANDLE;
  1835.                       dwFileOffsetLow         : Win32.DWORD;
  1836.                       dwFileOffsetHigh        : Win32.DWORD;
  1837.                       nNumberOfBytesToLockLow : Win32.DWORD;
  1838.                       nNumberOfBytesToLockHigh: Win32.DWORD)
  1839.                                                 return Win32.BOOL;
  1840.                                                             -- winbase.h:1985
  1841.  
  1842.     function UnlockFile(hFile                     : Win32.Winnt.HANDLE;
  1843.                         dwFileOffsetLow           : Win32.DWORD;
  1844.                         dwFileOffsetHigh          : Win32.DWORD;
  1845.                         nNumberOfBytesToUnlockLow : Win32.DWORD;
  1846.                         nNumberOfBytesToUnlockHigh: Win32.DWORD)
  1847.                                                     return Win32.BOOL;
  1848.                                                             -- winbase.h:1996
  1849.  
  1850.     function LockFileEx(hFile                   : Win32.Winnt.HANDLE;
  1851.                         dwFlags                 : Win32.DWORD;
  1852.                         dwReserved              : Win32.DWORD;
  1853.                         nNumberOfBytesToLockLow : Win32.DWORD;
  1854.                         nNumberOfBytesToLockHigh: Win32.DWORD;
  1855.                         lpOverlapped            : Win32.Winbase.LPOVERLAPPED)
  1856.                                                   return Win32.BOOL;
  1857.                                                             -- winbase.h:2007
  1858.  
  1859.     function UnlockFileEx(hFile                     : Win32.Winnt.HANDLE;
  1860.                           dwReserved                : Win32.DWORD;
  1861.                           nNumberOfBytesToUnlockLow : Win32.DWORD;
  1862.                           nNumberOfBytesToUnlockHigh: Win32.DWORD;
  1863.                           lpOverlapped              : Win32.Winbase.LPOVERLAPPED)
  1864.                                                       return Win32.BOOL;
  1865.                                                             -- winbase.h:2022
  1866.  
  1867.     function GetFileInformationByHandle(
  1868.         hFile            : Win32.Winnt.HANDLE;
  1869.         lpFileInformation: LPBY_HANDLE_FILE_INFORMATION)
  1870.                            return Win32.BOOL;               -- winbase.h:2046
  1871.  
  1872.     function GetFileType(hFile: Win32.Winnt.HANDLE) return Win32.DWORD;
  1873.                                                             -- winbase.h:2054
  1874.  
  1875.     function GetFileSize(hFile         : Win32.Winnt.HANDLE;
  1876.                          lpFileSizeHigh: Win32.LPDWORD)
  1877.                                          return Win32.DWORD;-- winbase.h:2061
  1878.  
  1879.     function GetStdHandle(nStdHandle: Win32.DWORD) return Win32.Winnt.HANDLE;
  1880.                                                             -- winbase.h:2069
  1881.  
  1882.     function SetStdHandle(nStdHandle: Win32.DWORD;
  1883.                           hHandle   : Win32.Winnt.HANDLE)
  1884.                                       return Win32.BOOL;    -- winbase.h:2076
  1885.  
  1886.     function WriteFile(hFile                 : Win32.Winnt.HANDLE;
  1887.                        lpBuffer              : Win32.LPCVOID;
  1888.                        nNumberOfBytesToWrite : Win32.DWORD;
  1889.                        lpNumberOfBytesWritten: Win32.LPDWORD;
  1890.                        lpOverlapped          : Win32.Winbase.LPOVERLAPPED)
  1891.                                                return Win32.BOOL;
  1892.                                                             -- winbase.h:2084
  1893.  
  1894.     function ReadFile(hFile               : Win32.Winnt.HANDLE;
  1895.                       lpBuffer            : Win32.LPVOID;
  1896.                       nNumberOfBytesToRead: Win32.DWORD;
  1897.                       lpNumberOfBytesRead : Win32.LPDWORD;
  1898.                       lpOverlapped        : Win32.Winbase.LPOVERLAPPED)
  1899.                                             return Win32.BOOL;
  1900.                                                             -- winbase.h:2095
  1901.  
  1902.     function FlushFileBuffers(hFile: Win32.Winnt.HANDLE) return Win32.BOOL;
  1903.                                                             -- winbase.h:2106
  1904.  
  1905.     function DeviceIoControl(hDevice        : Win32.Winnt.HANDLE;
  1906.                              dwIoControlCode: Win32.DWORD;
  1907.                              lpInBuffer     : Win32.LPVOID;
  1908.                              nInBufferSize  : Win32.DWORD;
  1909.                              lpOutBuffer    : Win32.LPVOID;
  1910.                              nOutBufferSize : Win32.DWORD;
  1911.                              lpBytesReturned: Win32.LPDWORD;
  1912.                              lpOverlapped   : Win32.Winbase.LPOVERLAPPED)
  1913.                                               return Win32.BOOL;
  1914.                                                             -- winbase.h:2113
  1915.  
  1916.     function SetEndOfFile(hFile: Win32.Winnt.HANDLE) return Win32.BOOL;
  1917.                                                             -- winbase.h:2127
  1918.  
  1919.     function SetFilePointer(hFile               : Win32.Winnt.HANDLE;
  1920.                             lDistanceToMove     : Win32.LONG;
  1921.                             lpDistanceToMoveHigh: Win32.PLONG;
  1922.                             dwMoveMethod        : Win32.DWORD)
  1923.                                                   return Win32.DWORD;
  1924.                                                             -- winbase.h:2134
  1925.  
  1926.     function FindClose(hFindFile: Win32.Winnt.HANDLE) return Win32.BOOL;
  1927.                                                             -- winbase.h:2144
  1928.  
  1929.     function GetFileTime(hFile           : Win32.Winnt.HANDLE;
  1930.                          lpCreationTime  : LPFILETIME;
  1931.                          lpLastAccessTime: LPFILETIME;
  1932.                          lpLastWriteTime : LPFILETIME)
  1933.                                            return Win32.BOOL;
  1934.                                                             -- winbase.h:2151
  1935.  
  1936.     function SetFileTime(hFile           : Win32.Winnt.HANDLE;
  1937.                          lpCreationTime  : ac_FILETIME_t;
  1938.                          lpLastAccessTime: ac_FILETIME_t;
  1939.                          lpLastWriteTime : ac_FILETIME_t)
  1940.                                            return Win32.BOOL;
  1941.                                                             -- winbase.h:2161
  1942.  
  1943.     function CloseHandle(hObject: Win32.Winnt.HANDLE) return Win32.BOOL;
  1944.                                                             -- winbase.h:2171
  1945.  
  1946.     function DuplicateHandle(hSourceProcessHandle: Win32.Winnt.HANDLE;
  1947.                              hSourceHandle       : Win32.Winnt.HANDLE;
  1948.                              hTargetProcessHandle: Win32.Winnt.HANDLE;
  1949.                              lpTargetHandle      : Win32.Windef.LPHANDLE;
  1950.                              dwDesiredAccess     : Win32.DWORD;
  1951.                              bInheritHandle      : Win32.BOOL;
  1952.                              dwOptions           : Win32.DWORD)
  1953.                                                    return Win32.BOOL;
  1954.                                                             -- winbase.h:2178
  1955.  
  1956.     function GetHandleInformation(hObject  : Win32.Winnt.HANDLE;
  1957.                                   lpdwFlags: Win32.LPDWORD)
  1958.                                              return Win32.BOOL;
  1959.                                                             -- winbase.h:2191
  1960.  
  1961.     function SetHandleInformation(hObject: Win32.Winnt.HANDLE;
  1962.                                   dwMask : Win32.DWORD;
  1963.                                   dwFlags: Win32.DWORD)
  1964.                                            return Win32.BOOL;
  1965.                                                             -- winbase.h:2199
  1966.  
  1967.     function LoadModule(lpModuleName    : Win32.LPCSTR;
  1968.                         lpParameterBlock: Win32.LPVOID)
  1969.                                           return Win32.DWORD;
  1970.                                                             -- winbase.h:2213
  1971.  
  1972.     function WinExec(lpCmdLine: Win32.LPCSTR;
  1973.                      uCmdShow : Win32.UINT)
  1974.                                 return Win32.UINT;          -- winbase.h:2221
  1975.  
  1976.     function ClearCommBreak(hFile: Win32.Winnt.HANDLE) return Win32.BOOL;
  1977.                                                             -- winbase.h:2229
  1978.  
  1979.     function ClearCommError(hFile   : Win32.Winnt.HANDLE;
  1980.                             lpErrors: Win32.LPDWORD;
  1981.                             lpStat  : LPCOMSTAT)
  1982.                                       return Win32.BOOL;    -- winbase.h:2236
  1983.  
  1984.     function SetupComm(hFile     : Win32.Winnt.HANDLE;
  1985.                        dwInQueue : Win32.DWORD;
  1986.                        dwOutQueue: Win32.DWORD)
  1987.                                    return Win32.BOOL;       -- winbase.h:2245
  1988.  
  1989.     function EscapeCommFunction(hFile : Win32.Winnt.HANDLE;
  1990.                                 dwFunc: Win32.DWORD)
  1991.                                         return Win32.BOOL;  -- winbase.h:2254
  1992.  
  1993.     function GetCommConfig(hCommDev: Win32.Winnt.HANDLE;
  1994.                            lpCC    : LPCOMMCONFIG;
  1995.                            lpdwSize: Win32.LPDWORD)
  1996.                                      return Win32.BOOL;     -- winbase.h:2262
  1997.  
  1998.     function GetCommMask(hFile    : Win32.Winnt.HANDLE;
  1999.                          lpEvtMask: Win32.LPDWORD)
  2000.                                     return Win32.BOOL;      -- winbase.h:2271
  2001.  
  2002.     function GetCommProperties(hFile     : Win32.Winnt.HANDLE;
  2003.                                lpCommProp: Win32.Winbase.LPCOMMPROP)
  2004.                                            return Win32.BOOL;
  2005.                                                             -- winbase.h:2279
  2006.  
  2007.     function GetCommModemStatus(hFile      : Win32.Winnt.HANDLE;
  2008.                                 lpModemStat: Win32.LPDWORD)
  2009.                                              return Win32.BOOL;
  2010.                                                             -- winbase.h:2287
  2011.  
  2012.     function GetCommState(hFile: Win32.Winnt.HANDLE;
  2013.                           lpDCB: Win32.Winbase.LPDCB)
  2014.                                  return Win32.BOOL;         -- winbase.h:2295
  2015.  
  2016.     function GetCommTimeouts(hFile         : Win32.Winnt.HANDLE;
  2017.                              lpCommTimeouts: Win32.Winbase.LPCOMMTIMEOUTS)
  2018.                                              return Win32.BOOL;
  2019.                                                             -- winbase.h:2303
  2020.  
  2021.     function PurgeComm(hFile  : Win32.Winnt.HANDLE;
  2022.                        dwFlags: Win32.DWORD)
  2023.                                 return Win32.BOOL;          -- winbase.h:2311
  2024.  
  2025.     function SetCommBreak(hFile: Win32.Winnt.HANDLE) return Win32.BOOL;
  2026.                                                             -- winbase.h:2319
  2027.  
  2028.     function SetCommConfig(hCommDev: Win32.Winnt.HANDLE;
  2029.                            lpCC    : LPCOMMCONFIG;
  2030.                            dwSize  : Win32.DWORD)
  2031.                                      return Win32.BOOL;     -- winbase.h:2326
  2032.  
  2033.     function SetCommMask(hFile    : Win32.Winnt.HANDLE;
  2034.                          dwEvtMask: Win32.DWORD)
  2035.                                     return Win32.BOOL;      -- winbase.h:2335
  2036.  
  2037.     function SetCommState(hFile: Win32.Winnt.HANDLE;
  2038.                           lpDCB: Win32.Winbase.LPDCB)
  2039.                                  return Win32.BOOL;         -- winbase.h:2343
  2040.  
  2041.     function SetCommTimeouts(hFile         : Win32.Winnt.HANDLE;
  2042.                              lpCommTimeouts: Win32.Winbase.LPCOMMTIMEOUTS)
  2043.                                              return Win32.BOOL;
  2044.                                                             -- winbase.h:2351
  2045.  
  2046.     function TransmitCommChar(hFile: Win32.Winnt.HANDLE;
  2047.                               cChar: Win32.CHAR)
  2048.                                      return Win32.BOOL;     -- winbase.h:2359
  2049.  
  2050.     function WaitCommEvent(hFile       : Win32.Winnt.HANDLE;
  2051.                            lpEvtMask   : Win32.LPDWORD;
  2052.                            lpOverlapped: Win32.Winbase.LPOVERLAPPED)
  2053.                                          return Win32.BOOL; -- winbase.h:2367
  2054.  
  2055.     function SetTapePosition(hDevice         : Win32.Winnt.HANDLE;
  2056.                              dwPositionMethod: Win32.DWORD;
  2057.                              dwPartition     : Win32.DWORD;
  2058.                              dwOffsetLow     : Win32.DWORD;
  2059.                              dwOffsetHigh    : Win32.DWORD;
  2060.                              bImmediate      : Win32.BOOL)
  2061.                                                return Win32.DWORD;
  2062.                                                             -- winbase.h:2377
  2063.  
  2064.     function GetTapePosition(hDevice       : Win32.Winnt.HANDLE;
  2065.                              dwPositionType: Win32.DWORD;
  2066.                              lpdwPartition : Win32.LPDWORD;
  2067.                              lpdwOffsetLow : Win32.LPDWORD;
  2068.                              lpdwOffsetHigh: Win32.LPDWORD)
  2069.                                              return Win32.DWORD;
  2070.                                                             -- winbase.h:2389
  2071.  
  2072.     function PrepareTape(hDevice    : Win32.Winnt.HANDLE;
  2073.                          dwOperation: Win32.DWORD;
  2074.                          bImmediate : Win32.BOOL)
  2075.                                       return Win32.DWORD;   -- winbase.h:2400
  2076.  
  2077.     function EraseTape(hDevice    : Win32.Winnt.HANDLE;
  2078.                        dwEraseType: Win32.DWORD;
  2079.                        bImmediate : Win32.BOOL)
  2080.                                     return Win32.DWORD;     -- winbase.h:2409
  2081.  
  2082.     function CreateTapePartition(hDevice          : Win32.Winnt.HANDLE;
  2083.                                  dwPartitionMethod: Win32.DWORD;
  2084.                                  dwCount          : Win32.DWORD;
  2085.                                  dwSize           : Win32.DWORD)
  2086.                                                     return Win32.DWORD;
  2087.                                                             -- winbase.h:2418
  2088.  
  2089.     function WriteTapemark(hDevice        : Win32.Winnt.HANDLE;
  2090.                            dwTapemarkType : Win32.DWORD;
  2091.                            dwTapemarkCount: Win32.DWORD;
  2092.                            bImmediate     : Win32.BOOL)
  2093.                                             return Win32.DWORD;
  2094.                                                             -- winbase.h:2428
  2095.  
  2096.     function GetTapeStatus(hDevice: Win32.Winnt.HANDLE) return Win32.DWORD;
  2097.                                                             -- winbase.h:2438
  2098.  
  2099.     function GetTapeParameters(hDevice          : Win32.Winnt.HANDLE;
  2100.                                dwOperation      : Win32.DWORD;
  2101.                                lpdwSize         : Win32.LPDWORD;
  2102.                                lpTapeInformation: Win32.LPVOID)
  2103.                                                   return Win32.DWORD;
  2104.                                                             -- winbase.h:2445
  2105.  
  2106.     function SetTapeParameters(hDevice          : Win32.Winnt.HANDLE;
  2107.                                dwOperation      : Win32.DWORD;
  2108.                                lpTapeInformation: Win32.LPVOID)
  2109.                                                   return Win32.DWORD;
  2110.                                                             -- winbase.h:2458
  2111.  
  2112.     function Beep(dwFreq    : Win32.DWORD;
  2113.                   dwDuration: Win32.DWORD)
  2114.                               return Win32.BOOL;            -- winbase.h:2470
  2115.  
  2116.     procedure OpenSound;                                    -- winbase.h:2478
  2117.  
  2118.     procedure CloseSound;                                   -- winbase.h:2485
  2119.                                                            
  2120.     procedure StartSound;                                   -- winbase.h:2492
  2121.                                                            
  2122.     procedure StopSound;                                    -- winbase.h:2499
  2123.  
  2124.     function WaitSoundState(nState: Win32.DWORD) return Win32.DWORD;
  2125.                                                             -- winbase.h:2506
  2126.  
  2127.     function SyncAllVoices return Win32.DWORD;              -- winbase.h:2513
  2128.  
  2129.     function CountVoiceNotes(nVoice: Win32.DWORD) return Win32.DWORD;
  2130.                                                             -- winbase.h:2520
  2131.  
  2132.     function GetThresholdEvent return Win32.LPDWORD;        -- winbase.h:2527
  2133.  
  2134.     function GetThresholdStatus return Win32.DWORD;         -- winbase.h:2534
  2135.  
  2136.     function SetSoundNoise(nSource  : Win32.DWORD;
  2137.                            nDuration: Win32.DWORD)
  2138.                                       return Win32.DWORD;   -- winbase.h:2541
  2139.  
  2140.     function SetVoiceAccent(nVoice : Win32.DWORD;
  2141.                             nTempo : Win32.DWORD;
  2142.                             nVolume: Win32.DWORD;
  2143.                             nMode  : Win32.DWORD;
  2144.                             nPitch : Win32.DWORD)
  2145.                                      return Win32.DWORD;    -- winbase.h:2549
  2146.  
  2147.     function SetVoiceEnvelope(nVoice : Win32.DWORD;
  2148.                               nShape : Win32.DWORD;
  2149.                               nRepeat: Win32.DWORD)
  2150.                                        return Win32.DWORD;  -- winbase.h:2560
  2151.  
  2152.     function SetVoiceNote(nVoice : Win32.DWORD;
  2153.                           nValue : Win32.DWORD;
  2154.                           nLength: Win32.DWORD;
  2155.                           nCdots : Win32.DWORD)
  2156.                                    return Win32.DWORD;      -- winbase.h:2569
  2157.  
  2158.     function SetVoiceQueueSize(nVoice: Win32.DWORD;
  2159.                                nBytes: Win32.DWORD)
  2160.                                        return Win32.DWORD;  -- winbase.h:2579
  2161.  
  2162.     function SetVoiceSound(nVoice   : Win32.DWORD;
  2163.                            Frequency: Win32.DWORD;
  2164.                            nDuration: Win32.DWORD)
  2165.                                       return Win32.DWORD;   -- winbase.h:2587
  2166.  
  2167.     function SetVoiceThreshold(nVoice: Win32.DWORD;
  2168.                                nNotes: Win32.DWORD)
  2169.                                        return Win32.DWORD;  -- winbase.h:2596
  2170.  
  2171.     function MulDiv(nNumber     : Win32.INT;
  2172.                     nNumerator  : Win32.INT;
  2173.                     nDenominator: Win32.INT)
  2174.                                   return Win32.INT;         -- winbase.h:2604
  2175.  
  2176.     procedure GetSystemTime(lpSystemTime: Win32.Winbase.LPSYSTEMTIME);   
  2177.                                                             -- winbase.h:2613
  2178.  
  2179.     function SetSystemTime(lpSystemTime: ac_SYSTEMTIME_t) return Win32.BOOL;
  2180.                                                             -- winbase.h:2620
  2181.  
  2182.     procedure GetLocalTime(lpSystemTime: Win32.Winbase.LPSYSTEMTIME);     
  2183.                                                             -- winbase.h:2627
  2184.  
  2185.     function SetLocalTime(lpSystemTime: ac_SYSTEMTIME_t) return Win32.BOOL;
  2186.                                                             -- winbase.h:2634
  2187.  
  2188.     procedure GetSystemInfo(lpSystemInfo: LPSYSTEM_INFO);   -- winbase.h:2641
  2189.  
  2190.     function SystemTimeToTzSpecificLocalTime(
  2191.         lpTimeZoneInformation: LPTIME_ZONE_INFORMATION;
  2192.         lpUniversalTime      : LPSYSTEMTIME;
  2193.         lpLocalTime          : LPSYSTEMTIME)
  2194.                                return Win32.BOOL;           -- winbase.h:2658
  2195.  
  2196.     function GetTimeZoneInformation(
  2197.         lpTimeZoneInformation: LPTIME_ZONE_INFORMATION) 
  2198.                                return Win32.DWORD;          -- winbase.h:2667
  2199.  
  2200.     function SetTimeZoneInformation(
  2201.         lpTimeZoneInformation: ac_TIME_ZONE_INFORMATION_t) 
  2202.         return Win32.BOOL;                                  -- winbase.h:2674
  2203.  
  2204.     function SystemTimeToFileTime(lpSystemTime: ac_SYSTEMTIME_t;
  2205.                                   lpFileTime  : Win32.Winbase.LPFILETIME)
  2206.                                                 return Win32.BOOL;
  2207.                                                             -- winbase.h:2685
  2208.  
  2209.     function FileTimeToLocalFileTime(lpFileTime     : ac_FILETIME_t;
  2210.                                      lpLocalFileTime: Win32.Winbase.LPFILETIME)
  2211.                                                       return Win32.BOOL;
  2212.                                                             -- winbase.h:2693
  2213.  
  2214.     function LocalFileTimeToFileTime(lpLocalFileTime: ac_FILETIME_t;
  2215.                                      lpFileTime     : Win32.Winbase.LPFILETIME)
  2216.                                                       return Win32.BOOL;
  2217.                                                             -- winbase.h:2701
  2218.  
  2219.     function FileTimeToSystemTime(lpFileTime  : ac_FILETIME_t;
  2220.                                   lpSystemTime: Win32.Winbase.LPSYSTEMTIME)
  2221.                                                 return Win32.BOOL;
  2222.                                                             -- winbase.h:2709
  2223.  
  2224.     function CompareFileTime(lpFileTime1: ac_FILETIME_t;
  2225.                              lpFileTime2: ac_FILETIME_t)
  2226.                                           return Win32.LONG;-- winbase.h:2717
  2227.  
  2228.     function FileTimeToDosDateTime(lpFileTime: ac_FILETIME_t;
  2229.                                    lpFatDate : Win32.LPWORD;
  2230.                                    lpFatTime : Win32.LPWORD)
  2231.                                                return Win32.BOOL;
  2232.                                                             -- winbase.h:2725
  2233.  
  2234.     function DosDateTimeToFileTime(wFatDate  : Win32.WORD;
  2235.                                    wFatTime  : Win32.WORD;
  2236.                                    lpFileTime: Win32.Winbase.LPFILETIME)
  2237.                                                return Win32.BOOL;
  2238.                                                             -- winbase.h:2734
  2239.  
  2240.     function GetTickCount return Win32.DWORD;               -- winbase.h:2743
  2241.  
  2242.     function GetCurrentTime return DWORD renames GetTickCount;
  2243.                                                             -- winbase.h:53
  2244.  
  2245.     function SetSystemTimeAdjustment(dwTimeAdjustment       : Win32.DWORD;
  2246.                                      bTimeAdjustmentDisabled: Win32.BOOL)
  2247.                                                               return Win32.BOOL;
  2248.                                                             -- winbase.h:2750
  2249.  
  2250.     function GetSystemTimeAdjustment(
  2251.         lpTimeAdjustment        : access Win32.DWORD;
  2252.         lpTimeIncrement         : access Win32.DWORD;
  2253.         lpTimeAdjustmentDisabled: Win32.PBOOL)
  2254.                                      return Win32.BOOL;     -- winbase.h:2758
  2255.  
  2256.     function FormatMessageA(dwFlags     : Win32.DWORD;
  2257.                             lpSource    : Win32.LPCVOID;
  2258.                             dwMessageId : Win32.DWORD;
  2259.                             dwLanguageId: Win32.DWORD;
  2260.                             lpBuffer    : Win32.LPSTR;
  2261.                             nSize       : Win32.DWORD;
  2262.                             Arguments   : Stdarg.ArgList := Stdarg.Empty)
  2263.                                           return Win32.DWORD;   
  2264.                                                             -- winbase.h:2767
  2265.  
  2266.     function FormatMessage(dwFlags     : Win32.DWORD;
  2267.                            lpSource    : Win32.LPCVOID;
  2268.                            dwMessageId : Win32.DWORD;
  2269.                            dwLanguageId: Win32.DWORD;
  2270.                            lpBuffer    : Win32.LPSTR;
  2271.                            nSize       : Win32.DWORD;
  2272.                            Arguments   : Stdarg.ArgList := Stdarg.Empty)
  2273.                                          return Win32.DWORD
  2274.                                          renames FormatMessageA;
  2275.                                                             -- winbase.h:2767
  2276.  
  2277.     function FormatMessageW(dwFlags     : Win32.DWORD;
  2278.                             lpSource    : Win32.LPCVOID;
  2279.                             dwMessageId : Win32.DWORD;
  2280.                             dwLanguageId: Win32.DWORD;
  2281.                             lpBuffer    : Win32.LPWSTR;
  2282.                             nSize       : Win32.DWORD;
  2283.                             Arguments   : Stdarg.ArgList := Stdarg.Empty)
  2284.                                           return Win32.DWORD;   
  2285.                                                             -- winbase.h:2779
  2286.  
  2287.     function CreatePipe(hReadPipe       : Win32.Winnt.PHANDLE;
  2288.                         hWritePipe      : Win32.Winnt.PHANDLE;
  2289.                         lpPipeAttributes: LPSECURITY_ATTRIBUTES;
  2290.                         nSize           : Win32.DWORD)
  2291.                                           return Win32.BOOL;-- winbase.h:2806
  2292.  
  2293.     function ConnectNamedPipe(hNamedPipe  : Win32.Winnt.HANDLE;
  2294.                               lpOverlapped: Win32.Winbase.LPOVERLAPPED)
  2295.                                             return Win32.BOOL;  
  2296.                                                             -- winbase.h:2816
  2297.  
  2298.     function DisconnectNamedPipe(hNamedPipe: Win32.Winnt.HANDLE) 
  2299.                  return Win32.BOOL;                         -- winbase.h:2824
  2300.  
  2301.     function SetNamedPipeHandleState(hNamedPipe          : Win32.Winnt.HANDLE;
  2302.                                      lpMode              : Win32.LPDWORD;
  2303.                                      lpMaxCollectionCount: Win32.LPDWORD;
  2304.                                      lpCollectDataTimeout: Win32.LPDWORD)
  2305.                                                            return Win32.BOOL;
  2306.                                                             -- winbase.h:2831
  2307.  
  2308.     function GetNamedPipeInfo(hNamedPipe     : Win32.Winnt.HANDLE;
  2309.                               lpFlags        : Win32.LPDWORD;
  2310.                               lpOutBufferSize: Win32.LPDWORD;
  2311.                               lpInBufferSize : Win32.LPDWORD;
  2312.                               lpMaxInstances : Win32.LPDWORD)
  2313.                                                return Win32.BOOL;
  2314.                                                             -- winbase.h:2841
  2315.  
  2316.     function PeekNamedPipe(hNamedPipe            : Win32.Winnt.HANDLE;
  2317.                            lpBuffer              : Win32.LPVOID;
  2318.                            nBufferSize           : Win32.DWORD;
  2319.                            lpBytesRead           : Win32.LPDWORD;
  2320.                            lpTotalBytesAvail     : Win32.LPDWORD;
  2321.                            lpBytesLeftThisMessage: Win32.LPDWORD)
  2322.                                                    return Win32.BOOL;
  2323.                                                             -- winbase.h:2852
  2324.  
  2325.     function TransactNamedPipe(hNamedPipe    : Win32.Winnt.HANDLE;
  2326.                                lpInBuffer    : Win32.LPVOID;
  2327.                                nInBufferSize : Win32.DWORD;
  2328.                                lpOutBuffer   : Win32.LPVOID;
  2329.                                nOutBufferSize: Win32.DWORD;
  2330.                                lpBytesRead   : Win32.LPDWORD;
  2331.                                lpOverlapped  : Win32.Winbase.LPOVERLAPPED)
  2332.                                                return Win32.BOOL;
  2333.                                                             -- winbase.h:2864
  2334.  
  2335.     function CreateMailslotA(lpName              : Win32.LPCSTR;
  2336.                              nMaxMessageSize     : Win32.DWORD;
  2337.                              lReadTimeout        : Win32.DWORD;
  2338.                              lpSecurityAttributes: LPSECURITY_ATTRIBUTES)
  2339.                                                    return Win32.Winnt.HANDLE;
  2340.                                                             -- winbase.h:2877
  2341.  
  2342.     function CreateMailslot(lpName              : Win32.LPCSTR;
  2343.                             nMaxMessageSize     : Win32.DWORD;
  2344.                             lReadTimeout        : Win32.DWORD;
  2345.                             lpSecurityAttributes: LPSECURITY_ATTRIBUTES)
  2346.                                                   return Win32.Winnt.HANDLE
  2347.                                                   renames CreateMailslotA;
  2348.                                                             -- winbase.h:2877
  2349.  
  2350.     function CreateMailslotW(lpName              : Win32.LPCWSTR;
  2351.                              nMaxMessageSize     : Win32.DWORD;
  2352.                              lReadTimeout        : Win32.DWORD;
  2353.                              lpSecurityAttributes: LPSECURITY_ATTRIBUTES)
  2354.                                                    return Win32.Winnt.HANDLE;
  2355.                                                             -- winbase.h:2886
  2356.  
  2357.     function GetMailslotInfo(hMailslot       : Win32.Winnt.HANDLE;
  2358.                              lpMaxMessageSize: Win32.LPDWORD;
  2359.                              lpNextSize      : Win32.LPDWORD;
  2360.                              lpMessageCount  : Win32.LPDWORD;
  2361.                              lpReadTimeout   : Win32.LPDWORD)
  2362.                                                return Win32.BOOL;
  2363.                                                             -- winbase.h:2901
  2364.  
  2365.     function SetMailslotInfo(hMailslot   : Win32.Winnt.HANDLE;
  2366.                              lReadTimeout: Win32.DWORD)
  2367.                                            return Win32.BOOL;
  2368.                                                             -- winbase.h:2912
  2369.  
  2370.     function MapViewOfFile(hFileMappingObject  : Win32.Winnt.HANDLE;
  2371.                            dwDesiredAccess     : Win32.DWORD;
  2372.                            dwFileOffsetHigh    : Win32.DWORD;
  2373.                            dwFileOffsetLow     : Win32.DWORD;
  2374.                            dwNumberOfBytesToMap: Win32.DWORD)
  2375.                                                  return Win32.LPVOID;
  2376.                                                             -- winbase.h:2920
  2377.  
  2378.     function FlushViewOfFile(lpBaseAddress         : Win32.LPCVOID;
  2379.                              dwNumberOfBytesToFlush: Win32.DWORD)
  2380.                                                      return Win32.BOOL;
  2381.                                                             -- winbase.h:2931
  2382.  
  2383.     function UnmapViewOfFile(lpBaseAddress: Win32.LPVOID) return Win32.BOOL;
  2384.                                                             -- winbase.h:2939
  2385.  
  2386.     function lstrcmpA(lpString1: Win32.LPCSTR;
  2387.                       lpString2: Win32.LPCSTR)
  2388.                                  return Win32.INT;          -- winbase.h:2950
  2389.  
  2390.     function lstrcmp(lpString1: Win32.LPCSTR;
  2391.                      lpString2: Win32.LPCSTR)
  2392.                                 return Win32.INT
  2393.                                 renames lstrcmpA;           -- winbase.h:2950
  2394.  
  2395.     function lstrcmpW(lpString1: Win32.LPCWSTR;
  2396.                       lpString2: Win32.LPCWSTR)
  2397.                                  return Win32.INT;          -- winbase.h:2957
  2398.                                                            
  2399.     function lstrcmpiA(lpString1: Win32.LPCSTR;            
  2400.                        lpString2: Win32.LPCSTR)            
  2401.                                   return Win32.INT;         -- winbase.h:2970
  2402.                                                            
  2403.     function lstrcmpi(lpString1: Win32.LPCSTR;             
  2404.                       lpString2: Win32.LPCSTR)             
  2405.                                  return Win32.INT       
  2406.                                  renames lstrcmpiA;         -- winbase.h:2970
  2407.  
  2408.     function lstrcmpiW(lpString1: Win32.LPCWSTR;
  2409.                        lpString2: Win32.LPCWSTR)
  2410.                                   return Win32.INT;         -- winbase.h:2977
  2411.  
  2412.     function lstrcpynA(lpString1 : Win32.LPSTR;
  2413.                        lpString2 : Win32.LPCSTR;
  2414.                        iMaxLength: Win32.INT)
  2415.                                    return Win32.LPSTR;      -- winbase.h:2990
  2416.  
  2417.     function lstrcpyn(lpString1 : Win32.LPSTR;
  2418.                       lpString2 : Win32.LPCSTR;
  2419.                       iMaxLength: Win32.INT)
  2420.                                   return Win32.LPSTR
  2421.                                   renames lstrcpynA;        -- winbase.h:2990
  2422.  
  2423.     function lstrcpynW(lpString1 : Win32.LPWSTR;
  2424.                        lpString2 : Win32.LPCWSTR;
  2425.                        iMaxLength: Win32.INT)
  2426.                                    return Win32.LPWSTR;     -- winbase.h:2998
  2427.  
  2428.     function lstrcpyA(lpString1: Win32.LPSTR;
  2429.                       lpString2: Win32.LPCSTR)
  2430.                                  return Win32.LPSTR;        -- winbase.h:3012
  2431.  
  2432.     function lstrcpy(lpString1: Win32.LPSTR;
  2433.                      lpString2: Win32.LPCSTR)
  2434.                                 return Win32.LPSTR
  2435.                                 renames lstrcpyA;           -- winbase.h:3012
  2436.  
  2437.     function lstrcpyW(lpString1: Win32.LPWSTR;
  2438.                       lpString2: Win32.LPCWSTR)
  2439.                                  return Win32.LPWSTR;       -- winbase.h:3019
  2440.  
  2441.     function lstrcatA(lpString1: Win32.LPSTR;
  2442.                       lpString2: Win32.LPCSTR)
  2443.                                  return Win32.LPSTR;        -- winbase.h:3032
  2444.  
  2445.     function lstrcat(lpString1: Win32.LPSTR;
  2446.                      lpString2: Win32.LPCSTR)
  2447.                                 return Win32.LPSTR
  2448.                                 renames lstrcatA;           -- winbase.h:3032
  2449.  
  2450.     function lstrcatW(lpString1: Win32.LPWSTR;
  2451.                       lpString2: Win32.LPCWSTR)
  2452.                                  return Win32.LPWSTR;       -- winbase.h:3039
  2453.  
  2454.     function lstrlenA(lpString: Win32.LPCSTR) return Win32.INT;
  2455.                                                             -- winbase.h:3052
  2456.  
  2457.     function lstrlen(lpString: Win32.LPCSTR) return Win32.INT
  2458.                                                   renames lstrlenA;
  2459.                                                             -- winbase.h:3052
  2460.  
  2461.     function lstrlenW(lpString: Win32.LPCWSTR) return Win32.INT;
  2462.                                                             -- winbase.h:3058
  2463.  
  2464.     function OpenFile(lpFileName  : Win32.LPCSTR;
  2465.                       lpReOpenBuff: LPOFSTRUCT;
  2466.                       uStyle      : Win32.UINT)
  2467.                                     return Win32.Windef.HFILE;      
  2468.                                                             -- winbase.h:3070
  2469.  
  2470.     function lopen(lpPathName: Win32.LPCSTR;
  2471.                    iReadWrite: Win32.INT)
  2472.                                return Win32.Windef.HFILE;           
  2473.                                                             -- winbase.h:3079
  2474.  
  2475.     function lcreat(lpPathName: Win32.LPCSTR;
  2476.                     iAttribute: Win32.INT)
  2477.                                 return Win32.Windef.HFILE;  -- winbase.h:3087
  2478.  
  2479.     function lread(hFile   : Win32.Windef.HFILE;
  2480.                    lpBuffer: Win32.LPVOID;
  2481.                    uBytes  : Win32.UINT)
  2482.                              return Win32.UINT;             -- winbase.h:3095
  2483.  
  2484.     function lwrite(hFile   : Win32.Windef.HFILE;
  2485.                     lpBuffer: Win32.LPCSTR;
  2486.                     uBytes  : Win32.UINT)
  2487.                               return Win32.UINT;            -- winbase.h:3104
  2488.  
  2489.     function hread(hFile   : Win32.Windef.HFILE;
  2490.                    lpBuffer: Win32.LPVOID;
  2491.                    lBytes  : Win32.INT)
  2492.                              return Win32.INT;              -- winbase.h:3113
  2493.  
  2494.     function hwrite(hFile   : Win32.Windef.HFILE;
  2495.                     lpBuffer: Win32.LPCSTR;
  2496.                     lBytes  : Win32.INT)
  2497.                               return Win32.INT;             -- winbase.h:3122
  2498.  
  2499.     function lclose(hFile: Win32.Windef.HFILE) return Win32.Windef.HFILE;
  2500.                                                             -- winbase.h:3131
  2501.  
  2502.     function llseek(hFile  : Win32.Windef.HFILE;
  2503.                     lOffset: Win32.LONG;
  2504.                     iOrigin: Win32.INT)
  2505.                              return Win32.LONG;             -- winbase.h:3138
  2506.  
  2507.     function IsTextUnicode(lpBuffer: Win32.LPVOID;
  2508.                            cb      : Win32.INT;
  2509.                            lpi     : Win32.LPINT)
  2510.                                      return Win32.BOOL;     -- winbase.h:3147
  2511.  
  2512.     function TlsAlloc return Win32.DWORD;                   -- winbase.h:3156
  2513.  
  2514.     function TlsGetValue(dwTlsIndex: Win32.DWORD) return Win32.LPVOID;
  2515.                                                             -- winbase.h:3165
  2516.  
  2517.     function TlsSetValue(dwTlsIndex: Win32.DWORD;
  2518.                          lpTlsValue: Win32.LPVOID)
  2519.                                      return Win32.BOOL;     -- winbase.h:3172
  2520.  
  2521.     function TlsFree(dwTlsIndex: Win32.DWORD) return Win32.BOOL;
  2522.                                                             -- winbase.h:3180
  2523.  
  2524.     function SleepEx(dwMilliseconds: Win32.DWORD;
  2525.                      bAlertable    : Win32.BOOL)
  2526.                                      return Win32.DWORD;    -- winbase.h:3195
  2527.  
  2528.     function WaitForSingleObjectEx(hHandle       : Win32.Winnt.HANDLE;
  2529.                                    dwMilliseconds: Win32.DWORD;
  2530.                                    bAlertable    : Win32.BOOL)
  2531.                                                    return Win32.DWORD;
  2532.                                                             -- winbase.h:3203
  2533.  
  2534.     function WaitForMultipleObjectsEx(nCount        : Win32.DWORD;
  2535.                                       lpHandles     : PCHANDLE;
  2536.                                       bWaitAll      : Win32.BOOL;
  2537.                                       dwMilliseconds: Win32.DWORD;
  2538.                                       bAlertable    : Win32.BOOL)
  2539.                                                       return Win32.DWORD;
  2540.                                                             -- winbase.h:3212
  2541.  
  2542.     function ReadFileEx(hFile               : Win32.Winnt.HANDLE;
  2543.                         lpBuffer            : Win32.LPVOID;
  2544.                         nNumberOfBytesToRead: Win32.DWORD;
  2545.                         lpOverlapped        : Win32.Winbase.LPOVERLAPPED;
  2546.                         lpCompletionRoutine : LPOVERLAPPED_COMPLETION_ROUTINE)
  2547.                                               return Win32.BOOL;
  2548.                                                             -- winbase.h:3223
  2549.  
  2550.     function WriteFileEx(hFile                : Win32.Winnt.HANDLE;
  2551.                          lpBuffer             : Win32.LPCVOID;
  2552.                          nNumberOfBytesToWrite: Win32.DWORD;
  2553.                          lpOverlapped         : Win32.Winbase.LPOVERLAPPED;
  2554.                          lpCompletionRoutine  : LPOVERLAPPED_COMPLETION_ROUTINE)
  2555.                                                 return Win32.BOOL;
  2556.                                                             -- winbase.h:3234
  2557.  
  2558.     function BackupRead(hFile               : Win32.Winnt.HANDLE;
  2559.                         lpBuffer            : Win32.LPBYTE;
  2560.                         nNumberOfBytesToRead: Win32.DWORD;
  2561.                         lpNumberOfBytesRead : Win32.LPDWORD;
  2562.                         bAbort              : Win32.BOOL;
  2563.                         bProcessSecurity    : Win32.BOOL;
  2564.                         lpContext           : access Win32.LPVOID)
  2565.                                               return Win32.BOOL;
  2566.                                                             -- winbase.h:3245
  2567.  
  2568.     function BackupSeek(hFile             : Win32.Winnt.HANDLE;
  2569.                         dwLowBytesToSeek  : Win32.DWORD;
  2570.                         dwHighBytesToSeek : Win32.DWORD;
  2571.                         lpdwLowByteSeeked : Win32.LPDWORD;
  2572.                         lpdwHighByteSeeked: Win32.LPDWORD;
  2573.                         lpContext         : access Win32.LPVOID)
  2574.                                             return Win32.BOOL;
  2575.                                                             -- winbase.h:3258
  2576.  
  2577.     function BackupWrite(hFile                 : Win32.Winnt.HANDLE;
  2578.                          lpBuffer              : Win32.LPBYTE;
  2579.                          nNumberOfBytesToWrite : Win32.DWORD;
  2580.                          lpNumberOfBytesWritten: Win32.LPDWORD;
  2581.                          bAbort                : Win32.BOOL;
  2582.                          bProcessSecurity      : Win32.BOOL;
  2583.                          lpContext             : access Win32.LPVOID)
  2584.                                                  return Win32.BOOL;
  2585.                                                             -- winbase.h:3270
  2586.  
  2587.     function CreateMutexA(lpMutexAttributes: LPSECURITY_ATTRIBUTES;
  2588.                           bInitialOwner    : Win32.BOOL;
  2589.                           lpName           : Win32.LPCSTR)
  2590.                                              return Win32.Winnt.HANDLE;
  2591.                                                             -- winbase.h:3413
  2592.  
  2593.     function CreateMutex(lpMutexAttributes: LPSECURITY_ATTRIBUTES;
  2594.                          bInitialOwner    : Win32.BOOL;
  2595.                          lpName           : Win32.LPCSTR)
  2596.                                             return Win32.Winnt.HANDLE
  2597.                                             renames CreateMutexA;
  2598.                                                             -- winbase.h:3413
  2599.  
  2600.     function CreateMutexW(lpMutexAttributes: LPSECURITY_ATTRIBUTES;
  2601.                           bInitialOwner    : Win32.BOOL;
  2602.                           lpName           : Win32.LPCWSTR)
  2603.                                              return Win32.Winnt.HANDLE;
  2604.                                                             -- winbase.h:3421
  2605.  
  2606.     function OpenMutexA(dwDesiredAccess: Win32.DWORD;
  2607.                         bInheritHandle : Win32.BOOL;
  2608.                         lpName         : Win32.LPCSTR)
  2609.                                          return Win32.Winnt.HANDLE; 
  2610.                                                             -- winbase.h:3435
  2611.  
  2612.     function OpenMutex(dwDesiredAccess: Win32.DWORD;
  2613.                        bInheritHandle : Win32.BOOL;
  2614.                        lpName         : Win32.LPCSTR)
  2615.                                         return Win32.Winnt.HANDLE
  2616.                                         renames OpenMutexA;     
  2617.                                                             -- winbase.h:3435
  2618.  
  2619.     function OpenMutexW(dwDesiredAccess: Win32.DWORD;
  2620.                         bInheritHandle : Win32.BOOL;
  2621.                         lpName         : Win32.LPCWSTR)
  2622.                                          return Win32.Winnt.HANDLE; 
  2623.                                                             -- winbase.h:3443
  2624.  
  2625.     function CreateEventA(lpEventAttributes: LPSECURITY_ATTRIBUTES;
  2626.                           bManualReset     : Win32.BOOL;
  2627.                           bInitialState    : Win32.BOOL;
  2628.                           lpName           : Win32.LPCSTR)
  2629.                                              return Win32.Winnt.HANDLE;
  2630.                                                             -- winbase.h:3457
  2631.  
  2632.     function CreateEvent(lpEventAttributes: LPSECURITY_ATTRIBUTES;
  2633.                          bManualReset     : Win32.BOOL;
  2634.                          bInitialState    : Win32.BOOL;
  2635.                          lpName           : Win32.LPCSTR)
  2636.                                             return Win32.Winnt.HANDLE
  2637.                                             renames CreateEventA;
  2638.                                                             -- winbase.h:3457
  2639.  
  2640.     function CreateEventW(lpEventAttributes: LPSECURITY_ATTRIBUTES;
  2641.                           bManualReset     : Win32.BOOL;
  2642.                           bInitialState    : Win32.BOOL;
  2643.                           lpName           : Win32.LPCWSTR)
  2644.                                              return Win32.Winnt.HANDLE;
  2645.                                                             -- winbase.h:3466
  2646.  
  2647.     function OpenEventA(dwDesiredAccess: Win32.DWORD;
  2648.                         bInheritHandle : Win32.BOOL;
  2649.                         lpName         : Win32.LPCSTR)
  2650.                                          return Win32.Winnt.HANDLE; 
  2651.                                                             -- winbase.h:3481
  2652.  
  2653.     function OpenEvent(dwDesiredAccess: Win32.DWORD;
  2654.                        bInheritHandle : Win32.BOOL;
  2655.                        lpName         : Win32.LPCSTR)
  2656.                                         return Win32.Winnt.HANDLE
  2657.                                         renames OpenEventA;     
  2658.                                                             -- winbase.h:3481
  2659.  
  2660.     function OpenEventW(dwDesiredAccess: Win32.DWORD;
  2661.                         bInheritHandle : Win32.BOOL;
  2662.                         lpName         : Win32.LPCWSTR)
  2663.                                          return Win32.Winnt.HANDLE; 
  2664.                                                             -- winbase.h:3489
  2665.  
  2666.     function CreateSemaphoreA(lpSemaphoreAttributes: LPSECURITY_ATTRIBUTES;
  2667.                               lInitialCount        : Win32.LONG;
  2668.                               lMaximumCount        : Win32.LONG;
  2669.                               lpName               : Win32.LPCSTR)
  2670.                                                      return Win32.Winnt.HANDLE;
  2671.                                                             -- winbase.h:3503
  2672.  
  2673.     function CreateSemaphore(lpSemaphoreAttributes: LPSECURITY_ATTRIBUTES;
  2674.                              lInitialCount        : Win32.LONG;
  2675.                              lMaximumCount        : Win32.LONG;
  2676.                              lpName               : Win32.LPCSTR)
  2677.                                                     return Win32.Winnt.HANDLE
  2678.                                                     renames CreateSemaphoreA;
  2679.                                                             -- winbase.h:3503
  2680.  
  2681.     function CreateSemaphoreW(lpSemaphoreAttributes: LPSECURITY_ATTRIBUTES;
  2682.                               lInitialCount        : Win32.LONG;
  2683.                               lMaximumCount        : Win32.LONG;
  2684.                               lpName               : Win32.LPCWSTR)
  2685.                                                      return Win32.Winnt.HANDLE;
  2686.                                                             -- winbase.h:3512
  2687.  
  2688.     function OpenSemaphoreA(dwDesiredAccess: Win32.DWORD;
  2689.                             bInheritHandle : Win32.BOOL;
  2690.                             lpName         : Win32.LPCSTR)
  2691.                                              return Win32.Winnt.HANDLE;
  2692.                                                             -- winbase.h:3527
  2693.  
  2694.     function OpenSemaphore(dwDesiredAccess: Win32.DWORD;
  2695.                            bInheritHandle : Win32.BOOL;
  2696.                            lpName         : Win32.LPCSTR)
  2697.                                             return Win32.Winnt.HANDLE
  2698.                                             renames OpenSemaphoreA;
  2699.                                                             -- winbase.h:3527
  2700.  
  2701.     function OpenSemaphoreW(dwDesiredAccess: Win32.DWORD;
  2702.                             bInheritHandle : Win32.BOOL;
  2703.                             lpName         : Win32.LPCWSTR)
  2704.                                              return Win32.Winnt.HANDLE;
  2705.                                                             -- winbase.h:3535
  2706.  
  2707.     function CreateFileMappingA(hFile                  : Win32.Winnt.HANDLE;
  2708.                                 lpFileMappingAttributes: LPSECURITY_ATTRIBUTES;
  2709.                                 flProtect              : Win32.DWORD;
  2710.                                 dwMaximumSizeHigh      : Win32.DWORD;
  2711.                                 dwMaximumSizeLow       : Win32.DWORD;
  2712.                                 lpName                 : Win32.LPCSTR)
  2713.                                 return Win32.Winnt.HANDLE;
  2714.                                                             -- winbase.h:3549
  2715.  
  2716.     function CreateFileMapping(hFile                  : Win32.Winnt.HANDLE;
  2717.                                lpFileMappingAttributes: LPSECURITY_ATTRIBUTES;
  2718.                                flProtect              : Win32.DWORD;
  2719.                                dwMaximumSizeHigh      : Win32.DWORD;
  2720.                                dwMaximumSizeLow       : Win32.DWORD;
  2721.                                lpName                 : Win32.LPCSTR)
  2722.                                return Win32.Winnt.HANDLE
  2723.                                renames CreateFileMappingA;
  2724.                                                             -- winbase.h:3549
  2725.  
  2726.     function CreateFileMappingW(hFile                  : Win32.Winnt.HANDLE;
  2727.                                 lpFileMappingAttributes: LPSECURITY_ATTRIBUTES;
  2728.                                 flProtect              : Win32.DWORD;
  2729.                                 dwMaximumSizeHigh      : Win32.DWORD;
  2730.                                 dwMaximumSizeLow       : Win32.DWORD;
  2731.                                 lpName                 : Win32.LPCWSTR)
  2732.                                 return Win32.Winnt.HANDLE;
  2733.                                                             -- winbase.h:3560
  2734.  
  2735.     function OpenFileMappingA(dwDesiredAccess: Win32.DWORD;
  2736.                               bInheritHandle : Win32.BOOL;
  2737.                               lpName         : Win32.LPCSTR)
  2738.                                                return Win32.Winnt.HANDLE;
  2739.                                                             -- winbase.h:3577
  2740.  
  2741.     function OpenFileMapping(dwDesiredAccess: Win32.DWORD;
  2742.                              bInheritHandle : Win32.BOOL;
  2743.                              lpName         : Win32.LPCSTR)
  2744.                                               return Win32.Winnt.HANDLE
  2745.                                               renames OpenFileMappingA;
  2746.                                                             -- winbase.h:3577
  2747.  
  2748.     function OpenFileMappingW(dwDesiredAccess: Win32.DWORD;
  2749.                               bInheritHandle : Win32.BOOL;
  2750.                               lpName         : Win32.LPCWSTR)
  2751.                                                return Win32.Winnt.HANDLE;
  2752.                                                             -- winbase.h:3585
  2753.  
  2754.     function GetLogicalDriveStringsA(nBufferLength: Win32.DWORD;
  2755.                                      lpBuffer     : Win32.LPSTR)
  2756.                                                     return Win32.DWORD;
  2757.                                                             -- winbase.h:3599
  2758.  
  2759.     function GetLogicalDriveStrings(nBufferLength: Win32.DWORD;
  2760.                                     lpBuffer     : Win32.LPSTR)
  2761.                                                    return Win32.DWORD
  2762.              renames GetLogicalDriveStringsA;               -- winbase.h:3599
  2763.  
  2764.     function GetLogicalDriveStringsW(nBufferLength: Win32.DWORD;
  2765.                                      lpBuffer     : Win32.LPWSTR)
  2766.                                                     return Win32.DWORD;
  2767.                                                             -- winbase.h:3606
  2768.  
  2769.     function LoadLibraryA(lpLibFileName: Win32.LPCSTR) 
  2770.              return Win32.Windef.HINSTANCE;
  2771.                                                             -- winbase.h:3619
  2772.  
  2773.     function LoadLibrary(lpLibFileName: Win32.LPCSTR) 
  2774.              return Win32.Windef.HINSTANCE
  2775.              renames LoadLibraryA;                          -- winbase.h:3619
  2776.  
  2777.     function LoadLibraryW(lpLibFileName: Win32.LPCWSTR) 
  2778.              return Win32.Windef.HINSTANCE;                 -- winbase.h:3625
  2779.  
  2780.     function LoadLibraryExA(lpLibFileName: Win32.LPCSTR;
  2781.                             hFile        : Win32.Winnt.HANDLE;
  2782.                             dwFlags      : Win32.DWORD)
  2783.                                            return Win32.Windef.HINSTANCE;
  2784.                                                             -- winbase.h:3637
  2785.  
  2786.     function LoadLibraryEx(lpLibFileName: Win32.LPCSTR;
  2787.                            hFile        : Win32.Winnt.HANDLE;
  2788.                            dwFlags      : Win32.DWORD)
  2789.                                           return Win32.Windef.HINSTANCE
  2790.                                           renames LoadLibraryExA;
  2791.                                                             -- winbase.h:3637
  2792.  
  2793.     function LoadLibraryExW(lpLibFileName: Win32.LPCWSTR;
  2794.                             hFile        : Win32.Winnt.HANDLE;
  2795.                             dwFlags      : Win32.DWORD)
  2796.                                            return Win32.Windef.HINSTANCE;
  2797.                                                             -- winbase.h:3645
  2798.  
  2799.     function GetModuleFileNameA(hModule   : Win32.Windef.HINSTANCE;
  2800.                                 lpFilename: Win32.LPSTR;
  2801.                                 nSize     : Win32.DWORD)
  2802.                                             return Win32.DWORD;
  2803.                                                             -- winbase.h:3664
  2804.  
  2805.     function GetModuleFileName(hModule   : Win32.Windef.HINSTANCE;
  2806.                                lpFilename: Win32.LPSTR;
  2807.                                nSize     : Win32.DWORD)
  2808.                                            return Win32.DWORD
  2809.                                            renames GetModuleFileNameA;
  2810.                                                             -- winbase.h:3664
  2811.  
  2812.     function GetModuleFileNameW(hModule   : Win32.Windef.HINSTANCE;
  2813.                                 lpFilename: Win32.LPWSTR;
  2814.                                 nSize     : Win32.DWORD)
  2815.                                             return Win32.DWORD;
  2816.                                                             -- winbase.h:3672
  2817.  
  2818.     function GetModuleHandleA(lpModuleName: Win32.LPCSTR) 
  2819.              return Win32.Windef.HMODULE;                   -- winbase.h:3686
  2820.  
  2821.     function GetModuleHandle(lpModuleName: Win32.LPCSTR) 
  2822.              return Win32.Windef.HMODULE
  2823.              renames GetModuleHandleA;                      -- winbase.h:3686
  2824.  
  2825.     function GetModuleHandleW(lpModuleName: Win32.LPCWSTR) 
  2826.              return Win32.Windef.HMODULE;                   -- winbase.h:3692
  2827.  
  2828.     function CreateProcessA(lpApplicationName   : Win32.LPCSTR;
  2829.                             lpCommandLine       : Win32.LPSTR;
  2830.                             lpProcessAttributes : LPSECURITY_ATTRIBUTES;
  2831.                             lpThreadAttributes  : LPSECURITY_ATTRIBUTES;
  2832.                             bInheritHandles     : Win32.BOOL;
  2833.                             dwCreationFlags     : Win32.DWORD;
  2834.                             lpEnvironment       : Win32.LPVOID;
  2835.                             lpCurrentDirectory  : Win32.LPCSTR;
  2836.                             lpStartupInfo       : LPSTARTUPINFOA;
  2837.                             lpProcessInformation: LPPROCESS_INFORMATION)
  2838.                                                   return Win32.BOOL;
  2839.                                                             -- winbase.h:3704
  2840.  
  2841.     function CreateProcess(lpApplicationName   : Win32.LPCSTR;
  2842.                            lpCommandLine       : Win32.LPSTR;
  2843.                            lpProcessAttributes : LPSECURITY_ATTRIBUTES;
  2844.                            lpThreadAttributes  : LPSECURITY_ATTRIBUTES;
  2845.                            bInheritHandles     : Win32.BOOL;
  2846.                            dwCreationFlags     : Win32.DWORD;
  2847.                            lpEnvironment       : Win32.LPVOID;
  2848.                            lpCurrentDirectory  : Win32.LPCSTR;
  2849.                            lpStartupInfo       : LPSTARTUPINFOA;
  2850.                            lpProcessInformation: LPPROCESS_INFORMATION)
  2851.                                                  return Win32.BOOL
  2852.                                                  renames CreateProcessA;
  2853.                                                             -- winbase.h:3704
  2854.  
  2855.     function CreateProcessW(lpApplicationName   : Win32.LPCWSTR;
  2856.                             lpCommandLine       : Win32.LPWSTR;
  2857.                             lpProcessAttributes : LPSECURITY_ATTRIBUTES;
  2858.                             lpThreadAttributes  : LPSECURITY_ATTRIBUTES;
  2859.                             bInheritHandles     : Win32.BOOL;
  2860.                             dwCreationFlags     : Win32.DWORD;
  2861.                             lpEnvironment       : Win32.LPVOID;
  2862.                             lpCurrentDirectory  : Win32.LPCWSTR;
  2863.                             lpStartupInfo       : LPSTARTUPINFOW;
  2864.                             lpProcessInformation: LPPROCESS_INFORMATION)
  2865.                                                   return Win32.BOOL;
  2866.                                                             -- winbase.h:3719
  2867.  
  2868.     function SetProcessShutdownParameters(dwLevel: Win32.DWORD;
  2869.                                           dwFlags: Win32.DWORD)
  2870.                                                    return Win32.BOOL;
  2871.                                                             -- winbase.h:3740
  2872.  
  2873.     function GetProcessShutdownParameters(lpdwLevel: Win32.LPDWORD;
  2874.                                           lpdwFlags: Win32.LPDWORD)
  2875.                                                      return Win32.BOOL;
  2876.                                                             -- winbase.h:3748
  2877.  
  2878.     procedure FatalAppExitA(uAction      : Win32.UINT;
  2879.                             lpMessageText: Win32.LPCSTR);   -- winbase.h:3756
  2880.  
  2881.     procedure FatalAppExit(uAction      : Win32.UINT;
  2882.                            lpMessageText: Win32.LPCSTR)
  2883.                                           renames FatalAppExitA;
  2884.                                                             -- winbase.h:3756
  2885.  
  2886.     procedure FatalAppExitW(uAction      : Win32.UINT;
  2887.                             lpMessageText: Win32.LPCWSTR);  -- winbase.h:3763
  2888.  
  2889.     procedure GetStartupInfoA(lpStartupInfo: LPSTARTUPINFOA);   
  2890.                                                             -- winbase.h:3776
  2891.  
  2892.     procedure GetStartupInfo(lpStartupInfo: LPSTARTUPINFOA)
  2893.               renames GetStartupInfoA;                      -- winbase.h:3776
  2894.  
  2895.     procedure GetStartupInfoW(lpStartupInfo: LPSTARTUPINFOW);   
  2896.                                                             -- winbase.h:3782
  2897.  
  2898.     function GetCommandLineA return Win32.LPSTR;            -- winbase.h:3794
  2899.  
  2900.     function GetCommandLine return Win32.LPSTR
  2901.                             renames GetCommandLineA;            
  2902.                                                             -- winbase.h:3794
  2903.  
  2904.     function GetCommandLineW return Win32.LPWSTR;           -- winbase.h:3800
  2905.  
  2906.     function GetEnvironmentVariableA(lpName  : Win32.LPCSTR;
  2907.                                      lpBuffer: Win32.LPSTR;
  2908.                                      nSize   : Win32.DWORD)
  2909.                                                return Win32.DWORD;
  2910.                                                             -- winbase.h:3812
  2911.  
  2912.     function GetEnvironmentVariable(lpName  : Win32.LPCSTR;
  2913.                                     lpBuffer: Win32.LPSTR;
  2914.                                     nSize   : Win32.DWORD)
  2915.                                               return Win32.DWORD
  2916.                                               renames GetEnvironmentVariableA;
  2917.                                                             -- winbase.h:3812
  2918.  
  2919.     function GetEnvironmentVariableW(lpName  : Win32.LPCWSTR;
  2920.                                      lpBuffer: Win32.LPWSTR;
  2921.                                      nSize   : Win32.DWORD)
  2922.                                                return Win32.DWORD;
  2923.                                                             -- winbase.h:3820
  2924.  
  2925.     function SetEnvironmentVariableA(lpName : Win32.LPCSTR;
  2926.                                      lpValue: Win32.LPCSTR)
  2927.                                               return Win32.BOOL;
  2928.                                                             -- winbase.h:3834
  2929.  
  2930.     function SetEnvironmentVariable(lpName : Win32.LPCSTR;
  2931.                                     lpValue: Win32.LPCSTR)
  2932.                                              return Win32.BOOL
  2933.                                              renames SetEnvironmentVariableA;
  2934.                                                             -- winbase.h:3834
  2935.  
  2936.     function SetEnvironmentVariableW(lpName : Win32.LPCWSTR;
  2937.                                      lpValue: Win32.LPCWSTR)
  2938.                                               return Win32.BOOL;
  2939.                                                             -- winbase.h:3841
  2940.  
  2941.     function ExpandEnvironmentStringsA(lpSrc: Win32.LPCSTR;
  2942.                                        lpDst: Win32.LPSTR;
  2943.                                        nSize: Win32.DWORD)
  2944.                                               return Win32.DWORD;
  2945.                                                             -- winbase.h:3854
  2946.  
  2947.     function ExpandEnvironmentStrings(lpSrc: Win32.LPCSTR;
  2948.                                       lpDst: Win32.LPSTR;
  2949.                                       nSize: Win32.DWORD)
  2950.                                              return Win32.DWORD
  2951.                                              renames ExpandEnvironmentStringsA;
  2952.                                                             -- winbase.h:3854
  2953.  
  2954.     function ExpandEnvironmentStringsW(lpSrc: Win32.LPCWSTR;
  2955.                                        lpDst: Win32.LPWSTR;
  2956.                                        nSize: Win32.DWORD)
  2957.                                               return Win32.DWORD;
  2958.                                                             -- winbase.h:3862
  2959.  
  2960.     procedure OutputDebugStringA(lpOutputString: Win32.LPCSTR);
  2961.                                                             -- winbase.h:3876
  2962.  
  2963.     procedure OutputDebugString(lpOutputString: Win32.LPCSTR)
  2964.               renames OutputDebugStringA;                   -- winbase.h:3876
  2965.  
  2966.     procedure OutputDebugStringW(lpOutputString: Win32.LPCWSTR);
  2967.                                                             -- winbase.h:3882
  2968.  
  2969.     function FindResourceA(hModule: Win32.Windef.HINSTANCE;
  2970.                            lpName : Win32.LPCSTR;
  2971.                            lpType : Win32.LPCSTR)
  2972.                                     return Win32.Windef.HRSRC;      
  2973.                                                             -- winbase.h:3894
  2974.  
  2975.     function FindResource(hModule: Win32.Windef.HINSTANCE;
  2976.                           lpName : Win32.LPCSTR;
  2977.                           lpType : Win32.LPCSTR)
  2978.                                    return Win32.Windef.HRSRC
  2979.                                    renames FindResourceA;       
  2980.                                                             -- winbase.h:3894
  2981.  
  2982.     function FindResourceW(hModule: Win32.Windef.HINSTANCE;
  2983.                            lpName : Win32.LPCWSTR;
  2984.                            lpType : Win32.LPCWSTR)
  2985.                                     return Win32.Windef.HRSRC;      
  2986.                                                             -- winbase.h:3902
  2987.  
  2988.     function FindResourceExA(hModule  : Win32.Windef.HINSTANCE;
  2989.                              lpType   : Win32.LPCSTR;
  2990.                              lpName   : Win32.LPCSTR;
  2991.                              wLanguage: Win32.WORD)
  2992.                                         return Win32.Windef.HRSRC;  
  2993.                                                             -- winbase.h:3916
  2994.  
  2995.     function FindResourceEx(hModule  : Win32.Windef.HINSTANCE;
  2996.                             lpType   : Win32.LPCSTR;
  2997.                             lpName   : Win32.LPCSTR;
  2998.                             wLanguage: Win32.WORD)
  2999.                                        return Win32.Windef.HRSRC
  3000.                                        renames FindResourceExA; 
  3001.                                                             -- winbase.h:3916
  3002.  
  3003.     function FindResourceExW(hModule  : Win32.Windef.HINSTANCE;
  3004.                              lpType   : Win32.LPCWSTR;
  3005.                              lpName   : Win32.LPCWSTR;
  3006.                              wLanguage: Win32.WORD)
  3007.                                         return Win32.Windef.HRSRC;  
  3008.                                                             -- winbase.h:3925
  3009.  
  3010.     function EnumResourceTypesA(hModule   : Win32.Windef.HINSTANCE;
  3011.                                 lpEnumFunc: ENUMRESTYPEPROC;
  3012.                                 lParam    : Win32.LONG)
  3013.                                             return Win32.BOOL;
  3014.                                                             -- winbase.h:3953
  3015.  
  3016.     function EnumResourceTypes(hModule   : Win32.Windef.HINSTANCE;
  3017.                                lpEnumFunc: ENUMRESTYPEPROC;
  3018.                                lParam    : Win32.LONG)
  3019.                                            return Win32.BOOL
  3020.                                            renames EnumResourceTypesA;
  3021.                                                             -- winbase.h:3953
  3022.  
  3023.     function EnumResourceTypesW(hModule   : Win32.Windef.HINSTANCE;
  3024.                                 lpEnumFunc: ENUMRESTYPEPROC;
  3025.                                 lParam    : Win32.LONG)
  3026.                                             return Win32.BOOL;
  3027.                                                             -- winbase.h:3961
  3028.  
  3029.     function EnumResourceNamesA(hModule   : Win32.Windef.HINSTANCE;
  3030.                                 lpType    : Win32.LPCSTR;
  3031.                                 lpEnumFunc: ENUMRESNAMEPROC;
  3032.                                 lParam    : Win32.LONG)
  3033.                                             return Win32.BOOL;
  3034.                                                             -- winbase.h:3976
  3035.  
  3036.     function EnumResourceNames(hModule   : Win32.Windef.HINSTANCE;
  3037.                                lpType    : Win32.LPCSTR;
  3038.                                lpEnumFunc: ENUMRESNAMEPROC;
  3039.                                lParam    : Win32.LONG)
  3040.                                            return Win32.BOOL
  3041.                                            renames EnumResourceNamesA;
  3042.                                                             -- winbase.h:3976
  3043.  
  3044.     function EnumResourceNamesW(hModule   : Win32.Windef.HINSTANCE;
  3045.                                 lpType    : Win32.LPCWSTR;
  3046.                                 lpEnumFunc: ENUMRESNAMEPROC;
  3047.                                 lParam    : Win32.LONG)
  3048.                                             return Win32.BOOL;
  3049.                                                             -- winbase.h:3985
  3050.  
  3051.     function EnumResourceLanguagesA(hModule   : Win32.Windef.HINSTANCE;
  3052.                                     lpType    : Win32.LPCSTR;
  3053.                                     lpName    : Win32.LPCSTR;
  3054.                                     lpEnumFunc: ENUMRESLANGPROC;
  3055.                                     lParam    : Win32.LONG)
  3056.                                                 return Win32.BOOL;
  3057.                                                             -- winbase.h:4000
  3058.  
  3059.     function EnumResourceLanguages(hModule   : Win32.Windef.HINSTANCE;
  3060.                                    lpType    : Win32.LPCSTR;
  3061.                                    lpName    : Win32.LPCSTR;
  3062.                                    lpEnumFunc: ENUMRESLANGPROC;
  3063.                                    lParam    : Win32.LONG)
  3064.                                                return Win32.BOOL
  3065.                                                renames EnumResourceLanguagesA;
  3066.                                                             -- winbase.h:4000
  3067.  
  3068.     function EnumResourceLanguagesW(hModule   : Win32.Windef.HINSTANCE;
  3069.                                     lpType    : Win32.LPCWSTR;
  3070.                                     lpName    : Win32.LPCWSTR;
  3071.                                     lpEnumFunc: ENUMRESLANGPROC;
  3072.                                     lParam    : Win32.LONG)
  3073.                                                 return Win32.BOOL;
  3074.                                                             -- winbase.h:4010
  3075.  
  3076.     function BeginUpdateResourceA(pFileName               : Win32.LPCSTR;
  3077.                                   bDeleteExistingResources: Win32.BOOL)
  3078.                                   return Win32.Winnt.HANDLE;
  3079.                                                             -- winbase.h:4026
  3080.  
  3081.     function BeginUpdateResource(pFileName               : Win32.LPCSTR;
  3082.                                  bDeleteExistingResources: Win32.BOOL)
  3083.                                  return Win32.Winnt.HANDLE
  3084.              renames BeginUpdateResourceA;                  -- winbase.h:4026
  3085.  
  3086.     function BeginUpdateResourceW(pFileName               : Win32.LPCWSTR;
  3087.                                   bDeleteExistingResources: Win32.BOOL)
  3088.                                   return Win32.Winnt.HANDLE;-- winbase.h:4033
  3089.  
  3090.     function UpdateResourceA(hUpdate  : Win32.Winnt.HANDLE;
  3091.                              lpType   : Win32.LPCSTR;
  3092.                              lpName   : Win32.LPCSTR;
  3093.                              wLanguage: Win32.WORD;
  3094.                              lpData   : Win32.LPVOID;
  3095.                              cbData   : Win32.DWORD)
  3096.                                         return Win32.BOOL;  -- winbase.h:4046
  3097.  
  3098.     function UpdateResource(hUpdate  : Win32.Winnt.HANDLE;
  3099.                             lpType   : Win32.LPCSTR;
  3100.                             lpName   : Win32.LPCSTR;
  3101.                             wLanguage: Win32.WORD;
  3102.                             lpData   : Win32.LPVOID;
  3103.                             cbData   : Win32.DWORD)
  3104.                                        return Win32.BOOL
  3105.                                        renames UpdateResourceA; 
  3106.                                                             -- winbase.h:4046
  3107.  
  3108.     function UpdateResourceW(hUpdate  : Win32.Winnt.HANDLE;
  3109.                              lpType   : Win32.LPCWSTR;
  3110.                              lpName   : Win32.LPCWSTR;
  3111.                              wLanguage: Win32.WORD;
  3112.                              lpData   : Win32.LPVOID;
  3113.                              cbData   : Win32.DWORD)
  3114.                                         return Win32.BOOL;  -- winbase.h:4057
  3115.  
  3116.     function EndUpdateResourceA(hUpdate : Win32.Winnt.HANDLE;
  3117.                                 fDiscard: Win32.BOOL)
  3118.                                           return Win32.BOOL;-- winbase.h:4074
  3119.  
  3120.     function EndUpdateResource(hUpdate : Win32.Winnt.HANDLE;
  3121.                                fDiscard: Win32.BOOL)
  3122.                                          return Win32.BOOL
  3123.                                          renames EndUpdateResourceA;
  3124.                                                             -- winbase.h:4074
  3125.  
  3126.     function EndUpdateResourceW(hUpdate : Win32.Winnt.HANDLE;
  3127.                                 fDiscard: Win32.BOOL)
  3128.                                           return Win32.BOOL;-- winbase.h:4081
  3129.  
  3130.     function GlobalAddAtomA(lpString: Win32.LPCSTR) return Win32.Windef.ATOM;
  3131.                                                             -- winbase.h:4094
  3132.  
  3133.     function GlobalAddAtom(lpString: Win32.LPCSTR) return Win32.Windef.ATOM
  3134.              renames GlobalAddAtomA;                        -- winbase.h:4094
  3135.  
  3136.     function GlobalAddAtomW(lpString: Win32.LPCWSTR) return Win32.Windef.ATOM;
  3137.                                                             -- winbase.h:4100
  3138.  
  3139.     function GlobalFindAtomA(lpString: Win32.LPCSTR) return Win32.Windef.ATOM;
  3140.                                                             -- winbase.h:4112
  3141.  
  3142.     function GlobalFindAtom(lpString: Win32.LPCSTR) return Win32.Windef.ATOM
  3143.              renames GlobalFindAtomA;                       -- winbase.h:4112
  3144.  
  3145.     function GlobalFindAtomW(lpString: Win32.LPCWSTR) return Win32.Windef.ATOM;
  3146.                                                             -- winbase.h:4118
  3147.  
  3148.     function GlobalGetAtomNameA(nAtom   : Win32.Windef.ATOM;
  3149.                                 lpBuffer: Win32.LPSTR;
  3150.                                 nSize   : Win32.INT)
  3151.                                           return Win32.UINT;
  3152.                                                             -- winbase.h:4130
  3153.  
  3154.     function GlobalGetAtomName(nAtom   : Win32.Windef.ATOM;
  3155.                                lpBuffer: Win32.LPSTR;
  3156.                                nSize   : Win32.INT)
  3157.                                          return Win32.UINT
  3158.                                          renames GlobalGetAtomNameA;
  3159.                                                             -- winbase.h:4130
  3160.  
  3161.     function GlobalGetAtomNameW(nAtom   : Win32.Windef.ATOM;
  3162.                                 lpBuffer: Win32.LPWSTR;
  3163.                                 nSize   : Win32.INT)
  3164.                                           return Win32.UINT;
  3165.                                                             -- winbase.h:4138
  3166.  
  3167.     function AddAtomA(lpString: Win32.LPCSTR) return Win32.Windef.ATOM;
  3168.                                                             -- winbase.h:4152
  3169.  
  3170.     function AddAtom(lpString: Win32.LPCSTR) return Win32.Windef.ATOM
  3171.                                                   renames AddAtomA;
  3172.                                                             -- winbase.h:4152
  3173.  
  3174.     function AddAtomW(lpString: Win32.LPCWSTR) return Win32.Windef.ATOM;
  3175.                                                             -- winbase.h:4158
  3176.  
  3177.     function FindAtomA(lpString: Win32.LPCSTR) return Win32.Windef.ATOM;
  3178.                                                             -- winbase.h:4170
  3179.  
  3180.     function FindAtom(lpString: Win32.LPCSTR) return Win32.Windef.ATOM
  3181.                                                    renames FindAtomA;
  3182.                                                             -- winbase.h:4170
  3183.  
  3184.     function FindAtomW(lpString: Win32.LPCWSTR) return Win32.Windef.ATOM;
  3185.                                                             -- winbase.h:4176
  3186.  
  3187.     function GetAtomNameA(nAtom   : Win32.Windef.ATOM;
  3188.                           lpBuffer: Win32.LPSTR;
  3189.                           nSize   : Win32.INT)
  3190.                                     return Win32.UINT;      -- winbase.h:4188
  3191.  
  3192.     function GetAtomName(nAtom   : Win32.Windef.ATOM;
  3193.                          lpBuffer: Win32.LPSTR;
  3194.                          nSize   : Win32.INT)
  3195.                                    return Win32.UINT
  3196.                                    renames GetAtomNameA;    -- winbase.h:4188
  3197.  
  3198.     function GetAtomNameW(nAtom   : Win32.Windef.ATOM;
  3199.                           lpBuffer: Win32.LPWSTR;
  3200.                           nSize   : Win32.INT)
  3201.                                     return Win32.UINT;      -- winbase.h:4196
  3202.  
  3203.     function GetProfileIntA(lpAppName: Win32.LPCSTR;
  3204.                             lpKeyName: Win32.LPCSTR;
  3205.                             nDefault : Win32.INT)
  3206.                                        return Win32.UINT;   -- winbase.h:4210
  3207.  
  3208.     function GetProfileInt(lpAppName: Win32.LPCSTR;
  3209.                            lpKeyName: Win32.LPCSTR;
  3210.                            nDefault : Win32.INT)
  3211.                                       return Win32.UINT
  3212.                                       renames GetProfileIntA;   
  3213.                                                             -- winbase.h:4210
  3214.  
  3215.     function GetProfileIntW(lpAppName: Win32.LPCWSTR;
  3216.                             lpKeyName: Win32.LPCWSTR;
  3217.                             nDefault : Win32.INT)
  3218.                                        return Win32.UINT;   -- winbase.h:4218
  3219.  
  3220.     function GetProfileStringA(lpAppName       : Win32.LPCSTR;
  3221.                                lpKeyName       : Win32.LPCSTR;
  3222.                                lpDefault       : Win32.LPCSTR;
  3223.                                lpReturnedString: Win32.LPSTR;
  3224.                                nSize           : Win32.DWORD)
  3225.                                                  return Win32.DWORD;
  3226.                                                             -- winbase.h:4232
  3227.  
  3228.     function GetProfileString(lpAppName       : Win32.LPCSTR;
  3229.                               lpKeyName       : Win32.LPCSTR;
  3230.                               lpDefault       : Win32.LPCSTR;
  3231.                               lpReturnedString: Win32.LPSTR;
  3232.                               nSize           : Win32.DWORD)
  3233.                                                 return Win32.DWORD
  3234.                                                 renames GetProfileStringA;
  3235.                                                             -- winbase.h:4232
  3236.  
  3237.     function GetProfileStringW(lpAppName       : Win32.LPCWSTR;
  3238.                                lpKeyName       : Win32.LPCWSTR;
  3239.                                lpDefault       : Win32.LPCWSTR;
  3240.                                lpReturnedString: Win32.LPWSTR;
  3241.                                nSize           : Win32.DWORD)
  3242.                                                  return Win32.DWORD;
  3243.                                                             -- winbase.h:4242
  3244.  
  3245.     function WriteProfileStringA(lpAppName: Win32.LPCSTR;
  3246.                                  lpKeyName: Win32.LPCSTR;
  3247.                                  lpString : Win32.LPCSTR)
  3248.                                             return Win32.BOOL;
  3249.                                                             -- winbase.h:4258
  3250.  
  3251.     function WriteProfileString(lpAppName: Win32.LPCSTR;
  3252.                                 lpKeyName: Win32.LPCSTR;
  3253.                                 lpString : Win32.LPCSTR)
  3254.                                            return Win32.BOOL
  3255.                                            renames WriteProfileStringA;
  3256.                                                             -- winbase.h:4258
  3257.  
  3258.     function WriteProfileStringW(lpAppName: Win32.LPCWSTR;
  3259.                                  lpKeyName: Win32.LPCWSTR;
  3260.                                  lpString : Win32.LPCWSTR)
  3261.                                             return Win32.BOOL;
  3262.                                                             -- winbase.h:4266
  3263.  
  3264.     function GetProfileSectionA(lpAppName       : Win32.LPCSTR;
  3265.                                 lpReturnedString: Win32.LPSTR;
  3266.                                 nSize           : Win32.DWORD)
  3267.                                                   return Win32.DWORD;
  3268.                                                             -- winbase.h:4280
  3269.  
  3270.     function GetProfileSection(lpAppName       : Win32.LPCSTR;
  3271.                                lpReturnedString: Win32.LPSTR;
  3272.                                nSize           : Win32.DWORD)
  3273.                                                  return Win32.DWORD
  3274.                                                  renames GetProfileSectionA;
  3275.                                                             -- winbase.h:4280
  3276.  
  3277.     function GetProfileSectionW(lpAppName       : Win32.LPCWSTR;
  3278.                                 lpReturnedString: Win32.LPWSTR;
  3279.                                 nSize           : Win32.DWORD)
  3280.                                                   return Win32.DWORD;
  3281.                                                             -- winbase.h:4288
  3282.  
  3283.     function WriteProfileSectionA(lpAppName: Win32.LPCSTR;
  3284.                                   lpString : Win32.LPCSTR)
  3285.                                              return Win32.BOOL;
  3286.                                                             -- winbase.h:4302
  3287.  
  3288.     function WriteProfileSection(lpAppName: Win32.LPCSTR;
  3289.                                  lpString : Win32.LPCSTR)
  3290.                                             return Win32.BOOL
  3291.                                             renames WriteProfileSectionA;
  3292.                                                             -- winbase.h:4302
  3293.  
  3294.     function WriteProfileSectionW(lpAppName: Win32.LPCWSTR;
  3295.                                   lpString : Win32.LPCWSTR)
  3296.                                              return Win32.BOOL;
  3297.                                                             -- winbase.h:4309
  3298.  
  3299.     function GetPrivateProfileIntA(lpAppName : Win32.LPCSTR;
  3300.                                    lpKeyName : Win32.LPCSTR;
  3301.                                    nDefault  : Win32.INT;
  3302.                                    lpFileName: Win32.LPCSTR)
  3303.                                                return Win32.UINT;
  3304.                                                             -- winbase.h:4322
  3305.  
  3306.     function GetPrivateProfileInt(lpAppName : Win32.LPCSTR;
  3307.                                   lpKeyName : Win32.LPCSTR;
  3308.                                   nDefault  : Win32.INT;
  3309.                                   lpFileName: Win32.LPCSTR)
  3310.                                               return Win32.UINT
  3311.                                               renames GetPrivateProfileIntA;
  3312.                                                             -- winbase.h:4322
  3313.  
  3314.     function GetPrivateProfileIntW(lpAppName : Win32.LPCWSTR;
  3315.                                    lpKeyName : Win32.LPCWSTR;
  3316.                                    nDefault  : Win32.INT;
  3317.                                    lpFileName: Win32.LPCWSTR)
  3318.                                                return Win32.UINT;
  3319.                                                             -- winbase.h:4331
  3320.  
  3321.     function GetPrivateProfileStringA(lpAppName       : Win32.LPCSTR;
  3322.                                       lpKeyName       : Win32.LPCSTR;
  3323.                                       lpDefault       : Win32.LPCSTR;
  3324.                                       lpReturnedString: Win32.LPSTR;
  3325.                                       nSize           : Win32.DWORD;
  3326.                                       lpFileName      : Win32.LPCSTR)
  3327.                                                         return Win32.DWORD;
  3328.                                                             -- winbase.h:4346
  3329.  
  3330.     function GetPrivateProfileString(lpAppName       : Win32.LPCSTR;
  3331.                                      lpKeyName       : Win32.LPCSTR;
  3332.                                      lpDefault       : Win32.LPCSTR;
  3333.                                      lpReturnedString: Win32.LPSTR;
  3334.                                      nSize           : Win32.DWORD;
  3335.                                      lpFileName      : Win32.LPCSTR)
  3336.                                                        return Win32.DWORD
  3337.              renames GetPrivateProfileStringA;              -- winbase.h:4346
  3338.  
  3339.     function GetPrivateProfileStringW(lpAppName       : Win32.LPCWSTR;
  3340.                                       lpKeyName       : Win32.LPCWSTR;
  3341.                                       lpDefault       : Win32.LPCWSTR;
  3342.                                       lpReturnedString: Win32.LPWSTR;
  3343.                                       nSize           : Win32.DWORD;
  3344.                                       lpFileName      : Win32.LPCWSTR)
  3345.                                                         return Win32.DWORD;
  3346.                                                             -- winbase.h:4357
  3347.  
  3348.     function WritePrivateProfileStringA(lpAppName : Win32.LPCSTR;
  3349.                                         lpKeyName : Win32.LPCSTR;
  3350.                                         lpString  : Win32.LPCSTR;
  3351.                                         lpFileName: Win32.LPCSTR)
  3352.                                                     return Win32.BOOL;
  3353.                                                             -- winbase.h:4374
  3354.  
  3355.     function WritePrivateProfileString(lpAppName : Win32.LPCSTR;
  3356.                                        lpKeyName : Win32.LPCSTR;
  3357.                                        lpString  : Win32.LPCSTR;
  3358.                                        lpFileName: Win32.LPCSTR)
  3359.                                                    return Win32.BOOL
  3360.              renames WritePrivateProfileStringA;            -- winbase.h:4374
  3361.  
  3362.     function WritePrivateProfileStringW(lpAppName : Win32.LPCWSTR;
  3363.                                         lpKeyName : Win32.LPCWSTR;
  3364.                                         lpString  : Win32.LPCWSTR;
  3365.                                         lpFileName: Win32.LPCWSTR)
  3366.                                                     return Win32.BOOL;
  3367.                                                             -- winbase.h:4383
  3368.  
  3369.     function GetPrivateProfileSectionA(lpAppName       : Win32.LPCSTR;
  3370.                                        lpReturnedString: Win32.LPSTR;
  3371.                                        nSize           : Win32.DWORD;
  3372.                                        lpFileName      : Win32.LPCSTR)
  3373.                                                          return Win32.DWORD;
  3374.                                                             -- winbase.h:4398
  3375.  
  3376.     function GetPrivateProfileSection(lpAppName       : Win32.LPCSTR;
  3377.                                       lpReturnedString: Win32.LPSTR;
  3378.                                       nSize           : Win32.DWORD;
  3379.                                       lpFileName      : Win32.LPCSTR)
  3380.                                                         return Win32.DWORD
  3381.               renames GetPrivateProfileSectionA;            -- winbase.h:4398
  3382.  
  3383.     function GetPrivateProfileSectionW(lpAppName       : Win32.LPCWSTR;
  3384.                                        lpReturnedString: Win32.LPWSTR;
  3385.                                        nSize           : Win32.DWORD;
  3386.                                        lpFileName      : Win32.LPCWSTR)
  3387.                                                          return Win32.DWORD;
  3388.                                                             -- winbase.h:4407
  3389.  
  3390.     function WritePrivateProfileSectionA(lpAppName : Win32.LPCSTR;
  3391.                                          lpString  : Win32.LPCSTR;
  3392.                                          lpFileName: Win32.LPCSTR)
  3393.                                                      return Win32.BOOL;
  3394.                                                             -- winbase.h:4422
  3395.  
  3396.     function WritePrivateProfileSection(lpAppName : Win32.LPCSTR;
  3397.                                         lpString  : Win32.LPCSTR;
  3398.                                         lpFileName: Win32.LPCSTR)
  3399.                                                     return Win32.BOOL
  3400.              renames WritePrivateProfileSectionA;           -- winbase.h:4422
  3401.  
  3402.     function WritePrivateProfileSectionW(lpAppName : Win32.LPCWSTR;
  3403.                                          lpString  : Win32.LPCWSTR;
  3404.                                          lpFileName: Win32.LPCWSTR)
  3405.                                                      return Win32.BOOL;
  3406.                                                             -- winbase.h:4430
  3407.  
  3408.     function GetDriveTypeA(lpRootPathName: Win32.LPCSTR) return Win32.UINT;
  3409.                                                             -- winbase.h:4444
  3410.  
  3411.     function GetDriveType(lpRootPathName: Win32.LPCSTR) return Win32.UINT
  3412.              renames GetDriveTypeA;                         -- winbase.h:4444
  3413.  
  3414.     function GetDriveTypeW(lpRootPathName: Win32.LPCWSTR) return Win32.UINT;
  3415.                                                             -- winbase.h:4450
  3416.  
  3417.     function GetSystemDirectoryA(lpBuffer: Win32.LPSTR;
  3418.                                  uSize   : Win32.UINT)
  3419.                                            return Win32.UINT;
  3420.                                                             -- winbase.h:4462
  3421.  
  3422.     function GetSystemDirectory(lpBuffer: Win32.LPSTR;
  3423.                                 uSize   : Win32.UINT)
  3424.                                           return Win32.UINT
  3425.                                           renames GetSystemDirectoryA;
  3426.                                                             -- winbase.h:4462
  3427.  
  3428.     function GetSystemDirectoryW(lpBuffer: Win32.LPWSTR;
  3429.                                  uSize   : Win32.UINT)
  3430.                                            return Win32.UINT;
  3431.                                                             -- winbase.h:4469
  3432.  
  3433.     function GetTempPathA(nBufferLength: Win32.DWORD;
  3434.                           lpBuffer     : Win32.LPSTR)
  3435.                                          return Win32.DWORD;-- winbase.h:4482
  3436.  
  3437.     function GetTempPath(nBufferLength: Win32.DWORD;
  3438.                          lpBuffer     : Win32.LPSTR)
  3439.                                         return Win32.DWORD
  3440.                                         renames GetTempPathA;   
  3441.                                                             -- winbase.h:4482
  3442.  
  3443.     function GetTempPathW(nBufferLength: Win32.DWORD;
  3444.                           lpBuffer     : Win32.LPWSTR)
  3445.                                          return Win32.DWORD;-- winbase.h:4489
  3446.  
  3447.     function GetTempFileNameA(lpPathName    : Win32.LPCSTR;
  3448.                               lpPrefixString: Win32.LPCSTR;
  3449.                               uUnique       : Win32.UINT;
  3450.                               lpTempFileName: Win32.LPSTR)
  3451.                                               return Win32.UINT;
  3452.                                                             -- winbase.h:4502
  3453.  
  3454.     function GetTempFileName(lpPathName    : Win32.LPCSTR;
  3455.                              lpPrefixString: Win32.LPCSTR;
  3456.                              uUnique       : Win32.UINT;
  3457.                              lpTempFileName: Win32.LPSTR)
  3458.                                              return Win32.UINT
  3459.                                              renames GetTempFileNameA;
  3460.                                                             -- winbase.h:4502
  3461.  
  3462.     function GetTempFileNameW(lpPathName    : Win32.LPCWSTR;
  3463.                               lpPrefixString: Win32.LPCWSTR;
  3464.                               uUnique       : Win32.UINT;
  3465.                               lpTempFileName: Win32.LPWSTR)
  3466.                                               return Win32.UINT;
  3467.                                                             -- winbase.h:4511
  3468.  
  3469.     function GetWindowsDirectoryA(lpBuffer: Win32.LPSTR;
  3470.                                   uSize   : Win32.UINT)
  3471.                                             return Win32.UINT;
  3472.                                                             -- winbase.h:4526
  3473.  
  3474.     function GetWindowsDirectory(lpBuffer: Win32.LPSTR;
  3475.                                  uSize   : Win32.UINT)
  3476.                                            return Win32.UINT
  3477.                                            renames GetWindowsDirectoryA;
  3478.                                                             -- winbase.h:4526
  3479.  
  3480.     function GetWindowsDirectoryW(lpBuffer: Win32.LPWSTR;
  3481.                                   uSize   : Win32.UINT)
  3482.                                             return Win32.UINT;
  3483.                                                             -- winbase.h:4533
  3484.  
  3485.     function SetCurrentDirectoryA(lpPathName: Win32.LPCSTR) return Win32.BOOL;
  3486.                                                             -- winbase.h:4546
  3487.  
  3488.     function SetCurrentDirectory(lpPathName: Win32.LPCSTR) return Win32.BOOL
  3489.              renames SetCurrentDirectoryA;                  -- winbase.h:4546
  3490.  
  3491.     function SetCurrentDirectoryW(lpPathName: Win32.LPCWSTR) return Win32.BOOL;
  3492.                                                             -- winbase.h:4552
  3493.  
  3494.     function GetCurrentDirectoryA(nBufferLength: Win32.DWORD;
  3495.                                   lpBuffer     : Win32.LPSTR)
  3496.                                                  return Win32.DWORD;
  3497.                                                             -- winbase.h:4564
  3498.  
  3499.     function GetCurrentDirectory(nBufferLength: Win32.DWORD;
  3500.                                  lpBuffer     : Win32.LPSTR)
  3501.                                                 return Win32.DWORD
  3502.                                                 renames GetCurrentDirectoryA;
  3503.                                                             -- winbase.h:4564
  3504.  
  3505.     function GetCurrentDirectoryW(nBufferLength: Win32.DWORD;
  3506.                                   lpBuffer     : Win32.LPWSTR)
  3507.                                                  return Win32.DWORD;
  3508.                                                             -- winbase.h:4571
  3509.  
  3510.     function GetDiskFreeSpaceA(lpRootPathName         : Win32.LPCSTR;
  3511.                                lpSectorsPerCluster    : Win32.LPDWORD;
  3512.                                lpBytesPerSector       : Win32.LPDWORD;
  3513.                                lpNumberOfFreeClusters : Win32.LPDWORD;
  3514.                                lpTotalNumberOfClusters: Win32.LPDWORD)
  3515.                                                         return Win32.BOOL;
  3516.                                                             -- winbase.h:4584
  3517.  
  3518.     function GetDiskFreeSpace(lpRootPathName         : Win32.LPCSTR;
  3519.                               lpSectorsPerCluster    : Win32.LPDWORD;
  3520.                               lpBytesPerSector       : Win32.LPDWORD;
  3521.                               lpNumberOfFreeClusters : Win32.LPDWORD;
  3522.                               lpTotalNumberOfClusters: Win32.LPDWORD)
  3523.                                                        return Win32.BOOL
  3524.              renames GetDiskFreeSpaceA;                     -- winbase.h:4584
  3525.  
  3526.     function GetDiskFreeSpaceW(lpRootPathName         : Win32.LPCWSTR;
  3527.                                lpSectorsPerCluster    : Win32.LPDWORD;
  3528.                                lpBytesPerSector       : Win32.LPDWORD;
  3529.                                lpNumberOfFreeClusters : Win32.LPDWORD;
  3530.                                lpTotalNumberOfClusters: Win32.LPDWORD)
  3531.                                                         return Win32.BOOL;
  3532.                                                             -- winbase.h:4594
  3533.  
  3534.     function CreateDirectoryA(lpPathName          : Win32.LPCSTR;
  3535.                               lpSecurityAttributes: LPSECURITY_ATTRIBUTES)
  3536.                                                     return Win32.BOOL;
  3537.                                                             -- winbase.h:4610
  3538.  
  3539.     function CreateDirectory(lpPathName          : Win32.LPCSTR;
  3540.                              lpSecurityAttributes: LPSECURITY_ATTRIBUTES)
  3541.                                                    return Win32.BOOL
  3542.                                                    renames CreateDirectoryA;
  3543.                                                             -- winbase.h:4610
  3544.  
  3545.     function CreateDirectoryW(lpPathName          : Win32.LPCWSTR;
  3546.                               lpSecurityAttributes: LPSECURITY_ATTRIBUTES)
  3547.                                                     return Win32.BOOL;
  3548.                                                             -- winbase.h:4617
  3549.  
  3550.     function CreateDirectoryExA(lpTemplateDirectory : Win32.LPCSTR;
  3551.                                 lpNewDirectory      : Win32.LPCSTR;
  3552.                                 lpSecurityAttributes: LPSECURITY_ATTRIBUTES)
  3553.                                                       return Win32.BOOL;
  3554.                                                             -- winbase.h:4630
  3555.  
  3556.     function CreateDirectoryEx(lpTemplateDirectory : Win32.LPCSTR;
  3557.                                lpNewDirectory      : Win32.LPCSTR;
  3558.                                lpSecurityAttributes: LPSECURITY_ATTRIBUTES)
  3559.                                                      return Win32.BOOL
  3560.                                                      renames CreateDirectoryExA;
  3561.                                                             -- winbase.h:4630
  3562.  
  3563.     function CreateDirectoryExW(lpTemplateDirectory : Win32.LPCWSTR;
  3564.                                 lpNewDirectory      : Win32.LPCWSTR;
  3565.                                 lpSecurityAttributes: LPSECURITY_ATTRIBUTES)
  3566.                                                       return Win32.BOOL;
  3567.                                                             -- winbase.h:4638
  3568.  
  3569.     function RemoveDirectoryA(lpPathName: Win32.LPCSTR) return Win32.BOOL;
  3570.                                                             -- winbase.h:4652
  3571.  
  3572.     function RemoveDirectory(lpPathName: Win32.LPCSTR) return Win32.BOOL
  3573.              renames RemoveDirectoryA;                      -- winbase.h:4652
  3574.  
  3575.     function RemoveDirectoryW(lpPathName: Win32.LPCWSTR) return Win32.BOOL;
  3576.                                                             -- winbase.h:4658
  3577.  
  3578.     function GetFullPathNameA(lpFileName   : Win32.LPCSTR;
  3579.                               nBufferLength: Win32.DWORD;
  3580.                               lpBuffer     : Win32.LPSTR;
  3581.                               lpFilePart   : access Win32.LPSTR)
  3582.                                              return Win32.DWORD;
  3583.                                                             -- winbase.h:4670
  3584.  
  3585.     function GetFullPathName(lpFileName   : Win32.LPCSTR;
  3586.                              nBufferLength: Win32.DWORD;
  3587.                              lpBuffer     : Win32.LPSTR;
  3588.                              lpFilePart   : access Win32.LPSTR)
  3589.                                             return Win32.DWORD
  3590.                                             renames GetFullPathNameA;
  3591.                                                             -- winbase.h:4670
  3592.  
  3593.     function GetFullPathNameW(lpFileName   : Win32.LPCWSTR;
  3594.                               nBufferLength: Win32.DWORD;
  3595.                               lpBuffer     : Win32.LPWSTR;
  3596.                               lpFilePart   : access Win32.PWSTR)
  3597.                                              return Win32.DWORD;
  3598.                                                             -- winbase.h:4679
  3599.  
  3600.     function DefineDosDeviceA(dwFlags     : Win32.DWORD;
  3601.                               lpDeviceName: Win32.LPCSTR;
  3602.                               lpTargetPath: Win32.LPCSTR)
  3603.                                             return Win32.BOOL;
  3604.                                                             -- winbase.h:4699
  3605.  
  3606.     function DefineDosDevice(dwFlags     : Win32.DWORD;
  3607.                              lpDeviceName: Win32.LPCSTR;
  3608.                              lpTargetPath: Win32.LPCSTR)
  3609.                                            return Win32.BOOL
  3610.                                            renames DefineDosDeviceA;
  3611.                                                             -- winbase.h:4699
  3612.  
  3613.     function DefineDosDeviceW(dwFlags     : Win32.DWORD;
  3614.                               lpDeviceName: Win32.LPCWSTR;
  3615.                               lpTargetPath: Win32.LPCWSTR)
  3616.                                             return Win32.BOOL;
  3617.                                                             -- winbase.h:4707
  3618.  
  3619.     function QueryDosDeviceA(lpDeviceName: Win32.LPCSTR;
  3620.                              lpTargetPath: Win32.LPSTR;
  3621.                              ucchMax     : Win32.DWORD)
  3622.                                            return Win32.DWORD;
  3623.                                                             -- winbase.h:4721
  3624.  
  3625.     function QueryDosDevice(lpDeviceName: Win32.LPCSTR;
  3626.                             lpTargetPath: Win32.LPSTR;
  3627.                             ucchMax     : Win32.DWORD)
  3628.                                           return Win32.DWORD
  3629.                                           renames QueryDosDeviceA;
  3630.                                                             -- winbase.h:4721
  3631.  
  3632.     function QueryDosDeviceW(lpDeviceName: Win32.LPCWSTR;
  3633.                              lpTargetPath: Win32.LPWSTR;
  3634.                              ucchMax     : Win32.DWORD)
  3635.                                            return Win32.DWORD;
  3636.                                                             -- winbase.h:4729
  3637.  
  3638.     function CreateFileA(lpFileName           : Win32.LPCSTR;
  3639.                          dwDesiredAccess      : Win32.DWORD;
  3640.                          dwShareMode          : Win32.DWORD;
  3641.                          lpSecurityAttributes : LPSECURITY_ATTRIBUTES;
  3642.                          dwCreationDisposition: Win32.DWORD;
  3643.                          dwFlagsAndAttributes : Win32.DWORD;
  3644.                          hTemplateFile        : Win32.Winnt.HANDLE)
  3645.                                                 return Win32.Winnt.HANDLE;
  3646.                                                             -- winbase.h:4745
  3647.  
  3648.     function CreateFile(lpFileName           : Win32.LPCSTR;
  3649.                         dwDesiredAccess      : Win32.DWORD;
  3650.                         dwShareMode          : Win32.DWORD;
  3651.                         lpSecurityAttributes : LPSECURITY_ATTRIBUTES;
  3652.                         dwCreationDisposition: Win32.DWORD;
  3653.                         dwFlagsAndAttributes : Win32.DWORD;
  3654.                         hTemplateFile        : Win32.Winnt.HANDLE)
  3655.                                                return Win32.Winnt.HANDLE
  3656.                                                renames CreateFileA;
  3657.                                                             -- winbase.h:4745
  3658.  
  3659.     function CreateFileW(lpFileName           : Win32.LPCWSTR;
  3660.                          dwDesiredAccess      : Win32.DWORD;
  3661.                          dwShareMode          : Win32.DWORD;
  3662.                          lpSecurityAttributes : LPSECURITY_ATTRIBUTES;
  3663.                          dwCreationDisposition: Win32.DWORD;
  3664.                          dwFlagsAndAttributes : Win32.DWORD;
  3665.                          hTemplateFile        : Win32.Winnt.HANDLE)
  3666.                                                 return Win32.Winnt.HANDLE;
  3667.                                                             -- winbase.h:4757
  3668.  
  3669.     function SetFileAttributesA(lpFileName      : Win32.LPCSTR;
  3670.                                 dwFileAttributes: Win32.DWORD)
  3671.                                                   return Win32.BOOL;
  3672.                                                             -- winbase.h:4775
  3673.  
  3674.     function SetFileAttributes(lpFileName      : Win32.LPCSTR;
  3675.                                dwFileAttributes: Win32.DWORD)
  3676.                                                  return Win32.BOOL
  3677.                                                  renames SetFileAttributesA;
  3678.                                                             -- winbase.h:4775
  3679.  
  3680.     function SetFileAttributesW(lpFileName      : Win32.LPCWSTR;
  3681.                                 dwFileAttributes: Win32.DWORD)
  3682.                                                   return Win32.BOOL;
  3683.                                                             -- winbase.h:4782
  3684.  
  3685.     function GetFileAttributesA(lpFileName: Win32.LPCSTR) return Win32.DWORD;
  3686.                                                             -- winbase.h:4795
  3687.  
  3688.     function GetFileAttributes(lpFileName: Win32.LPCSTR) return Win32.DWORD
  3689.              renames GetFileAttributesA;                    -- winbase.h:4795
  3690.  
  3691.     function GetFileAttributesW(lpFileName: Win32.LPCWSTR) return Win32.DWORD;
  3692.                                                             -- winbase.h:4801
  3693.  
  3694.     function GetCompressedFileSizeA(lpFileName    : Win32.LPCSTR;
  3695.                                     lpFileSizeHigh: Win32.LPDWORD)
  3696.                                                     return Win32.DWORD;
  3697.                                                             -- winbase.h:4813
  3698.  
  3699.     function GetCompressedFileSize(lpFileName    : Win32.LPCSTR;
  3700.                                    lpFileSizeHigh: Win32.LPDWORD)
  3701.                                                    return Win32.DWORD
  3702.              renames GetCompressedFileSizeA;                -- winbase.h:4813
  3703.  
  3704.     function GetCompressedFileSizeW(lpFileName    : Win32.LPCWSTR;
  3705.                                     lpFileSizeHigh: Win32.LPDWORD)
  3706.                                                     return Win32.DWORD;
  3707.                                                             -- winbase.h:4820
  3708.  
  3709.     function DeleteFileA(lpFileName: Win32.LPCSTR) return Win32.BOOL;
  3710.                                                             -- winbase.h:4833
  3711.  
  3712.     function DeleteFile(lpFileName: Win32.LPCSTR) return Win32.BOOL
  3713.                                                        renames DeleteFileA;
  3714.                                                             -- winbase.h:4833
  3715.  
  3716.     function DeleteFileW(lpFileName: Win32.LPCWSTR) return Win32.BOOL;
  3717.                                                             -- winbase.h:4839
  3718.  
  3719.     function FindFirstFileA(lpFileName    : Win32.LPCSTR;
  3720.                             lpFindFileData: LPWIN32_FIND_DATAA)
  3721.                                             return Win32.Winnt.HANDLE;
  3722.                                                             -- winbase.h:4851
  3723.  
  3724.     function FindFirstFile(lpFileName    : Win32.LPCSTR;
  3725.                            lpFindFileData: LPWIN32_FIND_DATAA)
  3726.                                            return Win32.Winnt.HANDLE
  3727.                                            renames FindFirstFileA;
  3728.                                                             -- winbase.h:4851
  3729.  
  3730.     function FindFirstFileW(lpFileName    : Win32.LPCWSTR;
  3731.                             lpFindFileData: LPWIN32_FIND_DATAW)
  3732.                                             return Win32.Winnt.HANDLE;
  3733.                                                             -- winbase.h:4858
  3734.  
  3735.     function FindNextFileA(hFindFile     : Win32.Winnt.HANDLE;
  3736.                            lpFindFileData: LPWIN32_FIND_DATAA)
  3737.                                            return Win32.BOOL;
  3738.                                                             -- winbase.h:4871
  3739.  
  3740.     function FindNextFile(hFindFile     : Win32.Winnt.HANDLE;
  3741.                           lpFindFileData: LPWIN32_FIND_DATAA)
  3742.                                           return Win32.BOOL
  3743.                                           renames FindNextFileA;
  3744.                                                             -- winbase.h:4871
  3745.  
  3746.     function FindNextFileW(hFindFile     : Win32.Winnt.HANDLE;
  3747.                            lpFindFileData: LPWIN32_FIND_DATAW)
  3748.                                            return Win32.BOOL;
  3749.                                                             -- winbase.h:4878
  3750.  
  3751.     function SearchPathA(lpPath       : Win32.LPCSTR;
  3752.                          lpFileName   : Win32.LPCSTR;
  3753.                          lpExtension  : Win32.LPCSTR;
  3754.                          nBufferLength: Win32.DWORD;
  3755.                          lpBuffer     : Win32.LPSTR;
  3756.                          lpFilePart   : access Win32.LPSTR)
  3757.                                         return Win32.DWORD; -- winbase.h:4891
  3758.  
  3759.     function SearchPath(lpPath       : Win32.LPCSTR;
  3760.                         lpFileName   : Win32.LPCSTR;
  3761.                         lpExtension  : Win32.LPCSTR;
  3762.                         nBufferLength: Win32.DWORD;
  3763.                         lpBuffer     : Win32.LPSTR;
  3764.                         lpFilePart   : access Win32.LPSTR)
  3765.                                        return Win32.DWORD
  3766.                                        renames SearchPathA;     
  3767.                                                             -- winbase.h:4891
  3768.  
  3769.     function SearchPathW(lpPath       : Win32.LPCWSTR;
  3770.                          lpFileName   : Win32.LPCWSTR;
  3771.                          lpExtension  : Win32.LPCWSTR;
  3772.                          nBufferLength: Win32.DWORD;
  3773.                          lpBuffer     : Win32.LPWSTR;
  3774.                          lpFilePart   : access Win32.PWSTR)
  3775.                                         return Win32.DWORD; -- winbase.h:4902
  3776.  
  3777.     function CopyFileA(lpExistingFileName: Win32.LPCSTR;
  3778.                        lpNewFileName     : Win32.LPCSTR;
  3779.                        bFailIfExists     : Win32.BOOL)
  3780.                                            return Win32.BOOL;
  3781.                                                             -- winbase.h:4919
  3782.  
  3783.     function CopyFile(lpExistingFileName: Win32.LPCSTR;
  3784.                       lpNewFileName     : Win32.LPCSTR;
  3785.                       bFailIfExists     : Win32.BOOL)
  3786.                                           return Win32.BOOL
  3787.                                           renames CopyFileA;-- winbase.h:4919
  3788.  
  3789.     function CopyFileW(lpExistingFileName: Win32.LPCWSTR;
  3790.                        lpNewFileName     : Win32.LPCWSTR;
  3791.                        bFailIfExists     : Win32.BOOL)
  3792.                                            return Win32.BOOL;
  3793.                                                             -- winbase.h:4927
  3794.  
  3795.     function MoveFileA(lpExistingFileName: Win32.LPCSTR;
  3796.                        lpNewFileName     : Win32.LPCSTR)
  3797.                                            return Win32.BOOL;
  3798.                                                             -- winbase.h:4941
  3799.  
  3800.     function MoveFile(lpExistingFileName: Win32.LPCSTR;
  3801.                       lpNewFileName     : Win32.LPCSTR)
  3802.                                           return Win32.BOOL
  3803.                                           renames MoveFileA;-- winbase.h:4941
  3804.  
  3805.     function MoveFileW(lpExistingFileName: Win32.LPCWSTR;
  3806.                        lpNewFileName     : Win32.LPCWSTR)
  3807.                                            return Win32.BOOL;
  3808.                                                             -- winbase.h:4948
  3809.  
  3810.     function MoveFileExA(lpExistingFileName: Win32.LPCSTR;
  3811.                          lpNewFileName     : Win32.LPCSTR;
  3812.                          dwFlags           : Win32.DWORD)
  3813.                                              return Win32.BOOL;
  3814.                                                             -- winbase.h:4961
  3815.  
  3816.     function MoveFileEx(lpExistingFileName: Win32.LPCSTR;
  3817.                         lpNewFileName     : Win32.LPCSTR;
  3818.                         dwFlags           : Win32.DWORD)
  3819.                                             return Win32.BOOL
  3820.                                             renames MoveFileExA;
  3821.                                                             -- winbase.h:4961
  3822.  
  3823.     function MoveFileExW(lpExistingFileName: Win32.LPCWSTR;
  3824.                          lpNewFileName     : Win32.LPCWSTR;
  3825.                          dwFlags           : Win32.DWORD)
  3826.                                              return Win32.BOOL;
  3827.                                                             -- winbase.h:4969
  3828.  
  3829.     function CreateNamedPipeA(lpName              : Win32.LPCSTR;
  3830.                               dwOpenMode          : Win32.DWORD;
  3831.                               dwPipeMode          : Win32.DWORD;
  3832.                               nMaxInstances       : Win32.DWORD;
  3833.                               nOutBufferSize      : Win32.DWORD;
  3834.                               nInBufferSize       : Win32.DWORD;
  3835.                               nDefaultTimeOut     : Win32.DWORD;
  3836.                               lpSecurityAttributes: LPSECURITY_ATTRIBUTES)
  3837.                                                     return Win32.Winnt.HANDLE;
  3838.                                                             -- winbase.h:4987
  3839.  
  3840.     function CreateNamedPipe(lpName              : Win32.LPCSTR;
  3841.                              dwOpenMode          : Win32.DWORD;
  3842.                              dwPipeMode          : Win32.DWORD;
  3843.                              nMaxInstances       : Win32.DWORD;
  3844.                              nOutBufferSize      : Win32.DWORD;
  3845.                              nInBufferSize       : Win32.DWORD;
  3846.                              nDefaultTimeOut     : Win32.DWORD;
  3847.                              lpSecurityAttributes: LPSECURITY_ATTRIBUTES)
  3848.                                                    return Win32.Winnt.HANDLE
  3849.                                                    renames CreateNamedPipeA;
  3850.                                                             -- winbase.h:4987
  3851.  
  3852.     function CreateNamedPipeW(lpName              : Win32.LPCWSTR;
  3853.                               dwOpenMode          : Win32.DWORD;
  3854.                               dwPipeMode          : Win32.DWORD;
  3855.                               nMaxInstances       : Win32.DWORD;
  3856.                               nOutBufferSize      : Win32.DWORD;
  3857.                               nInBufferSize       : Win32.DWORD;
  3858.                               nDefaultTimeOut     : Win32.DWORD;
  3859.                               lpSecurityAttributes: LPSECURITY_ATTRIBUTES)
  3860.                                                     return Win32.Winnt.HANDLE;
  3861.                                                             -- winbase.h:5000
  3862.  
  3863.     function GetNamedPipeHandleStateA(hNamedPipe          : Win32.Winnt.HANDLE;
  3864.                                       lpState             : Win32.LPDWORD;
  3865.                                       lpCurInstances      : Win32.LPDWORD;
  3866.                                       lpMaxCollectionCount: Win32.LPDWORD;
  3867.                                       lpCollectDataTimeout: Win32.LPDWORD;
  3868.                                       lpUserName          : Win32.LPSTR;
  3869.                                       nMaxUserNameSize    : Win32.DWORD)
  3870.                                                             return Win32.BOOL;
  3871.                                                             -- winbase.h:5019
  3872.  
  3873.     function GetNamedPipeHandleState(hNamedPipe          : Win32.Winnt.HANDLE;
  3874.                                      lpState             : Win32.LPDWORD;
  3875.                                      lpCurInstances      : Win32.LPDWORD;
  3876.                                      lpMaxCollectionCount: Win32.LPDWORD;
  3877.                                      lpCollectDataTimeout: Win32.LPDWORD;
  3878.                                      lpUserName          : Win32.LPSTR;
  3879.                                      nMaxUserNameSize    : Win32.DWORD)
  3880.                                                            return Win32.BOOL
  3881.               renames GetNamedPipeHandleStateA;             -- winbase.h:5019
  3882.  
  3883.     function GetNamedPipeHandleStateW(hNamedPipe          : Win32.Winnt.HANDLE;
  3884.                                       lpState             : Win32.LPDWORD;
  3885.                                       lpCurInstances      : Win32.LPDWORD;
  3886.                                       lpMaxCollectionCount: Win32.LPDWORD;
  3887.                                       lpCollectDataTimeout: Win32.LPDWORD;
  3888.                                       lpUserName          : Win32.LPWSTR;
  3889.                                       nMaxUserNameSize    : Win32.DWORD)
  3890.                                                             return Win32.BOOL;
  3891.                                                             -- winbase.h:5031
  3892.  
  3893.     function CallNamedPipeA(lpNamedPipeName: Win32.LPCSTR;
  3894.                             lpInBuffer     : Win32.LPVOID;
  3895.                             nInBufferSize  : Win32.DWORD;
  3896.                             lpOutBuffer    : Win32.LPVOID;
  3897.                             nOutBufferSize : Win32.DWORD;
  3898.                             lpBytesRead    : Win32.LPDWORD;
  3899.                             nTimeOut       : Win32.DWORD)
  3900.                                              return Win32.BOOL;
  3901.                                                             -- winbase.h:5049
  3902.  
  3903.     function CallNamedPipe(lpNamedPipeName: Win32.LPCSTR;
  3904.                            lpInBuffer     : Win32.LPVOID;
  3905.                            nInBufferSize  : Win32.DWORD;
  3906.                            lpOutBuffer    : Win32.LPVOID;
  3907.                            nOutBufferSize : Win32.DWORD;
  3908.                            lpBytesRead    : Win32.LPDWORD;
  3909.                            nTimeOut       : Win32.DWORD)
  3910.                                             return Win32.BOOL
  3911.                                             renames CallNamedPipeA;
  3912.                                                             -- winbase.h:5049
  3913.  
  3914.     function CallNamedPipeW(lpNamedPipeName: Win32.LPCWSTR;
  3915.                             lpInBuffer     : Win32.LPVOID;
  3916.                             nInBufferSize  : Win32.DWORD;
  3917.                             lpOutBuffer    : Win32.LPVOID;
  3918.                             nOutBufferSize : Win32.DWORD;
  3919.                             lpBytesRead    : Win32.LPDWORD;
  3920.                             nTimeOut       : Win32.DWORD)
  3921.                                              return Win32.BOOL;
  3922.                                                             -- winbase.h:5061
  3923.  
  3924.     function WaitNamedPipeA(lpNamedPipeName: Win32.LPCSTR;
  3925.                             nTimeOut       : Win32.DWORD)
  3926.                                              return Win32.BOOL;
  3927.                                                             -- winbase.h:5079
  3928.  
  3929.     function WaitNamedPipe(lpNamedPipeName: Win32.LPCSTR;
  3930.                            nTimeOut       : Win32.DWORD)
  3931.                                             return Win32.BOOL
  3932.                                             renames WaitNamedPipeA;
  3933.                                                             -- winbase.h:5079
  3934.  
  3935.     function WaitNamedPipeW(lpNamedPipeName: Win32.LPCWSTR;
  3936.                             nTimeOut       : Win32.DWORD)
  3937.                                              return Win32.BOOL;
  3938.                                                             -- winbase.h:5086
  3939.  
  3940.     function SetVolumeLabelA(lpRootPathName: Win32.LPCSTR;
  3941.                              lpVolumeName  : Win32.LPCSTR)
  3942.                                              return Win32.BOOL;
  3943.                                                             -- winbase.h:5099
  3944.  
  3945.     function SetVolumeLabel(lpRootPathName: Win32.LPCSTR;
  3946.                             lpVolumeName  : Win32.LPCSTR)
  3947.                                             return Win32.BOOL
  3948.                                             renames SetVolumeLabelA;
  3949.                                                             -- winbase.h:5099
  3950.  
  3951.     function SetVolumeLabelW(lpRootPathName: Win32.LPCWSTR;
  3952.                              lpVolumeName  : Win32.LPCWSTR)
  3953.                                              return Win32.BOOL;
  3954.                                                             -- winbase.h:5106
  3955.  
  3956.     procedure SetFileApisToOEM;                             -- winbase.h:5119
  3957.                                                           
  3958.     procedure SetFileApisToANSI;                            -- winbase.h:5124
  3959.  
  3960.     function AreFileApisANSI return Win32.BOOL;             -- winbase.h:5129
  3961.  
  3962.     function GetVolumeInformationA(lpRootPathName          : Win32.LPCSTR;
  3963.                                    lpVolumeNameBuffer      : Win32.LPSTR;
  3964.                                    nVolumeNameSize         : Win32.DWORD;
  3965.                                    lpVolumeSerialNumber    : Win32.LPDWORD;
  3966.                                    lpMaximumComponentLength: Win32.LPDWORD;
  3967.                                    lpFileSystemFlags       : Win32.LPDWORD;
  3968.                                    lpFileSystemNameBuffer  : Win32.LPSTR;
  3969.                                    nFileSystemNameSize     : Win32.DWORD)
  3970.                                                              return Win32.BOOL;
  3971.                                                             -- winbase.h:5134
  3972.  
  3973.     function GetVolumeInformation(lpRootPathName          : Win32.LPCSTR;
  3974.                                   lpVolumeNameBuffer      : Win32.LPSTR;
  3975.                                   nVolumeNameSize         : Win32.DWORD;
  3976.                                   lpVolumeSerialNumber    : Win32.LPDWORD;
  3977.                                   lpMaximumComponentLength: Win32.LPDWORD;
  3978.                                   lpFileSystemFlags       : Win32.LPDWORD;
  3979.                                   lpFileSystemNameBuffer  : Win32.LPSTR;
  3980.                                   nFileSystemNameSize     : Win32.DWORD)
  3981.                                                             return Win32.BOOL
  3982.              renames GetVolumeInformationA;                 -- winbase.h:5134
  3983.  
  3984.     function GetVolumeInformationW(lpRootPathName          : Win32.LPCWSTR;
  3985.                                    lpVolumeNameBuffer      : Win32.LPWSTR;
  3986.                                    nVolumeNameSize         : Win32.DWORD;
  3987.                                    lpVolumeSerialNumber    : Win32.LPDWORD;
  3988.                                    lpMaximumComponentLength: Win32.LPDWORD;
  3989.                                    lpFileSystemFlags       : Win32.LPDWORD;
  3990.                                    lpFileSystemNameBuffer  : Win32.LPWSTR;
  3991.                                    nFileSystemNameSize     : Win32.DWORD)
  3992.                                                              return Win32.BOOL;
  3993.                                                             -- winbase.h:5147
  3994.  
  3995.     function ClearEventLogA(hEventLog       : Win32.Winnt.HANDLE;
  3996.                             lpBackupFileName: Win32.LPCSTR)
  3997.                                               return Win32.BOOL;
  3998.                                                             -- winbase.h:5170
  3999.  
  4000.     function ClearEventLog(hEventLog       : Win32.Winnt.HANDLE;
  4001.                            lpBackupFileName: Win32.LPCSTR)
  4002.                                              return Win32.BOOL
  4003.                                              renames ClearEventLogA;
  4004.                                                             -- winbase.h:5170
  4005.  
  4006.     function ClearEventLogW(hEventLog       : Win32.Winnt.HANDLE;
  4007.                             lpBackupFileName: Win32.LPCWSTR)
  4008.                                               return Win32.BOOL;
  4009.                                                             -- winbase.h:5177
  4010.  
  4011.     function BackupEventLogA(hEventLog       : Win32.Winnt.HANDLE;
  4012.                              lpBackupFileName: Win32.LPCSTR)
  4013.                                                return Win32.BOOL;
  4014.                                                             -- winbase.h:5190
  4015.  
  4016.     function BackupEventLog(hEventLog       : Win32.Winnt.HANDLE;
  4017.                             lpBackupFileName: Win32.LPCSTR)
  4018.                                               return Win32.BOOL
  4019.                                               renames BackupEventLogA;
  4020.                                                             -- winbase.h:5190
  4021.  
  4022.     function BackupEventLogW(hEventLog       : Win32.Winnt.HANDLE;
  4023.                              lpBackupFileName: Win32.LPCWSTR)
  4024.                                                return Win32.BOOL;
  4025.                                                             -- winbase.h:5197
  4026.  
  4027.     function CloseEventLog(hEventLog: Win32.Winnt.HANDLE) return Win32.BOOL;
  4028.                                                             -- winbase.h:5210
  4029.  
  4030.     function DeregisterEventSource(hEventLog: Win32.Winnt.HANDLE) 
  4031.              return Win32.BOOL;                             -- winbase.h:5217
  4032.  
  4033.     function NotifyChangeEventLog(hEventLog: Win32.Winnt.HANDLE;
  4034.                                   hEvent   : Win32.Winnt.HANDLE)
  4035.                                              return Win32.BOOL;
  4036.                                                             -- winbase.h:5224
  4037.  
  4038.     function GetNumberOfEventLogRecords(hEventLog      : Win32.Winnt.HANDLE;
  4039.                                         NumberOfRecords: access Win32.DWORD)
  4040.                                                          return Win32.BOOL;
  4041.                                                             -- winbase.h:5232
  4042.  
  4043.     function GetOldestEventLogRecord(hEventLog   : Win32.Winnt.HANDLE;
  4044.                                      OldestRecord: access Win32.DWORD)
  4045.                                                    return Win32.BOOL;
  4046.                                                             -- winbase.h:5240
  4047.  
  4048.     function OpenEventLogA(lpUNCServerName: Win32.LPCSTR;
  4049.                            lpSourceName   : Win32.LPCSTR)
  4050.                                             return Win32.Winnt.HANDLE;
  4051.                                                             -- winbase.h:5248
  4052.  
  4053.     function OpenEventLog(lpUNCServerName: Win32.LPCSTR;
  4054.                           lpSourceName   : Win32.LPCSTR)
  4055.                                            return Win32.Winnt.HANDLE
  4056.                                            renames OpenEventLogA;
  4057.                                                             -- winbase.h:5248
  4058.  
  4059.     function OpenEventLogW(lpUNCServerName: Win32.LPCWSTR;
  4060.                            lpSourceName   : Win32.LPCWSTR)
  4061.                                             return Win32.Winnt.HANDLE;
  4062.                                                             -- winbase.h:5255
  4063.  
  4064.     function RegisterEventSourceA(lpUNCServerName: Win32.LPCSTR;
  4065.                                   lpSourceName   : Win32.LPCSTR)
  4066.                                                    return Win32.Winnt.HANDLE;
  4067.                                                             -- winbase.h:5268
  4068.  
  4069.     function RegisterEventSource(lpUNCServerName: Win32.LPCSTR;
  4070.                                  lpSourceName   : Win32.LPCSTR)
  4071.                                                   return Win32.Winnt.HANDLE
  4072.                                                   renames RegisterEventSourceA;
  4073.                                                             -- winbase.h:5268
  4074.  
  4075.     function RegisterEventSourceW(lpUNCServerName: Win32.LPCWSTR;
  4076.                                   lpSourceName   : Win32.LPCWSTR)
  4077.                                                    return Win32.Winnt.HANDLE;
  4078.                                                             -- winbase.h:5275
  4079.  
  4080.     function OpenBackupEventLogA(lpUNCServerName: Win32.LPCSTR;
  4081.                                  lpFileName     : Win32.LPCSTR)
  4082.                                                   return Win32.Winnt.HANDLE;
  4083.                                                             -- winbase.h:5288
  4084.  
  4085.     function OpenBackupEventLog(lpUNCServerName: Win32.LPCSTR;
  4086.                                 lpFileName     : Win32.LPCSTR)
  4087.                                                  return Win32.Winnt.HANDLE
  4088.                                                  renames OpenBackupEventLogA;
  4089.                                                             -- winbase.h:5288
  4090.  
  4091.     function OpenBackupEventLogW(lpUNCServerName: Win32.LPCWSTR;
  4092.                                  lpFileName     : Win32.LPCWSTR)
  4093.                                                   return Win32.Winnt.HANDLE;
  4094.                                                             -- winbase.h:5295
  4095.  
  4096.     function ReadEventLogA(hEventLog               : Win32.Winnt.HANDLE;
  4097.                            dwReadFlags             : Win32.DWORD;
  4098.                            dwRecordOffset          : Win32.DWORD;
  4099.                            lpBuffer                : Win32.LPVOID;
  4100.                            nNumberOfBytesToRead    : Win32.DWORD;
  4101.                            pnBytesRead             : access Win32.DWORD;
  4102.                            pnMinNumberOfBytesNeeded: access Win32.DWORD)
  4103.                                                      return Win32.BOOL;
  4104.                                                             -- winbase.h:5308
  4105.  
  4106.     function ReadEventLog(hEventLog               : Win32.Winnt.HANDLE;
  4107.                           dwReadFlags             : Win32.DWORD;
  4108.                           dwRecordOffset          : Win32.DWORD;
  4109.                           lpBuffer                : Win32.LPVOID;
  4110.                           nNumberOfBytesToRead    : Win32.DWORD;
  4111.                           pnBytesRead             : access Win32.DWORD;
  4112.                           pnMinNumberOfBytesNeeded: access Win32.DWORD)
  4113.                                                     return Win32.BOOL
  4114.                                                     renames ReadEventLogA;
  4115.                                                             -- winbase.h:5308
  4116.  
  4117.     function ReadEventLogW(hEventLog               : Win32.Winnt.HANDLE;
  4118.                            dwReadFlags             : Win32.DWORD;
  4119.                            dwRecordOffset          : Win32.DWORD;
  4120.                            lpBuffer                : Win32.LPVOID;
  4121.                            nNumberOfBytesToRead    : Win32.DWORD;
  4122.                            pnBytesRead             : access Win32.DWORD;
  4123.                            pnMinNumberOfBytesNeeded: access Win32.DWORD)
  4124.                                                      return Win32.BOOL;
  4125.                                                             -- winbase.h:5320
  4126.  
  4127.     function ReportEventA(hEventLog  : Win32.Winnt.HANDLE;
  4128.                           wType      : Win32.WORD;
  4129.                           wCategory  : Win32.WORD;
  4130.                           dwEventID  : Win32.DWORD;
  4131.                           lpUserSid  : Win32.Winnt.PSID;
  4132.                           wNumStrings: Win32.WORD;
  4133.                           dwDataSize : Win32.DWORD;
  4134.                           lpStrings  : access Win32.LPCSTR;
  4135.                           lpRawData  : Win32.LPVOID)
  4136.                                        return Win32.BOOL;   -- winbase.h:5338
  4137.  
  4138.     function ReportEvent(hEventLog  : Win32.Winnt.HANDLE;
  4139.                          wType      : Win32.WORD;
  4140.                          wCategory  : Win32.WORD;
  4141.                          dwEventID  : Win32.DWORD;
  4142.                          lpUserSid  : Win32.Winnt.PSID;
  4143.                          wNumStrings: Win32.WORD;
  4144.                          dwDataSize : Win32.DWORD;
  4145.                          lpStrings  : access Win32.LPCSTR;
  4146.                          lpRawData  : Win32.LPVOID)
  4147.                                       return Win32.BOOL
  4148.                                       renames ReportEventA;     
  4149.                                                             -- winbase.h:5338
  4150.  
  4151.     function ReportEventW(hEventLog  : Win32.Winnt.HANDLE;
  4152.                           wType      : Win32.WORD;
  4153.                           wCategory  : Win32.WORD;
  4154.                           dwEventID  : Win32.DWORD;
  4155.                           lpUserSid  : Win32.Winnt.PSID;
  4156.                           wNumStrings: Win32.WORD;
  4157.                           dwDataSize : Win32.DWORD;
  4158.                           lpStrings  : access Win32.LPCWSTR;
  4159.                           lpRawData  : Win32.LPVOID)
  4160.                                        return Win32.BOOL;   -- winbase.h:5352
  4161.  
  4162.     function DuplicateToken(
  4163.         ExistingTokenHandle : Win32.Winnt.HANDLE;
  4164.         ImpersonationLevel  : Win32.Winnt.SECURITY_IMPERSONATION_LEVEL;
  4165.         DuplicateTokenHandle: Win32.Winnt.PHANDLE)
  4166.                               return Win32.BOOL;            -- winbase.h:5378
  4167.  
  4168.     function GetKernelObjectSecurity(
  4169.         Handle              : Win32.Winnt.HANDLE;
  4170.         RequestedInformation: Win32.Winnt.SECURITY_INFORMATION;
  4171.         pSecurityDescriptor : Win32.Winnt.PSECURITY_DESCRIPTOR;
  4172.         nLength             : Win32.DWORD;
  4173.         lpnLengthNeeded     : Win32.LPDWORD)
  4174.                               return Win32.BOOL;            -- winbase.h:5387
  4175.  
  4176.     function ImpersonateNamedPipeClient(hNamedPipe: Win32.Winnt.HANDLE) 
  4177.              return Win32.BOOL;                             -- winbase.h:5398
  4178.  
  4179.     function ImpersonateSelf(
  4180.         ImpersonationLevel: Win32.Winnt.SECURITY_IMPERSONATION_LEVEL) 
  4181.                             return Win32.BOOL;              -- winbase.h:5405
  4182.  
  4183.     function RevertToSelf return Win32.BOOL;                -- winbase.h:5413
  4184.  
  4185.     function SetThreadToken(Thread: Win32.Winnt.PHANDLE;
  4186.                             Token : Win32.Winnt.HANDLE)
  4187.                                     return Win32.BOOL;      -- winbase.h:5420
  4188.  
  4189.     function AccessCheck(pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4190.                          ClientToken        : Win32.Winnt.HANDLE;
  4191.                          DesiredAccess      : Win32.DWORD;
  4192.                          GenericMapping     : Win32.Winnt.PGENERIC_MAPPING;
  4193.                          PrivilegeSet       : Win32.Winnt.PPRIVILEGE_SET;
  4194.                          PrivilegeSetLength : Win32.LPDWORD;
  4195.                          GrantedAccess      : Win32.LPDWORD;
  4196.                          AccessStatus       : Win32.LPBOOL)
  4197.                                               return Win32.BOOL;
  4198.                                                             -- winbase.h:5428
  4199.  
  4200.     function OpenProcessToken(ProcessHandle: Win32.Winnt.HANDLE;
  4201.                               DesiredAccess: Win32.DWORD;
  4202.                               TokenHandle  : Win32.Winnt.PHANDLE)
  4203.                                              return Win32.BOOL;
  4204.                                                             -- winbase.h:5443
  4205.  
  4206.     function OpenThreadToken(ThreadHandle : Win32.Winnt.HANDLE;
  4207.                              DesiredAccess: Win32.DWORD;
  4208.                              OpenAsSelf   : Win32.BOOL;
  4209.                              TokenHandle  : Win32.Winnt.PHANDLE)
  4210.                                             return Win32.BOOL;
  4211.                                                             -- winbase.h:5453
  4212.  
  4213.     function GetTokenInformation(
  4214.         TokenHandle           : Win32.Winnt.HANDLE;
  4215.         TokenInformationClass : Win32.Winnt.TOKEN_INFORMATION_CLASS;
  4216.         TokenInformation      : Win32.LPVOID;
  4217.         TokenInformationLength: Win32.DWORD;
  4218.         ReturnLength          : access Win32.DWORD)
  4219.                                 return Win32.BOOL;
  4220.                                                             -- winbase.h:5464
  4221.  
  4222.     function SetTokenInformation(
  4223.         TokenHandle           : Win32.Winnt.HANDLE;
  4224.         TokenInformationClass : Win32.Winnt.TOKEN_INFORMATION_CLASS;
  4225.         TokenInformation      : Win32.LPVOID;
  4226.         TokenInformationLength: Win32.DWORD)
  4227.                                 return Win32.BOOL;
  4228.                                                             -- winbase.h:5476
  4229.  
  4230.     function AdjustTokenPrivileges(
  4231.         TokenHandle         : Win32.Winnt.HANDLE;
  4232.         DisableAllPrivileges: Win32.BOOL;
  4233.         NewState            : Win32.Winnt.PTOKEN_PRIVILEGES;
  4234.         BufferLength        : Win32.DWORD;
  4235.         PreviousState       : Win32.Winnt.PTOKEN_PRIVILEGES;
  4236.         ReturnLength        : access Win32.DWORD)
  4237.                               return Win32.BOOL;
  4238.                                                             -- winbase.h:5487
  4239.  
  4240.     function AdjustTokenGroups(TokenHandle   : Win32.Winnt.HANDLE;
  4241.                                ResetToDefault: Win32.BOOL;
  4242.                                NewState      : Win32.Winnt.PTOKEN_GROUPS;
  4243.                                BufferLength  : Win32.DWORD;
  4244.                                PreviousState : Win32.Winnt.PTOKEN_GROUPS;
  4245.                                ReturnLength  : access Win32.DWORD)
  4246.                                                return Win32.BOOL;
  4247.                                                             -- winbase.h:5500
  4248.  
  4249.     function PrivilegeCheck(ClientToken       : Win32.Winnt.HANDLE;
  4250.                             RequiredPrivileges: Win32.Winnt.PPRIVILEGE_SET;
  4251.                             pfResult          : Win32.LPBOOL)
  4252.                                                 return Win32.BOOL;
  4253.                                                             -- winbase.h:5513
  4254.  
  4255.     function AccessCheckAndAuditAlarmA(
  4256.         SubsystemName     : Win32.LPCSTR;
  4257.         HandleId          : Win32.LPVOID;
  4258.         ObjectTypeName    : Win32.LPSTR;
  4259.         ObjectName        : Win32.LPSTR;
  4260.         SecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4261.         DesiredAccess     : Win32.DWORD;
  4262.         GenericMapping    : Win32.Winnt.PGENERIC_MAPPING;
  4263.         ObjectCreation    : Win32.BOOL;
  4264.         GrantedAccess     : Win32.LPDWORD;
  4265.         AccessStatus      : Win32.LPBOOL;
  4266.         pfGenerateOnClose : Win32.LPBOOL)
  4267.                             return Win32.BOOL;
  4268.                                                             -- winbase.h:5523
  4269.  
  4270.     function AccessCheckAndAuditAlarm(
  4271.         SubsystemName     : Win32.LPCSTR;
  4272.         HandleId          : Win32.LPVOID;
  4273.         ObjectTypeName    : Win32.LPSTR;
  4274.         ObjectName        : Win32.LPSTR;
  4275.         SecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4276.         DesiredAccess     : Win32.DWORD;
  4277.         GenericMapping    : Win32.Winnt.PGENERIC_MAPPING;
  4278.         ObjectCreation    : Win32.BOOL;
  4279.         GrantedAccess     : Win32.LPDWORD;
  4280.         AccessStatus      : Win32.LPBOOL;
  4281.         pfGenerateOnClose : Win32.LPBOOL)
  4282.                             return Win32.BOOL
  4283.              renames AccessCheckAndAuditAlarmA;             -- winbase.h:5523
  4284.  
  4285.     function AccessCheckAndAuditAlarmW(
  4286.         SubsystemName     : Win32.LPCWSTR;
  4287.         HandleId          : Win32.LPVOID;
  4288.         ObjectTypeName    : Win32.LPWSTR;
  4289.         ObjectName        : Win32.LPWSTR;
  4290.         SecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4291.         DesiredAccess     : Win32.DWORD;
  4292.         GenericMapping    : Win32.Winnt.PGENERIC_MAPPING;
  4293.         ObjectCreation    : Win32.BOOL;
  4294.         GrantedAccess     : Win32.LPDWORD;
  4295.         AccessStatus      : Win32.LPBOOL;
  4296.         pfGenerateOnClose : Win32.LPBOOL)
  4297.                             return Win32.BOOL;
  4298.                                                             -- winbase.h:5539
  4299.  
  4300.     function ObjectOpenAuditAlarmA(
  4301.         SubsystemName      : Win32.LPCSTR;
  4302.         HandleId           : Win32.LPVOID;
  4303.         ObjectTypeName     : Win32.LPSTR;
  4304.         ObjectName         : Win32.LPSTR;
  4305.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4306.         ClientToken        : Win32.Winnt.HANDLE;
  4307.         DesiredAccess      : Win32.DWORD;
  4308.         GrantedAccess      : Win32.DWORD;
  4309.         Privileges         : Win32.Winnt.PPRIVILEGE_SET;
  4310.         ObjectCreation     : Win32.BOOL;
  4311.         AccessGranted      : Win32.BOOL;
  4312.         GenerateOnClose    : Win32.LPBOOL)
  4313.                              return Win32.BOOL;             -- winbase.h:5562
  4314.  
  4315.     function ObjectOpenAuditAlarm(
  4316.         SubsystemName      : Win32.LPCSTR;
  4317.         HandleId           : Win32.LPVOID;
  4318.         ObjectTypeName     : Win32.LPSTR;
  4319.         ObjectName         : Win32.LPSTR;
  4320.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4321.         ClientToken        : Win32.Winnt.HANDLE;
  4322.         DesiredAccess      : Win32.DWORD;
  4323.         GrantedAccess      : Win32.DWORD;
  4324.         Privileges         : Win32.Winnt.PPRIVILEGE_SET;
  4325.         ObjectCreation     : Win32.BOOL;
  4326.         AccessGranted      : Win32.BOOL;
  4327.         GenerateOnClose    : Win32.LPBOOL)
  4328.                              return Win32.BOOL
  4329.                              renames ObjectOpenAuditAlarmA; -- winbase.h:5562
  4330.  
  4331.     function ObjectOpenAuditAlarmW(
  4332.         SubsystemName      : Win32.LPCWSTR;
  4333.         HandleId           : Win32.LPVOID;
  4334.         ObjectTypeName     : Win32.LPWSTR;
  4335.         ObjectName         : Win32.LPWSTR;
  4336.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4337.         ClientToken        : Win32.Winnt.HANDLE;
  4338.         DesiredAccess      : Win32.DWORD;
  4339.         GrantedAccess      : Win32.DWORD;
  4340.         Privileges         : Win32.Winnt.PPRIVILEGE_SET;
  4341.         ObjectCreation     : Win32.BOOL;
  4342.         AccessGranted      : Win32.BOOL;
  4343.         GenerateOnClose    : Win32.LPBOOL)
  4344.                              return Win32.BOOL;             -- winbase.h:5579
  4345.  
  4346.     function ObjectPrivilegeAuditAlarmA(
  4347.         SubsystemName: Win32.LPCSTR;
  4348.         HandleId     : Win32.LPVOID;
  4349.         ClientToken  : Win32.Winnt.HANDLE;
  4350.         DesiredAccess: Win32.DWORD;
  4351.         Privileges   : Win32.Winnt.PPRIVILEGE_SET;
  4352.         AccessGranted: Win32.BOOL)
  4353.                        return Win32.BOOL;
  4354.                                                             -- winbase.h:5603
  4355.  
  4356.     function ObjectPrivilegeAuditAlarm(
  4357.         SubsystemName: Win32.LPCSTR;
  4358.         HandleId     : Win32.LPVOID;
  4359.         ClientToken  : Win32.Winnt.HANDLE;
  4360.         DesiredAccess: Win32.DWORD;
  4361.         Privileges   : Win32.Winnt.PPRIVILEGE_SET;
  4362.         AccessGranted: Win32.BOOL)
  4363.                        return Win32.BOOL
  4364.                        renames ObjectPrivilegeAuditAlarmA;  -- winbase.h:5603
  4365.  
  4366.     function ObjectPrivilegeAuditAlarmW(
  4367.         SubsystemName: Win32.LPCWSTR;
  4368.         HandleId     : Win32.LPVOID;
  4369.         ClientToken  : Win32.Winnt.HANDLE;
  4370.         DesiredAccess: Win32.DWORD;
  4371.         Privileges   : Win32.Winnt.PPRIVILEGE_SET;
  4372.         AccessGranted: Win32.BOOL)
  4373.                        return Win32.BOOL;                   -- winbase.h:5614
  4374.  
  4375.     function ObjectCloseAuditAlarmA(SubsystemName  : Win32.LPCSTR;
  4376.                                     HandleId       : Win32.LPVOID;
  4377.                                     GenerateOnClose: Win32.BOOL)
  4378.                                                      return Win32.BOOL;
  4379.                                                             -- winbase.h:5632
  4380.  
  4381.     function ObjectCloseAuditAlarm(SubsystemName  : Win32.LPCSTR;
  4382.                                    HandleId       : Win32.LPVOID;
  4383.                                    GenerateOnClose: Win32.BOOL)
  4384.                                                     return Win32.BOOL
  4385.              renames ObjectCloseAuditAlarmA;                -- winbase.h:5632
  4386.  
  4387.     function ObjectCloseAuditAlarmW(SubsystemName  : Win32.LPCWSTR;
  4388.                                     HandleId       : Win32.LPVOID;
  4389.                                     GenerateOnClose: Win32.BOOL)
  4390.                                                      return Win32.BOOL;
  4391.                                                             -- winbase.h:5640
  4392.  
  4393.     function PrivilegedServiceAuditAlarmA(
  4394.         SubsystemName: Win32.LPCSTR;
  4395.         ServiceName  : Win32.LPCSTR;
  4396.         ClientToken  : Win32.Winnt.HANDLE;
  4397.         Privileges   : Win32.Winnt.PPRIVILEGE_SET;
  4398.         AccessGranted: Win32.BOOL)
  4399.                        return Win32.BOOL;                   -- winbase.h:5655
  4400.  
  4401.     function PrivilegedServiceAuditAlarm(
  4402.         SubsystemName: Win32.LPCSTR;
  4403.         ServiceName  : Win32.LPCSTR;
  4404.         ClientToken  : Win32.Winnt.HANDLE;
  4405.         Privileges   : Win32.Winnt.PPRIVILEGE_SET;
  4406.         AccessGranted: Win32.BOOL)
  4407.                        return Win32.BOOL
  4408.                        renames PrivilegedServiceAuditAlarmA;-- winbase.h:5655
  4409.  
  4410.     function PrivilegedServiceAuditAlarmW(
  4411.         SubsystemName: Win32.LPCWSTR;
  4412.         ServiceName  : Win32.LPCWSTR;
  4413.         ClientToken  : Win32.Winnt.HANDLE;
  4414.         Privileges   : Win32.Winnt.PPRIVILEGE_SET;
  4415.         AccessGranted: Win32.BOOL)
  4416.                        return Win32.BOOL;                   -- winbase.h:5665
  4417.  
  4418.     function IsValidSid(pSid: Win32.Winnt.PSID) return Win32.BOOL;
  4419.                                                             -- winbase.h:5682
  4420.  
  4421.     function EqualSid(pSid1: Win32.Winnt.PSID;
  4422.                       pSid2: Win32.Winnt.PSID)
  4423.                              return Win32.BOOL;             -- winbase.h:5690
  4424.  
  4425.     function EqualPrefixSid(pSid1: Win32.Winnt.PSID;
  4426.                             pSid2: Win32.Winnt.PSID)
  4427.                                    return Win32.BOOL;       -- winbase.h:5699
  4428.  
  4429.     function GetSidLengthRequired(nSubAuthorityCount: Win32.UCHAR) 
  4430.              return Win32.DWORD;                            -- winbase.h:5708
  4431.  
  4432.     function AllocateAndInitializeSid(
  4433.         pIdentifierAuthority: Win32.Winnt.PSID_IDENTIFIER_AUTHORITY;
  4434.         nSubAuthorityCount  : Win32.BYTE;
  4435.         nSubAuthority0      : Win32.DWORD;
  4436.         nSubAuthority1      : Win32.DWORD;
  4437.         nSubAuthority2      : Win32.DWORD;
  4438.         nSubAuthority3      : Win32.DWORD;
  4439.         nSubAuthority4      : Win32.DWORD;
  4440.         nSubAuthority5      : Win32.DWORD;
  4441.         nSubAuthority6      : Win32.DWORD;
  4442.         nSubAuthority7      : Win32.DWORD;
  4443.         pSid                : access Win32.Winnt.PSID)
  4444.                               return Win32.BOOL;            -- winbase.h:5716
  4445.  
  4446.     function FreeSid(pSid: Win32.Winnt.PSID) return Win32.PVOID;
  4447.                                                             -- winbase.h:5733
  4448.  
  4449.     function InitializeSid(
  4450.         Sid                 : Win32.Winnt.PSID;
  4451.         pIdentifierAuthority: Win32.Winnt.PSID_IDENTIFIER_AUTHORITY;
  4452.         nSubAuthorityCount  : Win32.BYTE)
  4453.                               return Win32.BOOL;
  4454.                                                             -- winbase.h:5740
  4455.  
  4456.     function GetSidIdentifierAuthority(pSid: Win32.Winnt.PSID) 
  4457.              return Win32.Winnt.PSID_IDENTIFIER_AUTHORITY;
  4458.                                                             -- winbase.h:5750
  4459.  
  4460.     function GetSidSubAuthority(pSid         : Win32.Winnt.PSID;
  4461.                                 nSubAuthority: Win32.DWORD)
  4462.                                                return Win32.PDWORD;
  4463.                                                             -- winbase.h:5758
  4464.  
  4465.     function GetSidSubAuthorityCount(pSid: Win32.Winnt.PSID) 
  4466.              return Win32.PUCHAR;                           -- winbase.h:5767
  4467.  
  4468.     function GetLengthSid(pSid: Win32.Winnt.PSID) return Win32.DWORD;
  4469.                                                             -- winbase.h:5775
  4470.  
  4471.     function CopySid(nDestinationSidLength: Win32.DWORD;
  4472.                      pDestinationSid      : Win32.Winnt.PSID;
  4473.                      pSourceSid           : Win32.Winnt.PSID)
  4474.                                             return Win32.BOOL;
  4475.                                                             -- winbase.h:5783
  4476.  
  4477.     function AreAllAccessesGranted(GrantedAccess: Win32.DWORD;
  4478.                                    DesiredAccess: Win32.DWORD)
  4479.                                                   return Win32.BOOL;
  4480.                                                             -- winbase.h:5793
  4481.  
  4482.     function AreAnyAccessesGranted(GrantedAccess: Win32.DWORD;
  4483.                                    DesiredAccess: Win32.DWORD)
  4484.                                                   return Win32.BOOL;
  4485.                                                             -- winbase.h:5802
  4486.  
  4487.     procedure MapGenericMask(AccessMask    : access Win32.DWORD;
  4488.                              GenericMapping: Win32.Winnt.PGENERIC_MAPPING);
  4489.                                                             -- winbase.h:5811
  4490.  
  4491.     function IsValidAcl(pAcl: Win32.Winnt.PACL) return Win32.BOOL;
  4492.                                                             -- winbase.h:5820
  4493.  
  4494.     function InitializeAcl(pAcl         : Win32.Winnt.PACL;
  4495.                            nAclLength   : Win32.DWORD;
  4496.                            dwAclRevision: Win32.DWORD)
  4497.                                           return Win32.BOOL;
  4498.                                                             -- winbase.h:5828
  4499.  
  4500.     function GetAclInformation(
  4501.         pAcl                 : Win32.Winnt.PACL;
  4502.         pAclInformation      : Win32.LPVOID;
  4503.         nAclInformationLength: Win32.DWORD;
  4504.         dwAclInformationClass: Win32.Winnt.ACL_INFORMATION_CLASS)
  4505.                                return Win32.BOOL;           -- winbase.h:5838
  4506.  
  4507.     function SetAclInformation(
  4508.         pAcl                 : Win32.Winnt.PACL;
  4509.         pAclInformation      : Win32.LPVOID;
  4510.         nAclInformationLength: Win32.DWORD;
  4511.         dwAclInformationClass: Win32.Winnt.ACL_INFORMATION_CLASS)
  4512.                                return Win32.BOOL;
  4513.                                                             -- winbase.h:5849
  4514.  
  4515.     function AddAce(pAcl              : Win32.Winnt.PACL;
  4516.                     dwAceRevision     : Win32.DWORD;
  4517.                     dwStartingAceIndex: Win32.DWORD;
  4518.                     pAceList          : Win32.LPVOID;
  4519.                     nAceListLength    : Win32.DWORD)
  4520.                                         return Win32.BOOL;  -- winbase.h:5860
  4521.  
  4522.     function DeleteAce(pAcl      : Win32.Winnt.PACL;
  4523.                        dwAceIndex: Win32.DWORD)
  4524.                                    return Win32.BOOL;       -- winbase.h:5872
  4525.  
  4526.     function GetAce(pAcl      : Win32.Winnt.PACL;
  4527.                     dwAceIndex: Win32.DWORD;
  4528.                     pAce      : access Win32.PVOID)
  4529.                                 return Win32.BOOL;          -- winbase.h:5881
  4530.  
  4531.     function AddAccessAllowedAce(pAcl         : Win32.Winnt.PACL;
  4532.                                  dwAceRevision: Win32.DWORD;
  4533.                                  AccessMask   : Win32.DWORD;
  4534.                                  pSid         : Win32.Winnt.PSID)
  4535.                                                 return Win32.BOOL;
  4536.                                                             -- winbase.h:5891
  4537.  
  4538.     function AddAccessDeniedAce(pAcl         : Win32.Winnt.PACL;
  4539.                                 dwAceRevision: Win32.DWORD;
  4540.                                 AccessMask   : Win32.DWORD;
  4541.                                 pSid         : Win32.Winnt.PSID)
  4542.                                                return Win32.BOOL;
  4543.                                                             -- winbase.h:5902
  4544.  
  4545.     function AddAuditAccessAce(pAcl         : Win32.Winnt.PACL;
  4546.                                dwAceRevision: Win32.DWORD;
  4547.                                dwAccessMask : Win32.DWORD;
  4548.                                pSid         : Win32.Winnt.PSID;
  4549.                                bAuditSuccess: Win32.BOOL;
  4550.                                bAuditFailure: Win32.BOOL)
  4551.                                               return Win32.BOOL;
  4552.                                                             -- winbase.h:5913
  4553.  
  4554.     function FindFirstFreeAce(pAcl: Win32.Winnt.PACL;
  4555.                               pAce: access Win32.PVOID)
  4556.                                     return Win32.BOOL;      -- winbase.h:5926
  4557.  
  4558.     function InitializeSecurityDescriptor(
  4559.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4560.         dwRevision         : Win32.DWORD)
  4561.                              return Win32.BOOL;             -- winbase.h:5935
  4562.  
  4563.     function IsValidSecurityDescriptor(
  4564.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR) 
  4565.                              return Win32.BOOL;             -- winbase.h:5944
  4566.  
  4567.     function GetSecurityDescriptorLength(
  4568.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR) 
  4569.                              return Win32.DWORD;            -- winbase.h:5952
  4570.  
  4571.     function GetSecurityDescriptorControl(
  4572.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4573.         pControl           : Win32.Winnt.PSECURITY_DESCRIPTOR_CONTROL;
  4574.         lpdwRevision       : Win32.LPDWORD)
  4575.                              return Win32.BOOL;             -- winbase.h:5960
  4576.  
  4577.     function SetSecurityDescriptorDacl(
  4578.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4579.         bDaclPresent       : Win32.BOOL;
  4580.         pDacl              : Win32.Winnt.PACL;
  4581.         bDaclDefaulted     : Win32.BOOL)
  4582.                              return Win32.BOOL;             -- winbase.h:5970
  4583.  
  4584.     function GetSecurityDescriptorDacl(
  4585.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4586.         lpbDaclPresent     : Win32.LPBOOL;
  4587.         pDacl              : access Win32.Winnt.PACL;
  4588.         lpbDaclDefaulted   : Win32.LPBOOL)
  4589.                              return Win32.BOOL;
  4590.                                                             -- winbase.h:5981
  4591.  
  4592.     function SetSecurityDescriptorSacl(
  4593.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4594.         bSaclPresent       : Win32.BOOL;
  4595.         pSacl              : Win32.Winnt.PACL;
  4596.         bSaclDefaulted     : Win32.BOOL)
  4597.                              return Win32.BOOL;
  4598.                                                             -- winbase.h:5992
  4599.  
  4600.     function GetSecurityDescriptorSacl(
  4601.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4602.         lpbSaclPresent     : Win32.LPBOOL;
  4603.         pSacl              : access Win32.Winnt.PACL;
  4604.         lpbSaclDefaulted   : Win32.LPBOOL)
  4605.                              return Win32.BOOL;             -- winbase.h:6003
  4606.  
  4607.     function SetSecurityDescriptorOwner(
  4608.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4609.         pOwner             : Win32.Winnt.PSID;
  4610.         bOwnerDefaulted    : Win32.BOOL)
  4611.                              return Win32.BOOL;             -- winbase.h:6014
  4612.  
  4613.     function GetSecurityDescriptorOwner(
  4614.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4615.         pOwner             : access Win32.Winnt.PSID;
  4616.         lpbOwnerDefaulted  : Win32.LPBOOL)
  4617.                              return Win32.BOOL;             -- winbase.h:6024
  4618.  
  4619.     function SetSecurityDescriptorGroup(
  4620.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4621.         pGroup             : Win32.Winnt.PSID;
  4622.         bGroupDefaulted    : Win32.BOOL)
  4623.                              return Win32.BOOL;
  4624.                                                             -- winbase.h:6034
  4625.  
  4626.     function GetSecurityDescriptorGroup(
  4627.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4628.         pGroup             : access Win32.Winnt.PSID;
  4629.         lpbGroupDefaulted  : Win32.LPBOOL)
  4630.                              return Win32.BOOL;
  4631.                                                             -- winbase.h:6044
  4632.  
  4633.     function CreatePrivateObjectSecurity(
  4634.         ParentDescriptor : Win32.Winnt.PSECURITY_DESCRIPTOR;
  4635.         CreatorDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4636.         NewDescriptor    : access Win32.Winnt.PSECURITY_DESCRIPTOR;
  4637.         IsDirectoryObject: Win32.BOOL;
  4638.         Token            : Win32.Winnt.HANDLE;
  4639.         GenericMapping   : Win32.Winnt.PGENERIC_MAPPING)
  4640.                            return Win32.BOOL;
  4641.                                                             -- winbase.h:6054
  4642.  
  4643.     function SetPrivateObjectSecurity(
  4644.         SecurityInformation      : Win32.Winnt.SECURITY_INFORMATION;
  4645.         ModificationDescriptor   : Win32.Winnt.PSECURITY_DESCRIPTOR;
  4646.         ObjectsSecurityDescriptor: access Win32.Winnt.PSECURITY_DESCRIPTOR;
  4647.         GenericMapping           : Win32.Winnt.PGENERIC_MAPPING;
  4648.         Token                    : Win32.Winnt.HANDLE)
  4649.                                    return Win32.BOOL;       -- winbase.h:6067
  4650.  
  4651.     function GetPrivateObjectSecurity(
  4652.         ObjectDescriptor   : Win32.Winnt.PSECURITY_DESCRIPTOR;
  4653.         SecurityInformation: Win32.Winnt.SECURITY_INFORMATION;
  4654.         ResultantDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4655.         DescriptorLength   : Win32.DWORD;
  4656.         ReturnLength       : access Win32.DWORD)
  4657.                              return Win32.BOOL;
  4658.                                                             -- winbase.h:6079
  4659.  
  4660.     function DestroyPrivateObjectSecurity(
  4661.         ObjectDescriptor: access Win32.Winnt.PSECURITY_DESCRIPTOR)
  4662.                           return Win32.BOOL;                -- winbase.h:6091
  4663.  
  4664.     function MakeSelfRelativeSD(
  4665.         pAbsoluteSecurityDescriptor    : Win32.Winnt.PSECURITY_DESCRIPTOR;
  4666.         pSelfRelativeSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR;
  4667.         lpdwBufferLength               : Win32.LPDWORD)
  4668.                                 return Win32.BOOL;          -- winbase.h:6099
  4669.  
  4670.     function MakeAbsoluteSD(
  4671.         pSelfRelativeSecurityDescriptor   : Win32.Winnt.PSECURITY_DESCRIPTOR;
  4672.         pAbsoluteSecurityDescriptor       : Win32.Winnt.PSECURITY_DESCRIPTOR;
  4673.         lpdwAbsoluteSecurityDescriptorSize: Win32.LPDWORD;
  4674.         pDacl                             : Win32.Winnt.PACL;
  4675.         lpdwDaclSize                      : Win32.LPDWORD;
  4676.         pSacl                             : Win32.Winnt.PACL;
  4677.         lpdwSaclSize                      : Win32.LPDWORD;
  4678.         pOwner                            : Win32.Winnt.PSID;
  4679.         lpdwOwnerSize                     : Win32.LPDWORD;
  4680.         pPrimaryGroup                     : Win32.Winnt.PSID;
  4681.         lpdwPrimaryGroupSize              : Win32.LPDWORD)
  4682.                                             return Win32.BOOL;
  4683.                                                             -- winbase.h:6109
  4684.  
  4685.     function SetFileSecurityA(
  4686.         lpFileName         : Win32.LPCSTR;
  4687.         SecurityInformation: Win32.Winnt.SECURITY_INFORMATION;
  4688.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR)
  4689.                              return Win32.BOOL;
  4690.                                                             -- winbase.h:6127
  4691.  
  4692.     function SetFileSecurity(
  4693.         lpFileName         : Win32.LPCSTR;
  4694.         SecurityInformation: Win32.Winnt.SECURITY_INFORMATION;
  4695.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR)
  4696.                              return Win32.BOOL
  4697.                              renames SetFileSecurityA;
  4698.                                                             -- winbase.h:6127
  4699.  
  4700.     function SetFileSecurityW(
  4701.         lpFileName         : Win32.LPCWSTR;
  4702.         SecurityInformation: Win32.Winnt.SECURITY_INFORMATION;
  4703.         pSecurityDescriptor: Win32.Winnt.PSECURITY_DESCRIPTOR)
  4704.                              return Win32.BOOL;
  4705.                                                             -- winbase.h:6135
  4706.  
  4707.     function GetFileSecurityA(
  4708.         lpFileName          : Win32.LPCSTR;
  4709.         RequestedInformation: Win32.Winnt.SECURITY_INFORMATION;
  4710.         pSecurityDescriptor : Win32.Winnt.PSECURITY_DESCRIPTOR;
  4711.         nLength             : Win32.DWORD;
  4712.         lpnLengthNeeded     : Win32.LPDWORD)
  4713.                              return Win32.BOOL;
  4714.                                                             -- winbase.h:6150
  4715.  
  4716.     function GetFileSecurity(
  4717.         lpFileName          : Win32.LPCSTR;
  4718.         RequestedInformation: Win32.Winnt.SECURITY_INFORMATION;
  4719.         pSecurityDescriptor : Win32.Winnt.PSECURITY_DESCRIPTOR;
  4720.         nLength             : Win32.DWORD;
  4721.         lpnLengthNeeded     : Win32.LPDWORD)
  4722.                              return Win32.BOOL
  4723.                              renames GetFileSecurityA;
  4724.                                                             -- winbase.h:6150
  4725.  
  4726.     function GetFileSecurityW(
  4727.         lpFileName          : Win32.LPCWSTR;
  4728.         RequestedInformation: Win32.Winnt.SECURITY_INFORMATION;
  4729.         pSecurityDescriptor : Win32.Winnt.PSECURITY_DESCRIPTOR;
  4730.         nLength             : Win32.DWORD;
  4731.         lpnLengthNeeded     : Win32.LPDWORD)
  4732.                               return Win32.BOOL;
  4733.                                                             -- winbase.h:6160
  4734.  
  4735.     function SetKernelObjectSecurity(
  4736.         Handle             : Win32.Winnt.HANDLE;
  4737.         SecurityInformation: Win32.Winnt.SECURITY_INFORMATION;
  4738.         SecurityDescriptor : Win32.Winnt.PSECURITY_DESCRIPTOR)
  4739.                              return Win32.BOOL;
  4740.                                                             -- winbase.h:6177
  4741.  
  4742.     function FindFirstChangeNotificationA(lpPathName    : Win32.LPCSTR;
  4743.                                           bWatchSubtree : Win32.BOOL;
  4744.                                           dwNotifyFilter: Win32.DWORD)
  4745.                                           return Win32.Winnt.HANDLE;
  4746.                                                             -- winbase.h:6188
  4747.  
  4748.     function FindFirstChangeNotification(lpPathName    : Win32.LPCSTR;
  4749.                                          bWatchSubtree : Win32.BOOL;
  4750.                                          dwNotifyFilter: Win32.DWORD)
  4751.                                          return Win32.Winnt.HANDLE
  4752.                                          renames FindFirstChangeNotificationA;
  4753.                                                             -- winbase.h:6188
  4754.  
  4755.     function FindFirstChangeNotificationW(lpPathName    : Win32.LPCWSTR;
  4756.                                           bWatchSubtree : Win32.BOOL;
  4757.                                           dwNotifyFilter: Win32.DWORD)
  4758.                                           return Win32.Winnt.HANDLE;
  4759.                                                             -- winbase.h:6196
  4760.  
  4761.     function FindNextChangeNotification(hChangeHandle: Win32.Winnt.HANDLE) 
  4762.                                         return Win32.BOOL;  -- winbase.h:6210
  4763.  
  4764.     function FindCloseChangeNotification(hChangeHandle: Win32.Winnt.HANDLE) 
  4765.                                          return Win32.BOOL; -- winbase.h:6217
  4766.  
  4767.     function VirtualLock(lpAddress: Win32.LPVOID;
  4768.                          dwSize   : Win32.DWORD)
  4769.                                     return Win32.BOOL;      -- winbase.h:6224
  4770.  
  4771.     function VirtualUnlock(lpAddress: Win32.LPVOID;
  4772.                            dwSize   : Win32.DWORD)
  4773.                                       return Win32.BOOL;    -- winbase.h:6232
  4774.  
  4775.     function MapViewOfFileEx(hFileMappingObject  : Win32.Winnt.HANDLE;
  4776.                              dwDesiredAccess     : Win32.DWORD;
  4777.                              dwFileOffsetHigh    : Win32.DWORD;
  4778.                              dwFileOffsetLow     : Win32.DWORD;
  4779.                              dwNumberOfBytesToMap: Win32.DWORD;
  4780.                              lpBaseAddress       : Win32.LPVOID)
  4781.                                                    return Win32.LPVOID;
  4782.                                                             -- winbase.h:6240
  4783.  
  4784.     function SetPriorityClass(hProcess       : Win32.Winnt.HANDLE;
  4785.                               dwPriorityClass: Win32.DWORD)
  4786.                                                return Win32.BOOL;
  4787.                                                             -- winbase.h:6252
  4788.  
  4789.     function GetPriorityClass(hProcess: Win32.Winnt.HANDLE) return Win32.DWORD;
  4790.                                                             -- winbase.h:6260
  4791.  
  4792.     function IsBadReadPtr(lp : Win32.PCVOID;
  4793.                           ucb: Win32.UINT)
  4794.                                return Win32.BOOL;           -- winbase.h:6267
  4795.  
  4796.     function IsBadWritePtr(lp : Win32.LPVOID;
  4797.                            ucb: Win32.UINT)
  4798.                                 return Win32.BOOL;          -- winbase.h:6275
  4799.  
  4800.     function IsBadHugeReadPtr(lp : Win32.PCVOID;
  4801.                               ucb: Win32.UINT)
  4802.                                    return Win32.BOOL;       -- winbase.h:6283
  4803.  
  4804.     function IsBadHugeWritePtr(lp : Win32.LPVOID;
  4805.                                ucb: Win32.UINT)
  4806.                                     return Win32.BOOL;      -- winbase.h:6291
  4807.  
  4808.     function IsBadCodePtr(lpfn: Win32.Windef.FARPROC) return Win32.BOOL;
  4809.                                                             -- winbase.h:6299
  4810.  
  4811.     function IsBadStringPtrA(lpsz   : Win32.LPCSTR;
  4812.                              ucchMax: Win32.UINT)
  4813.                                       return Win32.BOOL;    -- winbase.h:6306
  4814.  
  4815.     function IsBadStringPtr(lpsz   : Win32.LPCSTR;
  4816.                             ucchMax: Win32.UINT)
  4817.                                      return Win32.BOOL
  4818.                                      renames IsBadStringPtrA;   
  4819.                                                             -- winbase.h:6306
  4820.  
  4821.     function IsBadStringPtrW(lpsz   : Win32.LPCWSTR;
  4822.                              ucchMax: Win32.UINT)
  4823.                                       return Win32.BOOL;    -- winbase.h:6313
  4824.  
  4825.     function LookupAccountSidA(
  4826.         lpSystemName          : Win32.LPCSTR;
  4827.         Sid                   : Win32.Winnt.PSID;
  4828.         Name                  : Win32.LPSTR;
  4829.         cbName                : Win32.LPDWORD;
  4830.         ReferencedDomainName  : Win32.LPSTR;
  4831.         cbReferencedDomainName: Win32.LPDWORD;
  4832.         peUse                 : Win32.Winnt.PSID_NAME_USE)
  4833.                                 return Win32.BOOL;
  4834.                                                             -- winbase.h:6326
  4835.  
  4836.     function LookupAccountSid(lpSystemName          : Win32.LPCSTR;
  4837.                               Sid                   : Win32.Winnt.PSID;
  4838.                               Name                  : Win32.LPSTR;
  4839.                               cbName                : Win32.LPDWORD;
  4840.                               ReferencedDomainName  : Win32.LPSTR;
  4841.                               cbReferencedDomainName: Win32.LPDWORD;
  4842.                               peUse                 : Win32.Winnt.PSID_NAME_USE)
  4843.                                                       return Win32.BOOL
  4844.                                                       renames LookupAccountSidA;
  4845.                                                             -- winbase.h:6326
  4846.  
  4847.     function LookupAccountSidW(
  4848.         lpSystemName          : Win32.LPCWSTR;
  4849.         Sid                   : Win32.Winnt.PSID;
  4850.         Name                  : Win32.LPWSTR;
  4851.         cbName                : Win32.LPDWORD;
  4852.         ReferencedDomainName  : Win32.LPWSTR;
  4853.         cbReferencedDomainName: Win32.LPDWORD;
  4854.         peUse                 : Win32.Winnt.PSID_NAME_USE)
  4855.                                 return Win32.BOOL;
  4856.                                                             -- winbase.h:6338
  4857.  
  4858.     function LookupAccountNameA(
  4859.         lpSystemName          : Win32.LPCSTR;
  4860.         lpAccountName         : Win32.LPCSTR;
  4861.         Sid                   : Win32.Winnt.PSID;
  4862.         cbSid                 : Win32.LPDWORD;
  4863.         ReferencedDomainName  : Win32.LPSTR;
  4864.         cbReferencedDomainName: Win32.LPDWORD;
  4865.         peUse                 : Win32.Winnt.PSID_NAME_USE)
  4866.                                 return Win32.BOOL;
  4867.                                                             -- winbase.h:6356
  4868.  
  4869.     function LookupAccountName(
  4870.         lpSystemName          : Win32.LPCSTR;
  4871.         lpAccountName         : Win32.LPCSTR;
  4872.         Sid                   : Win32.Winnt.PSID;
  4873.         cbSid                 : Win32.LPDWORD;
  4874.         ReferencedDomainName  : Win32.LPSTR;
  4875.         cbReferencedDomainName: Win32.LPDWORD;
  4876.         peUse                 : Win32.Winnt.PSID_NAME_USE)
  4877.                                 return Win32.BOOL
  4878.                                 renames LookupAccountNameA; -- winbase.h:6356
  4879.  
  4880.     function LookupAccountNameW(
  4881.         lpSystemName          : Win32.LPCWSTR;
  4882.         lpAccountName         : Win32.LPCWSTR;
  4883.         Sid                   : Win32.Winnt.PSID;
  4884.         cbSid                 : Win32.LPDWORD;
  4885.         ReferencedDomainName  : Win32.LPWSTR;
  4886.         cbReferencedDomainName: Win32.LPDWORD;
  4887.         peUse                 : Win32.Winnt.PSID_NAME_USE)
  4888.                                 return Win32.BOOL;
  4889.                                                             -- winbase.h:6368
  4890.  
  4891.     function LookupPrivilegeValueA(lpSystemName: Win32.LPCSTR;
  4892.                                    lpName      : Win32.LPCSTR;
  4893.                                    lpLuid      : Win32.Winnt.PLUID)
  4894.                                                  return Win32.BOOL;
  4895.                                                             -- winbase.h:6386
  4896.  
  4897.     function LookupPrivilegeValue(lpSystemName: Win32.LPCSTR;
  4898.                                   lpName      : Win32.LPCSTR;
  4899.                                   lpLuid      : Win32.Winnt.PLUID)
  4900.                                                 return Win32.BOOL
  4901.                                                 renames LookupPrivilegeValueA;
  4902.                                                             -- winbase.h:6386
  4903.  
  4904.     function LookupPrivilegeValueW(lpSystemName: Win32.LPCWSTR;
  4905.                                    lpName      : Win32.LPCWSTR;
  4906.                                    lpLuid      : Win32.Winnt.PLUID)
  4907.                                                  return Win32.BOOL;
  4908.                                                             -- winbase.h:6394
  4909.  
  4910.     function LookupPrivilegeNameA(lpSystemName: Win32.LPCSTR;
  4911.                                   lpLuid      : Win32.Winnt.PLUID;
  4912.                                   lpName      : Win32.LPSTR;
  4913.                                   cbName      : Win32.LPDWORD)
  4914.                                                 return Win32.BOOL;
  4915.                                                             -- winbase.h:6408
  4916.  
  4917.     function LookupPrivilegeName(lpSystemName: Win32.LPCSTR;
  4918.                                  lpLuid      : Win32.Winnt.PLUID;
  4919.                                  lpName      : Win32.LPSTR;
  4920.                                  cbName      : Win32.LPDWORD)
  4921.                                                return Win32.BOOL
  4922.                                                renames LookupPrivilegeNameA;
  4923.                                                             -- winbase.h:6408
  4924.  
  4925.     function LookupPrivilegeNameW(lpSystemName: Win32.LPCWSTR;
  4926.                                   lpLuid      : Win32.Winnt.PLUID;
  4927.                                   lpName      : Win32.LPWSTR;
  4928.                                   cbName      : Win32.LPDWORD)
  4929.                                                 return Win32.BOOL;
  4930.                                                             -- winbase.h:6417
  4931.  
  4932.     function LookupPrivilegeDisplayNameA(lpSystemName : Win32.LPCSTR;
  4933.                                          lpName       : Win32.LPCSTR;
  4934.                                          lpDisplayName: Win32.LPSTR;
  4935.                                          cbDisplayName: Win32.LPDWORD;
  4936.                                          lpLanguageId : Win32.LPDWORD)
  4937.                                                         return Win32.BOOL;
  4938.                                                             -- winbase.h:6432
  4939.  
  4940.     function LookupPrivilegeDisplayName(lpSystemName : Win32.LPCSTR;
  4941.                                         lpName       : Win32.LPCSTR;
  4942.                                         lpDisplayName: Win32.LPSTR;
  4943.                                         cbDisplayName: Win32.LPDWORD;
  4944.                                         lpLanguageId : Win32.LPDWORD)
  4945.                                                        return Win32.BOOL
  4946.              renames LookupPrivilegeDisplayNameA;           -- winbase.h:6432
  4947.  
  4948.     function LookupPrivilegeDisplayNameW(lpSystemName : Win32.LPCWSTR;
  4949.                                          lpName       : Win32.LPCWSTR;
  4950.                                          lpDisplayName: Win32.LPWSTR;
  4951.                                          cbDisplayName: Win32.LPDWORD;
  4952.                                          lpLanguageId : Win32.LPDWORD)
  4953.                                                         return Win32.BOOL;
  4954.                                                             -- winbase.h:6442
  4955.  
  4956.     function AllocateLocallyUniqueId(Luid: Win32.Winnt.PLUID) return Win32.BOOL;
  4957.                                                             -- winbase.h:6458
  4958.  
  4959.     function BuildCommDCBA(lpDef: Win32.LPCSTR;
  4960.                            lpDCB: Win32.Winbase.LPDCB)
  4961.                                   return Win32.BOOL;        -- winbase.h:6465
  4962.  
  4963.     function BuildCommDCB(lpDef: Win32.LPCSTR;
  4964.                           lpDCB: Win32.Winbase.LPDCB)
  4965.                                  return Win32.BOOL
  4966.                                  renames BuildCommDCBA;     -- winbase.h:6465
  4967.  
  4968.     function BuildCommDCBW(lpDef: Win32.LPCWSTR;
  4969.                            lpDCB: Win32.Winbase.LPDCB)
  4970.                                   return Win32.BOOL;        -- winbase.h:6472
  4971.  
  4972.     function BuildCommDCBAndTimeoutsA(lpDef         : Win32.LPCSTR;
  4973.                                       lpDCB         : Win32.Winbase.LPDCB;
  4974.                                       lpCommTimeouts: Win32.Winbase.LPCOMMTIMEOUTS)
  4975.                                                       return Win32.BOOL;
  4976.                                                             -- winbase.h:6485
  4977.  
  4978.     function BuildCommDCBAndTimeouts(lpDef         : Win32.LPCSTR;
  4979.                                      lpDCB         : Win32.Winbase.LPDCB;
  4980.                                      lpCommTimeouts: Win32.Winbase.LPCOMMTIMEOUTS)
  4981.                                                      return Win32.BOOL
  4982.              renames BuildCommDCBAndTimeoutsA;              -- winbase.h:6485
  4983.  
  4984.     function BuildCommDCBAndTimeoutsW(lpDef         : Win32.LPCWSTR;
  4985.                                       lpDCB         : Win32.Winbase.LPDCB;
  4986.                                       lpCommTimeouts: Win32.Winbase.LPCOMMTIMEOUTS)
  4987.                                                       return Win32.BOOL;
  4988.                                                             -- winbase.h:6493
  4989.  
  4990.     function CommConfigDialogA(lpszName: Win32.LPCSTR;
  4991.                                hWnd    : Win32.Windef.HWND;
  4992.                                lpCC    : LPCOMMCONFIG)
  4993.                                          return Win32.BOOL; -- winbase.h:6507
  4994.  
  4995.     function CommConfigDialog(lpszName: Win32.LPCSTR;
  4996.                               hWnd    : Win32.Windef.HWND;
  4997.                               lpCC    : LPCOMMCONFIG)
  4998.                                         return Win32.BOOL
  4999.                                         renames CommConfigDialogA;
  5000.                                                             -- winbase.h:6507
  5001.  
  5002.     function CommConfigDialogW(lpszName: Win32.LPCWSTR;
  5003.                                hWnd    : Win32.Windef.HWND;
  5004.                                lpCC    : LPCOMMCONFIG)
  5005.                                          return Win32.BOOL; -- winbase.h:6515
  5006.  
  5007.     function GetDefaultCommConfigA(lpszName: Win32.LPCSTR;
  5008.                                    lpCC    : LPCOMMCONFIG;
  5009.                                    lpdwSize: Win32.LPDWORD)
  5010.                                              return Win32.BOOL;
  5011.                                                             -- winbase.h:6529
  5012.  
  5013.     function GetDefaultCommConfig(lpszName: Win32.LPCSTR;
  5014.                                   lpCC    : LPCOMMCONFIG;
  5015.                                   lpdwSize: Win32.LPDWORD)
  5016.                                             return Win32.BOOL
  5017.                                             renames GetDefaultCommConfigA;
  5018.                                                             -- winbase.h:6529
  5019.  
  5020.     function GetDefaultCommConfigW(lpszName: Win32.LPCWSTR;
  5021.                                    lpCC    : LPCOMMCONFIG;
  5022.                                    lpdwSize: Win32.LPDWORD)
  5023.                                              return Win32.BOOL;
  5024.                                                             -- winbase.h:6537
  5025.  
  5026.     function SetDefaultCommConfigA(lpszName: Win32.LPCSTR;
  5027.                                    lpCC    : LPCOMMCONFIG;
  5028.                                    dwSize  : Win32.DWORD)
  5029.                                              return Win32.BOOL;
  5030.                                                             -- winbase.h:6551
  5031.  
  5032.     function SetDefaultCommConfig(lpszName: Win32.LPCSTR;
  5033.                                   lpCC    : LPCOMMCONFIG;
  5034.                                   dwSize  : Win32.DWORD)
  5035.                                             return Win32.BOOL
  5036.                                             renames SetDefaultCommConfigA;
  5037.                                                             -- winbase.h:6551
  5038.  
  5039.     function SetDefaultCommConfigW(lpszName: Win32.LPCWSTR;
  5040.                                    lpCC    : LPCOMMCONFIG;
  5041.                                    dwSize  : Win32.DWORD)
  5042.                                              return Win32.BOOL;
  5043.                                                             -- winbase.h:6559
  5044.  
  5045.     function GetComputerNameA(lpBuffer: Win32.LPSTR;
  5046.                               nSize   : Win32.LPDWORD)
  5047.                                         return Win32.BOOL;  -- winbase.h:6576
  5048.  
  5049.     function GetComputerName(lpBuffer: Win32.LPSTR;
  5050.                              nSize   : Win32.LPDWORD)
  5051.                                        return Win32.BOOL
  5052.                                        renames GetComputerNameA;
  5053.                                                             -- winbase.h:6576
  5054.  
  5055.     function GetComputerNameW(lpBuffer: Win32.LPWSTR;
  5056.                               nSize   : Win32.LPDWORD)
  5057.                                         return Win32.BOOL;  -- winbase.h:6583
  5058.  
  5059.     function SetComputerNameA(lpComputerName: Win32.LPCSTR) return Win32.BOOL;
  5060.                                                             -- winbase.h:6596
  5061.  
  5062.     function SetComputerName(lpComputerName: Win32.LPCSTR) return Win32.BOOL
  5063.              renames SetComputerNameA;                      -- winbase.h:6596
  5064.  
  5065.     function SetComputerNameW(lpComputerName: Win32.LPCWSTR) return Win32.BOOL;
  5066.                                                             -- winbase.h:6602
  5067.  
  5068.     function GetUserNameA(lpBuffer: Win32.LPSTR;
  5069.                           nSize   : Win32.LPDWORD)
  5070.                                     return Win32.BOOL;      -- winbase.h:6614
  5071.  
  5072.     function GetUserName(lpBuffer: Win32.LPSTR;
  5073.                          nSize   : Win32.LPDWORD)
  5074.                                    return Win32.BOOL
  5075.                                    renames GetUserNameA;        
  5076.                                                             -- winbase.h:6614
  5077.  
  5078.     function GetUserNameW(lpBuffer: Win32.LPWSTR;
  5079.                           nSize   : Win32.LPDWORD)
  5080.                                     return Win32.BOOL;      -- winbase.h:6621
  5081.  
  5082.     function QueryPerformanceCounter(
  5083.         lpPerformanceCount: Win32.Winnt.PLARGE_INTEGER) 
  5084.                             return Win32.BOOL;              -- winbase.h:6638
  5085.  
  5086.     function QueryPerformanceFrequency(
  5087.         lpFrequency: Win32.Winnt.PLARGE_INTEGER) 
  5088.                      return Win32.BOOL;                     -- winbase.h:6645
  5089.  
  5090.     function GetVersionExA(lpVersionInformation: LPOSVERSIONINFOA) 
  5091.              return Win32.BOOL;                             -- winbase.h:6686
  5092.  
  5093.     function GetVersionEx(lpVersionInformation: LPOSVERSIONINFOA) 
  5094.              return Win32.BOOL renames GetVersionExA;       -- winbase.h:6686
  5095.  
  5096.     function GetVersionExW(lpVersionInformation: LPOSVERSIONINFOW) 
  5097.              return Win32.BOOL;                             -- winbase.h:6692
  5098.  
  5099. private
  5100.  
  5101.     pragma Convention(C, COMSTAT);                          -- winbase.h:374
  5102.     pragma Convention(C, DCB);                              -- winbase.h:402
  5103.     pragma Convention(C, OVERLAPPED);                       -- winbase.h:179
  5104.     pragma Convention(C, SECURITY_ATTRIBUTES);              -- winbase.h:187
  5105.     pragma Convention(C, PROCESS_INFORMATION);              -- winbase.h:193
  5106.     pragma Convention(C, FILETIME);                         -- winbase.h:204
  5107.     pragma Convention(C, SYSTEMTIME);                       -- winbase.h:213
  5108.     pragma Convention(C, COMMPROP);                         -- winbase.h:347
  5109.     pragma Convention(C, COMMTIMEOUTS);                     -- winbase.h:433
  5110.     pragma Convention(C, COMMCONFIG);                       -- winbase.h:441
  5111.     pragma Convention(C, SYSTEM_INFO);                      -- winbase.h:454
  5112.     pragma Convention(C, MEMORYSTATUS);                     -- winbase.h:497
  5113.     pragma Convention(C, EXCEPTION_DEBUG_INFO);             -- winbase.h:580
  5114.     pragma Convention(C, CREATE_THREAD_DEBUG_INFO);         -- winbase.h:585
  5115.     pragma Convention(C, CREATE_PROCESS_DEBUG_INFO);        -- winbase.h:591
  5116.     pragma Convention(C, EXIT_THREAD_DEBUG_INFO);           -- winbase.h:604
  5117.     pragma Convention(C, EXIT_PROCESS_DEBUG_INFO);          -- winbase.h:608
  5118.     pragma Convention(C, LOAD_DLL_DEBUG_INFO);              -- winbase.h:612
  5119.     pragma Convention(C, UNLOAD_DLL_DEBUG_INFO);            -- winbase.h:621
  5120.     pragma Convention(C, OUTPUT_DEBUG_STRING_INFO);         -- winbase.h:625
  5121.     pragma Convention(C, RIP_INFO);                         -- winbase.h:631
  5122.     pragma Convention(C, DEBUG_EVENT);                      -- winbase.h:637
  5123.     pragma Convention(C, OFSTRUCT);                         -- winbase.h:874
  5124.     pragma Convention(C, struct_anonymous2_t);              -- winbase.h:1347
  5125.     pragma Convention(C, struct_anonymous3_t);              -- winbase.h:1353
  5126.     pragma Convention(C, PROCESS_HEAP_ENTRY);               -- winbase.h:1337
  5127.     pragma Convention(C, BY_HANDLE_FILE_INFORMATION);       -- winbase.h:2030
  5128.     pragma Convention(C, TIME_ZONE_INFORMATION);            -- winbase.h:2645
  5129.     pragma Convention(C, WIN32_STREAM_ID);                  -- winbase.h:3283
  5130.     pragma Convention(C, STARTUPINFOA);                     -- winbase.h:3326
  5131.     pragma Convention(C, STARTUPINFOW);                     -- winbase.h:3346
  5132.     pragma Convention(C, WIN32_FIND_DATAA);                 -- winbase.h:3376
  5133.     pragma Convention(C, WIN32_FIND_DATAW);                 -- winbase.h:3388
  5134.     pragma Convention(C, OSVERSIONINFOA);                   -- winbase.h:6649
  5135.     pragma Convention(C, OSVERSIONINFOW);                   -- winbase.h:6657
  5136.  
  5137.     function To_Handle is new Ada.Unchecked_Conversion(
  5138.         Integer, Win32.Winnt.HANDLE);
  5139.  
  5140.     INVALID_HANDLE_VALUE : constant Win32.Winnt.HANDLE := To_Handle(-1);
  5141.                                                             -- winbase.h:57
  5142.  
  5143.     pragma Inline(GlobalDiscard);
  5144.     pragma Inline(LocalDiscard);
  5145.     pragma Inline(MAKEINTATOM);
  5146.  
  5147.     pragma Import(Stdcall, InterlockedIncrement, "InterlockedIncrement");
  5148.                                                             -- winbase.h:922
  5149.     pragma Import(Stdcall, InterlockedDecrement, "InterlockedDecrement");
  5150.                                                             -- winbase.h:929
  5151.     pragma Import(Stdcall, InterlockedExchange, "InterlockedExchange");
  5152.                                                             -- winbase.h:936
  5153.     pragma Import(Stdcall, FreeResource, "FreeResource");         -- winbase.h:946
  5154.     pragma Import(Stdcall, LockResource, "LockResource");         -- winbase.h:953
  5155.     pragma Import(Stdcall, WinMain, "WinMain");                   -- winbase.h:964
  5156.     pragma Import(Stdcall, FreeLibrary, "FreeLibrary");           -- winbase.h:974
  5157.     pragma Import(Stdcall, FreeLibraryAndExitThread, "FreeLibraryAndExitThread");
  5158.                                                             -- winbase.h:982
  5159.     pragma Import(Stdcall, DisableThreadLibraryCalls,"DisableThreadLibraryCalls");
  5160.                                                             -- winbase.h:990
  5161.     pragma Import(Stdcall, GetProcAddress, "GetProcAddress");     -- winbase.h:997
  5162.     pragma Import(Stdcall, GetVersion, "GetVersion");             -- winbase.h:1005
  5163.     pragma Import(Stdcall, GlobalAlloc, "GlobalAlloc");           -- winbase.h:1010
  5164.     pragma Import(Stdcall, GlobalReAlloc, "GlobalReAlloc");       -- winbase.h:1018
  5165.     pragma Import(Stdcall, GlobalSize, "GlobalSize");             -- winbase.h:1027
  5166.     pragma Import(Stdcall, GlobalFlags, "GlobalFlags");           -- winbase.h:1034
  5167.     pragma Import(Stdcall, GlobalLock, "GlobalLock");             -- winbase.h:1042
  5168.     pragma Import(Stdcall, GlobalHandle, "GlobalHandle");         -- winbase.h:1050
  5169.     pragma Import(Stdcall, GlobalUnlock, "GlobalUnlock");         -- winbase.h:1058
  5170.     pragma Import(Stdcall, GlobalFree, "GlobalFree");             -- winbase.h:1066
  5171.     pragma Import(Stdcall, GlobalCompact, "GlobalCompact");       -- winbase.h:1073
  5172.     pragma Import(Stdcall, GlobalFix, "GlobalFix");               -- winbase.h:1080
  5173.     pragma Import(Stdcall, GlobalUnfix, "GlobalUnfix");           -- winbase.h:1087
  5174.     pragma Import(Stdcall, GlobalWire, "GlobalWire");             -- winbase.h:1094
  5175.     pragma Import(Stdcall, GlobalUnWire, "GlobalUnWire");         -- winbase.h:1101
  5176.     pragma Import(Stdcall, GlobalMemoryStatus, "GlobalMemoryStatus"); 
  5177.                                                             -- winbase.h:1108
  5178.     pragma Import(Stdcall, LocalAlloc, "LocalAlloc");             -- winbase.h:1115
  5179.     pragma Import(Stdcall, LocalReAlloc, "LocalReAlloc");         -- winbase.h:1123
  5180.     pragma Import(Stdcall, LocalLock, "LocalLock");               -- winbase.h:1132
  5181.     pragma Import(Stdcall, LocalHandle, "LocalHandle");           -- winbase.h:1139
  5182.     pragma Import(Stdcall, LocalUnlock, "LocalUnlock");           -- winbase.h:1146
  5183.     pragma Import(Stdcall, LocalSize, "LocalSize");               -- winbase.h:1153
  5184.     pragma Import(Stdcall, LocalFlags, "LocalFlags");             -- winbase.h:1160
  5185.     pragma Import(Stdcall, LocalFree, "LocalFree");               -- winbase.h:1167
  5186.     pragma Import(Stdcall, LocalShrink, "LocalShrink");           -- winbase.h:1174
  5187.     pragma Import(Stdcall, LocalCompact, "LocalCompact");         -- winbase.h:1182
  5188.     pragma Import(Stdcall, FlushInstructionCache, "FlushInstructionCache");
  5189.                                                             -- winbase.h:1189
  5190.     pragma Import(Stdcall, VirtualAlloc, "VirtualAlloc");         -- winbase.h:1198
  5191.     pragma Import(Stdcall, VirtualFree, "VirtualFree");           -- winbase.h:1208
  5192.     pragma Import(Stdcall, VirtualProtect, "VirtualProtect");     -- winbase.h:1217
  5193.     pragma Import(Stdcall, VirtualQuery, "VirtualQuery");         -- winbase.h:1227
  5194.     pragma Import(Stdcall, VirtualProtectEx, "VirtualProtectEx"); -- winbase.h:1236
  5195.     pragma Import(Stdcall, VirtualQueryEx, "VirtualQueryEx");     -- winbase.h:1247
  5196.     pragma Import(Stdcall, HeapCreate, "HeapCreate");             -- winbase.h:1257
  5197.     pragma Import(Stdcall, HeapDestroy, "HeapDestroy");           -- winbase.h:1266
  5198.     pragma Import(Stdcall, HeapAlloc, "HeapAlloc");               -- winbase.h:1273
  5199.     pragma Import(Stdcall, HeapReAlloc, "HeapReAlloc");           -- winbase.h:1282
  5200.     pragma Import(Stdcall, HeapFree, "HeapFree");                 -- winbase.h:1292
  5201.     pragma Import(Stdcall, HeapSize, "HeapSize");                 -- winbase.h:1301
  5202.     pragma Import(Stdcall, HeapValidate, "HeapValidate");         -- winbase.h:1310
  5203.     pragma Import(Stdcall, HeapCompact, "HeapCompact");           -- winbase.h:1319
  5204.     pragma Import(Stdcall, GetProcessHeap, "GetProcessHeap");     -- winbase.h:1327
  5205.     pragma Import(Stdcall, GetProcessHeaps, "GetProcessHeaps");   -- winbase.h:1332
  5206.     pragma Import(Stdcall, HeapLock, "HeapLock");                 -- winbase.h:1366
  5207.     pragma Import(Stdcall, HeapUnlock, "HeapUnlock");             -- winbase.h:1373
  5208.     pragma Import(Stdcall, HeapWalk, "HeapWalk");                 -- winbase.h:1380
  5209.     pragma Import(Stdcall, GetBinaryTypeA, "GetBinaryTypeA");     -- winbase.h:1397
  5210.     pragma Import(Stdcall, GetBinaryTypeW, "GetBinaryTypeW");     -- winbase.h:1404
  5211.     pragma Import(Stdcall, GetShortPathNameA, "GetShortPathNameA");
  5212.                                                             -- winbase.h:1417
  5213.     pragma Import(Stdcall, GetShortPathNameW, "GetShortPathNameW");
  5214.                                                             -- winbase.h:1425
  5215.     pragma Import(Stdcall, GetProcessAffinityMask, "GetProcessAffinityMask");
  5216.                                                             -- winbase.h:1439
  5217.     pragma Import(Stdcall, GetProcessTimes, "GetProcessTimes");   -- winbase.h:1448
  5218.     pragma Import(Stdcall, GetProcessWorkingSetSize, "GetProcessWorkingSetSize");
  5219.                                                             -- winbase.h:1459
  5220.     pragma Import(Stdcall, SetProcessWorkingSetSize, "SetProcessWorkingSetSize");
  5221.                                                             -- winbase.h:1468
  5222.     pragma Import(Stdcall, OpenProcess, "OpenProcess");           -- winbase.h:1477
  5223.     pragma Import(Stdcall, GetCurrentProcess, "GetCurrentProcess");   
  5224.                                                             -- winbase.h:1486
  5225.     pragma Import(Stdcall, GetCurrentProcessId, "GetCurrentProcessId");
  5226.                                                             -- winbase.h:1493
  5227.     pragma Import(Stdcall, ExitProcess, "ExitProcess");           -- winbase.h:1500
  5228.     pragma Import(Stdcall, TerminateProcess, "TerminateProcess");     
  5229.                                                             -- winbase.h:1507
  5230.     pragma Import(Stdcall, GetExitCodeProcess, "GetExitCodeProcess"); 
  5231.                                                             -- winbase.h:1515
  5232.     pragma Import(Stdcall, FatalExit, "FatalExit");               -- winbase.h:1524
  5233.     pragma Import(Stdcall, GetEnvironmentStrings, "GetEnvironmentStrings");
  5234.                                                             -- winbase.h:1531
  5235.     pragma Import(Stdcall, GetEnvironmentStringsW, "GetEnvironmentStringsW");
  5236.                                                             -- winbase.h:1538
  5237.     pragma Import(Stdcall, FreeEnvironmentStringsA, "FreeEnvironmentStringsA");
  5238.                                                             -- winbase.h:1551
  5239.     pragma Import(Stdcall, FreeEnvironmentStringsW, "FreeEnvironmentStringsW");
  5240.                                                             -- winbase.h:1557
  5241.     pragma Import(Stdcall, RaiseException, "RaiseException");     -- winbase.h:1569
  5242.     pragma Import(Stdcall, UnhandledExceptionFilter, "UnhandledExceptionFilter");
  5243.                                                             -- winbase.h:1579
  5244.     pragma Import(Stdcall, SetUnhandledExceptionFilter, 
  5245.                     "SetUnhandledExceptionFilter");
  5246.                                                             -- winbase.h:1591
  5247.     pragma Import(Stdcall, CreateThread, "CreateThread");         -- winbase.h:1598
  5248.     pragma Import(Stdcall, CreateRemoteThread, "CreateRemoteThread"); 
  5249.                                                             -- winbase.h:1610
  5250.     pragma Import(Stdcall, GetCurrentThread, "GetCurrentThread"); -- winbase.h:1623
  5251.     pragma Import(Stdcall, GetCurrentThreadId, "GetCurrentThreadId"); 
  5252.                                                             -- winbase.h:1630
  5253.     pragma Import(Stdcall, SetThreadAffinityMask, "SetThreadAffinityMask");
  5254.                                                             -- winbase.h:1637
  5255.     pragma Import(Stdcall, SetThreadPriority, "SetThreadPriority");
  5256.                                                             -- winbase.h:1645
  5257.     pragma Import(Stdcall, GetThreadPriority, "GetThreadPriority");
  5258.                                                             -- winbase.h:1653
  5259.     pragma Import(Stdcall, GetThreadTimes, "GetThreadTimes");     -- winbase.h:1660
  5260.     pragma Import(Stdcall, ExitThread, "ExitThread");             -- winbase.h:1671
  5261.     pragma Import(Stdcall, TerminateThread, "TerminateThread");   -- winbase.h:1678
  5262.     pragma Import(Stdcall, GetExitCodeThread, "GetExitCodeThread");   
  5263.                                                             -- winbase.h:1686
  5264.     pragma Import(Stdcall, GetThreadSelectorEntry, "GetThreadSelectorEntry");
  5265.                                                             -- winbase.h:1694
  5266.     pragma Import(Stdcall, GetLastError, "GetLastError");             
  5267.                                                             -- winbase.h:1703
  5268.     pragma Import(Stdcall, SetLastError, "SetLastError");         -- winbase.h:1710
  5269.     pragma Import(Stdcall, GetOverlappedResult, "GetOverlappedResult");
  5270.                                                             -- winbase.h:1717
  5271.     pragma Import(Stdcall, CreateIoCompletionPort, "CreateIoCompletionPort");
  5272.                                                             -- winbase.h:1727
  5273.     pragma Import(Stdcall, GetQueuedCompletionStatus, "GetQueuedCompletionStatus");
  5274.                                                             -- winbase.h:1737
  5275.     pragma Import(Stdcall, SetErrorMode, "SetErrorMode");         -- winbase.h:1753
  5276.     pragma Import(Stdcall, ReadProcessMemory, "ReadProcessMemory"); 
  5277.                                                             -- winbase.h:1760
  5278.     pragma Import(Stdcall, WriteProcessMemory, "WriteProcessMemory"); 
  5279.                                                             -- winbase.h:1771
  5280.     pragma Import(Stdcall, GetThreadContext, "GetThreadContext"); -- winbase.h:1782
  5281.     pragma Import(Stdcall, SetThreadContext, "SetThreadContext"); -- winbase.h:1790
  5282.     pragma Import(Stdcall, SuspendThread, "SuspendThread");       -- winbase.h:1798
  5283.     pragma Import(Stdcall, ResumeThread, "ResumeThread");         -- winbase.h:1805
  5284.     pragma Import(Stdcall, DebugBreak, "DebugBreak");             -- winbase.h:1812
  5285.     pragma Import(Stdcall, WaitForDebugEvent, "WaitForDebugEvent");
  5286.                                                             -- winbase.h:1819
  5287.     pragma Import(Stdcall, ContinueDebugEvent, "ContinueDebugEvent"); 
  5288.                                                             -- winbase.h:1827
  5289.     pragma Import(Stdcall, DebugActiveProcess, "DebugActiveProcess"); 
  5290.                                                             -- winbase.h:1836
  5291.     pragma Import(Stdcall, InitializeCriticalSection, "InitializeCriticalSection");
  5292.                                                             -- winbase.h:1843
  5293.     pragma Import(Stdcall, EnterCriticalSection, "EnterCriticalSection");
  5294.                                                             -- winbase.h:1850
  5295.     pragma Import(Stdcall, LeaveCriticalSection, "LeaveCriticalSection");
  5296.                                                             -- winbase.h:1857
  5297.     pragma Import(Stdcall, DeleteCriticalSection, "DeleteCriticalSection");
  5298.                                                             -- winbase.h:1864
  5299.     pragma Import(Stdcall, SetEvent, "SetEvent");                 -- winbase.h:1871
  5300.     pragma Import(Stdcall, ResetEvent, "ResetEvent");             -- winbase.h:1878
  5301.     pragma Import(Stdcall, PulseEvent, "PulseEvent");             -- winbase.h:1885
  5302.     pragma Import(Stdcall, ReleaseSemaphore, "ReleaseSemaphore"); -- winbase.h:1892
  5303.     pragma Import(Stdcall, ReleaseMutex, "ReleaseMutex");         -- winbase.h:1901
  5304.     pragma Import(Stdcall, WaitForSingleObject, "WaitForSingleObject");
  5305.                                                             -- winbase.h:1908
  5306.     pragma Import(Stdcall, WaitForMultipleObjects, "WaitForMultipleObjects");
  5307.                                                             -- winbase.h:1916
  5308.     pragma Import(Stdcall, Sleep, "Sleep");                       -- winbase.h:1926
  5309.     pragma Import(Stdcall, LoadResource, "LoadResource");         -- winbase.h:1933
  5310.     pragma Import(Stdcall, SizeofResource, "SizeofResource");     -- winbase.h:1941
  5311.     pragma Import(Stdcall, GlobalDeleteAtom, "GlobalDeleteAtom"); -- winbase.h:1950
  5312.     pragma Import(Stdcall, InitAtomTable, "InitAtomTable");       -- winbase.h:1957
  5313.     pragma Import(Stdcall, DeleteAtom, "DeleteAtom");             -- winbase.h:1964
  5314.     pragma Import(Stdcall, SetHandleCount, "SetHandleCount");     -- winbase.h:1971
  5315.     pragma Import(Stdcall, GetLogicalDrives, "GetLogicalDrives"); -- winbase.h:1978
  5316.     pragma Import(Stdcall, LockFile, "LockFile");                 -- winbase.h:1985
  5317.     pragma Import(Stdcall, UnlockFile, "UnlockFile");             -- winbase.h:1996
  5318.     pragma Import(Stdcall, LockFileEx, "LockFileEx");             -- winbase.h:2007
  5319.     pragma Import(Stdcall, UnlockFileEx, "UnlockFileEx");         -- winbase.h:2022
  5320.  
  5321.     pragma Import(Stdcall, GetFileInformationByHandle, "GetFileInformationByHandle");
  5322.                                                             -- winbase.h:2046
  5323.  
  5324.     pragma Import(Stdcall, GetFileType, "GetFileType");           -- winbase.h:2054
  5325.     pragma Import(Stdcall, GetFileSize, "GetFileSize");           -- winbase.h:2061
  5326.     pragma Import(Stdcall, GetStdHandle, "GetStdHandle");         -- winbase.h:2069
  5327.     pragma Import(Stdcall, SetStdHandle, "SetStdHandle");         -- winbase.h:2076
  5328.     pragma Import(Stdcall, WriteFile, "WriteFile");               -- winbase.h:2084
  5329.     pragma Import(Stdcall, ReadFile, "ReadFile");                 -- winbase.h:2095
  5330.     pragma Import(Stdcall, FlushFileBuffers, "FlushFileBuffers");     
  5331.                                                             -- winbase.h:2106
  5332.     pragma Import(Stdcall, DeviceIoControl, "DeviceIoControl");       
  5333.                                                             -- winbase.h:2113
  5334.     pragma Import(Stdcall, SetEndOfFile, "SetEndOfFile");             
  5335.                                                             -- winbase.h:2127
  5336.     pragma Import(Stdcall, SetFilePointer, "SetFilePointer");         
  5337.                                                             -- winbase.h:2134
  5338.     pragma Import(Stdcall, FindClose, "FindClose");               -- winbase.h:2144
  5339.     pragma Import(Stdcall, GetFileTime, "GetFileTime");           -- winbase.h:2151
  5340.     pragma Import(Stdcall, SetFileTime, "SetFileTime");           -- winbase.h:2161
  5341.     pragma Import(Stdcall, CloseHandle, "CloseHandle");           -- winbase.h:2171
  5342.     pragma Import(Stdcall, DuplicateHandle, "DuplicateHandle");       
  5343.                                                             -- winbase.h:2178
  5344.     pragma Import(Stdcall, GetHandleInformation, "GetHandleInformation");
  5345.                                                             -- winbase.h:2191
  5346.     pragma Import(Stdcall, SetHandleInformation, "SetHandleInformation");
  5347.                                                             -- winbase.h:2199
  5348.     pragma Import(Stdcall, LoadModule, "LoadModule");             -- winbase.h:2213
  5349.     pragma Import(Stdcall, WinExec, "WinExec");                   -- winbase.h:2221
  5350.     pragma Import(Stdcall, ClearCommBreak, "ClearCommBreak");         
  5351.                                                             -- winbase.h:2229
  5352.     pragma Import(Stdcall, ClearCommError, "ClearCommError");         
  5353.                                                             -- winbase.h:2236
  5354.     pragma Import(Stdcall, SetupComm, "SetupComm");                   
  5355.                                                             -- winbase.h:2245
  5356.     pragma Import(Stdcall, EscapeCommFunction, "EscapeCommFunction"); 
  5357.                                                             -- winbase.h:2254
  5358.     pragma Import(Stdcall, GetCommConfig, "GetCommConfig");       -- winbase.h:2262
  5359.     pragma Import(Stdcall, GetCommMask, "GetCommMask");           -- winbase.h:2271
  5360.     pragma Import(Stdcall, GetCommProperties, "GetCommProperties");   
  5361.                                                             -- winbase.h:2279
  5362.     pragma Import(Stdcall, GetCommModemStatus, "GetCommModemStatus"); 
  5363.                                                             -- winbase.h:2287
  5364.     pragma Import(Stdcall, GetCommState, "GetCommState");         -- winbase.h:2295
  5365.     pragma Import(Stdcall, GetCommTimeouts, "GetCommTimeouts");       
  5366.                                                             -- winbase.h:2303
  5367.     pragma Import(Stdcall, PurgeComm, "PurgeComm");               -- winbase.h:2311
  5368.     pragma Import(Stdcall, SetCommBreak, "SetCommBreak");             
  5369.                                                             -- winbase.h:2319
  5370.     pragma Import(Stdcall, SetCommConfig, "SetCommConfig");           
  5371.                                                             -- winbase.h:2326
  5372.     pragma Import(Stdcall, SetCommMask, "SetCommMask");               
  5373.                                                             -- winbase.h:2335
  5374.     pragma Import(Stdcall, SetCommState, "SetCommState");             
  5375.                                                             -- winbase.h:2343
  5376.     pragma Import(Stdcall, SetCommTimeouts, "SetCommTimeouts");   -- winbase.h:2351
  5377.     pragma Import(Stdcall, TransmitCommChar, "TransmitCommChar");     
  5378.                                                             -- winbase.h:2359
  5379.     pragma Import(Stdcall, WaitCommEvent, "WaitCommEvent");       -- winbase.h:2367
  5380.     pragma Import(Stdcall, SetTapePosition, "SetTapePosition");       
  5381.                                                             -- winbase.h:2377
  5382.     pragma Import(Stdcall, GetTapePosition, "GetTapePosition");       
  5383.                                                             -- winbase.h:2389
  5384.     pragma Import(Stdcall, PrepareTape, "PrepareTape");           -- winbase.h:2400
  5385.     pragma Import(Stdcall, EraseTape, "EraseTape");               -- winbase.h:2409
  5386.     pragma Import(Stdcall, CreateTapePartition, "CreateTapePartition");
  5387.                                                             -- winbase.h:2418
  5388.     pragma Import(Stdcall, WriteTapemark, "WriteTapemark");       -- winbase.h:2428
  5389.     pragma Import(Stdcall, GetTapeStatus, "GetTapeStatus");       -- winbase.h:2438
  5390.     pragma Import(Stdcall, GetTapeParameters, "GetTapeParameters");   
  5391.                                                             -- winbase.h:2445
  5392.     pragma Import(Stdcall, SetTapeParameters, "SetTapeParameters");
  5393.                                                             -- winbase.h:2458
  5394.     pragma Import(Stdcall, Beep, "Beep");                         -- winbase.h:2470
  5395.     pragma Import(Stdcall, OpenSound, "OpenSound");               -- winbase.h:2478
  5396.     pragma Import(Stdcall, CloseSound, "CloseSound");             -- winbase.h:2485
  5397.     pragma Import(Stdcall, StartSound, "StartSound");             -- winbase.h:2492
  5398.     pragma Import(Stdcall, StopSound, "StopSound");               -- winbase.h:2499
  5399.     pragma Import(Stdcall, WaitSoundState, "WaitSoundState");     -- winbase.h:2506
  5400.     pragma Import(Stdcall, SyncAllVoices, "SyncAllVoices");       -- winbase.h:2513
  5401.     pragma Import(Stdcall, CountVoiceNotes, "CountVoiceNotes");       
  5402.                                                             -- winbase.h:2520
  5403.     pragma Import(Stdcall, GetThresholdEvent, "GetThresholdEvent");   
  5404.                                                             -- winbase.h:2527
  5405.     pragma Import(Stdcall, GetThresholdStatus, "GetThresholdStatus"); 
  5406.                                                             -- winbase.h:2534
  5407.     pragma Import(Stdcall, SetSoundNoise, "SetSoundNoise");       -- winbase.h:2541
  5408.     pragma Import(Stdcall, SetVoiceAccent, "SetVoiceAccent");     -- winbase.h:2549
  5409.     pragma Import(Stdcall, SetVoiceEnvelope, "SetVoiceEnvelope");     
  5410.                                                             -- winbase.h:2560
  5411.     pragma Import(Stdcall, SetVoiceNote, "SetVoiceNote");         -- winbase.h:2569
  5412.     pragma Import(Stdcall, SetVoiceQueueSize, "SetVoiceQueueSize");   
  5413.                                                             -- winbase.h:2579
  5414.     pragma Import(Stdcall, SetVoiceSound, "SetVoiceSound");       -- winbase.h:2587
  5415.     pragma Import(Stdcall, SetVoiceThreshold, "SetVoiceThreshold");   
  5416.                                                             -- winbase.h:2596
  5417.     pragma Import(Stdcall, MulDiv, "MulDiv");                     -- winbase.h:2604
  5418.     pragma Import(Stdcall, GetSystemTime, "GetSystemTime");       -- winbase.h:2613
  5419.     pragma Import(Stdcall, SetSystemTime, "SetSystemTime");       -- winbase.h:2620
  5420.     pragma Import(Stdcall, GetLocalTime, "GetLocalTime");         -- winbase.h:2627
  5421.     pragma Import(Stdcall, SetLocalTime, "SetLocalTime");         -- winbase.h:2634
  5422.     pragma Import(Stdcall, GetSystemInfo, "GetSystemInfo");       -- winbase.h:2641
  5423.     pragma Import(Stdcall, SystemTimeToTzSpecificLocalTime, 
  5424.                      "SystemTimeToTzSpecificLocalTime");
  5425.                                                             -- winbase.h:2658
  5426.     pragma Import(Stdcall, GetTimeZoneInformation, "GetTimeZoneInformation");
  5427.                                                             -- winbase.h:2667
  5428.     pragma Import(Stdcall, SetTimeZoneInformation, "SetTimeZoneInformation");
  5429.                                                             -- winbase.h:2674
  5430.     pragma Import(Stdcall, SystemTimeToFileTime, "SystemTimeToFileTime");
  5431.                                                             -- winbase.h:2685
  5432.     pragma Import(Stdcall, FileTimeToLocalFileTime, "FileTimeToLocalFileTime");
  5433.                                                             -- winbase.h:2693
  5434.     pragma Import(Stdcall, LocalFileTimeToFileTime, "LocalFileTimeToFileTime");
  5435.                                                             -- winbase.h:2701
  5436.     pragma Import(Stdcall, FileTimeToSystemTime, "FileTimeToSystemTime");
  5437.                                                             -- winbase.h:2709
  5438.     pragma Import(Stdcall, CompareFileTime, "CompareFileTime");   -- winbase.h:2717
  5439.     pragma Import(Stdcall, FileTimeToDosDateTime, "FileTimeToDosDateTime");
  5440.                                                             -- winbase.h:2725
  5441.     pragma Import(Stdcall, DosDateTimeToFileTime, "DosDateTimeToFileTime");
  5442.                                                             -- winbase.h:2734
  5443.     pragma Import(Stdcall, GetTickCount, "GetTickCount");         -- winbase.h:2743
  5444.     pragma Import(Stdcall, SetSystemTimeAdjustment, "SetSystemTimeAdjustment");
  5445.                                                             -- winbase.h:2750
  5446.     pragma Import(Stdcall, GetSystemTimeAdjustment, "GetSystemTimeAdjustment");
  5447.                                                             -- winbase.h:2758
  5448.     pragma Import(Stdcall, CreatePipe, "CreatePipe");                 
  5449.                                                             -- winbase.h:2806
  5450.     pragma Import(Stdcall, ConnectNamedPipe, "ConnectNamedPipe"); -- winbase.h:2816
  5451.     pragma Import(Stdcall, DisconnectNamedPipe, "DisconnectNamedPipe");
  5452.                                                             -- winbase.h:2824
  5453.     pragma Import(Stdcall, SetNamedPipeHandleState, "SetNamedPipeHandleState");
  5454.                                                             -- winbase.h:2831
  5455.     pragma Import(Stdcall, GetNamedPipeInfo, "GetNamedPipeInfo"); -- winbase.h:2841
  5456.     pragma Import(Stdcall, PeekNamedPipe, "PeekNamedPipe");       -- winbase.h:2852
  5457.     pragma Import(Stdcall, TransactNamedPipe, "TransactNamedPipe");
  5458.                                                             -- winbase.h:2864
  5459.     pragma Import(Stdcall, CreateMailslotA, "CreateMailslotA");   -- winbase.h:2877
  5460.     pragma Import(Stdcall, CreateMailslotW, "CreateMailslotW");   -- winbase.h:2886
  5461.     pragma Import(Stdcall, GetMailslotInfo, "GetMailslotInfo");   -- winbase.h:2901
  5462.     pragma Import(Stdcall, SetMailslotInfo, "SetMailslotInfo");   -- winbase.h:2912
  5463.     pragma Import(Stdcall, MapViewOfFile, "MapViewOfFile");       -- winbase.h:2920
  5464.     pragma Import(Stdcall, FlushViewOfFile, "FlushViewOfFile");   -- winbase.h:2931
  5465.     pragma Import(Stdcall, UnmapViewOfFile, "UnmapViewOfFile");   -- winbase.h:2939
  5466.     pragma Import(Stdcall, lstrcmpA, "lstrcmpA");                 -- winbase.h:2950
  5467.     pragma Import(Stdcall, lstrcmpW, "lstrcmpW");                 -- winbase.h:2957
  5468.     pragma Import(Stdcall, lstrcmpiA, "lstrcmpiA");               -- winbase.h:2970
  5469.     pragma Import(Stdcall, lstrcmpiW, "lstrcmpiW");               -- winbase.h:2977
  5470.     pragma Import(Stdcall, lstrcpynA, "lstrcpynA");               -- winbase.h:2990
  5471.     pragma Import(Stdcall, lstrcpynW, "lstrcpynW");               -- winbase.h:2998
  5472.     pragma Import(Stdcall, lstrcpyA, "lstrcpyA");                 -- winbase.h:3012
  5473.     pragma Import(Stdcall, lstrcpyW, "lstrcpyW");                 -- winbase.h:3019
  5474.     pragma Import(Stdcall, lstrcatA, "lstrcatA");                 -- winbase.h:3032
  5475.     pragma Import(Stdcall, lstrcatW, "lstrcatW");                 -- winbase.h:3039
  5476.     pragma Import(Stdcall, lstrlenA, "lstrlenA");                 -- winbase.h:3052
  5477.     pragma Import(Stdcall, lstrlenW, "lstrlenW");                 -- winbase.h:3058
  5478.     pragma Import(Stdcall, OpenFile, "OpenFile");                 -- winbase.h:3070
  5479.     pragma Import(Stdcall, lopen, "_lopen");                      -- winbase.h:3079
  5480.     pragma Import(Stdcall, lcreat, "_lcreat");                    -- winbase.h:3087
  5481.     pragma Import(Stdcall, lread, "_lread");                      -- winbase.h:3095
  5482.     pragma Import(Stdcall, lwrite, "_lwrite");                    -- winbase.h:3104
  5483.     pragma Import(Stdcall, hread, "_hread");                      -- winbase.h:3113
  5484.     pragma Import(Stdcall, hwrite, "_hwrite");                    -- winbase.h:3122
  5485.     pragma Import(Stdcall, lclose, "_lclose");                    -- winbase.h:3131
  5486.     pragma Import(Stdcall, llseek, "_llseek");                    -- winbase.h:3138
  5487.     pragma Import(Stdcall, IsTextUnicode, "IsTextUnicode");           
  5488.                                                             -- winbase.h:3147
  5489.     pragma Import(Stdcall, TlsAlloc, "TlsAlloc");                 -- winbase.h:3156
  5490.     pragma Import(Stdcall, TlsGetValue, "TlsGetValue");           -- winbase.h:3165
  5491.     pragma Import(Stdcall, TlsSetValue, "TlsSetValue");           -- winbase.h:3172
  5492.     pragma Import(Stdcall, TlsFree, "TlsFree");                   -- winbase.h:3180
  5493.     pragma Import(Stdcall, SleepEx, "SleepEx");                   -- winbase.h:3195
  5494.     pragma Import(Stdcall, WaitForSingleObjectEx, "WaitForSingleObjectEx");
  5495.                                                             -- winbase.h:3203
  5496.     pragma Import(Stdcall, WaitForMultipleObjectsEx, "WaitForMultipleObjectsEx");
  5497.                                                             -- winbase.h:3212
  5498.     pragma Import(Stdcall, ReadFileEx, "ReadFileEx");             -- winbase.h:3223
  5499.     pragma Import(Stdcall, WriteFileEx, "WriteFileEx");           -- winbase.h:3234
  5500.     pragma Import(Stdcall, BackupRead, "BackupRead");             -- winbase.h:3245
  5501.     pragma Import(Stdcall, BackupSeek, "BackupSeek");             -- winbase.h:3258
  5502.     pragma Import(Stdcall, BackupWrite, "BackupWrite");           -- winbase.h:3270
  5503.     pragma Import(Stdcall, CreateMutexA, "CreateMutexA");         -- winbase.h:3413
  5504.     pragma Import(Stdcall, CreateMutexW, "CreateMutexW");         -- winbase.h:3421
  5505.     pragma Import(Stdcall, OpenMutexA, "OpenMutexA");             -- winbase.h:3435
  5506.     pragma Import(Stdcall, OpenMutexW, "OpenMutexW");             -- winbase.h:3443
  5507.     pragma Import(Stdcall, CreateEventA, "CreateEventA");         -- winbase.h:3457
  5508.     pragma Import(Stdcall, CreateEventW, "CreateEventW");         -- winbase.h:3466
  5509.     pragma Import(Stdcall, OpenEventA, "OpenEventA");             -- winbase.h:3481
  5510.     pragma Import(Stdcall, OpenEventW, "OpenEventW");             -- winbase.h:3489
  5511.     pragma Import(Stdcall, CreateSemaphoreA, "CreateSemaphoreA");     
  5512.                                                             -- winbase.h:3503
  5513.     pragma Import(Stdcall, CreateSemaphoreW, "CreateSemaphoreW");     
  5514.                                                             -- winbase.h:3512
  5515.     pragma Import(Stdcall, OpenSemaphoreA, "OpenSemaphoreA");         
  5516.                                                             -- winbase.h:3527
  5517.     pragma Import(Stdcall, OpenSemaphoreW, "OpenSemaphoreW");         
  5518.                                                             -- winbase.h:3535
  5519.     pragma Import(Stdcall, CreateFileMappingA, "CreateFileMappingA"); 
  5520.                                                             -- winbase.h:3549
  5521.     pragma Import(Stdcall, CreateFileMappingW, "CreateFileMappingW"); 
  5522.                                                             -- winbase.h:3560
  5523.     pragma Import(Stdcall, OpenFileMappingA, "OpenFileMappingA");     
  5524.                                                             -- winbase.h:3577
  5525.     pragma Import(Stdcall, OpenFileMappingW, "OpenFileMappingW");     
  5526.                                                             -- winbase.h:3585
  5527.     pragma Import(Stdcall, GetLogicalDriveStringsA, "GetLogicalDriveStringsA");
  5528.                                                             -- winbase.h:3599
  5529.     pragma Import(Stdcall, GetLogicalDriveStringsW, "GetLogicalDriveStringsW");
  5530.                                                             -- winbase.h:3606
  5531.     pragma Import(Stdcall, LoadLibraryA, "LoadLibraryA");         -- winbase.h:3619
  5532.     pragma Import(Stdcall, LoadLibraryW, "LoadLibraryW");         -- winbase.h:3625
  5533.     pragma Import(Stdcall, LoadLibraryExA, "LoadLibraryExA");     -- winbase.h:3637
  5534.     pragma Import(Stdcall, LoadLibraryExW, "LoadLibraryExW");     -- winbase.h:3645
  5535.     pragma Import(Stdcall, GetModuleFileNameA, "GetModuleFileNameA"); 
  5536.                                                             -- winbase.h:3664
  5537.     pragma Import(Stdcall, GetModuleFileNameW, "GetModuleFileNameW"); 
  5538.                                                             -- winbase.h:3672
  5539.     pragma Import(Stdcall, GetModuleHandleA, "GetModuleHandleA"); -- winbase.h:3686
  5540.     pragma Import(Stdcall, GetModuleHandleW, "GetModuleHandleW"); -- winbase.h:3692
  5541.     pragma Import(Stdcall, CreateProcessA, "CreateProcessA");     -- winbase.h:3704
  5542.     pragma Import(Stdcall, CreateProcessW, "CreateProcessW");     -- winbase.h:3719
  5543.     pragma Import(Stdcall, SetProcessShutdownParameters, 
  5544.                      "SetProcessShutdownParameters");       -- winbase.h:3740
  5545.     pragma Import(Stdcall, GetProcessShutdownParameters, 
  5546.                      "GetProcessShutdownParameters");       -- winbase.h:3748
  5547.     pragma Import(Stdcall, FatalAppExitA, "FatalAppExitA");       -- winbase.h:3756
  5548.     pragma Import(Stdcall, FatalAppExitW, "FatalAppExitW");       -- winbase.h:3763
  5549.     pragma Import(Stdcall, GetStartupInfoA, "GetStartupInfoA");   -- winbase.h:3776
  5550.     pragma Import(Stdcall, GetStartupInfoW, "GetStartupInfoW");   -- winbase.h:3782
  5551.     pragma Import(Stdcall, GetCommandLineA, "GetCommandLineA");   -- winbase.h:3794
  5552.     pragma Import(Stdcall, GetCommandLineW, "GetCommandLineW");   -- winbase.h:3800
  5553.     pragma Import(Stdcall, GetEnvironmentVariableA, "GetEnvironmentVariableA");
  5554.                                                             -- winbase.h:3812
  5555.     pragma Import(Stdcall, GetEnvironmentVariableW, "GetEnvironmentVariableW");
  5556.                                                             -- winbase.h:3820
  5557.     pragma Import(Stdcall, SetEnvironmentVariableA, "SetEnvironmentVariableA");
  5558.                                                             -- winbase.h:3834
  5559.     pragma Import(Stdcall, SetEnvironmentVariableW, "SetEnvironmentVariableW");
  5560.                                                             -- winbase.h:3841
  5561.     pragma Import(Stdcall, ExpandEnvironmentStringsA, "ExpandEnvironmentStringsA");
  5562.                                                             -- winbase.h:3854
  5563.     pragma Import(Stdcall, ExpandEnvironmentStringsW, "ExpandEnvironmentStringsW");
  5564.                                                             -- winbase.h:3862
  5565.     pragma Import(Stdcall, OutputDebugStringA, "OutputDebugStringA"); 
  5566.                                                             -- winbase.h:3876
  5567.     pragma Import(Stdcall, OutputDebugStringW, "OutputDebugStringW"); 
  5568.                                                             -- winbase.h:3882
  5569.     pragma Import(Stdcall, FindResourceA, "FindResourceA");       -- winbase.h:3894
  5570.     pragma Import(Stdcall, FindResourceW, "FindResourceW");       -- winbase.h:3902
  5571.     pragma Import(Stdcall, FindResourceExA, "FindResourceExA");   -- winbase.h:3916
  5572.     pragma Import(Stdcall, FindResourceExW, "FindResourceExW");   -- winbase.h:3925
  5573.     pragma Import(Stdcall, EnumResourceTypesA, "EnumResourceTypesA"); 
  5574.                                                             -- winbase.h:3953
  5575.     pragma Import(Stdcall, EnumResourceTypesW, "EnumResourceTypesW"); 
  5576.                                                             -- winbase.h:3961
  5577.     pragma Import(Stdcall, EnumResourceNamesA, "EnumResourceNamesA"); 
  5578.                                                             -- winbase.h:3976
  5579.     pragma Import(Stdcall, EnumResourceNamesW, "EnumResourceNamesW"); 
  5580.                                                             -- winbase.h:3985
  5581.     pragma Import(Stdcall, EnumResourceLanguagesA, "EnumResourceLanguagesA");
  5582.                                                             -- winbase.h:4000
  5583.     pragma Import(Stdcall, EnumResourceLanguagesW, "EnumResourceLanguagesW");
  5584.                                                             -- winbase.h:4010
  5585.     pragma Import(Stdcall, BeginUpdateResourceA, "BeginUpdateResourceA");
  5586.                                                             -- winbase.h:4026
  5587.     pragma Import(Stdcall, BeginUpdateResourceW, "BeginUpdateResourceW");
  5588.                                                             -- winbase.h:4033
  5589.     pragma Import(Stdcall, UpdateResourceA, "UpdateResourceA");       
  5590.                                                             -- winbase.h:4046
  5591.     pragma Import(Stdcall, UpdateResourceW, "UpdateResourceW");       
  5592.                                                             -- winbase.h:4057
  5593.     pragma Import(Stdcall, EndUpdateResourceA, "EndUpdateResourceA"); 
  5594.                                                             -- winbase.h:4074
  5595.     pragma Import(Stdcall, EndUpdateResourceW, "EndUpdateResourceW"); 
  5596.                                                             -- winbase.h:4081
  5597.     pragma Import(Stdcall, GlobalAddAtomA, "GlobalAddAtomA");     -- winbase.h:4094
  5598.     pragma Import(Stdcall, GlobalAddAtomW, "GlobalAddAtomW");     -- winbase.h:4100
  5599.     pragma Import(Stdcall, GlobalFindAtomA, "GlobalFindAtomA");   -- winbase.h:4112
  5600.     pragma Import(Stdcall, GlobalFindAtomW, "GlobalFindAtomW");   -- winbase.h:4118
  5601.     pragma Import(Stdcall, GlobalGetAtomNameA, "GlobalGetAtomNameA"); 
  5602.                                                             -- winbase.h:4130
  5603.     pragma Import(Stdcall, GlobalGetAtomNameW, "GlobalGetAtomNameW"); 
  5604.                                                             -- winbase.h:4138
  5605.     pragma Import(Stdcall, AddAtomA, "AddAtomA");                 -- winbase.h:4152
  5606.     pragma Import(Stdcall, AddAtomW, "AddAtomW");                 -- winbase.h:4158
  5607.     pragma Import(Stdcall, FindAtomA, "FindAtomA");               -- winbase.h:4170
  5608.     pragma Import(Stdcall, FindAtomW, "FindAtomW");               -- winbase.h:4176
  5609.     pragma Import(Stdcall, GetAtomNameA, "GetAtomNameA");         -- winbase.h:4188
  5610.     pragma Import(Stdcall, GetAtomNameW, "GetAtomNameW");         -- winbase.h:4196
  5611.     pragma Import(Stdcall, GetProfileIntA, "GetProfileIntA");     -- winbase.h:4210
  5612.     pragma Import(Stdcall, GetProfileIntW, "GetProfileIntW");     -- winbase.h:4218
  5613.     pragma Import(Stdcall, GetProfileStringA, "GetProfileStringA");   
  5614.                                                             -- winbase.h:4232
  5615.     pragma Import(Stdcall, GetProfileStringW, "GetProfileStringW");   
  5616.                                                             -- winbase.h:4242
  5617.     pragma Import(Stdcall, WriteProfileStringA, "WriteProfileStringA");
  5618.                                                             -- winbase.h:4258
  5619.     pragma Import(Stdcall, WriteProfileStringW, "WriteProfileStringW");
  5620.                                                             -- winbase.h:4266
  5621.     pragma Import(Stdcall, GetProfileSectionA, "GetProfileSectionA"); 
  5622.                                                             -- winbase.h:4280
  5623.     pragma Import(Stdcall, GetProfileSectionW, "GetProfileSectionW"); 
  5624.                                                             -- winbase.h:4288
  5625.     pragma Import(Stdcall, WriteProfileSectionA, "WriteProfileSectionA");
  5626.                                                             -- winbase.h:4302
  5627.     pragma Import(Stdcall, WriteProfileSectionW, "WriteProfileSectionW");
  5628.                                                             -- winbase.h:4309
  5629.     pragma Import(Stdcall, GetPrivateProfileIntA, "GetPrivateProfileIntA");
  5630.                                                             -- winbase.h:4322
  5631.     pragma Import(Stdcall, GetPrivateProfileIntW, "GetPrivateProfileIntW");
  5632.                                                             -- winbase.h:4331
  5633.     pragma Import(Stdcall, GetPrivateProfileStringA, "GetPrivateProfileStringA");
  5634.                                                             -- winbase.h:4346
  5635.     pragma Import(Stdcall, GetPrivateProfileStringW, "GetPrivateProfileStringW");
  5636.                                                             -- winbase.h:4357
  5637.     pragma Import(Stdcall, WritePrivateProfileStringA, "WritePrivateProfileStringA");
  5638.                                                             -- winbase.h:4374
  5639.     pragma Import(Stdcall, WritePrivateProfileStringW, "WritePrivateProfileStringW");
  5640.                                                             -- winbase.h:4383
  5641.     pragma Import(Stdcall, GetPrivateProfileSectionA, "GetPrivateProfileSectionA");
  5642.                                                             -- winbase.h:4398
  5643.     pragma Import(Stdcall, GetPrivateProfileSectionW, "GetPrivateProfileSectionW");
  5644.                                                             -- winbase.h:4407
  5645.     pragma Import(Stdcall, WritePrivateProfileSectionA, 
  5646.                      "WritePrivateProfileSectionA");        -- winbase.h:4422
  5647.     pragma Import(Stdcall, WritePrivateProfileSectionW, 
  5648.                      "WritePrivateProfileSectionW");        -- winbase.h:4430
  5649.     pragma Import(Stdcall, GetDriveTypeA, "GetDriveTypeA");       -- winbase.h:4444
  5650.     pragma Import(Stdcall, GetDriveTypeW, "GetDriveTypeW");       -- winbase.h:4450
  5651.     pragma Import(Stdcall, GetSystemDirectoryA, "GetSystemDirectoryA");
  5652.                                                             -- winbase.h:4462
  5653.     pragma Import(Stdcall, GetSystemDirectoryW, "GetSystemDirectoryW");
  5654.                                                             -- winbase.h:4469
  5655.     pragma Import(Stdcall, GetTempPathA, "GetTempPathA");         -- winbase.h:4482
  5656.     pragma Import(Stdcall, GetTempPathW, "GetTempPathW");         -- winbase.h:4489
  5657.     pragma Import(Stdcall, GetTempFileNameA, "GetTempFileNameA"); -- winbase.h:4502
  5658.     pragma Import(Stdcall, GetTempFileNameW, "GetTempFileNameW"); -- winbase.h:4511
  5659.     pragma Import(Stdcall, GetWindowsDirectoryA, "GetWindowsDirectoryA");
  5660.                                                             -- winbase.h:4526
  5661.     pragma Import(Stdcall, GetWindowsDirectoryW, "GetWindowsDirectoryW");
  5662.                                                             -- winbase.h:4533
  5663.     pragma Import(Stdcall, SetCurrentDirectoryA, "SetCurrentDirectoryA");
  5664.                                                             -- winbase.h:4546
  5665.     pragma Import(Stdcall, SetCurrentDirectoryW, "SetCurrentDirectoryW");
  5666.                                                             -- winbase.h:4552
  5667.     pragma Import(Stdcall, GetCurrentDirectoryA, "GetCurrentDirectoryA");
  5668.                                                             -- winbase.h:4564
  5669.     pragma Import(Stdcall, GetCurrentDirectoryW, "GetCurrentDirectoryW");
  5670.                                                             -- winbase.h:4571
  5671.     pragma Import(Stdcall, GetDiskFreeSpaceA, "GetDiskFreeSpaceA");   
  5672.                                                             -- winbase.h:4584
  5673.     pragma Import(Stdcall, GetDiskFreeSpaceW, "GetDiskFreeSpaceW");   
  5674.                                                             -- winbase.h:4594
  5675.     pragma Import(Stdcall, CreateDirectoryA, "CreateDirectoryA"); -- winbase.h:4610
  5676.     pragma Import(Stdcall, CreateDirectoryW, "CreateDirectoryW"); -- winbase.h:4617
  5677.     pragma Import(Stdcall, CreateDirectoryExA, "CreateDirectoryExA"); 
  5678.                                                             -- winbase.h:4630
  5679.     pragma Import(Stdcall, CreateDirectoryExW, "CreateDirectoryExW"); 
  5680.                                                             -- winbase.h:4638
  5681.     pragma Import(Stdcall, RemoveDirectoryA, "RemoveDirectoryA"); -- winbase.h:4652
  5682.     pragma Import(Stdcall, RemoveDirectoryW, "RemoveDirectoryW"); -- winbase.h:4658
  5683.     pragma Import(Stdcall, GetFullPathNameA, "GetFullPathNameA"); -- winbase.h:4670
  5684.     pragma Import(Stdcall, GetFullPathNameW, "GetFullPathNameW"); -- winbase.h:4679
  5685.     pragma Import(Stdcall, DefineDosDeviceA, "DefineDosDeviceA"); -- winbase.h:4699
  5686.     pragma Import(Stdcall, DefineDosDeviceW, "DefineDosDeviceW"); -- winbase.h:4707
  5687.     pragma Import(Stdcall, QueryDosDeviceA, "QueryDosDeviceA");   -- winbase.h:4721
  5688.     pragma Import(Stdcall, QueryDosDeviceW, "QueryDosDeviceW");   -- winbase.h:4729
  5689.     pragma Import(Stdcall, CreateFileA, "CreateFileA");           -- winbase.h:4745
  5690.     pragma Import(Stdcall, CreateFileW, "CreateFileW");           -- winbase.h:4757
  5691.     pragma Import(Stdcall, SetFileAttributesA, "SetFileAttributesA"); 
  5692.                                                             -- winbase.h:4775
  5693.     pragma Import(Stdcall, SetFileAttributesW, "SetFileAttributesW"); 
  5694.                                                             -- winbase.h:4782
  5695.     pragma Import(Stdcall, GetFileAttributesA, "GetFileAttributesA"); 
  5696.                                                             -- winbase.h:4795
  5697.     pragma Import(Stdcall, GetFileAttributesW, "GetFileAttributesW"); 
  5698.                                                             -- winbase.h:4801
  5699.     pragma Import(Stdcall, GetCompressedFileSizeA, "GetCompressedFileSizeA");
  5700.                                                             -- winbase.h:4813
  5701.     pragma Import(Stdcall, GetCompressedFileSizeW, "GetCompressedFileSizeW");
  5702.                                                             -- winbase.h:4820
  5703.     pragma Import(Stdcall, DeleteFileA, "DeleteFileA");           -- winbase.h:4833
  5704.     pragma Import(Stdcall, DeleteFileW, "DeleteFileW");           -- winbase.h:4839
  5705.     pragma Import(Stdcall, FindFirstFileA, "FindFirstFileA");     -- winbase.h:4851
  5706.     pragma Import(Stdcall, FindFirstFileW, "FindFirstFileW");     -- winbase.h:4858
  5707.     pragma Import(Stdcall, FindNextFileA, "FindNextFileA");       -- winbase.h:4871
  5708.     pragma Import(Stdcall, FindNextFileW, "FindNextFileW");       -- winbase.h:4878
  5709.     pragma Import(Stdcall, SearchPathA, "SearchPathA");           -- winbase.h:4891
  5710.     pragma Import(Stdcall, SearchPathW, "SearchPathW");           -- winbase.h:4902
  5711.     pragma Import(Stdcall, CopyFileA, "CopyFileA");               -- winbase.h:4919
  5712.     pragma Import(Stdcall, CopyFileW, "CopyFileW");               -- winbase.h:4927
  5713.     pragma Import(Stdcall, MoveFileA, "MoveFileA");               -- winbase.h:4941
  5714.     pragma Import(Stdcall, MoveFileW, "MoveFileW");               -- winbase.h:4948
  5715.     pragma Import(Stdcall, MoveFileExA, "MoveFileExA");           -- winbase.h:4961
  5716.     pragma Import(Stdcall, MoveFileExW, "MoveFileExW");           -- winbase.h:4969
  5717.     pragma Import(Stdcall, CreateNamedPipeA, "CreateNamedPipeA"); -- winbase.h:4987
  5718.     pragma Import(Stdcall, CreateNamedPipeW, "CreateNamedPipeW"); -- winbase.h:5000
  5719.     pragma Import(Stdcall, GetNamedPipeHandleStateA, "GetNamedPipeHandleStateA");
  5720.                                                             -- winbase.h:5019
  5721.     pragma Import(Stdcall, GetNamedPipeHandleStateW, "GetNamedPipeHandleStateW");
  5722.                                                             -- winbase.h:5031
  5723.     pragma Import(Stdcall, CallNamedPipeA, "CallNamedPipeA");     -- winbase.h:5049
  5724.     pragma Import(Stdcall, CallNamedPipeW, "CallNamedPipeW");     -- winbase.h:5061
  5725.     pragma Import(Stdcall, WaitNamedPipeA, "WaitNamedPipeA");     -- winbase.h:5079
  5726.     pragma Import(Stdcall, WaitNamedPipeW, "WaitNamedPipeW");     -- winbase.h:5086
  5727.     pragma Import(Stdcall, SetVolumeLabelA, "SetVolumeLabelA");   -- winbase.h:5099
  5728.     pragma Import(Stdcall, SetVolumeLabelW, "SetVolumeLabelW");       
  5729.                                                             -- winbase.h:5106
  5730.     pragma Import(Stdcall, SetFileApisToOEM, "SetFileApisToOEM");     
  5731.                                                             -- winbase.h:5119
  5732.     pragma Import(Stdcall, SetFileApisToANSI, "SetFileApisToANSI");   
  5733.                                                             -- winbase.h:5124
  5734.     pragma Import(Stdcall, AreFileApisANSI, "AreFileApisANSI");       
  5735.                                                             -- winbase.h:5129
  5736.     pragma Import(Stdcall, GetVolumeInformationA, "GetVolumeInformationA");
  5737.                                                             -- winbase.h:5134
  5738.     pragma Import(Stdcall, GetVolumeInformationW, "GetVolumeInformationW");
  5739.                                                             -- winbase.h:5147
  5740.     pragma Import(Stdcall, ClearEventLogA, "ClearEventLogA");     -- winbase.h:5170
  5741.     pragma Import(Stdcall, ClearEventLogW, "ClearEventLogW");     -- winbase.h:5177
  5742.     pragma Import(Stdcall, BackupEventLogA, "BackupEventLogA");   -- winbase.h:5190
  5743.     pragma Import(Stdcall, BackupEventLogW, "BackupEventLogW");   -- winbase.h:5197
  5744.     pragma Import(Stdcall, CloseEventLog, "CloseEventLog");       -- winbase.h:5210
  5745.     pragma Import(Stdcall, DeregisterEventSource, "DeregisterEventSource");
  5746.                                                             -- winbase.h:5217
  5747.     pragma Import(Stdcall, NotifyChangeEventLog, "NotifyChangeEventLog");
  5748.                                                             -- winbase.h:5224
  5749.     pragma Import(Stdcall, GetNumberOfEventLogRecords, "GetNumberOfEventLogRecords");
  5750.                                                             -- winbase.h:5232
  5751.     pragma Import(Stdcall, GetOldestEventLogRecord, "GetOldestEventLogRecord");
  5752.                                                             -- winbase.h:5240
  5753.     pragma Import(Stdcall, OpenEventLogA, "OpenEventLogA");       -- winbase.h:5248
  5754.     pragma Import(Stdcall, OpenEventLogW, "OpenEventLogW");       -- winbase.h:5255
  5755.     pragma Import(Stdcall, RegisterEventSourceA, "RegisterEventSourceA");
  5756.                                                             -- winbase.h:5268
  5757.     pragma Import(Stdcall, RegisterEventSourceW, "RegisterEventSourceW");
  5758.                                                             -- winbase.h:5275
  5759.     pragma Import(Stdcall, OpenBackupEventLogA, "OpenBackupEventLogA");
  5760.                                                             -- winbase.h:5288
  5761.     pragma Import(Stdcall, OpenBackupEventLogW, "OpenBackupEventLogW");
  5762.                                                             -- winbase.h:5295
  5763.     pragma Import(Stdcall, ReadEventLogA, "ReadEventLogA");       -- winbase.h:5308
  5764.     pragma Import(Stdcall, ReadEventLogW, "ReadEventLogW");       -- winbase.h:5320
  5765.     pragma Import(Stdcall, ReportEventA, "ReportEventA");         -- winbase.h:5338
  5766.     pragma Import(Stdcall, ReportEventW, "ReportEventW");         -- winbase.h:5352
  5767.     pragma Import(Stdcall, DuplicateToken, "DuplicateToken");     -- winbase.h:5378
  5768.     pragma Import(Stdcall, GetKernelObjectSecurity, "GetKernelObjectSecurity");
  5769.                                                             -- winbase.h:5387
  5770.     pragma Import(Stdcall, ImpersonateNamedPipeClient, "ImpersonateNamedPipeClient");
  5771.                                                             -- winbase.h:5398
  5772.     pragma Import(Stdcall, ImpersonateSelf, "ImpersonateSelf");       
  5773.                                                             -- winbase.h:5405
  5774.     pragma Import(Stdcall, RevertToSelf, "RevertToSelf");         -- winbase.h:5413
  5775.     pragma Import(Stdcall, SetThreadToken, "SetThreadToken");     -- winbase.h:5420
  5776.     pragma Import(Stdcall, AccessCheck, "AccessCheck");           -- winbase.h:5428
  5777.     pragma Import(Stdcall, OpenProcessToken, "OpenProcessToken");     
  5778.                                                             -- winbase.h:5443
  5779.     pragma Import(Stdcall, OpenThreadToken, "OpenThreadToken");       
  5780.                                                             -- winbase.h:5453
  5781.     pragma Import(Stdcall, GetTokenInformation, "GetTokenInformation");
  5782.                                                             -- winbase.h:5464
  5783.     pragma Import(Stdcall, SetTokenInformation, "SetTokenInformation");
  5784.                                                             -- winbase.h:5476
  5785.     pragma Import(Stdcall, AdjustTokenPrivileges, "AdjustTokenPrivileges");
  5786.                                                             -- winbase.h:5487
  5787.     pragma Import(Stdcall, AdjustTokenGroups, "AdjustTokenGroups");   
  5788.                                                             -- winbase.h:5500
  5789.     pragma Import(Stdcall, PrivilegeCheck, "PrivilegeCheck");         
  5790.                                                             -- winbase.h:5513
  5791.     pragma Import(Stdcall, AccessCheckAndAuditAlarmA, "AccessCheckAndAuditAlarmA");
  5792.                                                             -- winbase.h:5523
  5793.     pragma Import(Stdcall, AccessCheckAndAuditAlarmW, "AccessCheckAndAuditAlarmW");
  5794.                                                             -- winbase.h:5539
  5795.     pragma Import(Stdcall, ObjectOpenAuditAlarmA, "ObjectOpenAuditAlarmA");
  5796.                                                             -- winbase.h:5562
  5797.     pragma Import(Stdcall, ObjectOpenAuditAlarmW, "ObjectOpenAuditAlarmW");
  5798.                                                             -- winbase.h:5579
  5799.     pragma Import(Stdcall, ObjectPrivilegeAuditAlarmA, "ObjectPrivilegeAuditAlarmA");
  5800.                                                             -- winbase.h:5603
  5801.     pragma Import(Stdcall, ObjectPrivilegeAuditAlarmW, "ObjectPrivilegeAuditAlarmW");
  5802.                                                             -- winbase.h:5614
  5803.     pragma Import(Stdcall, ObjectCloseAuditAlarmA, "ObjectCloseAuditAlarmA");
  5804.                                                             -- winbase.h:5632
  5805.     pragma Import(Stdcall, ObjectCloseAuditAlarmW, "ObjectCloseAuditAlarmW");
  5806.                                                             -- winbase.h:5640
  5807.     pragma Import(Stdcall, PrivilegedServiceAuditAlarmA,  
  5808.                      "PrivilegedServiceAuditAlarmA");       -- winbase.h:5655
  5809.     pragma Import(Stdcall, PrivilegedServiceAuditAlarmW, 
  5810.                      "PrivilegedServiceAuditAlarmW");       -- winbase.h:5665
  5811.  
  5812.     pragma Import(Stdcall, IsValidSid, "IsValidSid");             -- winbase.h:5682
  5813.     pragma Import(Stdcall, EqualSid, "EqualSid");                 -- winbase.h:5690
  5814.     pragma Import(Stdcall, EqualPrefixSid, "EqualPrefixSid");     -- winbase.h:5699
  5815.  
  5816.     pragma Import(Stdcall, GetSidLengthRequired, "GetSidLengthRequired");
  5817.                                                             -- winbase.h:5708
  5818.     pragma Import(Stdcall, AllocateAndInitializeSid, "AllocateAndInitializeSid");
  5819.                                                             -- winbase.h:5716
  5820.     pragma Import(Stdcall, FreeSid, "FreeSid");                   -- winbase.h:5733
  5821.     pragma Import(Stdcall, InitializeSid, "InitializeSid");       -- winbase.h:5740
  5822.     pragma Import(Stdcall, GetSidIdentifierAuthority, "GetSidIdentifierAuthority");
  5823.                                                             -- winbase.h:5750
  5824.     pragma Import(Stdcall, GetSidSubAuthority, "GetSidSubAuthority"); 
  5825.                                                             -- winbase.h:5758
  5826.     pragma Import(Stdcall, GetSidSubAuthorityCount, "GetSidSubAuthorityCount");
  5827.                                                             -- winbase.h:5767
  5828.     pragma Import(Stdcall, GetLengthSid, "GetLengthSid");         -- winbase.h:5775
  5829.     pragma Import(Stdcall, CopySid, "CopySid");                   -- winbase.h:5783
  5830.     pragma Import(Stdcall, AreAllAccessesGranted, "AreAllAccessesGranted");
  5831.                                                             -- winbase.h:5793
  5832.     pragma Import(Stdcall, AreAnyAccessesGranted, "AreAnyAccessesGranted");
  5833.                                                             -- winbase.h:5802
  5834.     pragma Import(Stdcall, MapGenericMask, "MapGenericMask");     -- winbase.h:5811
  5835.     pragma Import(Stdcall, IsValidAcl, "IsValidAcl");             -- winbase.h:5820
  5836.     pragma Import(Stdcall, InitializeAcl, "InitializeAcl");       -- winbase.h:5828
  5837.     pragma Import(Stdcall, GetAclInformation, "GetAclInformation");   
  5838.                                                             -- winbase.h:5838
  5839.     pragma Import(Stdcall, SetAclInformation, "SetAclInformation");   
  5840.                                                             -- winbase.h:5849
  5841.     pragma Import(Stdcall, AddAce, "AddAce");                     -- winbase.h:5860
  5842.     pragma Import(Stdcall, DeleteAce, "DeleteAce");               -- winbase.h:5872
  5843.     pragma Import(Stdcall, GetAce, "GetAce");                     -- winbase.h:5881
  5844.     pragma Import(Stdcall, AddAccessAllowedAce, "AddAccessAllowedAce");
  5845.                                                             -- winbase.h:5891
  5846.     pragma Import(Stdcall, AddAccessDeniedAce, "AddAccessDeniedAce"); 
  5847.                                                             -- winbase.h:5902
  5848.     pragma Import(Stdcall, AddAuditAccessAce, "AddAuditAccessAce");   
  5849.                                                             -- winbase.h:5913
  5850.     pragma Import(Stdcall, FindFirstFreeAce, "FindFirstFreeAce");     
  5851.                                                             -- winbase.h:5926
  5852.     pragma Import(Stdcall, InitializeSecurityDescriptor, 
  5853.                      "InitializeSecurityDescriptor");       -- winbase.h:5935
  5854.  
  5855.     pragma Import(Stdcall, IsValidSecurityDescriptor, "IsValidSecurityDescriptor");
  5856.                                                             -- winbase.h:5944
  5857.     pragma Import(Stdcall, GetSecurityDescriptorLength, 
  5858.                      "GetSecurityDescriptorLength");        -- winbase.h:5952
  5859.  
  5860.     pragma Import(Stdcall, GetSecurityDescriptorControl, 
  5861.                      "GetSecurityDescriptorControl");       -- winbase.h:5960
  5862.  
  5863.     pragma Import(Stdcall, SetSecurityDescriptorDacl, "SetSecurityDescriptorDacl");
  5864.                                                             -- winbase.h:5970
  5865.     pragma Import(Stdcall, GetSecurityDescriptorDacl, "GetSecurityDescriptorDacl");
  5866.                                                             -- winbase.h:5981
  5867.     pragma Import(Stdcall, SetSecurityDescriptorSacl, "SetSecurityDescriptorSacl");
  5868.                                                             -- winbase.h:5992
  5869.     pragma Import(Stdcall, GetSecurityDescriptorSacl, "GetSecurityDescriptorSacl");
  5870.                                                             -- winbase.h:6003
  5871.     pragma Import(Stdcall, SetSecurityDescriptorOwner, "SetSecurityDescriptorOwner");
  5872.                                                             -- winbase.h:6014
  5873.     pragma Import(Stdcall, GetSecurityDescriptorOwner, "GetSecurityDescriptorOwner");
  5874.                                                             -- winbase.h:6024
  5875.     pragma Import(Stdcall, SetSecurityDescriptorGroup, "SetSecurityDescriptorGroup");
  5876.                                                             -- winbase.h:6034
  5877.     pragma Import(Stdcall, GetSecurityDescriptorGroup, "GetSecurityDescriptorGroup");
  5878.                                                             -- winbase.h:6044
  5879.     pragma Import(Stdcall, CreatePrivateObjectSecurity, 
  5880.                      "CreatePrivateObjectSecurity");        -- winbase.h:6054
  5881.     pragma Import(Stdcall, SetPrivateObjectSecurity, "SetPrivateObjectSecurity");
  5882.                                                             -- winbase.h:6067
  5883.     pragma Import(Stdcall, GetPrivateObjectSecurity, "GetPrivateObjectSecurity");
  5884.                                                             -- winbase.h:6079
  5885.     pragma Import(Stdcall, DestroyPrivateObjectSecurity, 
  5886.                      "DestroyPrivateObjectSecurity");       -- winbase.h:6091
  5887.     pragma Import(Stdcall, MakeSelfRelativeSD, "MakeSelfRelativeSD"); 
  5888.                                                             -- winbase.h:6099
  5889.     pragma Import(Stdcall, MakeAbsoluteSD, "MakeAbsoluteSD");         
  5890.                                                             -- winbase.h:6109
  5891.     pragma Import(Stdcall, SetFileSecurityA, "SetFileSecurityA");     
  5892.                                                             -- winbase.h:6127
  5893.     pragma Import(Stdcall, SetFileSecurityW, "SetFileSecurityW");     
  5894.                                                             -- winbase.h:6135
  5895.     pragma Import(Stdcall, GetFileSecurityA, "GetFileSecurityA");     
  5896.                                                             -- winbase.h:6150
  5897.     pragma Import(Stdcall, GetFileSecurityW, "GetFileSecurityW");     
  5898.                                                             -- winbase.h:6160
  5899.     pragma Import(Stdcall, SetKernelObjectSecurity, "SetKernelObjectSecurity");
  5900.                                                             -- winbase.h:6177
  5901.     pragma Import(Stdcall, FindFirstChangeNotificationA, 
  5902.                      "FindFirstChangeNotificationA");       -- winbase.h:6188
  5903.     pragma Import(Stdcall, FindFirstChangeNotificationW, 
  5904.                      "FindFirstChangeNotificationW");       -- winbase.h:6196
  5905.     pragma Import(Stdcall, FindNextChangeNotification, "FindNextChangeNotification");
  5906.                                                             -- winbase.h:6210
  5907.     pragma Import(Stdcall, FindCloseChangeNotification, 
  5908.                      "FindCloseChangeNotification");        -- winbase.h:6217
  5909.     pragma Import(Stdcall, VirtualLock, "VirtualLock");           -- winbase.h:6224
  5910.     pragma Import(Stdcall, VirtualUnlock, "VirtualUnlock");       -- winbase.h:6232
  5911.     pragma Import(Stdcall, MapViewOfFileEx, "MapViewOfFileEx");   -- winbase.h:6240
  5912.     pragma Import(Stdcall, SetPriorityClass, "SetPriorityClass");     
  5913.                                                             -- winbase.h:6252
  5914.     pragma Import(Stdcall, GetPriorityClass, "GetPriorityClass");     
  5915.                                                             -- winbase.h:6260
  5916.     pragma Import(Stdcall, IsBadReadPtr, "IsBadReadPtr");         -- winbase.h:6267
  5917.     pragma Import(Stdcall, IsBadWritePtr, "IsBadWritePtr");       -- winbase.h:6275
  5918.     pragma Import(Stdcall, IsBadHugeReadPtr, "IsBadHugeReadPtr");     
  5919.                                                             -- winbase.h:6283
  5920.     pragma Import(Stdcall, IsBadHugeWritePtr, "IsBadHugeWritePtr");   
  5921.                                                             -- winbase.h:6291
  5922.     pragma Import(Stdcall, IsBadCodePtr, "IsBadCodePtr");         -- winbase.h:6299
  5923.     pragma Import(Stdcall, IsBadStringPtrA, "IsBadStringPtrA");       
  5924.                                                             -- winbase.h:6306
  5925.     pragma Import(Stdcall, IsBadStringPtrW, "IsBadStringPtrW");       
  5926.                                                             -- winbase.h:6313
  5927.     pragma Import(Stdcall, LookupAccountSidA, "LookupAccountSidA");   
  5928.                                                             -- winbase.h:6326
  5929.     pragma Import(Stdcall, LookupAccountSidW, "LookupAccountSidW");   
  5930.                                                             -- winbase.h:6338
  5931.     pragma Import(Stdcall, LookupAccountNameA, "LookupAccountNameA"); 
  5932.                                                             -- winbase.h:6356
  5933.     pragma Import(Stdcall, LookupAccountNameW, "LookupAccountNameW"); 
  5934.                                                             -- winbase.h:6368
  5935.     pragma Import(Stdcall, LookupPrivilegeValueA, "LookupPrivilegeValueA");
  5936.                                                             -- winbase.h:6386
  5937.     pragma Import(Stdcall, LookupPrivilegeValueW, "LookupPrivilegeValueW");
  5938.                                                             -- winbase.h:6394
  5939.     pragma Import(Stdcall, LookupPrivilegeNameA, "LookupPrivilegeNameA");
  5940.                                                             -- winbase.h:6408
  5941.     pragma Import(Stdcall, LookupPrivilegeNameW, "LookupPrivilegeNameW");
  5942.                                                             -- winbase.h:6417
  5943.     pragma Import(Stdcall, LookupPrivilegeDisplayNameA, 
  5944.                      "LookupPrivilegeDisplayNameA");        -- winbase.h:6432
  5945.     pragma Import(Stdcall, LookupPrivilegeDisplayNameW,
  5946.                      "LookupPrivilegeDisplayNameW");        -- winbase.h:6442
  5947.     pragma Import(Stdcall, AllocateLocallyUniqueId, "AllocateLocallyUniqueId");
  5948.                                                             -- winbase.h:6458
  5949.     pragma Import(Stdcall, BuildCommDCBA, "BuildCommDCBA");       -- winbase.h:6465
  5950.     pragma Import(Stdcall, BuildCommDCBW, "BuildCommDCBW");       -- winbase.h:6472
  5951.     pragma Import(Stdcall, BuildCommDCBAndTimeoutsA, "BuildCommDCBAndTimeoutsA");
  5952.                                                             -- winbase.h:6485
  5953.     pragma Import(Stdcall, BuildCommDCBAndTimeoutsW, "BuildCommDCBAndTimeoutsW");
  5954.                                                             -- winbase.h:6493
  5955.     pragma Import(Stdcall, CommConfigDialogA, "CommConfigDialogA");   
  5956.                                                             -- winbase.h:6507
  5957.     pragma Import(Stdcall, CommConfigDialogW, "CommConfigDialogW");   
  5958.                                                             -- winbase.h:6515
  5959.     pragma Import(Stdcall, GetDefaultCommConfigA, "GetDefaultCommConfigA");
  5960.                                                             -- winbase.h:6529
  5961.     pragma Import(Stdcall, GetDefaultCommConfigW, "GetDefaultCommConfigW");
  5962.                                                             -- winbase.h:6537
  5963.     pragma Import(Stdcall, SetDefaultCommConfigA, "SetDefaultCommConfigA");
  5964.                                                             -- winbase.h:6551
  5965.     pragma Import(Stdcall, SetDefaultCommConfigW, "SetDefaultCommConfigW");
  5966.                                                             -- winbase.h:6559
  5967.     pragma Import(Stdcall, GetComputerNameA, "GetComputerNameA");     
  5968.                                                             -- winbase.h:6576
  5969.     pragma Import(Stdcall, GetComputerNameW, "GetComputerNameW");     
  5970.                                                             -- winbase.h:6583
  5971.     pragma Import(Stdcall, SetComputerNameA, "SetComputerNameA");     
  5972.                                                             -- winbase.h:6596
  5973.     pragma Import(Stdcall, SetComputerNameW, "SetComputerNameW");     
  5974.                                                             -- winbase.h:6602
  5975.     pragma Import(Stdcall, GetUserNameA, "GetUserNameA");         -- winbase.h:6614
  5976.     pragma Import(Stdcall, GetUserNameW, "GetUserNameW");         -- winbase.h:6621
  5977.     pragma Import(Stdcall, QueryPerformanceCounter, "QueryPerformanceCounter");
  5978.                                                             -- winbase.h:6638
  5979.     pragma Import(Stdcall, QueryPerformanceFrequency, "QueryPerformanceFrequency");
  5980.                                                             -- winbase.h:6645
  5981.     pragma Import(Stdcall, GetVersionExA, "GetVersionExA");       -- winbase.h:6686
  5982.     pragma Import(Stdcall, GetVersionExW, "GetVersionExW");       -- winbase.h:6692
  5983.  
  5984. -------------------------------------------------------------------------------
  5985. --
  5986. -- THIS FILE AND ANY ASSOCIATED DOCUMENTATION IS PROVIDED WITHOUT CHARGE
  5987. -- "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
  5988. -- BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR
  5989. -- FITNESS FOR A PARTICULAR PURPOSE.  The user assumes the entire risk as to
  5990. -- the accuracy and the use of this file.  This file may be used, copied,
  5991. -- modified and distributed only by licensees of Microsoft Corporation's
  5992. -- WIN32 Software Development Kit in accordance with the terms of the 
  5993. -- licensee's End-User License Agreement for Microsoft Software for the
  5994. -- WIN32 Development Kit.
  5995. --
  5996. -- Copyright (c) Intermetrics, Inc. 1995
  5997. -- Portions (c) 1985-1994 Microsoft Corporation with permission.
  5998. -- Microsoft is a registered trademark and Windows and Windows NT are
  5999. -- trademarks of Microsoft Corporation.
  6000. --
  6001. -------------------------------------------------------------------------------
  6002.  
  6003. end Win32.Winbase;
  6004.