home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-02-03 | 49.0 KB | 1,401 lines |
- // Created by Microsoft (R) C/C++ Compiler Version 12.00.8085.0 (e3a0b30c).
- //
- // d:\temp_s\sdk\dbmsg\ado\isapi\debug\msado15.tli
- //
- // Wrapper implementations for Win32 type library c:\program files\common files\system\ado\msado15.dll
- // compiler-generated file created 03/30/98 at 02:39:30 - DO NOT EDIT!
-
- #pragma once
-
- //
- // interface _Collection wrapper method implementations
- //
-
- inline long _Collection::GetCount ( ) {
- long _result;
- HRESULT _hr = get_Count(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline IUnknownPtr _Collection::_NewEnum ( ) {
- IUnknown * _result;
- 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 _ADO wrapper method implementations
- //
-
- inline PropertiesPtr _ADO::GetProperties ( ) {
- struct Properties * _result;
- HRESULT _hr = get_Properties(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return PropertiesPtr(_result, false);
- }
-
- //
- // interface Properties wrapper method implementations
- //
-
- inline PropertyPtr Properties::GetItem ( const _variant_t & Index ) {
- struct Property * _result;
- HRESULT _hr = get_Item(Index, &_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return PropertyPtr(_result, false);
- }
-
- //
- // 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;
- 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;
- 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 Error wrapper method implementations
- //
-
- inline long Error::GetNumber ( ) {
- long _result;
- HRESULT _hr = get_Number(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline _bstr_t Error::GetSource ( ) {
- BSTR _result;
- 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;
- 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;
- 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;
- HRESULT _hr = get_HelpContext(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline _bstr_t Error::GetSQLState ( ) {
- BSTR _result;
- 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;
- 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;
- 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 _Command wrapper method implementations
- //
-
- inline _ConnectionPtr _Command::GetActiveConnection ( ) {
- struct _Connection * _result;
- HRESULT _hr = get_ActiveConnection(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _ConnectionPtr(_result, false);
- }
-
- inline void _Command::PutRefActiveConnection ( struct _Connection * ppvObject ) {
- HRESULT _hr = putref_ActiveConnection(ppvObject);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline void _Command::PutActiveConnection ( const _variant_t & ppvObject ) {
- HRESULT _hr = put_ActiveConnection(ppvObject);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline _bstr_t _Command::GetCommandText ( ) {
- BSTR _result;
- HRESULT _hr = get_CommandText(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _bstr_t(_result, false);
- }
-
- inline void _Command::PutCommandText ( _bstr_t pbstr ) {
- HRESULT _hr = put_CommandText(pbstr);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline long _Command::GetCommandTimeout ( ) {
- long _result;
- HRESULT _hr = get_CommandTimeout(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Command::PutCommandTimeout ( long pl ) {
- HRESULT _hr = put_CommandTimeout(pl);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline VARIANT_BOOL _Command::GetPrepared ( ) {
- VARIANT_BOOL _result;
- HRESULT _hr = get_Prepared(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Command::PutPrepared ( VARIANT_BOOL pfPrepared ) {
- HRESULT _hr = put_Prepared(pfPrepared);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline _RecordsetPtr _Command::Execute ( VARIANT * RecordsAffected, VARIANT * Parameters, long Options ) {
- struct _Recordset * _result;
- HRESULT _hr = raw_Execute(RecordsAffected, Parameters, Options, &_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _RecordsetPtr(_result, false);
- }
-
- inline _ParameterPtr _Command::CreateParameter ( _bstr_t Name, enum DataTypeEnum Type, enum ParameterDirectionEnum Direction, long Size, const _variant_t & Value ) {
- struct _Parameter * _result;
- HRESULT _hr = raw_CreateParameter(Name, Type, Direction, Size, Value, &_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _ParameterPtr(_result, false);
- }
-
- inline ParametersPtr _Command::GetParameters ( ) {
- struct Parameters * _result;
- HRESULT _hr = get_Parameters(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return ParametersPtr(_result, false);
- }
-
- inline void _Command::PutCommandType ( enum CommandTypeEnum plCmdType ) {
- HRESULT _hr = put_CommandType(plCmdType);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline enum CommandTypeEnum _Command::GetCommandType ( ) {
- enum CommandTypeEnum _result;
- HRESULT _hr = get_CommandType(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline _bstr_t _Command::GetName ( ) {
- BSTR _result;
- HRESULT _hr = get_Name(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _bstr_t(_result, false);
- }
-
- inline void _Command::PutName ( _bstr_t pbstrName ) {
- HRESULT _hr = put_Name(pbstrName);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline long _Command::GetState ( ) {
- long _result;
- HRESULT _hr = get_State(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline HRESULT _Command::Cancel ( ) {
- HRESULT _hr = raw_Cancel();
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- //
- // interface _Connection wrapper method implementations
- //
-
- inline _bstr_t _Connection::GetConnectionString ( ) {
- BSTR _result;
- HRESULT _hr = get_ConnectionString(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _bstr_t(_result, false);
- }
-
- inline void _Connection::PutConnectionString ( _bstr_t pbstr ) {
- HRESULT _hr = put_ConnectionString(pbstr);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline long _Connection::GetCommandTimeout ( ) {
- long _result;
- HRESULT _hr = get_CommandTimeout(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Connection::PutCommandTimeout ( long plTimeout ) {
- HRESULT _hr = put_CommandTimeout(plTimeout);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline long _Connection::GetConnectionTimeout ( ) {
- long _result;
- HRESULT _hr = get_ConnectionTimeout(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Connection::PutConnectionTimeout ( long plTimeout ) {
- HRESULT _hr = put_ConnectionTimeout(plTimeout);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline _bstr_t _Connection::GetVersion ( ) {
- BSTR _result;
- HRESULT _hr = get_Version(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _bstr_t(_result, false);
- }
-
- inline HRESULT _Connection::Close ( ) {
- HRESULT _hr = raw_Close();
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline _RecordsetPtr _Connection::Execute ( _bstr_t CommandText, VARIANT * RecordsAffected, long Options ) {
- struct _Recordset * _result;
- HRESULT _hr = raw_Execute(CommandText, RecordsAffected, Options, &_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _RecordsetPtr(_result, false);
- }
-
- inline long _Connection::BeginTrans ( ) {
- long _result;
- HRESULT _hr = raw_BeginTrans(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline HRESULT _Connection::CommitTrans ( ) {
- HRESULT _hr = raw_CommitTrans();
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Connection::RollbackTrans ( ) {
- HRESULT _hr = raw_RollbackTrans();
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Connection::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 _Connection::GetErrors ( ) {
- struct Errors * _result;
- HRESULT _hr = get_Errors(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return ErrorsPtr(_result, false);
- }
-
- inline _bstr_t _Connection::GetDefaultDatabase ( ) {
- BSTR _result;
- HRESULT _hr = get_DefaultDatabase(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _bstr_t(_result, false);
- }
-
- inline void _Connection::PutDefaultDatabase ( _bstr_t pbstr ) {
- HRESULT _hr = put_DefaultDatabase(pbstr);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline enum IsolationLevelEnum _Connection::GetIsolationLevel ( ) {
- enum IsolationLevelEnum _result;
- HRESULT _hr = get_IsolationLevel(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Connection::PutIsolationLevel ( enum IsolationLevelEnum Level ) {
- HRESULT _hr = put_IsolationLevel(Level);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline long _Connection::GetAttributes ( ) {
- long _result;
- HRESULT _hr = get_Attributes(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Connection::PutAttributes ( long plAttr ) {
- HRESULT _hr = put_Attributes(plAttr);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline enum CursorLocationEnum _Connection::GetCursorLocation ( ) {
- enum CursorLocationEnum _result;
- HRESULT _hr = get_CursorLocation(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Connection::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
- HRESULT _hr = put_CursorLocation(plCursorLoc);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline enum ConnectModeEnum _Connection::GetMode ( ) {
- enum ConnectModeEnum _result;
- HRESULT _hr = get_Mode(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Connection::PutMode ( enum ConnectModeEnum plMode ) {
- HRESULT _hr = put_Mode(plMode);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline _bstr_t _Connection::GetProvider ( ) {
- BSTR _result;
- HRESULT _hr = get_Provider(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _bstr_t(_result, false);
- }
-
- inline void _Connection::PutProvider ( _bstr_t pbstr ) {
- HRESULT _hr = put_Provider(pbstr);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline long _Connection::GetState ( ) {
- long _result;
- HRESULT _hr = get_State(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline _RecordsetPtr _Connection::OpenSchema ( enum SchemaEnum Schema, const _variant_t & Restrictions, const _variant_t & SchemaID ) {
- struct _Recordset * _result;
- HRESULT _hr = raw_OpenSchema(Schema, Restrictions, SchemaID, &_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _RecordsetPtr(_result, false);
- }
-
- inline HRESULT _Connection::Cancel ( ) {
- HRESULT _hr = raw_Cancel();
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- //
- // interface _Recordset wrapper method implementations
- //
-
- inline enum PositionEnum _Recordset::GetAbsolutePosition ( ) {
- enum PositionEnum _result;
- HRESULT _hr = get_AbsolutePosition(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Recordset::PutAbsolutePosition ( enum PositionEnum pl ) {
- HRESULT _hr = put_AbsolutePosition(pl);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline void _Recordset::PutRefActiveConnection ( IDispatch * pvar ) {
- HRESULT _hr = putref_ActiveConnection(pvar);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline void _Recordset::PutActiveConnection ( const _variant_t & pvar ) {
- HRESULT _hr = put_ActiveConnection(pvar);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline _variant_t _Recordset::GetActiveConnection ( ) {
- VARIANT _result;
- VariantInit(&_result);
- HRESULT _hr = get_ActiveConnection(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _variant_t(_result, false);
- }
-
- inline VARIANT_BOOL _Recordset::GetBOF ( ) {
- VARIANT_BOOL _result;
- HRESULT _hr = get_BOF(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline _variant_t _Recordset::GetBookmark ( ) {
- VARIANT _result;
- VariantInit(&_result);
- HRESULT _hr = get_Bookmark(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _variant_t(_result, false);
- }
-
- inline void _Recordset::PutBookmark ( const _variant_t & pvBookmark ) {
- HRESULT _hr = put_Bookmark(pvBookmark);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline long _Recordset::GetCacheSize ( ) {
- long _result;
- HRESULT _hr = get_CacheSize(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Recordset::PutCacheSize ( long pl ) {
- HRESULT _hr = put_CacheSize(pl);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline enum CursorTypeEnum _Recordset::GetCursorType ( ) {
- enum CursorTypeEnum _result;
- HRESULT _hr = get_CursorType(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Recordset::PutCursorType ( enum CursorTypeEnum plCursorType ) {
- HRESULT _hr = put_CursorType(plCursorType);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline VARIANT_BOOL _Recordset::GetEndOfFile ( ) {
- VARIANT_BOOL _result;
- HRESULT _hr = get_EndOfFile(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline FieldsPtr _Recordset::GetFields ( ) {
- struct Fields * _result;
- HRESULT _hr = get_Fields(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return FieldsPtr(_result, false);
- }
-
- inline enum LockTypeEnum _Recordset::GetLockType ( ) {
- enum LockTypeEnum _result;
- HRESULT _hr = get_LockType(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Recordset::PutLockType ( enum LockTypeEnum plLockType ) {
- HRESULT _hr = put_LockType(plLockType);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline long _Recordset::GetMaxRecords ( ) {
- long _result;
- HRESULT _hr = get_MaxRecords(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Recordset::PutMaxRecords ( long plMaxRecords ) {
- HRESULT _hr = put_MaxRecords(plMaxRecords);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline long _Recordset::GetRecordCount ( ) {
- long _result;
- HRESULT _hr = get_RecordCount(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Recordset::PutRefSource ( IDispatch * pvSource ) {
- HRESULT _hr = putref_Source(pvSource);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline void _Recordset::PutSource ( _bstr_t pvSource ) {
- HRESULT _hr = put_Source(pvSource);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline _variant_t _Recordset::GetSource ( ) {
- VARIANT _result;
- VariantInit(&_result);
- HRESULT _hr = get_Source(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _variant_t(_result, false);
- }
-
- inline HRESULT _Recordset::AddNew ( const _variant_t & FieldList, const _variant_t & Values ) {
- HRESULT _hr = raw_AddNew(FieldList, Values);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Recordset::CancelUpdate ( ) {
- HRESULT _hr = raw_CancelUpdate();
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Recordset::Close ( ) {
- HRESULT _hr = raw_Close();
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Recordset::Delete ( enum AffectEnum AffectRecords ) {
- HRESULT _hr = raw_Delete(AffectRecords);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline _variant_t _Recordset::GetRows ( long Rows, const _variant_t & Start, const _variant_t & Fields ) {
- VARIANT _result;
- VariantInit(&_result);
- HRESULT _hr = raw_GetRows(Rows, Start, Fields, &_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _variant_t(_result, false);
- }
-
- inline HRESULT _Recordset::Move ( long NumRecords, const _variant_t & Start ) {
- HRESULT _hr = raw_Move(NumRecords, Start);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Recordset::MoveNext ( ) {
- HRESULT _hr = raw_MoveNext();
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Recordset::MovePrevious ( ) {
- HRESULT _hr = raw_MovePrevious();
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Recordset::MoveFirst ( ) {
- HRESULT _hr = raw_MoveFirst();
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Recordset::MoveLast ( ) {
- HRESULT _hr = raw_MoveLast();
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Recordset::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType, long Options ) {
- HRESULT _hr = raw_Open(Source, ActiveConnection, CursorType, LockType, Options);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Recordset::Requery ( long Options ) {
- HRESULT _hr = raw_Requery(Options);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Recordset::_xResync ( enum AffectEnum AffectRecords ) {
- HRESULT _hr = raw__xResync(AffectRecords);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Recordset::Update ( const _variant_t & Fields, const _variant_t & Values ) {
- HRESULT _hr = raw_Update(Fields, Values);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline enum PositionEnum _Recordset::GetAbsolutePage ( ) {
- enum PositionEnum _result;
- HRESULT _hr = get_AbsolutePage(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Recordset::PutAbsolutePage ( enum PositionEnum pl ) {
- HRESULT _hr = put_AbsolutePage(pl);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline enum EditModeEnum _Recordset::GetEditMode ( ) {
- enum EditModeEnum _result;
- HRESULT _hr = get_EditMode(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline _variant_t _Recordset::GetFilter ( ) {
- VARIANT _result;
- VariantInit(&_result);
- HRESULT _hr = get_Filter(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _variant_t(_result, false);
- }
-
- inline void _Recordset::PutFilter ( const _variant_t & Criteria ) {
- HRESULT _hr = put_Filter(Criteria);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline long _Recordset::GetPageCount ( ) {
- long _result;
- HRESULT _hr = get_PageCount(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline long _Recordset::GetPageSize ( ) {
- long _result;
- HRESULT _hr = get_PageSize(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Recordset::PutPageSize ( long pl ) {
- HRESULT _hr = put_PageSize(pl);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline _bstr_t _Recordset::GetSort ( ) {
- BSTR _result;
- HRESULT _hr = get_Sort(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _bstr_t(_result, false);
- }
-
- inline void _Recordset::PutSort ( _bstr_t Criteria ) {
- HRESULT _hr = put_Sort(Criteria);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline long _Recordset::GetStatus ( ) {
- long _result;
- HRESULT _hr = get_Status(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline long _Recordset::GetState ( ) {
- long _result;
- HRESULT _hr = get_State(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline _RecordsetPtr _Recordset::_xClone ( ) {
- struct _Recordset * _result;
- HRESULT _hr = raw__xClone(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _RecordsetPtr(_result, false);
- }
-
- inline HRESULT _Recordset::UpdateBatch ( enum AffectEnum AffectRecords ) {
- HRESULT _hr = raw_UpdateBatch(AffectRecords);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT _Recordset::CancelBatch ( enum AffectEnum AffectRecords ) {
- HRESULT _hr = raw_CancelBatch(AffectRecords);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline enum CursorLocationEnum _Recordset::GetCursorLocation ( ) {
- enum CursorLocationEnum _result;
- HRESULT _hr = get_CursorLocation(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Recordset::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
- HRESULT _hr = put_CursorLocation(plCursorLoc);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline _RecordsetPtr _Recordset::NextRecordset ( VARIANT * RecordsAffected ) {
- struct _Recordset * _result;
- HRESULT _hr = raw_NextRecordset(RecordsAffected, &_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _RecordsetPtr(_result, false);
- }
-
- inline VARIANT_BOOL _Recordset::Supports ( enum CursorOptionEnum CursorOptions ) {
- VARIANT_BOOL _result;
- HRESULT _hr = raw_Supports(CursorOptions, &_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline _variant_t _Recordset::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 _Recordset::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 _Recordset::GetMarshalOptions ( ) {
- enum MarshalOptionsEnum _result;
- HRESULT _hr = get_MarshalOptions(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Recordset::PutMarshalOptions ( enum MarshalOptionsEnum peMarshal ) {
- HRESULT _hr = put_MarshalOptions(peMarshal);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline HRESULT _Recordset::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;
- }
-
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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 Fields wrapper method implementations
- //
-
- inline FieldPtr Fields::GetItem ( const _variant_t & Index ) {
- struct Field * _result;
- HRESULT _hr = get_Item(Index, &_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return FieldPtr(_result, false);
- }
-
- inline HRESULT Fields::Append ( _bstr_t bstrName, enum DataTypeEnum Type, long DefinedSize, enum FieldAttributeEnum Attrib ) {
- HRESULT _hr = raw_Append(bstrName, Type, DefinedSize, Attrib);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT Fields::Delete ( const _variant_t & Index ) {
- HRESULT _hr = raw_Delete(Index);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- //
- // interface Field wrapper method implementations
- //
-
- inline long Field::GetActualSize ( ) {
- long _result;
- HRESULT _hr = get_ActualSize(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline long Field::GetAttributes ( ) {
- long _result;
- HRESULT _hr = get_Attributes(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline long Field::GetDefinedSize ( ) {
- long _result;
- HRESULT _hr = get_DefinedSize(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline _bstr_t Field::GetName ( ) {
- BSTR _result;
- HRESULT _hr = get_Name(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _bstr_t(_result, false);
- }
-
- inline enum DataTypeEnum Field::GetType ( ) {
- enum DataTypeEnum _result;
- HRESULT _hr = get_Type(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline _variant_t Field::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 Field::PutValue ( const _variant_t & pvar ) {
- HRESULT _hr = put_Value(pvar);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline unsigned char Field::GetPrecision ( ) {
- unsigned char _result;
- HRESULT _hr = get_Precision(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline unsigned char Field::GetNumericScale ( ) {
- unsigned char _result;
- HRESULT _hr = get_NumericScale(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline HRESULT Field::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 Field::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 Field::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 Field::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 Field::GetDataFormat ( ) {
- IUnknown * _result;
- HRESULT _hr = get_DataFormat(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return IUnknownPtr(_result, false);
- }
-
- inline void Field::PutDataFormat ( IUnknown * ppiDF ) {
- HRESULT _hr = put_DataFormat(ppiDF);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline void Field::PutPrecision ( unsigned char pbPrecision ) {
- HRESULT _hr = put_Precision(pbPrecision);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline void Field::PutNumericScale ( unsigned char pbNumericScale ) {
- HRESULT _hr = put_NumericScale(pbNumericScale);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline void Field::PutType ( enum DataTypeEnum pDataType ) {
- HRESULT _hr = put_Type(pDataType);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline void Field::PutDefinedSize ( long pl ) {
- HRESULT _hr = put_DefinedSize(pl);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline void Field::PutAttributes ( long pl ) {
- HRESULT _hr = put_Attributes(pl);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- //
- // interface _Parameter wrapper method implementations
- //
-
- inline _bstr_t _Parameter::GetName ( ) {
- BSTR _result;
- 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;
- 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;
- HRESULT _hr = get_NumericScale(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void _Parameter::PutSize ( long pl ) {
- HRESULT _hr = put_Size(pl);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline long _Parameter::GetSize ( ) {
- long _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;
- 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;
- HRESULT _hr = get_Item(Index, &_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _ParameterPtr(_result, false);
- }
-
- //
- // interface ADODebugging wrapper method implementations
- //
-
- inline HRESULT ADODebugging::IsGlobalDebugMode ( VARIANT_BOOL * pfDebuggingOn ) {
- HRESULT _hr = raw_IsGlobalDebugMode(pfDebuggingOn);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- inline HRESULT ADODebugging::SetGlobalDebugMode ( IUnknown * pDebugger, VARIANT_BOOL fDebuggingOn ) {
- HRESULT _hr = raw_SetGlobalDebugMode(pDebugger, fDebuggingOn);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
-
- //
- // 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 ADOConnectionConstruction wrapper method implementations
- //
-
- inline IUnknownPtr ADOConnectionConstruction::GetDSO ( ) {
- IUnknown * _result;
- HRESULT _hr = get_DSO(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return IUnknownPtr(_result, false);
- }
-
- inline IUnknownPtr ADOConnectionConstruction::GetSession ( ) {
- IUnknown * _result;
- HRESULT _hr = get_Session(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return IUnknownPtr(_result, false);
- }
-
- //
- // interface ADORecordsetConstruction wrapper method implementations
- //
-
- inline IUnknownPtr ADORecordsetConstruction::GetRowset ( ) {
- IUnknown * _result;
- 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 long ADORecordsetConstruction::GetChapter ( ) {
- long _result;
- HRESULT _hr = get_Chapter(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
-
- inline void ADORecordsetConstruction::PutChapter ( long plChapter ) {
- HRESULT _hr = put_Chapter(plChapter);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
-
- inline IUnknownPtr ADORecordsetConstruction::GetRowPosition ( ) {
- IUnknown * _result;
- 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));
- }
-