-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmsado60_backcompat.tli
2126 lines (1778 loc) · 73.2 KB
/
msado60_backcompat.tli
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
// Created by Microsoft (R) C/C++ Compiler Version 12.00.31101.0 (86cd2ecb).
//
// z:\adzm\trunk\mssqlpipe\release\msado60_backcompat.tli
//
// Wrapper implementations for Win32 type library msado60_Backcompat.tlb
// compiler-generated file created 01/20/15 at 14:45:36 - DO NOT EDIT!
#pragma once
//
// interface _Collection wrapper method implementations
//
inline long _Collection::GetCount ( ) {
long _result = 0;
HRESULT _hr = get_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IUnknownPtr _Collection::_NewEnum ( ) {
IUnknown * _result = 0;
HRESULT _hr = raw__NewEnum(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline HRESULT _Collection::Refresh ( ) {
HRESULT _hr = raw_Refresh();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _DynaCollection wrapper method implementations
//
inline HRESULT _DynaCollection::Append ( IDispatch * Object ) {
HRESULT _hr = raw_Append(Object);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _DynaCollection::Delete ( const _variant_t & Index ) {
HRESULT _hr = raw_Delete(Index);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface Property wrapper method implementations
//
inline _variant_t Property::GetValue ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_Value(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void Property::PutValue ( const _variant_t & pval ) {
HRESULT _hr = put_Value(pval);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t Property::GetName ( ) {
BSTR _result = 0;
HRESULT _hr = get_Name(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline enum DataTypeEnum Property::GetType ( ) {
enum DataTypeEnum _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long Property::GetAttributes ( ) {
long _result = 0;
HRESULT _hr = get_Attributes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Property::PutAttributes ( long plAttributes ) {
HRESULT _hr = put_Attributes(plAttributes);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface Properties wrapper method implementations
//
inline PropertyPtr Properties::GetItem ( const _variant_t & Index ) {
struct Property * _result = 0;
HRESULT _hr = get_Item(Index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return PropertyPtr(_result, false);
}
//
// interface _ADO wrapper method implementations
//
inline PropertiesPtr _ADO::GetProperties ( ) {
struct Properties * _result = 0;
HRESULT _hr = get_Properties(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return PropertiesPtr(_result, false);
}
//
// interface Error wrapper method implementations
//
inline long Error::GetNumber ( ) {
long _result = 0;
HRESULT _hr = get_Number(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t Error::GetSource ( ) {
BSTR _result = 0;
HRESULT _hr = get_Source(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t Error::GetDescription ( ) {
BSTR _result = 0;
HRESULT _hr = get_Description(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t Error::GetHelpFile ( ) {
BSTR _result = 0;
HRESULT _hr = get_HelpFile(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline long Error::GetHelpContext ( ) {
long _result = 0;
HRESULT _hr = get_HelpContext(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t Error::GetSQLState ( ) {
BSTR _result = 0;
HRESULT _hr = get_SQLState(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline long Error::GetNativeError ( ) {
long _result = 0;
HRESULT _hr = get_NativeError(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface Errors wrapper method implementations
//
inline ErrorPtr Errors::GetItem ( const _variant_t & Index ) {
struct Error * _result = 0;
HRESULT _hr = get_Item(Index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ErrorPtr(_result, false);
}
inline HRESULT Errors::Clear ( ) {
HRESULT _hr = raw_Clear();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface Field20 wrapper method implementations
//
inline ADO_LONGPTR Field20::GetActualSize ( ) {
ADO_LONGPTR _result;
HRESULT _hr = get_ActualSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long Field20::GetAttributes ( ) {
long _result = 0;
HRESULT _hr = get_Attributes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline ADO_LONGPTR Field20::GetDefinedSize ( ) {
ADO_LONGPTR _result;
HRESULT _hr = get_DefinedSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t Field20::GetName ( ) {
BSTR _result = 0;
HRESULT _hr = get_Name(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline enum DataTypeEnum Field20::GetType ( ) {
enum DataTypeEnum _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _variant_t Field20::GetValue ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_Value(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void Field20::PutValue ( const _variant_t & pvar ) {
HRESULT _hr = put_Value(pvar);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline unsigned char Field20::GetPrecision ( ) {
unsigned char _result = 0;
HRESULT _hr = get_Precision(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline unsigned char Field20::GetNumericScale ( ) {
unsigned char _result = 0;
HRESULT _hr = get_NumericScale(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT Field20::AppendChunk ( const _variant_t & Data ) {
HRESULT _hr = raw_AppendChunk(Data);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _variant_t Field20::GetChunk ( long Length ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_GetChunk(Length, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _variant_t Field20::GetOriginalValue ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_OriginalValue(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _variant_t Field20::GetUnderlyingValue ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_UnderlyingValue(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline IUnknownPtr Field20::GetDataFormat ( ) {
IUnknown * _result = 0;
HRESULT _hr = get_DataFormat(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline void Field20::PutRefDataFormat ( IUnknown * ppiDF ) {
HRESULT _hr = putref_DataFormat(ppiDF);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void Field20::PutPrecision ( unsigned char pbPrecision ) {
HRESULT _hr = put_Precision(pbPrecision);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void Field20::PutNumericScale ( unsigned char pbNumericScale ) {
HRESULT _hr = put_NumericScale(pbNumericScale);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void Field20::PutType ( enum DataTypeEnum pDataType ) {
HRESULT _hr = put_Type(pDataType);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void Field20::PutDefinedSize ( ADO_LONGPTR pl ) {
HRESULT _hr = put_DefinedSize(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void Field20::PutAttributes ( long pl ) {
HRESULT _hr = put_Attributes(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface Field wrapper method implementations
//
inline long Field::GetStatus ( ) {
long _result = 0;
HRESULT _hr = get_Status(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface Fields15 wrapper method implementations
//
inline FieldPtr Fields15::GetItem ( const _variant_t & Index ) {
struct Field * _result = 0;
HRESULT _hr = get_Item(Index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return FieldPtr(_result, false);
}
//
// interface Fields20 wrapper method implementations
//
inline HRESULT Fields20::_Append ( _bstr_t Name, enum DataTypeEnum Type, ADO_LONGPTR DefinedSize, enum FieldAttributeEnum Attrib ) {
HRESULT _hr = raw__Append(Name, Type, DefinedSize, Attrib);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Fields20::Delete ( const _variant_t & Index ) {
HRESULT _hr = raw_Delete(Index);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface Fields wrapper method implementations
//
inline HRESULT Fields::Append ( _bstr_t Name, enum DataTypeEnum Type, ADO_LONGPTR DefinedSize, enum FieldAttributeEnum Attrib, const _variant_t & FieldValue ) {
HRESULT _hr = raw_Append(Name, Type, DefinedSize, Attrib, FieldValue);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Fields::Update ( ) {
HRESULT _hr = raw_Update();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Fields::Resync ( enum ResyncEnum ResyncValues ) {
HRESULT _hr = raw_Resync(ResyncValues);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Fields::CancelUpdate ( ) {
HRESULT _hr = raw_CancelUpdate();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _Parameter wrapper method implementations
//
inline _bstr_t _Parameter::GetName ( ) {
BSTR _result = 0;
HRESULT _hr = get_Name(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _Parameter::PutName ( _bstr_t pbstr ) {
HRESULT _hr = put_Name(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _variant_t _Parameter::GetValue ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_Value(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void _Parameter::PutValue ( const _variant_t & pvar ) {
HRESULT _hr = put_Value(pvar);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum DataTypeEnum _Parameter::GetType ( ) {
enum DataTypeEnum _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Parameter::PutType ( enum DataTypeEnum psDataType ) {
HRESULT _hr = put_Type(psDataType);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void _Parameter::PutDirection ( enum ParameterDirectionEnum plParmDirection ) {
HRESULT _hr = put_Direction(plParmDirection);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum ParameterDirectionEnum _Parameter::GetDirection ( ) {
enum ParameterDirectionEnum _result;
HRESULT _hr = get_Direction(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Parameter::PutPrecision ( unsigned char pbPrecision ) {
HRESULT _hr = put_Precision(pbPrecision);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline unsigned char _Parameter::GetPrecision ( ) {
unsigned char _result = 0;
HRESULT _hr = get_Precision(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Parameter::PutNumericScale ( unsigned char pbScale ) {
HRESULT _hr = put_NumericScale(pbScale);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline unsigned char _Parameter::GetNumericScale ( ) {
unsigned char _result = 0;
HRESULT _hr = get_NumericScale(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Parameter::PutSize ( ADO_LONGPTR pl ) {
HRESULT _hr = put_Size(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline ADO_LONGPTR _Parameter::GetSize ( ) {
ADO_LONGPTR _result;
HRESULT _hr = get_Size(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT _Parameter::AppendChunk ( const _variant_t & Val ) {
HRESULT _hr = raw_AppendChunk(Val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline long _Parameter::GetAttributes ( ) {
long _result = 0;
HRESULT _hr = get_Attributes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Parameter::PutAttributes ( long plParmAttribs ) {
HRESULT _hr = put_Attributes(plParmAttribs);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface Parameters wrapper method implementations
//
inline _ParameterPtr Parameters::GetItem ( const _variant_t & Index ) {
struct _Parameter * _result = 0;
HRESULT _hr = get_Item(Index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _ParameterPtr(_result, false);
}
//
// dispinterface ConnectionEvents wrapper method implementations
//
inline HRESULT ConnectionEvents::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x0, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0009\x4003\x0009", pError, adStatus, pConnection);
return _result;
}
inline HRESULT ConnectionEvents::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x0009\x4003\x0009", TransactionLevel, pError, adStatus, pConnection);
return _result;
}
inline HRESULT ConnectionEvents::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0009\x4003\x0009", pError, adStatus, pConnection);
return _result;
}
inline HRESULT ConnectionEvents::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0009\x4003\x0009", pError, adStatus, pConnection);
return _result;
}
inline HRESULT ConnectionEvents::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x4008\x4003\x4003\x4003\x4003\x0009\x0009\x0009", Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
return _result;
}
inline HRESULT ConnectionEvents::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x0009\x4003\x0009\x0009\x0009", RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
return _result;
}
inline HRESULT ConnectionEvents::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x4008\x4008\x4008\x4003\x4003\x0009", ConnectionString, UserID, Password, Options, adStatus, pConnection);
return _result;
}
inline HRESULT ConnectionEvents::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0009\x4003\x0009", pError, adStatus, pConnection);
return _result;
}
inline HRESULT ConnectionEvents::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x4003\x0009", adStatus, pConnection);
return _result;
}
//
// dispinterface RecordsetEvents wrapper method implementations
//
inline HRESULT RecordsetEvents::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x000c\x4003\x0009", cFields, &Fields, adStatus, pRecordset);
return _result;
}
inline HRESULT RecordsetEvents::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x000c\x0009\x4003\x0009", cFields, &Fields, pError, adStatus, pRecordset);
return _result;
}
inline HRESULT RecordsetEvents::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x0003\x4003\x0009", adReason, cRecords, adStatus, pRecordset);
return _result;
}
inline HRESULT RecordsetEvents::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x0003\x0009\x4003\x0009", adReason, cRecords, pError, adStatus, pRecordset);
return _result;
}
inline HRESULT RecordsetEvents::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
return _result;
}
inline HRESULT RecordsetEvents::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
return _result;
}
inline HRESULT RecordsetEvents::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
return _result;
}
inline HRESULT RecordsetEvents::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
return _result;
}
inline HRESULT RecordsetEvents::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x400b\x4003\x0009", fMoreData, adStatus, pRecordset);
return _result;
}
inline HRESULT RecordsetEvents::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x0003\x4003\x0009", Progress, MaxProgress, adStatus, pRecordset);
return _result;
}
inline HRESULT RecordsetEvents::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0009\x4003\x0009", pError, adStatus, pRecordset);
return _result;
}
//
// interface ADOConnectionConstruction15 wrapper method implementations
//
inline IUnknownPtr ADOConnectionConstruction15::GetDSO ( ) {
IUnknown * _result = 0;
HRESULT _hr = get_DSO(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline IUnknownPtr ADOConnectionConstruction15::GetSession ( ) {
IUnknown * _result = 0;
HRESULT _hr = get_Session(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline HRESULT ADOConnectionConstruction15::WrapDSOandSession ( IUnknown * pDSO, IUnknown * pSession ) {
HRESULT _hr = raw_WrapDSOandSession(pDSO, pSession);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _Stream wrapper method implementations
//
inline ADO_LONGPTR _Stream::GetSize ( ) {
ADO_LONGPTR _result;
HRESULT _hr = get_Size(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL _Stream::GetEOS ( ) {
VARIANT_BOOL _result = 0;
HRESULT _hr = get_EOS(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline ADO_LONGPTR _Stream::GetPosition ( ) {
ADO_LONGPTR _result;
HRESULT _hr = get_Position(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Stream::PutPosition ( ADO_LONGPTR pPos ) {
HRESULT _hr = put_Position(pPos);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum StreamTypeEnum _Stream::GetType ( ) {
enum StreamTypeEnum _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Stream::PutType ( enum StreamTypeEnum ptype ) {
HRESULT _hr = put_Type(ptype);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum LineSeparatorEnum _Stream::GetLineSeparator ( ) {
enum LineSeparatorEnum _result;
HRESULT _hr = get_LineSeparator(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Stream::PutLineSeparator ( enum LineSeparatorEnum pLS ) {
HRESULT _hr = put_LineSeparator(pLS);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum ObjectStateEnum _Stream::GetState ( ) {
enum ObjectStateEnum _result;
HRESULT _hr = get_State(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline enum ConnectModeEnum _Stream::GetMode ( ) {
enum ConnectModeEnum _result;
HRESULT _hr = get_Mode(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Stream::PutMode ( enum ConnectModeEnum pMode ) {
HRESULT _hr = put_Mode(pMode);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _Stream::GetCharset ( ) {
BSTR _result = 0;
HRESULT _hr = get_Charset(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _Stream::PutCharset ( _bstr_t pbstrCharset ) {
HRESULT _hr = put_Charset(pbstrCharset);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _variant_t _Stream::Read ( long NumBytes ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_Read(NumBytes, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline HRESULT _Stream::Open ( const _variant_t & Source, enum ConnectModeEnum Mode, enum StreamOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
HRESULT _hr = raw_Open(Source, Mode, Options, UserName, Password);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Stream::Close ( ) {
HRESULT _hr = raw_Close();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Stream::SkipLine ( ) {
HRESULT _hr = raw_SkipLine();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Stream::Write ( const _variant_t & Buffer ) {
HRESULT _hr = raw_Write(Buffer);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Stream::SetEOS ( ) {
HRESULT _hr = raw_SetEOS();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Stream::CopyTo ( struct _Stream * DestStream, ADO_LONGPTR CharNumber ) {
HRESULT _hr = raw_CopyTo(DestStream, CharNumber);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Stream::Flush ( ) {
HRESULT _hr = raw_Flush();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Stream::SaveToFile ( _bstr_t FileName, enum SaveOptionsEnum Options ) {
HRESULT _hr = raw_SaveToFile(FileName, Options);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Stream::LoadFromFile ( _bstr_t FileName ) {
HRESULT _hr = raw_LoadFromFile(FileName);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _bstr_t _Stream::ReadText ( long NumChars ) {
BSTR _result = 0;
HRESULT _hr = raw_ReadText(NumChars, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline HRESULT _Stream::WriteText ( _bstr_t Data, enum StreamWriteEnum Options ) {
HRESULT _hr = raw_WriteText(Data, Options);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Stream::Cancel ( ) {
HRESULT _hr = raw_Cancel();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface ADORecordConstruction wrapper method implementations
//
inline IUnknownPtr ADORecordConstruction::GetRow ( ) {
IUnknown * _result = 0;
HRESULT _hr = get_Row(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline void ADORecordConstruction::PutRow ( IUnknown * ppRow ) {
HRESULT _hr = put_Row(ppRow);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void ADORecordConstruction::PutParentRow ( IUnknown * _arg1 ) {
HRESULT _hr = put_ParentRow(_arg1);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface ADOStreamConstruction wrapper method implementations
//
inline IUnknownPtr ADOStreamConstruction::GetStream ( ) {
IUnknown * _result = 0;
HRESULT _hr = get_Stream(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline void ADOStreamConstruction::PutStream ( IUnknown * ppStm ) {
HRESULT _hr = put_Stream(ppStm);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface ADOCommandConstruction wrapper method implementations
//
inline IUnknownPtr ADOCommandConstruction::GetOLEDBCommand ( ) {
IUnknown * _result = 0;
HRESULT _hr = get_OLEDBCommand(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline void ADOCommandConstruction::PutOLEDBCommand ( IUnknown * ppOLEDBCommand ) {
HRESULT _hr = put_OLEDBCommand(ppOLEDBCommand);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface ADORecordsetConstruction wrapper method implementations
//
inline IUnknownPtr ADORecordsetConstruction::GetRowset ( ) {
IUnknown * _result = 0;
HRESULT _hr = get_Rowset(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline void ADORecordsetConstruction::PutRowset ( IUnknown * ppRowset ) {
HRESULT _hr = put_Rowset(ppRowset);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline ADO_LONGPTR ADORecordsetConstruction::GetChapter ( ) {
ADO_LONGPTR _result;
HRESULT _hr = get_Chapter(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ADORecordsetConstruction::PutChapter ( ADO_LONGPTR plChapter ) {
HRESULT _hr = put_Chapter(plChapter);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline IUnknownPtr ADORecordsetConstruction::GetRowPosition ( ) {
IUnknown * _result = 0;
HRESULT _hr = get_RowPosition(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline void ADORecordsetConstruction::PutRowPosition ( IUnknown * ppRowPos ) {
HRESULT _hr = put_RowPosition(ppRowPos);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface Field15 wrapper method implementations
//
inline ADO_LONGPTR Field15::GetActualSize ( ) {
ADO_LONGPTR _result;
HRESULT _hr = get_ActualSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long Field15::GetAttributes ( ) {
long _result = 0;
HRESULT _hr = get_Attributes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline ADO_LONGPTR Field15::GetDefinedSize ( ) {
ADO_LONGPTR _result;
HRESULT _hr = get_DefinedSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t Field15::GetName ( ) {
BSTR _result = 0;
HRESULT _hr = get_Name(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline enum DataTypeEnum Field15::GetType ( ) {
enum DataTypeEnum _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _variant_t Field15::GetValue ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_Value(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void Field15::PutValue ( const _variant_t & pvar ) {
HRESULT _hr = put_Value(pvar);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline unsigned char Field15::GetPrecision ( ) {
unsigned char _result = 0;
HRESULT _hr = get_Precision(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline unsigned char Field15::GetNumericScale ( ) {
unsigned char _result = 0;
HRESULT _hr = get_NumericScale(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT Field15::AppendChunk ( const _variant_t & Data ) {
HRESULT _hr = raw_AppendChunk(Data);