123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- // Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (d497bd66).
- //
- // msjro.tli
- //
- // Wrapper implementations for Win32 type library C:\Program Files (x86)\Common Files\System\ADO\msjro.dll
- // compiler-generated file created 10/07/15 at 11:48:46 - DO NOT EDIT!
- #pragma once
- //
- // interface IReplica wrapper method implementations
- //
- inline void IReplica::PutRefActiveConnection ( IDispatch * ppconn ) {
- HRESULT _hr = putref_ActiveConnection(ppconn);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
- inline void IReplica::PutActiveConnection ( const _variant_t & ppconn ) {
- HRESULT _hr = put_ActiveConnection(ppconn);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
- inline IDispatchPtr IReplica::GetActiveConnection ( ) {
- IDispatch * _result;
- HRESULT _hr = get_ActiveConnection(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return IDispatchPtr(_result, false);
- }
- inline _bstr_t IReplica::GetConflictFunction ( ) {
- BSTR _result;
- HRESULT _hr = get_ConflictFunction(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _bstr_t(_result, false);
- }
- inline void IReplica::PutConflictFunction ( _bstr_t pbstr ) {
- HRESULT _hr = put_ConflictFunction(pbstr);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
- inline _RecordsetPtr IReplica::GetConflictTables ( ) {
- struct _Recordset * _result;
- HRESULT _hr = get_ConflictTables(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _RecordsetPtr(_result, false);
- }
- inline _variant_t IReplica::GetDesignMasterId ( ) {
- VARIANT _result;
- VariantInit(&_result);
- HRESULT _hr = get_DesignMasterId(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _variant_t(_result, false);
- }
- inline void IReplica::PutDesignMasterId ( const _variant_t & pvar ) {
- HRESULT _hr = put_DesignMasterId(pvar);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
- inline long IReplica::GetPriority ( ) {
- long _result;
- HRESULT _hr = get_Priority(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
- inline _variant_t IReplica::GetReplicaId ( ) {
- VARIANT _result;
- VariantInit(&_result);
- HRESULT _hr = get_ReplicaId(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _variant_t(_result, false);
- }
- inline enum ReplicaTypeEnum IReplica::GetReplicaType ( ) {
- enum ReplicaTypeEnum _result;
- HRESULT _hr = get_ReplicaType(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
- inline long IReplica::GetRetentionPeriod ( ) {
- long _result;
- HRESULT _hr = get_RetentionPeriod(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
- inline void IReplica::PutRetentionPeriod ( long pl ) {
- HRESULT _hr = put_RetentionPeriod(pl);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- }
- inline enum VisibilityEnum IReplica::GetVisibility ( ) {
- enum VisibilityEnum _result;
- HRESULT _hr = get_Visibility(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
- inline HRESULT IReplica::CreateReplica ( _bstr_t replicaName, _bstr_t description, enum ReplicaTypeEnum ReplicaType, enum VisibilityEnum Visibility, long Priority, enum UpdatabilityEnum updatability ) {
- HRESULT _hr = raw_CreateReplica(replicaName, description, ReplicaType, Visibility, Priority, updatability);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
- inline VARIANT_BOOL IReplica::GetObjectReplicability ( _bstr_t objectName, _bstr_t objectType ) {
- VARIANT_BOOL _result;
- HRESULT _hr = raw_GetObjectReplicability(objectName, objectType, &_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
- inline HRESULT IReplica::SetObjectReplicability ( _bstr_t objectName, _bstr_t objectType, VARIANT_BOOL replicability ) {
- HRESULT _hr = raw_SetObjectReplicability(objectName, objectType, replicability);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
- inline HRESULT IReplica::MakeReplicable ( _bstr_t connectionString, VARIANT_BOOL columnTracking ) {
- HRESULT _hr = raw_MakeReplicable(connectionString, columnTracking);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
- inline HRESULT IReplica::PopulatePartial ( _bstr_t FullReplica ) {
- HRESULT _hr = raw_PopulatePartial(FullReplica);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
- inline HRESULT IReplica::Synchronize ( _bstr_t target, enum SyncTypeEnum syncType, enum SyncModeEnum syncMode ) {
- HRESULT _hr = raw_Synchronize(target, syncType, syncMode);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
- inline FiltersPtr IReplica::GetFilters ( ) {
- struct Filters * _result;
- HRESULT _hr = get_Filters(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return FiltersPtr(_result, false);
- }
- //
- // interface Filters wrapper method implementations
- //
- inline HRESULT Filters::Refresh ( ) {
- HRESULT _hr = raw_Refresh();
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
- inline IUnknownPtr Filters::_NewEnum ( ) {
- IUnknown * _result;
- HRESULT _hr = raw__NewEnum(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return IUnknownPtr(_result, false);
- }
- inline long Filters::GetCount ( ) {
- long _result;
- HRESULT _hr = get_Count(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
- inline FilterPtr Filters::GetItem ( const _variant_t & Index ) {
- struct Filter * _result;
- HRESULT _hr = get_Item(Index, &_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return FilterPtr(_result, false);
- }
- inline HRESULT Filters::Append ( _bstr_t TableName, enum FilterTypeEnum FilterType, _bstr_t FilterCriteria ) {
- HRESULT _hr = raw_Append(TableName, FilterType, FilterCriteria);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
- inline HRESULT Filters::Delete ( const _variant_t & Index ) {
- HRESULT _hr = raw_Delete(Index);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
- //
- // interface Filter wrapper method implementations
- //
- inline _bstr_t Filter::GetTableName ( ) {
- BSTR _result;
- HRESULT _hr = get_TableName(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _bstr_t(_result, false);
- }
- inline enum FilterTypeEnum Filter::GetFilterType ( ) {
- enum FilterTypeEnum _result;
- HRESULT _hr = get_FilterType(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _result;
- }
- inline _bstr_t Filter::GetFilterCriteria ( ) {
- BSTR _result;
- HRESULT _hr = get_FilterCriteria(&_result);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _bstr_t(_result, false);
- }
- //
- // interface IJetEngine wrapper method implementations
- //
- inline HRESULT IJetEngine::CompactDatabase ( _bstr_t SourceConnection, _bstr_t Destconnection ) {
- HRESULT _hr = raw_CompactDatabase(SourceConnection, Destconnection);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
- inline HRESULT IJetEngine::RefreshCache ( struct _Connection * Connection ) {
- HRESULT _hr = raw_RefreshCache(Connection);
- if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
- return _hr;
- }
|