📄 dao360.tli
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (7d958e2f).
//
// DAO360.tli
//
// Wrapper implementations for Win32 type library C:\Program Files\Common Files\Microsoft Shared\DAO\DAO360.DLL
// compiler-generated file created 09/15/05 at 20:38:34 - DO NOT EDIT!
#pragma once
//
// interface _DAO wrapper method implementations
//
inline PropertiesPtr _DAO::GetProperties ( ) {
struct Properties * _result;
HRESULT _hr = get_Properties(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return PropertiesPtr(_result, false);
}
//
// interface _DBEngine wrapper method implementations
//
inline _bstr_t _DBEngine::GetVersion ( ) {
BSTR _result;
HRESULT _hr = get_Version(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t _DBEngine::GetIniPath ( ) {
BSTR _result;
HRESULT _hr = get_IniPath(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _DBEngine::PutIniPath ( _bstr_t pbstr ) {
HRESULT _hr = put_IniPath(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void _DBEngine::PutDefaultUser ( _bstr_t _arg1 ) {
HRESULT _hr = put_DefaultUser(_arg1);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void _DBEngine::PutDefaultPassword ( _bstr_t _arg1 ) {
HRESULT _hr = put_DefaultPassword(_arg1);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline short _DBEngine::GetLoginTimeout ( ) {
short _result;
HRESULT _hr = get_LoginTimeout(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _DBEngine::PutLoginTimeout ( short ps ) {
HRESULT _hr = put_LoginTimeout(ps);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline WorkspacesPtr _DBEngine::GetWorkspaces ( ) {
struct Workspaces * _result;
HRESULT _hr = get_Workspaces(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return WorkspacesPtr(_result, false);
}
inline ErrorsPtr _DBEngine::GetErrors ( ) {
struct Errors * _result;
HRESULT _hr = get_Errors(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ErrorsPtr(_result, false);
}
inline HRESULT _DBEngine::Idle ( const _variant_t & Action ) {
HRESULT _hr = raw_Idle(Action);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _DBEngine::CompactDatabase ( _bstr_t SrcName, _bstr_t DstName, const _variant_t & DstLocale, const _variant_t & Options, const _variant_t & SrcLocale ) {
HRESULT _hr = raw_CompactDatabase(SrcName, DstName, DstLocale, Options, SrcLocale);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _DBEngine::RepairDatabase ( _bstr_t Name ) {
HRESULT _hr = raw_RepairDatabase(Name);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _DBEngine::RegisterDatabase ( _bstr_t Dsn, _bstr_t Driver, VARIANT_BOOL Silent, _bstr_t Attributes ) {
HRESULT _hr = raw_RegisterDatabase(Dsn, Driver, Silent, Attributes);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline WorkspacePtr _DBEngine::_30_CreateWorkspace ( _bstr_t Name, _bstr_t UserName, _bstr_t Password ) {
struct Workspace * _result;
HRESULT _hr = raw__30_CreateWorkspace(Name, UserName, Password, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return WorkspacePtr(_result, false);
}
inline DatabasePtr _DBEngine::OpenDatabase ( _bstr_t Name, const _variant_t & Options, const _variant_t & ReadOnly, const _variant_t & Connect ) {
struct Database * _result;
HRESULT _hr = raw_OpenDatabase(Name, Options, ReadOnly, Connect, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return DatabasePtr(_result, false);
}
inline DatabasePtr _DBEngine::CreateDatabase ( _bstr_t Name, _bstr_t Locale, const _variant_t & Option ) {
struct Database * _result;
HRESULT _hr = raw_CreateDatabase(Name, Locale, Option, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return DatabasePtr(_result, false);
}
inline HRESULT _DBEngine::FreeLocks ( ) {
HRESULT _hr = raw_FreeLocks();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _DBEngine::BeginTrans ( ) {
HRESULT _hr = raw_BeginTrans();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _DBEngine::CommitTrans ( long Option ) {
HRESULT _hr = raw_CommitTrans(Option);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _DBEngine::Rollback ( ) {
HRESULT _hr = raw_Rollback();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _DBEngine::SetDefaultWorkspace ( _bstr_t Name, _bstr_t Password ) {
HRESULT _hr = raw_SetDefaultWorkspace(Name, Password);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _DBEngine::SetDataAccessOption ( short Option, const _variant_t & Value ) {
HRESULT _hr = raw_SetDataAccessOption(Option, Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline long _DBEngine::ISAMStats ( long StatNum, const _variant_t & Reset ) {
long _result;
HRESULT _hr = raw_ISAMStats(StatNum, Reset, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t _DBEngine::GetSystemDB ( ) {
BSTR _result;
HRESULT _hr = get_SystemDB(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _DBEngine::PutSystemDB ( _bstr_t pbstr ) {
HRESULT _hr = put_SystemDB(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline WorkspacePtr _DBEngine::CreateWorkspace ( _bstr_t Name, _bstr_t UserName, _bstr_t Password, const _variant_t & UseType ) {
struct Workspace * _result;
HRESULT _hr = raw_CreateWorkspace(Name, UserName, Password, UseType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return WorkspacePtr(_result, false);
}
inline ConnectionPtr _DBEngine::OpenConnection ( _bstr_t Name, const _variant_t & Options, const _variant_t & ReadOnly, const _variant_t & Connect ) {
struct Connection * _result;
HRESULT _hr = raw_OpenConnection(Name, Options, ReadOnly, Connect, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ConnectionPtr(_result, false);
}
inline long _DBEngine::GetDefaultType ( ) {
long _result;
HRESULT _hr = get_DefaultType(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _DBEngine::PutDefaultType ( long Option ) {
HRESULT _hr = put_DefaultType(Option);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT _DBEngine::SetOption ( long Option, const _variant_t & Value ) {
HRESULT _hr = raw_SetOption(Option, Value);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface _Collection wrapper method implementations
//
inline short _Collection::GetCount ( ) {
short _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 ( _bstr_t Name ) {
HRESULT _hr = raw_Delete(Name);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface Properties wrapper method implementations
//
inline PropertyPtr Properties::GetItem ( const _variant_t & Item ) {
struct Property * _result;
HRESULT _hr = get_Item(Item, &_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 void Property::PutName ( _bstr_t pbstr ) {
HRESULT _hr = put_Name(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline short Property::GetType ( ) {
short _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Property::PutType ( short ptype ) {
HRESULT _hr = put_Type(ptype);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL Property::GetInherited ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Inherited(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface Workspaces wrapper method implementations
//
inline WorkspacePtr Workspaces::GetItem ( const _variant_t & Item ) {
struct Workspace * _result;
HRESULT _hr = get_Item(Item, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return WorkspacePtr(_result, false);
}
//
// interface Workspace wrapper method implementations
//
inline _bstr_t Workspace::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 Workspace::PutName ( _bstr_t pbstr ) {
HRESULT _hr = put_Name(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t Workspace::GetUserName ( ) {
BSTR _result;
HRESULT _hr = get_UserName(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void Workspace::Put_30_UserName ( _bstr_t _arg1 ) {
HRESULT _hr = put__30_UserName(_arg1);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline void Workspace::Put_30_Password ( _bstr_t _arg1 ) {
HRESULT _hr = put__30_Password(_arg1);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline short Workspace::GetIsolateODBCTrans ( ) {
short _result;
HRESULT _hr = get_IsolateODBCTrans(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void Workspace::PutIsolateODBCTrans ( short ps ) {
HRESULT _hr = put_IsolateODBCTrans(ps);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline DatabasesPtr Workspace::GetDatabases ( ) {
struct Databases * _result;
HRESULT _hr = get_Databases(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return DatabasesPtr(_result, false);
}
inline UsersPtr Workspace::GetUsers ( ) {
struct Users * _result;
HRESULT _hr = get_Users(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return UsersPtr(_result, false);
}
inline GroupsPtr Workspace::GetGroups ( ) {
struct Groups * _result;
HRESULT _hr = get_Groups(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return GroupsPtr(_result, false);
}
inline HRESULT Workspace::BeginTrans ( ) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -