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

📄 inftypelib.tli

📁 利用COM组件技术实现了控制AUTUCAD的启动。
💻 TLI
📖 第 1 页 / 共 5 页
字号:
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FolderPtr(_result, false);
}

#pragma implementation_key(209)
inline void FileComponent::PutParentFolder ( struct Folder * oParentFolder ) {
    HRESULT _hr = put_ParentFolder(oParentFolder);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface Folder wrapper method implementations
//

#pragma implementation_key(210)
inline FilesPtr Folder::GetFiles ( ) {
    struct Files * _result;
    HRESULT _hr = get_Files(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FilesPtr(_result, false);
}

#pragma implementation_key(211)
inline FoldersPtr Folder::GetSubFolders ( ) {
    struct Folders * _result;
    HRESULT _hr = get_SubFolders(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FoldersPtr(_result, false);
}

//
// interface Files wrapper method implementations
//

#pragma implementation_key(212)
inline FilePtr Files::Item ( long iNumber ) {
    struct File * _result;
    HRESULT _hr = raw_Item(iNumber, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FilePtr(_result, false);
}

//
// interface File wrapper method implementations
//

#pragma implementation_key(213)
inline long File::GetSize ( ) {
    long _result;
    HRESULT _hr = get_Size(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(214)
inline _bstr_t File::GetType ( ) {
    BSTR _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(215)
inline TextStreamPtr File::OpenAsTextStream ( BSTR * iMode ) {
    struct TextStream * _result;
    HRESULT _hr = raw_OpenAsTextStream(iMode, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return TextStreamPtr(_result, false);
}

//
// interface TextStream wrapper method implementations
//

#pragma implementation_key(216)
inline VARIANT_BOOL TextStream::GetAtEndOfLine ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_AtEndOfLine(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(217)
inline VARIANT_BOOL TextStream::GetAtEndOfStream ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_AtEndOfStream(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

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

#pragma implementation_key(219)
inline _bstr_t TextStream::Read ( long iNumOfChar ) {
    BSTR _result;
    HRESULT _hr = raw_Read(iNumOfChar, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(220)
inline _bstr_t TextStream::ReadLine ( ) {
    BSTR _result;
    HRESULT _hr = raw_ReadLine(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(221)
inline HRESULT TextStream::Write ( BSTR * iWrittenString ) {
    HRESULT _hr = raw_Write(iWrittenString);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Folders wrapper method implementations
//

#pragma implementation_key(222)
inline FolderPtr Folders::Item ( long iNumber ) {
    struct Folder * _result;
    HRESULT _hr = raw_Item(iNumber, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return FolderPtr(_result, false);
}

//
// interface SystemService wrapper method implementations
//

#pragma implementation_key(223)
inline _bstr_t SystemService::Environ ( BSTR * iEnvString ) {
    BSTR _result;
    HRESULT _hr = raw_Environ(iEnvString, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(224)
inline HRESULT SystemService::Print ( BSTR * iString ) {
    HRESULT _hr = raw_Print(iString);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(225)
inline long SystemService::ExecuteProcessus ( BSTR * iExecutablePath ) {
    long _result;
    HRESULT _hr = raw_ExecuteProcessus(iExecutablePath, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(226)
inline long SystemService::ExecuteBackgroundProcessus ( BSTR * iExecutablePath ) {
    long _result;
    HRESULT _hr = raw_ExecuteBackgroundProcessus(iExecutablePath, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(227)
inline _variant_t SystemService::ExecuteScript ( BSTR * iLibraryName, enum CatScriptLibraryType iType, BSTR * iProgramName, BSTR * iFunctionName, SAFEARRAY * iParameters ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_ExecuteScript(iLibraryName, iType, iProgramName, iFunctionName, iParameters, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

#pragma implementation_key(228)
inline _variant_t SystemService::Evaluate ( BSTR * iScriptText, enum CATScriptLanguage iLanguage, BSTR * iFunctionName, SAFEARRAY * iParameters ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = raw_Evaluate(iScriptText, iLanguage, iFunctionName, iParameters, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

//
// interface Batch wrapper method implementations
//

#pragma implementation_key(229)
inline _bstr_t Batch::GetBatchDescriptorPath ( ) {
    BSTR _result;
    HRESULT _hr = get_BatchDescriptorPath(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(230)
inline void Batch::PutBatchDescriptorPath ( BSTR * oPath ) {
    HRESULT _hr = put_BatchDescriptorPath(oPath);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(231)
inline _bstr_t Batch::GetBatchDescriptorPathFromParam ( ) {
    BSTR _result;
    HRESULT _hr = get_BatchDescriptorPathFromParam(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(232)
inline void Batch::PutBatchDescriptorPathFromParam ( BSTR * oPath ) {
    HRESULT _hr = put_BatchDescriptorPathFromParam(oPath);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(233)
inline _bstr_t Batch::GetParametersPath ( ) {
    BSTR _result;
    HRESULT _hr = get_ParametersPath(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(234)
inline void Batch::PutParametersPath ( BSTR * oPath ) {
    HRESULT _hr = put_ParametersPath(oPath);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(235)
inline VARIANT_BOOL Batch::GetLocal ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_Local(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(236)
inline void Batch::PutLocal ( VARIANT_BOOL oLocal ) {
    HRESULT _hr = put_Local(oLocal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(237)
inline BatchElementPtr Batch::GetBatchParameters ( ) {
    struct BatchElement * _result;
    HRESULT _hr = get_BatchParameters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BatchElementPtr(_result, false);
}

#pragma implementation_key(238)
inline BatchElementPtr Batch::GetInputParameters ( ) {
    struct BatchElement * _result;
    HRESULT _hr = get_InputParameters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BatchElementPtr(_result, false);
}

#pragma implementation_key(239)
inline BatchElementPtr Batch::GetOutputParameters ( ) {
    struct BatchElement * _result;
    HRESULT _hr = get_OutputParameters(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BatchElementPtr(_result, false);
}

#pragma implementation_key(240)
inline BatchElementPtr Batch::GetPCs ( ) {
    struct BatchElement * _result;
    HRESULT _hr = get_PCs(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BatchElementPtr(_result, false);
}

#pragma implementation_key(241)
inline BatchLogPtr Batch::GetBatchLog ( ) {
    struct BatchLog * _result;
    HRESULT _hr = get_BatchLog(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BatchLogPtr(_result, false);
}

#pragma implementation_key(242)
inline BatchOutputPtr Batch::GetBatchOutput ( ) {
    struct BatchOutput * _result;
    HRESULT _hr = get_BatchOutput(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BatchOutputPtr(_result, false);
}

#pragma implementation_key(243)
inline long Batch::GetId ( ) {
    long _result;
    HRESULT _hr = get_Id(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(244)
inline _bstr_t Batch::GetUUID ( ) {
    BSTR _result;
    HRESULT _hr = get_UUID(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(245)
inline void Batch::PutUUID ( BSTR * oUUID ) {
    HRESULT _hr = put_UUID(oUUID);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(246)
inline _bstr_t Batch::GetDescription ( ) {
    BSTR _result;
    HRESULT _hr = get_Description(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(247)
inline _bstr_t Batch::GetLanguage ( ) {
    BSTR _result;
    HRESULT _hr = get_Language(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(248)
inline _bstr_t Batch::GetScript ( ) {
    BSTR _result;
    HRESULT _hr = get_Script(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(249)
inline _bstr_t Batch::GetInputFormat ( ) {
    BSTR _result;
    HRESULT _hr = get_InputFormat(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(250)
inline _bstr_t Batch::GetCategory ( ) {
    BSTR _result;
    HRESULT _hr = get_Category(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(251)
inline _bstr_t Batch::GetCommandLine ( ) {
    BSTR _result;
    HRESULT _hr = get_CommandLine(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(252)
inline long Batch::GetSettingMode ( ) {
    long _result;
    HRESULT _hr = get_SettingMode(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface BatchElement wrapper method implementations
//

#pragma implementation_key(253)
inline BatchElementsPtr BatchElement::GetChildren ( ) {
    struct BatchElements * _result;
    HRESULT _hr = get_Children(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return BatchElementsPtr(_result, false);
}

#pragma implementation_key(254)
inline _bstr_t BatchElement::GetTagName ( ) {
    BSTR _result;
    HRESULT _hr = get_TagName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(255)
inline BatchElementPtr BatchElement::GetParentElement ( ) {
    struct BatchElement * _result;
    HRESULT _hr = get_ParentElement(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuido

⌨️ 快捷键说明

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