📄 msadox.tli
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (7157e32a).
//
// c:\documents and settings\chenzhigang\桌面\dbdemo\debug\msadox.tli
//
// Wrapper implementations for Win32 type library c:\Program Files\Common Files\system\ado\msadox.dll
// compiler-generated file created 03/30/09 at 12:11:00 - 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 & Item ) {
HRESULT _hr = raw_Delete(Item);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _Catalog wrapper method implementations
//
inline TablesPtr _Catalog::GetTables ( ) {
struct Tables * _result;
HRESULT _hr = get_Tables(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return TablesPtr(_result, false);
}
inline _variant_t _Catalog::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 void _Catalog::PutActiveConnection ( const _variant_t & pVal ) {
HRESULT _hr = put_ActiveConnection(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void _Catalog::PutRefActiveConnection ( IDispatch * pVal ) {
HRESULT _hr = putref_ActiveConnection(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline ProceduresPtr _Catalog::GetProcedures ( ) {
struct Procedures * _result;
HRESULT _hr = get_Procedures(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ProceduresPtr(_result, false);
}
inline ViewsPtr _Catalog::GetViews ( ) {
struct Views * _result;
HRESULT _hr = get_Views(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ViewsPtr(_result, false);
}
inline GroupsPtr _Catalog::GetGroups ( ) {
struct Groups * _result;
HRESULT _hr = get_Groups(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return GroupsPtr(_result, false);
}
inline UsersPtr _Catalog::GetUsers ( ) {
struct Users * _result;
HRESULT _hr = get_Users(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return UsersPtr(_result, false);
}
inline _variant_t _Catalog::Create ( _bstr_t ConnectString ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_Create(ConnectString, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _bstr_t _Catalog::GetObjectOwner ( _bstr_t ObjectName, enum ObjectTypeEnum ObjectType, const _variant_t & ObjectTypeId ) {
BSTR _result;
HRESULT _hr = raw_GetObjectOwner(ObjectName, ObjectType, ObjectTypeId, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline HRESULT _Catalog::SetObjectOwner ( _bstr_t ObjectName, enum ObjectTypeEnum ObjectType, _bstr_t UserName, const _variant_t & ObjectTypeId ) {
HRESULT _hr = raw_SetObjectOwner(ObjectName, ObjectType, UserName, ObjectTypeId);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface Tables wrapper method implementations
//
inline _TablePtr Tables::GetItem ( const _variant_t & Item ) {
struct _Table * _result;
HRESULT _hr = get_Item(Item, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _TablePtr(_result, false);
}
inline HRESULT Tables::Append ( const _variant_t & Item ) {
HRESULT _hr = raw_Append(Item);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Tables::Delete ( const _variant_t & Item ) {
HRESULT _hr = raw_Delete(Item);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _Table wrapper method implementations
//
inline ColumnsPtr _Table::GetColumns ( ) {
struct Columns * _result;
HRESULT _hr = get_Columns(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ColumnsPtr(_result, false);
}
inline _bstr_t _Table::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 _Table::PutName ( _bstr_t pVal ) {
HRESULT _hr = put_Name(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _Table::GetType ( ) {
BSTR _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline IndexesPtr _Table::GetIndexes ( ) {
struct Indexes * _result;
HRESULT _hr = get_Indexes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IndexesPtr(_result, false);
}
inline KeysPtr _Table::GetKeys ( ) {
struct Keys * _result;
HRESULT _hr = get_Keys(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return KeysPtr(_result, false);
}
inline PropertiesPtr _Table::GetProperties ( ) {
struct Properties * _result;
HRESULT _hr = get_Properties(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return PropertiesPtr(_result, false);
}
inline _variant_t _Table::GetDateCreated ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_DateCreated(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _variant_t _Table::GetDateModified ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_DateModified(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _CatalogPtr _Table::GetParentCatalog ( ) {
struct _Catalog * _result;
HRESULT _hr = get_ParentCatalog(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _CatalogPtr(_result, false);
}
inline void _Table::PutParentCatalog ( struct _Catalog * ppvObject ) {
HRESULT _hr = put_ParentCatalog(ppvObject);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void _Table::PutRefParentCatalog ( struct _Catalog * ppvObject ) {
HRESULT _hr = putref_ParentCatalog(ppvObject);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface Columns wrapper method implementations
//
inline _ColumnPtr Columns::GetItem ( const _variant_t & Item ) {
struct _Column * _result;
HRESULT _hr = get_Item(Item, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _ColumnPtr(_result, false);
}
inline HRESULT Columns::Append ( const _variant_t & Item, enum DataTypeEnum Type, long DefinedSize ) {
HRESULT _hr = raw_Append(Item, Type, DefinedSize);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT Columns::Delete ( const _variant_t & Item ) {
HRESULT _hr = raw_Delete(Item);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _Column wrapper method implementations
//
inline _bstr_t _Column::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 _Column::PutName ( _bstr_t pVal ) {
HRESULT _hr = put_Name(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum ColumnAttributesEnum _Column::GetAttributes ( ) {
enum ColumnAttributesEnum _result;
HRESULT _hr = get_Attributes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Column::PutAttributes ( enum ColumnAttributesEnum pVal ) {
HRESULT _hr = put_Attributes(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Column::GetDefinedSize ( ) {
long _result;
HRESULT _hr = get_DefinedSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Column::PutDefinedSize ( long pVal ) {
HRESULT _hr = put_DefinedSize(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline unsigned char _Column::GetNumericScale ( ) {
unsigned char _result;
HRESULT _hr = get_NumericScale(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Column::PutNumericScale ( unsigned char pVal ) {
HRESULT _hr = put_NumericScale(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Column::GetPrecision ( ) {
long _result;
HRESULT _hr = get_Precision(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -