Menu

[r8314]: / trunk / src / plain / ZPlainAdo.pas  Maximize  Restore  History

Download this file

1779 lines (1654 with data), 75.1 kB

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
{@********************************************************}
{ Copyright (c) 1999-2020 Zeos Development Group }
{ }
{ License Agreement: }
{ }
{ This library is distributed in the hope that it will be }
{ useful, but WITHOUT ANY WARRANTY; without even the }
{ implied warranty of MERCHANTABILITY or FITNESS FOR }
{ A PARTICULAR PURPOSE. See the GNU Lesser General }
{ Public License for more details. }
{ }
{ The source code of the ZEOS Libraries and packages are }
{ distributed under the Library GNU General Public }
{ License (see the file COPYING / COPYING.ZEOS) }
{ with the following modification: }
{ As a special exception, the copyright holders of this }
{ library give you permission to link this library with }
{ independent modules to produce an executable, }
{ regardless of the license terms of these independent }
{ modules, and to copy and distribute the resulting }
{ executable under terms of your choice, provided that }
{ you also meet, for each linked independent module, }
{ the terms and conditions of the license of that module. }
{ An independent module is a module which is not derived }
{ from or based on this library. If you modify this }
{ library, you may extend this exception to your version }
{ of the library, but you are not obligated to do so. }
{ If you do not wish to do so, delete this exception }
{ statement from your version. }
{ }
{ }
{ The project web site is located on: }
{ https://zeoslib.sourceforge.io/ (FORUM) }
{ http://sourceforge.net/p/zeoslib/tickets/ (BUGTRACKER)}
{ svn://svn.code.sf.net/p/zeoslib/code-0/trunk (SVN) }
{ }
{ http://www.sourceforge.net/projects/zeoslib. }
{ }
{ }
{ Zeos Development Group. }
{********************************************************@}
unit ZPlainAdo;
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //
// PASTLWTR : $Revision: 1.9 $
// File generated on 2003.07.12. 17.11.28 from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Program Files\Common Files\System\ado\msado15.dll (1)
// LIBID: {EF53050B-882E-4776-B643-EDA472E8E3F2}
// LCID: 0
// Helpfile: C:\WINDOWS\HELP\ado270.chm
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\System32\stdole2.tlb)
// (2) v4.0 StdVCL, (C:\WINDOWS\System32\stdvcl40.dll)
// Errors:
// Hint: TypeInfo 'Property' changed to 'Property_'
// Hint: TypeInfo 'Record' changed to 'Record_'
// Hint: Parameter 'Object' of _DynaCollection.Append changed to 'Object_'
// Hint: Member 'Type' of 'Property' changed to 'Type_'
// Hint: Parameter 'Type' of Command15.CreateParameter changed to 'Type_'
// Hint: Parameter 'Type' of Fields20._Append changed to 'Type_'
// Hint: Parameter 'Type' of Fields.Append changed to 'Type_'
// Hint: Member 'Type' of 'Field20' changed to 'Type_'
// Hint: Member 'Type' of '_Parameter' changed to 'Type_'
// Hint: Member 'Type' of '_Stream' changed to 'Type_'
// Hint: Member 'Type' of 'Field15' changed to 'Type_'
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WRITEABLECONST ON}
//{$HPPEMIT '#undef EOF'}
interface
{$I ZPlain.inc}
{$IFNDEF ZEOS_DISABLE_ADO}
uses Windows, Classes, ActiveX, {$IFDEF WITH_UNIT_NAMESPACES}System.Win.ComObj{$ELSE}ComObj{$ENDIF};
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
ADODBMajorVersion = 2;
ADODBMinorVersion = 7;
LIBID_ADODB: TGUID = '{EF53050B-882E-4776-B643-EDA472E8E3F2}';
IID__Collection: TGUID = '{00000512-0000-0010-8000-00AA006D2EA4}';
IID__DynaCollection: TGUID = '{00000513-0000-0010-8000-00AA006D2EA4}';
IID__ADO: TGUID = '{00000534-0000-0010-8000-00AA006D2EA4}';
IID_Properties: TGUID = '{00000504-0000-0010-8000-00AA006D2EA4}';
IID_Property_: TGUID = '{00000503-0000-0010-8000-00AA006D2EA4}';
IID_Error: TGUID = '{00000500-0000-0010-8000-00AA006D2EA4}';
IID_Errors: TGUID = '{00000501-0000-0010-8000-00AA006D2EA4}';
IID_Command15: TGUID = '{00000508-0000-0010-8000-00AA006D2EA4}';
IID_Connection15: TGUID = '{00000515-0000-0010-8000-00AA006D2EA4}';
IID__Connection: TGUID = '{00000550-0000-0010-8000-00AA006D2EA4}';
IID_Recordset15: TGUID = '{0000050E-0000-0010-8000-00AA006D2EA4}';
IID_Recordset20: TGUID = '{0000054F-0000-0010-8000-00AA006D2EA4}';
IID_Recordset21: TGUID = '{00000555-0000-0010-8000-00AA006D2EA4}';
IID__Recordset: TGUID = '{00000556-0000-0010-8000-00AA006D2EA4}';
IID_Fields15: TGUID = '{00000506-0000-0010-8000-00AA006D2EA4}';
IID_Fields20: TGUID = '{0000054D-0000-0010-8000-00AA006D2EA4}';
IID_Fields: TGUID = '{00000564-0000-0010-8000-00AA006D2EA4}';
IID_Field20: TGUID = '{0000054C-0000-0010-8000-00AA006D2EA4}';
IID_Field: TGUID = '{00000569-0000-0010-8000-00AA006D2EA4}';
IID__Parameter: TGUID = '{0000050C-0000-0010-8000-00AA006D2EA4}';
IID_Parameters: TGUID = '{0000050D-0000-0010-8000-00AA006D2EA4}';
IID_Command25: TGUID = '{0000054E-0000-0010-8000-00AA006D2EA4}';
IID__Command: TGUID = '{B08400BD-F9D1-4D02-B856-71D5DBA123E9}';
IID_ConnectionEventsVt: TGUID = '{00000402-0000-0010-8000-00AA006D2EA4}';
IID_RecordsetEventsVt: TGUID = '{00000403-0000-0010-8000-00AA006D2EA4}';
DIID_ConnectionEvents: TGUID = '{00000400-0000-0010-8000-00AA006D2EA4}';
DIID_RecordsetEvents: TGUID = '{00000266-0000-0010-8000-00AA006D2EA4}';
IID_ADOConnectionConstruction15: TGUID = '{00000516-0000-0010-8000-00AA006D2EA4}';
IID_ADOConnectionConstruction: TGUID = '{00000551-0000-0010-8000-00AA006D2EA4}';
CLASS_Connection: TGUID = '{00000514-0000-0010-8000-00AA006D2EA4}';
IID__Record: TGUID = '{00000562-0000-0010-8000-00AA006D2EA4}';
CLASS_Record_: TGUID = '{00000560-0000-0010-8000-00AA006D2EA4}';
IID__Stream: TGUID = '{00000565-0000-0010-8000-00AA006D2EA4}';
CLASS_Stream: TGUID = '{00000566-0000-0010-8000-00AA006D2EA4}';
IID_ADORecordConstruction: TGUID = '{00000567-0000-0010-8000-00AA006D2EA4}';
IID_ADOStreamConstruction: TGUID = '{00000568-0000-0010-8000-00AA006D2EA4}';
IID_ADOCommandConstruction: TGUID = '{00000517-0000-0010-8000-00AA006D2EA4}';
CLASS_Command: TGUID = '{00000507-0000-0010-8000-00AA006D2EA4}';
CLASS_Recordset: TGUID = '{00000535-0000-0010-8000-00AA006D2EA4}';
IID_ADORecordsetConstruction: TGUID = '{00000283-0000-0010-8000-00AA006D2EA4}';
IID_Field15: TGUID = '{00000505-0000-0010-8000-00AA006D2EA4}';
CLASS_Parameter: TGUID = '{0000050B-0000-0010-8000-00AA006D2EA4}';
// *********************************************************************//
// Declaration of Enumerations defined in Type Library
// *********************************************************************//
// Constants for enum CursorTypeEnum
type
CursorTypeEnum = TOleEnum;
const
adOpenUnspecified = $FFFFFFFF;
adOpenForwardOnly = $00000000;
adOpenKeyset = $00000001;
adOpenDynamic = $00000002;
adOpenStatic = $00000003;
// Constants for enum CursorOptionEnum
type
CursorOptionEnum = TOleEnum;
const
adHoldRecords = $00000100;
adMovePrevious = $00000200;
adAddNew = $01000400;
adDelete = $01000800;
adUpdate = $01008000;
adBookmark = $00002000;
adApproxPosition = $00004000;
adUpdateBatch = $00010000;
adResync = $00020000;
adNotify = $00040000;
adFind = $00080000;
adSeek = $00400000;
adIndex = $00800000;
// Constants for enum LockTypeEnum
type
LockTypeEnum = TOleEnum;
const
adLockUnspecified = $FFFFFFFF;
adLockReadOnly = $00000001;
adLockPessimistic = $00000002;
adLockOptimistic = $00000003;
adLockBatchOptimistic = $00000004;
// Constants for enum ExecuteOptionEnum
type
ExecuteOptionEnum = TOleEnum;
const
adOptionUnspecified = Integer(-1); // $FFFFFFFF;
adAsyncExecute = $00000010;
adAsyncFetch = $00000020;
adAsyncFetchNonBlocking = $00000040;
adExecuteNoRecords = $00000080;
adExecuteStream = 256; // $00000400;
adExecuteRecord = $00000800;
// Constants for enum ConnectOptionEnum
type
ConnectOptionEnum = TOleEnum;
const
adConnectUnspecified = $FFFFFFFF;
adAsyncConnect = $00000010;
// Constants for enum ObjectStateEnum
type
ObjectStateEnum = TOleEnum;
const
adStateClosed = $00000000;
adStateOpen = $00000001;
adStateConnecting = $00000002;
adStateExecuting = $00000004;
adStateFetching = $00000008;
// Constants for enum CursorLocationEnum
type
CursorLocationEnum = TOleEnum;
const
adUseNone = $00000001;
adUseServer = $00000002;
adUseClient = $00000003;
adUseClientBatch = $00000003;
// Constants for enum DataTypeEnum
type
TDataTypeEnum = TOleEnum;
const
adEmpty = $00000000;
adTinyInt = $00000010;
adSmallInt = $00000002;
adInteger = $00000003;
adBigInt = $00000014;
adUnsignedTinyInt = $00000011;
adUnsignedSmallInt = $00000012;
adUnsignedInt = $00000013;
adUnsignedBigInt = $00000015;
adSingle = $00000004;
adDouble = $00000005;
adCurrency = $00000006;
adDecimal = $0000000E;
adNumeric = $00000083;
adBoolean = $0000000B;
adError = $0000000A;
adUserDefined = $00000084;
adVariant = $0000000C;
adIDispatch = $00000009;
adIUnknown = $0000000D;
adGUID = $00000048;
adDate = $00000007;
adDBDate = $00000085;
adDBTime = $00000086;
adDBTimeStamp = $00000087;
adBSTR = $00000008;
adChar = $00000081;
adVarChar = $000000C8;
adLongVarChar = $000000C9;
adWChar = $00000082;
adVarWChar = $000000CA;
adLongVarWChar = $000000CB;
adBinary = $00000080;
adVarBinary = $000000CC;
adLongVarBinary = $000000CD;
adChapter = $00000088;
adFileTime = $00000040;
adPropVariant = $0000008A;
adVarNumeric = $0000008B;
adArray = $00002000;
// Constants for enum FieldAttributeEnum
type
FieldAttributeEnum = TOleEnum;
const
adFldUnspecified = $FFFFFFFF;
adFldMayDefer = $00000002;
adFldUpdatable = $00000004;
adFldUnknownUpdatable = $00000008;
adFldFixed = $00000010;
adFldIsNullable = $00000020;
adFldMayBeNull = $00000040;
adFldLong = $00000080;
adFldRowID = $00000100;
adFldRowVersion = $00000200;
adFldCacheDeferred = $00001000;
adFldIsChapter = $00002000;
adFldNegativeScale = $00004000;
adFldKeyColumn = $00008000;
adFldIsRowURL = $00010000;
adFldIsDefaultStream = $00020000;
adFldIsCollection = $00040000;
// Constants for enum EditModeEnum
type
EditModeEnum = TOleEnum;
const
adEditNone = $00000000;
adEditInProgress = $00000001;
adEditAdd = $00000002;
adEditDelete = $00000004;
// Constants for enum RecordStatusEnum
type
RecordStatusEnum = TOleEnum;
const
adRecOK = $00000000;
adRecNew = $00000001;
adRecModified = $00000002;
adRecDeleted = $00000004;
adRecUnmodified = $00000008;
adRecInvalid = $00000010;
adRecMultipleChanges = $00000040;
adRecPendingChanges = $00000080;
adRecCanceled = $00000100;
adRecCantRelease = $00000400;
adRecConcurrencyViolation = $00000800;
adRecIntegrityViolation = $00001000;
adRecMaxChangesExceeded = $00002000;
adRecObjectOpen = $00004000;
adRecOutOfMemory = $00008000;
adRecPermissionDenied = $00010000;
adRecSchemaViolation = $00020000;
adRecDBDeleted = $00040000;
// Constants for enum GetRowsOptionEnum
type
GetRowsOptionEnum = TOleEnum;
const
adGetRowsRest = $FFFFFFFF;
// Constants for enum PositionEnum
type
PositionEnum = TOleEnum;
const
adPosUnknown = $FFFFFFFF;
adPosBOF = $FFFFFFFE;
adPosEOF = $FFFFFFFD;
// Constants for enum BookmarkEnum
type
BookmarkEnum = TOleEnum;
const
adBookmarkCurrent = $00000000;
adBookmarkFirst = $00000001;
adBookmarkLast = $00000002;
// Constants for enum MarshalOptionsEnum
type
MarshalOptionsEnum = TOleEnum;
const
adMarshalAll = $00000000;
adMarshalModifiedOnly = $00000001;
// Constants for enum AffectEnum
type
AffectEnum = TOleEnum;
const
adAffectCurrent = $00000001;
adAffectGroup = $00000002;
adAffectAll = $00000003;
adAffectAllChapters = $00000004;
// Constants for enum ResyncEnum
type
ResyncEnum = TOleEnum;
const
adResyncUnderlyingValues = $00000001;
adResyncAllValues = $00000002;
// Constants for enum CompareEnum
type
CompareEnum = TOleEnum;
const
adCompareLessThan = $00000000;
adCompareEqual = $00000001;
adCompareGreaterThan = $00000002;
adCompareNotEqual = $00000003;
adCompareNotComparable = $00000004;
// Constants for enum FilterGroupEnum
type
FilterGroupEnum = TOleEnum;
const
adFilterNone = $00000000;
adFilterPendingRecords = $00000001;
adFilterAffectedRecords = $00000002;
adFilterFetchedRecords = $00000003;
adFilterPredicate = $00000004;
adFilterConflictingRecords = $00000005;
// Constants for enum SearchDirectionEnum
type
SearchDirectionEnum = TOleEnum;
const
adSearchForward = $00000001;
adSearchBackward = $FFFFFFFF;
// Constants for enum PersistFormatEnum
type
PersistFormatEnum = TOleEnum;
const
adPersistADTG = $00000000;
adPersistXML = $00000001;
// Constants for enum StringFormatEnum
type
StringFormatEnum = TOleEnum;
const
adClipString = $00000002;
// Constants for enum ConnectPromptEnum
type
ConnectPromptEnum = TOleEnum;
const
adPromptAlways = $00000001;
adPromptComplete = $00000002;
adPromptCompleteRequired = $00000003;
adPromptNever = $00000004;
// Constants for enum ConnectModeEnum
type
ConnectModeEnum = TOleEnum;
const
adModeUnknown = $00000000;
adModeRead = $00000001;
adModeWrite = $00000002;
adModeReadWrite = $00000003;
adModeShareDenyRead = $00000004;
adModeShareDenyWrite = $00000008;
adModeShareExclusive = $0000000C;
adModeShareDenyNone = $00000010;
adModeRecursive = $00400000;
// Constants for enum RecordCreateOptionsEnum
type
RecordCreateOptionsEnum = TOleEnum;
const
adCreateCollection = $00002000;
adCreateStructDoc = $80000000;
adCreateNonCollection = $00000000;
adOpenIfExists = $02000000;
adCreateOverwrite = $04000000;
adFailIfNotExists = $FFFFFFFF;
// Constants for enum RecordOpenOptionsEnum
type
RecordOpenOptionsEnum = TOleEnum;
const
adOpenRecordUnspecified = $FFFFFFFF;
adOpenSource = $00800000;
adOpenOutput = $00800000;
adOpenAsync = $00001000;
adDelayFetchStream = $00004000;
adDelayFetchFields = $00008000;
adOpenExecuteCommand = $00010000;
// Constants for enum IsolationLevelEnum
type
IsolationLevelEnum = TOleEnum;
const
adXactUnspecified = $FFFFFFFF;
adXactChaos = $00000010;
adXactReadUncommitted = $00000100;
adXactBrowse = $00000100;
adXactCursorStability = $00001000;
adXactReadCommitted = $00001000;
adXactRepeatableRead = $00010000;
adXactSerializable = $00100000;
adXactIsolated = $00100000;
// Constants for enum XactAttributeEnum
type
XactAttributeEnum = TOleEnum;
const
adXactCommitRetaining = $00020000;
adXactAbortRetaining = $00040000;
adXactAsyncPhaseOne = $00080000;
adXactSyncPhaseOne = $00100000;
// Constants for enum PropertyAttributesEnum
type
PropertyAttributesEnum = TOleEnum;
const
adPropNotSupported = $00000000;
adPropRequired = $00000001;
adPropOptional = $00000002;
adPropRead = $00000200;
adPropWrite = $00000400;
// Constants for enum ErrorValueEnum
type
ErrorValueEnum = TOleEnum;
const
adErrProviderFailed = $00000BB8;
adErrInvalidArgument = $00000BB9;
adErrOpeningFile = $00000BBA;
adErrReadFile = $00000BBB;
adErrWriteFile = $00000BBC;
adErrNoCurrentRecord = $00000BCD;
adErrIllegalOperation = $00000C93;
adErrCantChangeProvider = $00000C94;
adErrInTransaction = $00000CAE;
adErrFeatureNotAvailable = $00000CB3;
adErrItemNotFound = $00000CC1;
adErrObjectInCollection = $00000D27;
adErrObjectNotSet = $00000D5C;
adErrDataConversion = $00000D5D;
adErrObjectClosed = $00000E78;
adErrObjectOpen = $00000E79;
adErrProviderNotFound = $00000E7A;
adErrBoundToCommand = $00000E7B;
adErrInvalidParamInfo = $00000E7C;
adErrInvalidConnection = $00000E7D;
adErrNotReentrant = $00000E7E;
adErrStillExecuting = $00000E7F;
adErrOperationCancelled = $00000E80;
adErrStillConnecting = $00000E81;
adErrInvalidTransaction = $00000E82;
adErrNotExecuting = $00000E83;
adErrUnsafeOperation = $00000E84;
adwrnSecurityDialog = $00000E85;
adwrnSecurityDialogHeader = $00000E86;
adErrIntegrityViolation = $00000E87;
adErrPermissionDenied = $00000E88;
adErrDataOverflow = $00000E89;
adErrSchemaViolation = $00000E8A;
adErrSignMismatch = $00000E8B;
adErrCantConvertvalue = $00000E8C;
adErrCantCreate = $00000E8D;
adErrColumnNotOnThisRow = $00000E8E;
adErrURLDoesNotExist = $00000E8F;
adErrTreePermissionDenied = $00000E90;
adErrInvalidURL = $00000E91;
adErrResourceLocked = $00000E92;
adErrResourceExists = $00000E93;
adErrCannotComplete = $00000E94;
adErrVolumeNotFound = $00000E95;
adErrOutOfSpace = $00000E96;
adErrResourceOutOfScope = $00000E97;
adErrUnavailable = $00000E98;
adErrURLNamedRowDoesNotExist = $00000E99;
adErrDelResOutOfScope = $00000E9A;
adErrPropInvalidColumn = $00000E9B;
adErrPropInvalidOption = $00000E9C;
adErrPropInvalidValue = $00000E9D;
adErrPropConflicting = $00000E9E;
adErrPropNotAllSettable = $00000E9F;
adErrPropNotSet = $00000EA0;
adErrPropNotSettable = $00000EA1;
adErrPropNotSupported = $00000EA2;
adErrCatalogNotSet = $00000EA3;
adErrCantChangeConnection = $00000EA4;
adErrFieldsUpdateFailed = $00000EA5;
adErrDenyNotSupported = $00000EA6;
adErrDenyTypeNotSupported = $00000EA7;
adErrProviderNotSpecified = $00000EA9;
// Constants for enum ParameterAttributesEnum
type
ParameterAttributesEnum = TOleEnum;
const
adParamSigned = $00000010;
adParamNullable = $00000040;
adParamLong = $00000080;
// Constants for enum ParameterDirectionEnum
type
ParameterDirectionEnum = TOleEnum;
const
adParamUnknown = $00000000;
adParamInput = $00000001;
adParamOutput = $00000002;
adParamInputOutput = $00000003;
adParamReturnValue = $00000004;
// Constants for enum CommandTypeEnum
type
CommandTypeEnum = TOleEnum;
const
adCmdUnspecified = $FFFFFFFF;
adCmdUnknown = $00000008;
adCmdText = $00000001;
adCmdTable = $00000002;
adCmdStoredProc = $00000004;
adCmdFile = $00000100;
adCmdTableDirect = $00000200;
// Constants for enum EventStatusEnum
type
EventStatusEnum = TOleEnum;
const
adStatusOK = $00000001;
adStatusErrorsOccurred = $00000002;
adStatusCantDeny = $00000003;
adStatusCancel = $00000004;
adStatusUnwantedEvent = $00000005;
// Constants for enum EventReasonEnum
type
EventReasonEnum = TOleEnum;
const
adRsnAddNew = $00000001;
adRsnDelete = $00000002;
adRsnUpdate = $00000003;
adRsnUndoUpdate = $00000004;
adRsnUndoAddNew = $00000005;
adRsnUndoDelete = $00000006;
adRsnRequery = $00000007;
adRsnResynch = $00000008;
adRsnClose = $00000009;
adRsnMove = $0000000A;
adRsnFirstChange = $0000000B;
adRsnMoveFirst = $0000000C;
adRsnMoveNext = $0000000D;
adRsnMovePrevious = $0000000E;
adRsnMoveLast = $0000000F;
// Constants for enum SchemaEnum
type
SchemaEnum = TOleEnum;
const
adSchemaProviderSpecific = $FFFFFFFF;
adSchemaAsserts = $00000000;
adSchemaCatalogs = $00000001;
adSchemaCharacterSets = $00000002;
adSchemaCollations = $00000003;
adSchemaColumns = $00000004;
adSchemaCheckConstraints = $00000005;
adSchemaConstraintColumnUsage = $00000006;
adSchemaConstraintTableUsage = $00000007;
adSchemaKeyColumnUsage = $00000008;
adSchemaReferentialContraints = $00000009;
adSchemaReferentialConstraints = $00000009;
adSchemaTableConstraints = $0000000A;
adSchemaColumnsDomainUsage = $0000000B;
adSchemaIndexes = $0000000C;
adSchemaColumnPrivileges = $0000000D;
adSchemaTablePrivileges = $0000000E;
adSchemaUsagePrivileges = $0000000F;
adSchemaProcedures = $00000010;
adSchemaSchemata = $00000011;
adSchemaSQLLanguages = $00000012;
adSchemaStatistics = $00000013;
adSchemaTables = $00000014;
adSchemaTranslations = $00000015;
adSchemaProviderTypes = $00000016;
adSchemaViews = $00000017;
adSchemaViewColumnUsage = $00000018;
adSchemaViewTableUsage = $00000019;
adSchemaProcedureParameters = $0000001A;
adSchemaForeignKeys = $0000001B;
adSchemaPrimaryKeys = $0000001C;
adSchemaProcedureColumns = $0000001D;
adSchemaDBInfoKeywords = $0000001E;
adSchemaDBInfoLiterals = $0000001F;
adSchemaCubes = $00000020;
adSchemaDimensions = $00000021;
adSchemaHierarchies = $00000022;
adSchemaLevels = $00000023;
adSchemaMeasures = $00000024;
adSchemaProperties = $00000025;
adSchemaMembers = $00000026;
adSchemaTrustees = $00000027;
adSchemaFunctions = $00000028;
adSchemaActions = $00000029;
adSchemaCommands = $0000002A;
adSchemaSets = $0000002B;
// Constants for enum FieldStatusEnum
type
FieldStatusEnum = TOleEnum;
const
adFieldOK = $00000000;
adFieldCantConvertValue = $00000002;
adFieldIsNull = $00000003;
adFieldTruncated = $00000004;
adFieldSignMismatch = $00000005;
adFieldDataOverflow = $00000006;
adFieldCantCreate = $00000007;
adFieldUnavailable = $00000008;
adFieldPermissionDenied = $00000009;
adFieldIntegrityViolation = $0000000A;
adFieldSchemaViolation = $0000000B;
adFieldBadStatus = $0000000C;
adFieldDefault = $0000000D;
adFieldIgnore = $0000000F;
adFieldDoesNotExist = $00000010;
adFieldInvalidURL = $00000011;
adFieldResourceLocked = $00000012;
adFieldResourceExists = $00000013;
adFieldCannotComplete = $00000014;
adFieldVolumeNotFound = $00000015;
adFieldOutOfSpace = $00000016;
adFieldCannotDeleteSource = $00000017;
adFieldReadOnly = $00000018;
adFieldResourceOutOfScope = $00000019;
adFieldAlreadyExists = $0000001A;
adFieldPendingInsert = $00010000;
adFieldPendingDelete = $00020000;
adFieldPendingChange = $00040000;
adFieldPendingUnknown = $00080000;
adFieldPendingUnknownDelete = $00100000;
// Constants for enum SeekEnum
type
SeekEnum = TOleEnum;
const
adSeekFirstEQ = $00000001;
adSeekLastEQ = $00000002;
adSeekAfterEQ = $00000004;
adSeekAfter = $00000008;
adSeekBeforeEQ = $00000010;
adSeekBefore = $00000020;
// Constants for enum ADCPROP_UPDATECRITERIA_ENUM
type
ADCPROP_UPDATECRITERIA_ENUM = TOleEnum;
const
adCriteriaKey = $00000000;
adCriteriaAllCols = $00000001;
adCriteriaUpdCols = $00000002;
adCriteriaTimeStamp = $00000003;
// Constants for enum ADCPROP_ASYNCTHREADPRIORITY_ENUM
type
ADCPROP_ASYNCTHREADPRIORITY_ENUM = TOleEnum;
const
adPriorityLowest = $00000001;
adPriorityBelowNormal = $00000002;
adPriorityNormal = $00000003;
adPriorityAboveNormal = $00000004;
adPriorityHighest = $00000005;
// Constants for enum ADCPROP_AUTORECALC_ENUM
type
ADCPROP_AUTORECALC_ENUM = TOleEnum;
const
adRecalcUpFront = $00000000;
adRecalcAlways = $00000001;
// Constants for enum ADCPROP_UPDATERESYNC_ENUM
type
ADCPROP_UPDATERESYNC_ENUM = TOleEnum;
const
adResyncNone = $00000000;
adResyncAutoIncrement = $00000001;
adResyncConflicts = $00000002;
adResyncUpdates = $00000004;
adResyncInserts = $00000008;
adResyncAll = $0000000F;
// Constants for enum MoveRecordOptionsEnum
type
MoveRecordOptionsEnum = TOleEnum;
const
adMoveUnspecified = $FFFFFFFF;
adMoveOverWrite = $00000001;
adMoveDontUpdateLinks = $00000002;
adMoveAllowEmulation = $00000004;
// Constants for enum CopyRecordOptionsEnum
type
CopyRecordOptionsEnum = TOleEnum;
const
adCopyUnspecified = $FFFFFFFF;
adCopyOverWrite = $00000001;
adCopyAllowEmulation = $00000004;
adCopyNonRecursive = $00000002;
// Constants for enum StreamTypeEnum
type
StreamTypeEnum = TOleEnum;
const
adTypeBinary = $00000001;
adTypeText = $00000002;
// Constants for enum LineSeparatorEnum
type
LineSeparatorEnum = TOleEnum;
const
adLF = $0000000A;
adCR = $0000000D;
adCRLF = $FFFFFFFF;
// Constants for enum StreamOpenOptionsEnum
type
StreamOpenOptionsEnum = TOleEnum;
const
adOpenStreamUnspecified = $FFFFFFFF;
adOpenStreamAsync = $00000001;
adOpenStreamFromRecord = $00000004;
// Constants for enum StreamWriteEnum
type
StreamWriteEnum = TOleEnum;
const
adWriteChar = $00000000;
adWriteLine = $00000001;
stWriteChar = $00000000;
stWriteLine = $00000001;
// Constants for enum SaveOptionsEnum
type
SaveOptionsEnum = TOleEnum;
const
adSaveCreateNotExist = $00000001;
adSaveCreateOverWrite = $00000002;
// Constants for enum FieldEnum
type
FieldEnum = TOleEnum;
const
adDefaultStream = $FFFFFFFF;
adRecordURL = $FFFFFFFE;
// Constants for enum StreamReadEnum
type
StreamReadEnum = TOleEnum;
const
adReadAll = $FFFFFFFF;
adReadLine = $FFFFFFFE;
// Constants for enum RecordTypeEnum
type
RecordTypeEnum = TOleEnum;
const
adSimpleRecord = $00000000;
adCollectionRecord = $00000001;
adStructDoc = $00000002;
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
_Collection = interface;
_DynaCollection = interface;
_ADO = interface;
Properties = interface;
Property_ = interface;
Error = interface;
Errors = interface;
Command15 = interface;
Connection15 = interface;
_Connection = interface;
Recordset15 = interface;
Recordset20 = interface;
Recordset21 = interface;
_Recordset = interface;
Fields15 = interface;
Fields20 = interface;
Fields = interface;
Field20 = interface;
Field = interface;
_Parameter = interface;
Parameters = interface;
Command25 = interface;
_Command = interface;
ConnectionEventsVt = interface;
RecordsetEventsVt = interface;
ADOConnectionConstruction15 = interface;
ADOConnectionConstruction = interface;
_Record = interface;
_Stream = interface;
ADORecordConstruction = interface;
ADOStreamConstruction = interface;
ADOCommandConstruction = interface;
ADORecordsetConstruction = interface;
Field15 = interface;
// *********************************************************************//
// Declaration of structures, unions and aliases.
// *********************************************************************//
POleVariant1 = ^OleVariant; {*}
PositionEnum_Param = PositionEnum;
SearchDirection = SearchDirectionEnum;
ADO_LONGPTR = Integer;
// *********************************************************************//
// Interface: _Collection
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000512-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
_Collection = interface(IDispatch)
['{00000512-0000-0010-8000-00AA006D2EA4}']
function Get_Count: Integer; safecall;
function _NewEnum: IUnknown; safecall;
procedure Refresh; safecall;
property Count: Integer read Get_Count;
end;
// *********************************************************************//
// Interface: _DynaCollection
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000513-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
_DynaCollection = interface(_Collection)
['{00000513-0000-0010-8000-00AA006D2EA4}']
procedure Append(const Object_: IDispatch); safecall;
procedure Delete(Index: OleVariant); safecall;
end;
// *********************************************************************//
// Interface: _ADO
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000534-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
_ADO = interface(IDispatch)
['{00000534-0000-0010-8000-00AA006D2EA4}']
function Get_Properties: Properties; safecall;
property Properties: Properties read Get_Properties;
end;
// *********************************************************************//
// Interface: Properties
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000504-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Properties = interface(_Collection)
['{00000504-0000-0010-8000-00AA006D2EA4}']
function Get_Item(Index: OleVariant): Property_; safecall;
property Item[Index: OleVariant]: Property_ read Get_Item; default;
end;
// *********************************************************************//
// Interface: Property_
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000503-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Property_ = interface(IDispatch)
['{00000503-0000-0010-8000-00AA006D2EA4}']
function Get_Value: OleVariant; safecall;
procedure Set_Value(pval: OleVariant); safecall;
function Get_Name: WideString; safecall;
function Get_Type_: TDataTypeEnum; safecall;
function Get_Attributes: Integer; safecall;
procedure Set_Attributes(plAttributes: Integer); safecall;
property Value: OleVariant read Get_Value write Set_Value;
property Name: WideString read Get_Name;
property Type_: TDataTypeEnum read Get_Type_;
property Attributes: Integer read Get_Attributes;
end;
// *********************************************************************//
// Interface: Error
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000500-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Error = interface(IDispatch)
['{00000500-0000-0010-8000-00AA006D2EA4}']
function Get_Number: Integer; safecall;
function Get_Source: WideString; safecall;
function Get_Description: WideString; safecall;
function Get_HelpFile: WideString; safecall;
function Get_HelpContext: Integer; safecall;
function Get_SQLState: WideString; safecall;
function Get_NativeError: Integer; safecall;
property Number: Integer read Get_Number;
property Source: WideString read Get_Source;
property Description: WideString read Get_Description;
property HelpFile: WideString read Get_HelpFile;
property HelpContext: Integer read Get_HelpContext;
property SQLState: WideString read Get_SQLState;
property NativeError: Integer read Get_NativeError;
end;
// *********************************************************************//
// Interface: Errors
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000501-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Errors = interface(_Collection)
['{00000501-0000-0010-8000-00AA006D2EA4}']
function Get_Item(Index: OleVariant): Error; safecall;
procedure Clear; safecall;
property Item[Index: OleVariant]: Error read Get_Item; default;
end;
// *********************************************************************//
// Interface: Command15
// Flags: (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000508-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Command15 = interface(_ADO)
['{00000508-0000-0010-8000-00AA006D2EA4}']
function Get_ActiveConnection: Connection15; safecall;
procedure _Set_ActiveConnection(const ppvObject: Connection15); safecall;
procedure Set_ActiveConnection(ppvObject: OleVariant); safecall;
function Get_CommandText: WideString; safecall;
procedure Set_CommandText(const pbstr: WideString); safecall;
function Get_CommandTimeout: Integer; safecall;
procedure Set_CommandTimeout(pl: Integer); safecall;
function Get_Prepared: WordBool; safecall;
procedure Set_Prepared(pfPrepared: WordBool); safecall;
function Execute(out RecordsAffected: OleVariant; const Parameters: OleVariant; Options: Integer): Recordset15; safecall;
function CreateParameter(const Name: WideString; Type_: TDataTypeEnum;
Direction: ParameterDirectionEnum; Size: ADO_LONGPTR; Value: OleVariant): _Parameter; safecall;
function Get_Parameters: Parameters; safecall;
procedure Set_CommandType(plCmdType: CommandTypeEnum); safecall;
function Get_CommandType: CommandTypeEnum; safecall;
function Get_Name: WideString; safecall;
procedure Set_Name(const pbstrName: WideString); safecall;
property CommandText: WideString read Get_CommandText write Set_CommandText;
property CommandTimeout: Integer read Get_CommandTimeout write Set_CommandTimeout;
property Prepared: WordBool read Get_Prepared write Set_Prepared;
property Parameters: Parameters read Get_Parameters;
property CommandType: CommandTypeEnum read Get_CommandType write Set_CommandType;
property Name: WideString read Get_Name write Set_Name;
end;
// *********************************************************************//
// Interface: Connection15
// Flags: (4432) Hidden Dual OleAutomation Dispatchable
// GUID: {00000515-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Connection15 = interface(_ADO)
['{00000515-0000-0010-8000-00AA006D2EA4}']
function Get_ConnectionString: WideString; safecall;
procedure Set_ConnectionString(const pbstr: WideString); safecall;
function Get_CommandTimeout: Integer; safecall;
procedure Set_CommandTimeout(plTimeout: Integer); safecall;
function Get_ConnectionTimeout: Integer; safecall;
procedure Set_ConnectionTimeout(plTimeout: Integer); safecall;
function Get_Version: WideString; safecall;
procedure Close; safecall;
function Execute(const CommandText: WideString; out RecordsAffected: OleVariant;
Options: Integer): Recordset15; safecall;
function BeginTrans: Integer; safecall;
procedure CommitTrans; safecall;
procedure RollbackTrans; safecall;
procedure Open(const ConnectionString: WideString; const UserID: WideString;
const Password: WideString; Options: Integer); safecall;
function Get_Errors: Errors; safecall;
function Get_DefaultDatabase: WideString; safecall;
procedure Set_DefaultDatabase(const pbstr: WideString); safecall;
function Get_IsolationLevel: IsolationLevelEnum; safecall;
procedure Set_IsolationLevel(Level: IsolationLevelEnum); safecall;
function Get_Attributes: Integer; safecall;
procedure Set_Attributes(plAttr: Integer); safecall;
function Get_CursorLocation: CursorLocationEnum; safecall;
procedure Set_CursorLocation(plCursorLoc: CursorLocationEnum); safecall;
function Get_Mode: ConnectModeEnum; safecall;
procedure Set_Mode(plMode: ConnectModeEnum); safecall;
function Get_Provider: WideString; safecall;
procedure Set_Provider(const pbstr: WideString); safecall;
function Get_State: Integer; safecall;
function OpenSchema(Schema: SchemaEnum; Restrictions: OleVariant; SchemaID: OleVariant): Recordset15; safecall;
property ConnectionString: WideString read Get_ConnectionString write Set_ConnectionString;
property CommandTimeout: Integer read Get_CommandTimeout write Set_CommandTimeout;
property ConnectionTimeout: Integer read Get_ConnectionTimeout write Set_ConnectionTimeout;
property Version: WideString read Get_Version;
property Errors: Errors read Get_Errors;
property DefaultDatabase: WideString read Get_DefaultDatabase write Set_DefaultDatabase;
property IsolationLevel: IsolationLevelEnum read Get_IsolationLevel write Set_IsolationLevel;
property Attributes: Integer read Get_Attributes write Set_Attributes;
property CursorLocation: CursorLocationEnum read Get_CursorLocation write Set_CursorLocation;
property Mode: ConnectModeEnum read Get_Mode write Set_Mode;
property Provider: WideString read Get_Provider write Set_Provider;
property State: Integer read Get_State;
end;
// *********************************************************************//
// Interface: _Connection
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {00000550-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
_Connection = interface(Connection15)
['{00000550-0000-0010-8000-00AA006D2EA4}']
procedure Cancel; safecall;
end;
// *********************************************************************//
// Interface: Recordset15
// Flags: (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
// GUID: {0000050E-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Recordset15 = interface(_ADO)
['{0000050E-0000-0010-8000-00AA006D2EA4}']
function Get_AbsolutePosition: PositionEnum_Param; safecall;
procedure Set_AbsolutePosition(pl: PositionEnum_Param); safecall;
procedure _Set_ActiveConnection(const pvar: IDispatch); safecall;
procedure Set_ActiveConnection(pvar: OleVariant); safecall;
function Get_ActiveConnection: OleVariant; safecall;
function Get_BOF: WordBool; safecall;
function Get_Bookmark: OleVariant; safecall;
procedure Set_Bookmark(pvBookmark: OleVariant); safecall;
function Get_CacheSize: Integer; safecall;
procedure Set_CacheSize(pl: Integer); safecall;
function Get_CursorType: CursorTypeEnum; safecall;
procedure Set_CursorType(plCursorType: CursorTypeEnum); safecall;
function Get_EOF: WordBool; safecall;
function Get_Fields: Fields15; safecall;
function Get_LockType: LockTypeEnum; safecall;
procedure Set_LockType(plLockType: LockTypeEnum); safecall;
function Get_MaxRecords: ADO_LONGPTR; safecall;
procedure Set_MaxRecords(plMaxRecords: ADO_LONGPTR); safecall;
function Get_RecordCount: ADO_LONGPTR; safecall;
procedure _Set_Source(const pvSource: IDispatch); safecall;
procedure Set_Source(const pvSource: WideString); safecall;
function Get_Source: OleVariant; safecall;
procedure AddNew(FieldList: OleVariant; Values: OleVariant); safecall;
procedure CancelUpdate; safecall;
procedure Close; safecall;
procedure Delete(AffectRecords: AffectEnum); safecall;
function GetRows(Rows: Integer; Start: OleVariant; Fields: OleVariant): OleVariant; safecall;
procedure Move(NumRecords: ADO_LONGPTR; Start: OleVariant); safecall;
procedure MoveNext; safecall;
procedure MovePrevious; safecall;
procedure MoveFirst; safecall;
procedure MoveLast; safecall;
procedure Open(Source: OleVariant; ActiveConnection: OleVariant; CursorType: CursorTypeEnum;
LockType: LockTypeEnum; Options: Integer); safecall;
procedure Requery(Options: Integer); safecall;
procedure _xResync(AffectRecords: AffectEnum); safecall;
procedure Update(Fields: OleVariant; Values: OleVariant); safecall;
function Get_AbsolutePage: PositionEnum_Param; safecall;
procedure Set_AbsolutePage(pl: PositionEnum_Param); safecall;
function Get_EditMode: EditModeEnum; safecall;
function Get_Filter: OleVariant; safecall;
procedure Set_Filter(Criteria: OleVariant); safecall;
function Get_PageCount: ADO_LONGPTR; safecall;
function Get_PageSize: Integer; safecall;
procedure Set_PageSize(pl: Integer); safecall;
function Get_Sort: WideString; safecall;
procedure Set_Sort(const Criteria: WideString); safecall;
function Get_Status: Integer; safecall;
function Get_State: Integer; safecall;
function _xClone: Recordset15; safecall;
procedure UpdateBatch(AffectRecords: AffectEnum); safecall;
procedure CancelBatch(AffectRecords: AffectEnum); safecall;
function Get_CursorLocation: CursorLocationEnum; safecall;
procedure Set_CursorLocation(plCursorLoc: CursorLocationEnum); safecall;
function NextRecordset(out RecordsAffected: OleVariant): Recordset15; safecall;
function Supports(CursorOptions: CursorOptionEnum): WordBool; safecall;
function Get_Collect(Index: OleVariant): OleVariant; safecall;
procedure Set_Collect(Index: OleVariant; pvar: OleVariant); safecall;
function Get_MarshalOptions: MarshalOptionsEnum; safecall;
procedure Set_MarshalOptions(peMarshal: MarshalOptionsEnum); safecall;
procedure Find(const Criteria: WideString; SkipRecords: ADO_LONGPTR;
SearchDirection: SearchDirectionEnum; Start: OleVariant); safecall;
property AbsolutePosition: PositionEnum_Param read Get_AbsolutePosition write Set_AbsolutePosition;
property Bof: WordBool read Get_BOF;
property Bookmark: OleVariant read Get_Bookmark write Set_Bookmark;
property CacheSize: Integer read Get_CacheSize write Set_CacheSize;
property CursorType: CursorTypeEnum read Get_CursorType write Set_CursorType;
property Eof: WordBool read Get_EOF;
property Fields: Fields15 read Get_Fields;
property LockType: LockTypeEnum read Get_LockType write Set_LockType;
property MaxRecords: ADO_LONGPTR read Get_MaxRecords write Set_MaxRecords;
property RecordCount: ADO_LONGPTR read Get_RecordCount;
property AbsolutePage: PositionEnum_Param read Get_AbsolutePage write Set_AbsolutePage;
property EditMode: EditModeEnum read Get_EditMode;
property Filter: OleVariant read Get_Filter write Set_Filter;
property PageCount: ADO_LONGPTR read Get_PageCount;
property PageSize: Integer read Get_PageSize write Set_PageSize;
property Sort: WideString read Get_Sort write Set_Sort;
property Status: Integer read Get_Status;
property State: Integer read Get_State;
property CursorLocation: CursorLocationEnum read Get_CursorLocation write Set_CursorLocation;
property Collect[Index: OleVariant]: OleVariant read Get_Collect write Set_Collect;
property MarshalOptions: MarshalOptionsEnum read Get_MarshalOptions write Set_MarshalOptions;
end;
// *********************************************************************//
// Interface: Recordset20
// Flags: (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
// GUID: {0000054F-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Recordset20 = interface(Recordset15)
['{0000054F-0000-0010-8000-00AA006D2EA4}']
procedure Cancel; safecall;
function Get_DataSource: IUnknown; safecall;
procedure _Set_DataSource(const ppunkDataSource: IUnknown); safecall;
procedure _xSave(const FileName: WideString; PersistFormat: PersistFormatEnum); safecall;
function Get_ActiveCommand: IDispatch; safecall;
procedure Set_StayInSync(pbStayInSync: WordBool); safecall;
function Get_StayInSync: WordBool; safecall;
function GetString(StringFormat: StringFormatEnum; NumRows: Integer;
const ColumnDelimeter: WideString; const RowDelimeter: WideString;
const NullExpr: WideString): WideString; safecall;
function Get_DataMember: WideString; safecall;
procedure Set_DataMember(const pbstrDataMember: WideString); safecall;
function CompareBookmarks(Bookmark1: OleVariant; Bookmark2: OleVariant): CompareEnum; safecall;
function Clone(LockType: LockTypeEnum): Recordset15; safecall;
procedure Resync(AffectRecords: AffectEnum; ResyncValues: ResyncEnum); safecall;
property DataSource: IUnknown read Get_DataSource write _Set_DataSource;
property ActiveCommand: IDispatch read Get_ActiveCommand;
property StayInSync: WordBool read Get_StayInSync write Set_StayInSync;
property DataMember: WideString read Get_DataMember write Set_DataMember;
end;
// *********************************************************************//
// Interface: Recordset21
// Flags: (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000555-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Recordset21 = interface(Recordset20)
['{00000555-0000-0010-8000-00AA006D2EA4}']
procedure Seek(KeyValues: OleVariant; SeekOption: SeekEnum); safecall;
procedure Set_Index(const pbstrIndex: WideString); safecall;
function Get_Index: WideString; safecall;
property Index: WideString read Get_Index write Set_Index;
end;
// *********************************************************************//
// Interface: _Recordset
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000556-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
_Recordset = interface(Recordset21)
['{00000556-0000-0010-8000-00AA006D2EA4}']
procedure Save(Destination: OleVariant; PersistFormat: PersistFormatEnum); safecall;
end;
// *********************************************************************//
// Interface: Fields15
// Flags: (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000506-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Fields15 = interface(_Collection)
['{00000506-0000-0010-8000-00AA006D2EA4}']
function Get_Item(Index: OleVariant): Field20; safecall;
property Item[Index: OleVariant]: Field20 read Get_Item; default;
end;
// *********************************************************************//
// Interface: Fields20
// Flags: (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
// GUID: {0000054D-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Fields20 = interface(Fields15)
['{0000054D-0000-0010-8000-00AA006D2EA4}']
procedure _Append(const Name: WideString; Type_: TDataTypeEnum; DefinedSize: ADO_LONGPTR;
Attrib: FieldAttributeEnum); safecall;
procedure Delete(Index: OleVariant); safecall;
end;
// *********************************************************************//
// Interface: Fields
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000564-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Fields = interface(Fields20)
['{00000564-0000-0010-8000-00AA006D2EA4}']
procedure Append(const Name: WideString; Type_: TDataTypeEnum; DefinedSize: ADO_LONGPTR;
Attrib: FieldAttributeEnum; FieldValue: OleVariant); safecall;
procedure Update; safecall;
procedure Resync(ResyncValues: ResyncEnum); safecall;
procedure CancelUpdate; safecall;
end;
// *********************************************************************//
// Interface: Field20
// Flags: (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
// GUID: {0000054C-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Field20 = interface(_ADO)
['{0000054C-0000-0010-8000-00AA006D2EA4}']
function Get_ActualSize: ADO_LONGPTR; safecall;
function Get_Attributes: Integer; safecall;
function Get_DefinedSize: ADO_LONGPTR; safecall;
function Get_Name: WideString; safecall;
function Get_Type_: TDataTypeEnum; safecall;
function Get_Value: OleVariant; safecall;
procedure Set_Value(pvar: OleVariant); safecall;
function Get_Precision: Byte; safecall;
function Get_NumericScale: Byte; safecall;
procedure AppendChunk(Data: OleVariant); safecall;
function GetChunk(Length: Integer): OleVariant; safecall;
function Get_OriginalValue: OleVariant; safecall;
function Get_UnderlyingValue: OleVariant; safecall;
function Get_DataFormat: IUnknown; safecall;
procedure _Set_DataFormat(const ppiDF: IUnknown); safecall;
procedure Set_Precision(pbPrecision: Byte); safecall;
procedure Set_NumericScale(pbNumericScale: Byte); safecall;
procedure Set_Type_(pDataType: TDataTypeEnum); safecall;
procedure Set_DefinedSize(pl: ADO_LONGPTR); safecall;
procedure Set_Attributes(pl: Integer); safecall;
property ActualSize: ADO_LONGPTR read Get_ActualSize;
property Attributes: Integer read Get_Attributes write Set_Attributes;
property DefinedSize: ADO_LONGPTR read Get_DefinedSize write Set_DefinedSize;
property Name: WideString read Get_Name;
property Type_: TDataTypeEnum read Get_Type_ write Set_Type_;
property Value: OleVariant read Get_Value write Set_Value;
property Precision: Byte read Get_Precision write Set_Precision;
property NumericScale: Byte read Get_NumericScale write Set_NumericScale;
property OriginalValue: OleVariant read Get_OriginalValue;
property UnderlyingValue: OleVariant read Get_UnderlyingValue;
property DataFormat: IUnknown read Get_DataFormat write _Set_DataFormat;
end;
// *********************************************************************//
// Interface: Field
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000569-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Field = interface(Field20)
['{00000569-0000-0010-8000-00AA006D2EA4}']
function Get_Status: Integer; safecall;
property Status: Integer read Get_Status;
end;
// *********************************************************************//
// Interface: _Parameter
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {0000050C-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
_Parameter = interface(_ADO)
['{0000050C-0000-0010-8000-00AA006D2EA4}']
function Get_Name: WideString; safecall;
procedure Set_Name(const pbstr: WideString); safecall;
function Get_Value: OleVariant; safecall;
procedure Set_Value(pvar: OleVariant); safecall;
function Get_Type_: TDataTypeEnum; safecall;
procedure Set_Type_(psDataType: TDataTypeEnum); safecall;
procedure Set_Direction(plParmDirection: ParameterDirectionEnum); safecall;
function Get_Direction: ParameterDirectionEnum; safecall;
procedure Set_Precision(pbPrecision: Byte); safecall;
function Get_Precision: Byte; safecall;
procedure Set_NumericScale(pbScale: Byte); safecall;
function Get_NumericScale: Byte; safecall;
procedure Set_Size(pl: ADO_LONGPTR); safecall;
function Get_Size: ADO_LONGPTR; safecall;
procedure AppendChunk(Val: OleVariant); safecall;
function Get_Attributes: Integer; safecall;
procedure Set_Attributes(plParmAttribs: Integer); safecall;
property Name: WideString read Get_Name write Set_Name;
property Value: OleVariant read Get_Value write Set_Value;
property Type_: TDataTypeEnum read Get_Type_ write Set_Type_;
property Direction: ParameterDirectionEnum read Get_Direction write Set_Direction;
property Precision: Byte read Get_Precision write Set_Precision;
property NumericScale: Byte read Get_NumericScale write Set_NumericScale;
property Size: ADO_LONGPTR read Get_Size write Set_Size;
property Attributes: Integer read Get_Attributes write Set_Attributes;
end;
// *********************************************************************//
// Interface: Parameters
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {0000050D-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Parameters = interface(_DynaCollection)
['{0000050D-0000-0010-8000-00AA006D2EA4}']
function Get_Item(Index: OleVariant): _Parameter; safecall;
property Item[Index: OleVariant]: _Parameter read Get_Item; default;
end;
// *********************************************************************//
// Interface: Command25
// Flags: (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
// GUID: {0000054E-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Command25 = interface(Command15)
['{0000054E-0000-0010-8000-00AA006D2EA4}']
function Get_State: Integer; safecall;
procedure Cancel; safecall;
property State: Integer read Get_State;
end;
// *********************************************************************//
// Interface: _Command
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {B08400BD-F9D1-4D02-B856-71D5DBA123E9}
// *********************************************************************//
_Command = interface(Command25)
['{B08400BD-F9D1-4D02-B856-71D5DBA123E9}']
procedure _Set_CommandStream(const pvStream: IUnknown); safecall;
function Get_CommandStream: OleVariant; safecall;
procedure Set_Dialect(const pbstrDialect: WideString); safecall;
function Get_Dialect: WideString; safecall;
procedure Set_NamedParameters(pfNamedParameters: WordBool); safecall;
function Get_NamedParameters: WordBool; safecall;
property Dialect: WideString read Get_Dialect write Set_Dialect;
property NamedParameters: WordBool read Get_NamedParameters write Set_NamedParameters;
end;
// *********************************************************************//
// Interface: ConnectionEventsVt
// Flags: (16) Hidden
// GUID: {00000402-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
ConnectionEventsVt = interface(IUnknown)
['{00000402-0000-0010-8000-00AA006D2EA4}']
function InfoMessage(const pError: Error; var adStatus: EventStatusEnum;
const pConnection: Connection15): HResult; stdcall;
function BeginTransComplete(TransactionLevel: Integer; const pError: Error;
var adStatus: EventStatusEnum; const pConnection: Connection15): HResult; stdcall;
function CommitTransComplete(const pError: Error; var adStatus: EventStatusEnum;
const pConnection: Connection15): HResult; stdcall;
function RollbackTransComplete(const pError: Error; var adStatus: EventStatusEnum;
const pConnection: Connection15): HResult; stdcall;
function WillExecute(var Source: WideString; var CursorType: CursorTypeEnum;
var LockType: LockTypeEnum; var Options: Integer;
var adStatus: EventStatusEnum; const pCommand: _Command;
const pRecordset: Recordset15; const pConnection: Connection15): HResult; stdcall;
function ExecuteComplete(RecordsAffected: Integer; const pError: Error;
var adStatus: EventStatusEnum; const pCommand: _Command;
const pRecordset: Recordset15; const pConnection: Connection15): HResult; stdcall;
function WillConnect(var ConnectionString: WideString; var UserID: WideString;
var Password: WideString; var Options: Integer;
var adStatus: EventStatusEnum; const pConnection: Connection15): HResult; stdcall;
function ConnectComplete(const pError: Error; var adStatus: EventStatusEnum;
const pConnection: Connection15): HResult; stdcall;
function Disconnect(var adStatus: EventStatusEnum; const pConnection: Connection15): HResult; stdcall;
end;
// *********************************************************************//
// Interface: RecordsetEventsVt
// Flags: (16) Hidden
// GUID: {00000403-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
RecordsetEventsVt = interface(IUnknown)
['{00000403-0000-0010-8000-00AA006D2EA4}']
function WillChangeField(cFields: Integer; Fields: OleVariant; var adStatus: EventStatusEnum;
const pRecordset: Recordset15): HResult; stdcall;
function FieldChangeComplete(cFields: Integer; Fields: OleVariant; const pError: Error;
var adStatus: EventStatusEnum; const pRecordset: Recordset15): HResult; stdcall;
function WillChangeRecord(adReason: EventReasonEnum; cRecords: Integer;
var adStatus: EventStatusEnum; const pRecordset: Recordset15): HResult; stdcall;
function RecordChangeComplete(adReason: EventReasonEnum; cRecords: Integer;
const pError: Error; var adStatus: EventStatusEnum;
const pRecordset: Recordset15): HResult; stdcall;
function WillChangeRecordset(adReason: EventReasonEnum; var adStatus: EventStatusEnum;
const pRecordset: Recordset15): HResult; stdcall;
function RecordsetChangeComplete(adReason: EventReasonEnum; const pError: Error;
var adStatus: EventStatusEnum; const pRecordset: Recordset15): HResult; stdcall;
function WillMove(adReason: EventReasonEnum; var adStatus: EventStatusEnum;
const pRecordset: Recordset15): HResult; stdcall;
function MoveComplete(adReason: EventReasonEnum; const pError: Error;
var adStatus: EventStatusEnum; const pRecordset: Recordset15): HResult; stdcall;
function EndOfRecordset(var fMoreData: WordBool; var adStatus: EventStatusEnum;
const pRecordset: Recordset15): HResult; stdcall;
function FetchProgress(Progress: Integer; MaxProgress: Integer; var adStatus: EventStatusEnum;
const pRecordset: Recordset15): HResult; stdcall;
function FetchComplete(const pError: Error; var adStatus: EventStatusEnum;
const pRecordset: Recordset15): HResult; stdcall;
end;
// *********************************************************************//
// Interface: ADOConnectionConstruction15
// Flags: (512) Restricted
// GUID: {00000516-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
ADOConnectionConstruction15 = interface(IUnknown)
['{00000516-0000-0010-8000-00AA006D2EA4}']
function Get_DSO(out ppDSO: IUnknown): HResult; stdcall;
function Get_Session(out ppSession: IUnknown): HResult; stdcall;
function WrapDSOandSession(const pDSO: IUnknown; const pSession: IUnknown): HResult; stdcall;
end;
// *********************************************************************//
// Interface: ADOConnectionConstruction
// Flags: (512) Restricted
// GUID: {00000551-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
ADOConnectionConstruction = interface(ADOConnectionConstruction15)
['{00000551-0000-0010-8000-00AA006D2EA4}']
end;
// *********************************************************************//
// Interface: _Record
// Flags: (4432) Hidden Dual OleAutomation Dispatchable
// GUID: {00000562-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
_Record = interface(_ADO)
['{00000562-0000-0010-8000-00AA006D2EA4}']
function Get_ActiveConnection: OleVariant; safecall;
procedure Set_ActiveConnection(const pvar: WideString); safecall;
procedure _Set_ActiveConnection(const pvar: Connection15); safecall;
function Get_State: ObjectStateEnum; safecall;
function Get_Source: OleVariant; safecall;
procedure Set_Source(const pvar: WideString); safecall;
procedure _Set_Source(const pvar: IDispatch); safecall;
function Get_Mode: ConnectModeEnum; safecall;
procedure Set_Mode(pMode: ConnectModeEnum); safecall;
function Get_ParentURL: WideString; safecall;
function MoveRecord(const Source: WideString; const Destination: WideString;
const UserName: WideString; const Password: WideString;
Options: MoveRecordOptionsEnum; Async: WordBool): WideString; safecall;
function CopyRecord(const Source: WideString; const Destination: WideString;
const UserName: WideString; const Password: WideString;
Options: CopyRecordOptionsEnum; Async: WordBool): WideString; safecall;
procedure DeleteRecord(const Source: WideString; Async: WordBool); safecall;
procedure Open(Source: OleVariant; ActiveConnection: OleVariant; Mode: ConnectModeEnum;
CreateOptions: RecordCreateOptionsEnum; Options: RecordOpenOptionsEnum;
const UserName: WideString; const Password: WideString); safecall;
procedure Close; safecall;
function Get_Fields: Fields15; safecall;
function Get_RecordType: RecordTypeEnum; safecall;
function GetChildren: Recordset15; safecall;
procedure Cancel; safecall;
property State: ObjectStateEnum read Get_State;
property Mode: ConnectModeEnum read Get_Mode write Set_Mode;
property ParentURL: WideString read Get_ParentURL;
property Fields: Fields15 read Get_Fields;
property RecordType: RecordTypeEnum read Get_RecordType;
end;
// *********************************************************************//
// Interface: _Stream
// Flags: (4432) Hidden Dual OleAutomation Dispatchable
// GUID: {00000565-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
_Stream = interface(IDispatch)
['{00000565-0000-0010-8000-00AA006D2EA4}']
function Get_Size: ADO_LONGPTR; safecall;
function Get_EOS: WordBool; safecall;
function Get_Position: ADO_LONGPTR; safecall;
procedure Set_Position(pPos: ADO_LONGPTR); safecall;
function Get_Type_: StreamTypeEnum; safecall;
procedure Set_Type_(ptype: StreamTypeEnum); safecall;
function Get_LineSeparator: LineSeparatorEnum; safecall;
procedure Set_LineSeparator(pLS: LineSeparatorEnum); safecall;
function Get_State: ObjectStateEnum; safecall;
function Get_Mode: ConnectModeEnum; safecall;
procedure Set_Mode(pMode: ConnectModeEnum); safecall;
function Get_Charset: WideString; safecall;
procedure Set_Charset(const pbstrCharset: WideString); safecall;
function Read(NumBytes: Integer): OleVariant; safecall;
procedure Open(Source: OleVariant; Mode: ConnectModeEnum; Options: StreamOpenOptionsEnum;
const UserName: WideString; const Password: WideString); safecall;
procedure Close; safecall;
procedure SkipLine; safecall;
procedure Write(Buffer: OleVariant); safecall;
procedure SetEOS; safecall;
procedure CopyTo(const DestStream: _Stream; CharNumber: ADO_LONGPTR); safecall;
procedure Flush; safecall;
procedure SaveToFile(const FileName: WideString; Options: SaveOptionsEnum); safecall;
procedure LoadFromFile(const FileName: WideString); safecall;
function ReadText(NumChars: Integer): WideString; safecall;
procedure WriteText(const Data: WideString; Options: StreamWriteEnum); safecall;
procedure Cancel; safecall;
property Size: ADO_LONGPTR read Get_Size;
property EOS: WordBool read Get_EOS;
property Position: ADO_LONGPTR read Get_Position write Set_Position;
property Type_: StreamTypeEnum read Get_Type_ write Set_Type_;
property LineSeparator: LineSeparatorEnum read Get_LineSeparator write Set_LineSeparator;
property State: ObjectStateEnum read Get_State;
property Mode: ConnectModeEnum read Get_Mode write Set_Mode;
property Charset: WideString read Get_Charset write Set_Charset;
end;
// *********************************************************************//
// Interface: ADORecordConstruction
// Flags: (4608) Restricted Dispatchable
// GUID: {00000567-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
ADORecordConstruction = interface(IDispatch)
['{00000567-0000-0010-8000-00AA006D2EA4}']
function Get_Row(out ppRow: IUnknown): HResult; stdcall;
function Set_Row(const ppRow: IUnknown): HResult; stdcall;
function Set_ParentRow(const Param1: IUnknown): HResult; stdcall;
end;
// *********************************************************************//
// Interface: ADOStreamConstruction
// Flags: (4608) Restricted Dispatchable
// GUID: {00000568-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
ADOStreamConstruction = interface(IDispatch)
['{00000568-0000-0010-8000-00AA006D2EA4}']
function Get_Stream(out ppStm: IUnknown): HResult; stdcall;
function Set_Stream(const ppStm: IUnknown): HResult; stdcall;
end;
// *********************************************************************//
// Interface: ADOCommandConstruction
// Flags: (512) Restricted
// GUID: {00000517-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
ADOCommandConstruction = interface(IUnknown)
['{00000517-0000-0010-8000-00AA006D2EA4}']
function Get_OLEDBCommand: IUnknown; safecall;
procedure Set_OLEDBCommand(const ppOLEDBCommand: IUnknown); safecall;
property OLEDBCommand: IUnknown read Get_OLEDBCommand write Set_OLEDBCommand;
end;
// *********************************************************************//
// Interface: ADORecordsetConstruction
// Flags: (4608) Restricted Dispatchable
// GUID: {00000283-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
ADORecordsetConstruction = interface(IDispatch)
['{00000283-0000-0010-8000-00AA006D2EA4}']
function Get_Rowset(out ppRowset: IUnknown): HResult; stdcall;
function Set_Rowset(const ppRowset: IUnknown): HResult; stdcall;
function Get_Chapter(out plChapter: ADO_LONGPTR): HResult; stdcall;
function Set_Chapter(plChapter: ADO_LONGPTR): HResult; stdcall;
function Get_RowPosition(out ppRowPos: IUnknown): HResult; stdcall;
function Set_RowPosition(const ppRowPos: IUnknown): HResult; stdcall;
end;
// *********************************************************************//
// Interface: Field15
// Flags: (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
// GUID: {00000505-0000-0010-8000-00AA006D2EA4}
// *********************************************************************//
Field15 = interface(_ADO)
['{00000505-0000-0010-8000-00AA006D2EA4}']
function Get_ActualSize: ADO_LONGPTR; safecall;
function Get_Attributes: Integer; safecall;
function Get_DefinedSize: ADO_LONGPTR; safecall;
function Get_Name: WideString; safecall;
function Get_Type_: TDataTypeEnum; safecall;
function Get_Value: OleVariant; safecall;
procedure Set_Value(pvar: OleVariant); safecall;
function Get_Precision: Byte; safecall;
function Get_NumericScale: Byte; safecall;
procedure AppendChunk(Data: OleVariant); safecall;
function GetChunk(Length: Integer): OleVariant; safecall;
function Get_OriginalValue: OleVariant; safecall;
function Get_UnderlyingValue: OleVariant; safecall;
property ActualSize: ADO_LONGPTR read Get_ActualSize;
property Attributes: Integer read Get_Attributes;
property DefinedSize: ADO_LONGPTR read Get_DefinedSize;
property Name: WideString read Get_Name;
property Type_: TDataTypeEnum read Get_Type_;
property Value: OleVariant read Get_Value write Set_Value;
property Precision: Byte read Get_Precision;
property NumericScale: Byte read Get_NumericScale;
property OriginalValue: OleVariant read Get_OriginalValue;
property UnderlyingValue: OleVariant read Get_UnderlyingValue;
end;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
Connection = Connection15;
Record_ = _Record;
Stream = _Stream;
Command = _Command;
Recordset = Recordset15;
Parameter = _Parameter;
// *********************************************************************//
// The Class CoConnection provides a Create and CreateRemote method to
// create instances of the default interface Connection15 exposed by
// the CoClass Connection. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoConnection = class
class function Create: Connection15;
class function CreateRemote(const MachineName: WideString): Connection15;
end;
// *********************************************************************//
// The Class CoRecord_ provides a Create and CreateRemote method to
// create instances of the default interface _Record exposed by
// the CoClass Record_. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoRecord_ = class
class function Create: _Record;
class function CreateRemote(const MachineName: WideString): _Record;
end;
// *********************************************************************//
// The Class CoStream provides a Create and CreateRemote method to
// create instances of the default interface _Stream exposed by
// the CoClass Stream. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoStream = class
class function Create: _Stream;
class function CreateRemote(const MachineName: WideString): _Stream;
end;
// *********************************************************************//
// The Class CoCommand provides a Create and CreateRemote method to
// create instances of the default interface _Command exposed by
// the CoClass Command. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoCommand = class
class function Create: _Command;
class function CreateRemote(const MachineName: WideString): _Command;
end;
// *********************************************************************//
// The Class CoRecordset provides a Create and CreateRemote method to
// create instances of the default interface Recordset15 exposed by
// the CoClass Recordset. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoRecordset = class
class function Create: Recordset15;
class function CreateRemote(const MachineName: WideString): Recordset15;
end;
// *********************************************************************//
// The Class CoParameter provides a Create and CreateRemote method to
// create instances of the default interface _Parameter exposed by
// the CoClass Parameter. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoParameter = class
class function Create: _Parameter;
class function CreateRemote(const MachineName: WideString): _Parameter;
end;
{$ENDIF ZEOS_DISABLE_ADO}
implementation
{$IFNDEF ZEOS_DISABLE_ADO}
class function CoConnection.Create: Connection15;
begin
Result := CreateComObject(CLASS_Connection) as Connection15;
end;
class function CoConnection.CreateRemote(const MachineName: WideString): Connection15;
begin
Result := CreateRemoteComObject(MachineName, CLASS_Connection) as Connection15;
end;
class function CoRecord_.Create: _Record;
begin
Result := CreateComObject(CLASS_Record_) as _Record;
end;
class function CoRecord_.CreateRemote(const MachineName: WideString): _Record;
begin
Result := CreateRemoteComObject(MachineName, CLASS_Record_) as _Record;
end;
class function CoStream.Create: _Stream;
begin
Result := CreateComObject(CLASS_Stream) as _Stream;
end;
class function CoStream.CreateRemote(const MachineName: WideString): _Stream;
begin
Result := CreateRemoteComObject(MachineName, CLASS_Stream) as _Stream;
end;
class function CoCommand.Create: _Command;
begin
Result := CreateComObject(CLASS_Command) as _Command;
end;
class function CoCommand.CreateRemote(const MachineName: WideString): _Command;
begin
Result := CreateRemoteComObject(MachineName, CLASS_Command) as _Command;
end;
class function CoRecordset.Create: Recordset15;
begin
Result := CreateComObject(CLASS_Recordset) as Recordset15;
end;
class function CoRecordset.CreateRemote(const MachineName: WideString): Recordset15;
begin
Result := CreateRemoteComObject(MachineName, CLASS_Recordset) as Recordset15;
end;
class function CoParameter.Create: _Parameter;
begin
Result := CreateComObject(CLASS_Parameter) as _Parameter;
end;
class function CoParameter.CreateRemote(const MachineName: WideString): _Parameter;
begin
Result := CreateRemoteComObject(MachineName, CLASS_Parameter) as _Parameter;
end;
{$ENDIF ZEOS_DISABLE_ADO}
end.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.