1127 lines
35 KiB
Plaintext
1127 lines
35 KiB
Plaintext
|
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8472.0 (6811bad5).
|
||
|
//
|
||
|
// l:\dev\utilities\checksym\releaseunicode\msado15.tli
|
||
|
//
|
||
|
// Wrapper implementations for Win32 type library C:\temp\msado15.dll
|
||
|
// compiler-generated file created 12/20/99 at 17:04:06 - 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));
|
||
|
}
|
||
|
|
||
|
//
|
||
|
// 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);
|
||
|
}
|
||
|
|
||
|
//
|
||
|
// 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::Resync ( enum AffectEnum AffectRecords ) {
|
||
|
HRESULT _hr = raw_Resync(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::Clone ( ) {
|
||
|
struct _Recordset * _result;
|
||
|
HRESULT _hr = raw_Clone(&_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, 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 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);
|
||
|
}
|
||
|
|
||
|
//
|
||
|
// 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);
|
||
|
}
|
||
|
|
||
|
//
|
||
|
// 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 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));
|
||
|
}
|