⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inftypelib.tli

📁 利用COM组件技术实现了控制AUTUCAD的启动。
💻 TLI
📖 第 1 页 / 共 5 页
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (96e4fe98).
//
// InfTypeLIb.tli
//
// Wrapper implementations for Win32 type library InfTypeLIb.tlb
// compiler-generated file created 08/24/06 at 08:07:32 - DO NOT EDIT!


//
// interface CATBaseUnknown wrapper method implementations
//

#pragma implementation_key(1)
inline HRESULT CATBaseUnknown::Destructor ( ) {
    HRESULT _hr = raw_Destructor();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(2)
inline HRESULT CATBaseUnknown::GetMetaObject ( ) {
    HRESULT _hr = raw_GetMetaObject();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(3)
inline HRESULT CATBaseUnknown::IsA ( ) {
    HRESULT _hr = raw_IsA();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(4)
inline HRESULT CATBaseUnknown::IsAKindOf ( ) {
    HRESULT _hr = raw_IsAKindOf();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(5)
inline HRESULT CATBaseUnknown::GetImpl ( ) {
    HRESULT _hr = raw_GetImpl();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(6)
inline HRESULT CATBaseUnknown::SetImpl ( ) {
    HRESULT _hr = raw_SetImpl();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(7)
inline HRESULT CATBaseUnknown::IsNull ( ) {
    HRESULT _hr = raw_IsNull();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(8)
inline HRESULT CATBaseUnknown::IsEqual ( ) {
    HRESULT _hr = raw_IsEqual();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(9)
inline HRESULT CATBaseUnknown::SurChargeQI ( ) {
    HRESULT _hr = raw_SurChargeQI();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(10)
inline HRESULT CATBaseUnknown::ChangeComponentState ( ) {
    HRESULT _hr = raw_ChangeComponentState();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface ModelElement wrapper method implementations
//

#pragma implementation_key(11)
inline _bstr_t ModelElement::GetInternalName ( ) {
    BSTR _result;
    HRESULT _hr = get_InternalName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(12)
inline _bstr_t ModelElement::GetDisplayName ( ) {
    BSTR _result;
    HRESULT _hr = get_DisplayName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(13)
inline void ModelElement::PutDisplayName ( BSTR * ioDisplayName ) {
    HRESULT _hr = put_DisplayName(ioDisplayName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(14)
inline DocumentPtr ModelElement::GetDocument ( ) {
    struct Document * _result;
    HRESULT _hr = get_Document(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DocumentPtr(_result, false);
}

//
// interface AnyObject wrapper method implementations
//

#pragma implementation_key(15)
inline ApplicationPtr AnyObject::GetApplication ( ) {
    struct Application * _result;
    HRESULT _hr = get_Application(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ApplicationPtr(_result, false);
}

#pragma implementation_key(16)
inline CATBaseDispatchPtr AnyObject::GetParent ( ) {
    struct CATBaseDispatch * _result;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CATBaseDispatchPtr(_result, false);
}

#pragma implementation_key(17)
inline _bstr_t AnyObject::GetName ( ) {
    BSTR _result;
    HRESULT _hr = get_Name(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(18)
inline void AnyObject::PutName ( BSTR * oNameBSTR ) {
    HRESULT _hr = put_Name(oNameBSTR);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(19)
inline CATBaseDispatchPtr AnyObject::GetItem ( BSTR * IDName ) {
    struct CATBaseDispatch * _result;
    HRESULT _hr = raw_GetItem(IDName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CATBaseDispatchPtr(_result, false);
}

//
// interface Document wrapper method implementations
//

#pragma implementation_key(20)
inline _bstr_t Document::GetFullName ( ) {
    BSTR _result;
    HRESULT _hr = get_FullName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(21)
inline _bstr_t Document::GetPath ( ) {
    BSTR _result;
    HRESULT _hr = get_Path(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(22)
inline VARIANT_BOOL Document::GetReadOnly ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_ReadOnly(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(23)
inline VARIANT_BOOL Document::GetSaved ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_Saved(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(24)
inline VARIANT_BOOL Document::GetSeeHiddenElements ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_SeeHiddenElements(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(25)
inline void Document::PutSeeHiddenElements ( VARIANT_BOOL oSeeHiddenElements ) {
    HRESULT _hr = put_SeeHiddenElements(oSeeHiddenElements);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(26)
inline CamerasPtr Document::GetCameras ( ) {
    struct Cameras * _result;
    HRESULT _hr = get_Cameras(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CamerasPtr(_result, false);
}

#pragma implementation_key(27)
inline SelectionPtr Document::GetSelection ( ) {
    struct Selection * _result;
    HRESULT _hr = get_Selection(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return SelectionPtr(_result, false);
}

#pragma implementation_key(28)
inline _bstr_t Document::GetCurrentLayer ( ) {
    BSTR _result;
    HRESULT _hr = get_CurrentLayer(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(29)
inline void Document::PutCurrentLayer ( BSTR * oCurrentLayer ) {
    HRESULT _hr = put_CurrentLayer(oCurrentLayer);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(30)
inline _bstr_t Document::GetCurrentFilter ( ) {
    BSTR _result;
    HRESULT _hr = get_CurrentFilter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(31)
inline void Document::PutCurrentFilter ( BSTR * oCurrentFilter ) {
    HRESULT _hr = put_CurrentFilter(oCurrentFilter);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(32)
inline HRESULT Document::CreateFilter ( BSTR * iFilterName, BSTR * iFilterDefinition ) {
    HRESULT _hr = raw_CreateFilter(iFilterName, iFilterDefinition);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(33)
inline HRESULT Document::RemoveFilter ( BSTR * iFilterName ) {
    HRESULT _hr = raw_RemoveFilter(iFilterName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(34)
inline _bstr_t Document::Indicate2D ( BSTR * iMessage, SAFEARRAY * ioDocumentWindowLocation ) {
    BSTR _result;
    HRESULT _hr = raw_Indicate2D(iMessage, ioDocumentWindowLocation, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(35)
inline _bstr_t Document::Indicate3D ( struct AnyObject * iPlanarGeometricObject, BSTR * iMessage, SAFEARRAY * ioWindowLocation2D, SAFEARRAY * ioWindowLocation3D ) {
    BSTR _result;
    HRESULT _hr = raw_Indicate3D(iPlanarGeometricObject, iMessage, ioWindowLocation2D, ioWindowLocation3D, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(36)
inline ReferencePtr Document::CreateReferenceFromName ( BSTR * iLabel ) {
    struct Reference * _result;
    HRESULT _hr = raw_CreateReferenceFromName(iLabel, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ReferencePtr(_result, false);
}

#pragma implementation_key(37)
inline WindowPtr Document::NewWindow ( ) {
    struct Window * _result;
    HRESULT _hr = raw_NewWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

#pragma implementation_key(38)
inline HRESULT Document::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(39)
inline HRESULT Document::Save ( ) {
    HRESULT _hr = raw_Save();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(40)
inline HRESULT Document::SaveAs ( BSTR * fileName ) {
    HRESULT _hr = raw_SaveAs(fileName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(41)
inline HRESULT Document::ExportData ( BSTR * fileName, BSTR * format ) {
    HRESULT _hr = raw_ExportData(fileName, format);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(42)
inline HRESULT Document::Close ( ) {
    HRESULT _hr = raw_Close();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(43)
inline WorkbenchPtr Document::GetWorkbench ( BSTR * workbenchName ) {
    struct Workbench * _result;
    HRESULT _hr = raw_GetWorkbench(workbenchName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WorkbenchPtr(_result, false);
}

//
// interface Application wrapper method implementations
//

#pragma implementation_key(44)
inline DocumentsPtr Application::GetDocuments ( ) {
    struct Documents * _result;
    HRESULT _hr = get_Documents(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DocumentsPtr(_result, false);
}

#pragma implementation_key(45)
inline DocumentPtr Application::GetActiveDocument ( ) {
    struct Document * _result;
    HRESULT _hr = get_ActiveDocument(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DocumentPtr(_result, false);
}

#pragma implementation_key(46)
inline WindowsPtr Application::GetWindows ( ) {
    struct Windows * _result;
    HRESULT _hr = get_Windows(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowsPtr(_result, false);
}

#pragma implementation_key(47)
inline WindowPtr Application::GetActiveWindow ( ) {
    struct Window * _result;
    HRESULT _hr = get_ActiveWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

#pragma implementation_key(48)
inline PrintersPtr Application::GetPrinters ( ) {
    struct Printers * _result;
    HRESULT _hr = get_Printers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PrintersPtr(_result, false);
}

#pragma implementation_key(49)
inline PrinterPtr Application::GetActivePrinter ( ) {
    struct Printer * _result;
    HRESULT _hr = get_ActivePrinter(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PrinterPtr(_result, false);
}

#pragma implementation_key(50)
inline void Application::PutActivePrinter ( struct Printer * oPrinter ) {
    HRESULT _hr = put_ActivePrinter(oPrinter);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(51)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -