📄 msado20.tli
字号:
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _RecordsetPtr _Recordset15::NextRecordset ( VARIANT * RecordsAffected ) {
struct _Recordset * _result = 0;
HRESULT _hr = raw_NextRecordset(RecordsAffected, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _RecordsetPtr(_result, false);
}
inline VARIANT_BOOL _Recordset15::Supports ( enum CursorOptionEnum CursorOptions ) {
VARIANT_BOOL _result = 0;
HRESULT _hr = raw_Supports(CursorOptions, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _variant_t _Recordset15::GetCollect ( const _variant_t & Index ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_Collect(Index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void _Recordset15::PutCollect ( const _variant_t & Index, const _variant_t & pvar ) {
HRESULT _hr = put_Collect(Index, pvar);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum MarshalOptionsEnum _Recordset15::GetMarshalOptions ( ) {
enum MarshalOptionsEnum _result;
HRESULT _hr = get_MarshalOptions(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Recordset15::PutMarshalOptions ( enum MarshalOptionsEnum peMarshal ) {
HRESULT _hr = put_MarshalOptions(peMarshal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT _Recordset15::Find ( _bstr_t Criteria, long SkipRecords, enum SearchDirectionEnum SearchDirection, const _variant_t & Start ) {
HRESULT _hr = raw_Find(Criteria, SkipRecords, SearchDirection, Start);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _Recordset wrapper method implementations
//
inline HRESULT _Recordset::Cancel ( ) {
HRESULT _hr = raw_Cancel();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IUnknownPtr _Recordset::GetDataSource ( ) {
IUnknown * _result = 0;
HRESULT _hr = get_DataSource(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IUnknownPtr(_result, false);
}
inline void _Recordset::PutRefDataSource ( IUnknown * ppunkDataSource ) {
HRESULT _hr = putref_DataSource(ppunkDataSource);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT _Recordset::Save ( _bstr_t FileName, enum PersistFormatEnum PersistFormat ) {
HRESULT _hr = raw_Save(FileName, PersistFormat);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IDispatchPtr _Recordset::GetActiveCommand ( ) {
IDispatch * _result = 0;
HRESULT _hr = get_ActiveCommand(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
inline void _Recordset::PutStayInSync ( VARIANT_BOOL pbStayInSync ) {
HRESULT _hr = put_StayInSync(pbStayInSync);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL _Recordset::GetStayInSync ( ) {
VARIANT_BOOL _result = 0;
HRESULT _hr = get_StayInSync(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t _Recordset::GetString ( enum StringFormatEnum StringFormat, long NumRows, _bstr_t ColumnDelimeter, _bstr_t RowDelimeter, _bstr_t NullExpr ) {
BSTR _result = 0;
HRESULT _hr = raw_GetString(StringFormat, NumRows, ColumnDelimeter, RowDelimeter, NullExpr, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t _Recordset::GetDataMember ( ) {
BSTR _result = 0;
HRESULT _hr = get_DataMember(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _Recordset::PutDataMember ( _bstr_t pbstrDataMember ) {
HRESULT _hr = put_DataMember(pbstrDataMember);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum CompareEnum _Recordset::CompareBookmarks ( const _variant_t & Bookmark1, const _variant_t & Bookmark2 ) {
enum CompareEnum _result;
HRESULT _hr = raw_CompareBookmarks(Bookmark1, Bookmark2, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _RecordsetPtr _Recordset::Clone ( enum LockTypeEnum LockType ) {
struct _Recordset * _result = 0;
HRESULT _hr = raw_Clone(LockType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _RecordsetPtr(_result, false);
}
inline HRESULT _Recordset::Resync ( enum AffectEnum AffectRecords, enum ResyncEnum ResyncValues ) {
HRESULT _hr = raw_Resync(AffectRecords, ResyncValues);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _Connection15 wrapper method implementations
//
inline _bstr_t _Connection15::GetConnectionString ( ) {
BSTR _result = 0;
HRESULT _hr = get_ConnectionString(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _Connection15::PutConnectionString ( _bstr_t pbstr ) {
HRESULT _hr = put_ConnectionString(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Connection15::GetCommandTimeout ( ) {
long _result = 0;
HRESULT _hr = get_CommandTimeout(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Connection15::PutCommandTimeout ( long plTimeout ) {
HRESULT _hr = put_CommandTimeout(plTimeout);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Connection15::GetConnectionTimeout ( ) {
long _result = 0;
HRESULT _hr = get_ConnectionTimeout(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Connection15::PutConnectionTimeout ( long plTimeout ) {
HRESULT _hr = put_ConnectionTimeout(plTimeout);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _Connection15::GetVersion ( ) {
BSTR _result = 0;
HRESULT _hr = get_Version(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline HRESULT _Connection15::Close ( ) {
HRESULT _hr = raw_Close();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _RecordsetPtr _Connection15::Execute ( _bstr_t CommandText, VARIANT * RecordsAffected, long Options ) {
struct _Recordset * _result = 0;
HRESULT _hr = raw_Execute(CommandText, RecordsAffected, Options, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _RecordsetPtr(_result, false);
}
inline long _Connection15::BeginTrans ( ) {
long _result = 0;
HRESULT _hr = raw_BeginTrans(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT _Connection15::CommitTrans ( ) {
HRESULT _hr = raw_CommitTrans();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Connection15::RollbackTrans ( ) {
HRESULT _hr = raw_RollbackTrans();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _Connection15::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) {
HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline ErrorsPtr _Connection15::GetErrors ( ) {
struct Errors * _result = 0;
HRESULT _hr = get_Errors(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ErrorsPtr(_result, false);
}
inline _bstr_t _Connection15::GetDefaultDatabase ( ) {
BSTR _result = 0;
HRESULT _hr = get_DefaultDatabase(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _Connection15::PutDefaultDatabase ( _bstr_t pbstr ) {
HRESULT _hr = put_DefaultDatabase(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum IsolationLevelEnum _Connection15::GetIsolationLevel ( ) {
enum IsolationLevelEnum _result;
HRESULT _hr = get_IsolationLevel(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Connection15::PutIsolationLevel ( enum IsolationLevelEnum Level ) {
HRESULT _hr = put_IsolationLevel(Level);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Connection15::GetAttributes ( ) {
long _result = 0;
HRESULT _hr = get_Attributes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Connection15::PutAttributes ( long plAttr ) {
HRESULT _hr = put_Attributes(plAttr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum CursorLocationEnum _Connection15::GetCursorLocation ( ) {
enum CursorLocationEnum _result;
HRESULT _hr = get_CursorLocation(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Connection15::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
HRESULT _hr = put_CursorLocation(plCursorLoc);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum ConnectModeEnum _Connection15::GetMode ( ) {
enum ConnectModeEnum _result;
HRESULT _hr = get_Mode(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Connection15::PutMode ( enum ConnectModeEnum plMode ) {
HRESULT _hr = put_Mode(plMode);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _Connection15::GetProvider ( ) {
BSTR _result = 0;
HRESULT _hr = get_Provider(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _Connection15::PutProvider ( _bstr_t pbstr ) {
HRESULT _hr = put_Provider(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Connection15::GetState ( ) {
long _result = 0;
HRESULT _hr = get_State(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _RecordsetPtr _Connection15::OpenSchema ( enum SchemaEnum Schema, const _variant_t & Restrictions, const _variant_t & SchemaID ) {
struct _Recordset * _result = 0;
HRESULT _hr = raw_OpenSchema(Schema, Restrictions, SchemaID, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _RecordsetPtr(_result, false);
}
//
// interface _Connection wrapper method implementations
//
inline HRESULT _Connection::Cancel ( ) {
HRESULT _hr = raw_Cancel();
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));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -