📄 msado15.tli
字号:
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 ) {
return _com_dispatch_method(this, 0x0, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009\x4003\x0009", pError, adStatus, pConnection);
}
inline HRESULT ConnectionEvents::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
return _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x0009\x4003\x0009", TransactionLevel, pError, adStatus, pConnection);
}
inline HRESULT ConnectionEvents::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
return _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009\x4003\x0009", pError, adStatus, pConnection);
}
inline HRESULT ConnectionEvents::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
return _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009\x4003\x0009", pError, adStatus, pConnection);
}
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 ) {
return _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x4008\x4003\x4003\x4003\x4003\x0009\x0009\x0009", Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
}
inline HRESULT ConnectionEvents::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
return _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x0009\x4003\x0009\x0009\x0009", RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
}
inline HRESULT ConnectionEvents::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
return _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x4008\x4008\x4008\x4003\x4003\x0009", ConnectionString, UserID, Password, Options, adStatus, pConnection);
}
inline HRESULT ConnectionEvents::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
return _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009\x4003\x0009", pError, adStatus, pConnection);
}
inline HRESULT ConnectionEvents::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
return _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x4003\x0009", adStatus, pConnection);
}
//
// dispinterface RecordsetEvents wrapper method implementations
//
inline HRESULT RecordsetEvents::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
return _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x000c\x4003\x0009", cFields, &Fields, adStatus, pRecordset);
}
inline HRESULT RecordsetEvents::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
return _com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x000c\x0009\x4003\x0009", cFields, &Fields, pError, adStatus, pRecordset);
}
inline HRESULT RecordsetEvents::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
return _com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x0003\x4003\x0009", adReason, cRecords, adStatus, pRecordset);
}
inline HRESULT RecordsetEvents::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
return _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x0003\x0009\x4003\x0009", adReason, cRecords, pError, adStatus, pRecordset);
}
inline HRESULT RecordsetEvents::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
return _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
}
inline HRESULT RecordsetEvents::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
return _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
}
inline HRESULT RecordsetEvents::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
return _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
}
inline HRESULT RecordsetEvents::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
return _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
}
inline HRESULT RecordsetEvents::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
return _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x400b\x4003\x0009", fMoreData, adStatus, pRecordset);
}
inline HRESULT RecordsetEvents::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
return _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0003\x0003\x4003\x0009", Progress, MaxProgress, adStatus, pRecordset);
}
inline HRESULT RecordsetEvents::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
return _com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_EMPTY, NULL,
L"\x0009\x4003\x0009", pError, adStatus, pRecordset);
}
//
// 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;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -