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

📄 ssapi.tli

📁 自动化编译工具代码
💻 TLI
📖 第 1 页 / 共 2 页
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (26302868).
//
// ssapi.tli
//
// Wrapper implementations for Win32 type library D:\VSS\win32\ssapi.dll
// compiler-generated file created 01/22/07 at 09:26:20 - DO NOT EDIT!

#pragma once

//
// interface IVSSItemOld wrapper method implementations
//

inline _bstr_t IVSSItemOld::GetSpec ( ) {
    BSTR _result;
    HRESULT _hr = get_Spec(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline VARIANT_BOOL IVSSItemOld::GetBinary ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_Binary(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IVSSItemOld::PutBinary ( VARIANT_BOOL pbBinary ) {
    HRESULT _hr = put_Binary(pbBinary);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IVSSItemOld::GetDeleted ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_Deleted(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IVSSItemOld::PutDeleted ( VARIANT_BOOL pbDeleted ) {
    HRESULT _hr = put_Deleted(pbDeleted);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline int IVSSItemOld::GetType ( ) {
    int _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t IVSSItemOld::GetLocalSpec ( ) {
    BSTR _result;
    HRESULT _hr = get_LocalSpec(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IVSSItemOld::PutLocalSpec ( _bstr_t pLocal ) {
    HRESULT _hr = put_LocalSpec(pLocal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IVSSItemOld::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 IVSSItemOld::PutName ( _bstr_t pName ) {
    HRESULT _hr = put_Name(pName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline IVSSItemPtr IVSSItemOld::GetParent ( ) {
    struct IVSSItem * _result;
    HRESULT _hr = get_Parent(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSItemPtr(_result, false);
}

inline long IVSSItemOld::GetVersionNumber ( ) {
    long _result;
    HRESULT _hr = get_VersionNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IVSSItemsPtr IVSSItemOld::GetItems ( VARIANT_BOOL IncludeDeleted ) {
    struct IVSSItems * _result;
    HRESULT _hr = get_Items(IncludeDeleted, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSItemsPtr(_result, false);
}

inline HRESULT IVSSItemOld::Get ( BSTR * Local, long iFlags ) {
    HRESULT _hr = raw_Get(Local, iFlags);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IVSSItemOld::Checkout ( _bstr_t Comment, _bstr_t Local, long iFlags ) {
    HRESULT _hr = raw_Checkout(Comment, Local, iFlags);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IVSSItemOld::Checkin ( _bstr_t Comment, _bstr_t Local, long iFlags ) {
    HRESULT _hr = raw_Checkin(Comment, Local, iFlags);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IVSSItemOld::UndoCheckout ( _bstr_t Local, long iFlags ) {
    HRESULT _hr = raw_UndoCheckout(Local, iFlags);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline long IVSSItemOld::GetIsCheckedOut ( ) {
    long _result;
    HRESULT _hr = get_IsCheckedOut(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IVSSCheckoutsPtr IVSSItemOld::GetCheckouts ( ) {
    struct IVSSCheckouts * _result;
    HRESULT _hr = get_Checkouts(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSCheckoutsPtr(_result, false);
}

inline VARIANT_BOOL IVSSItemOld::GetIsDifferent ( _bstr_t Local ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_IsDifferent(Local, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IVSSItemPtr IVSSItemOld::Add ( _bstr_t Local, _bstr_t Comment, long iFlags ) {
    struct IVSSItem * _result;
    HRESULT _hr = raw_Add(Local, Comment, iFlags, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSItemPtr(_result, false);
}

inline IVSSItemPtr IVSSItemOld::NewSubproject ( _bstr_t Name, _bstr_t Comment ) {
    struct IVSSItem * _result;
    HRESULT _hr = raw_NewSubproject(Name, Comment, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSItemPtr(_result, false);
}

inline HRESULT IVSSItemOld::Share ( struct IVSSItem * pIItem, _bstr_t Comment, long iFlags ) {
    HRESULT _hr = raw_Share(pIItem, Comment, iFlags);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IVSSItemOld::Destroy ( ) {
    HRESULT _hr = raw_Destroy();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IVSSItemOld::Move ( struct IVSSItem * pINewParent ) {
    HRESULT _hr = raw_Move(pINewParent);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IVSSItemOld::Label ( _bstr_t Label, _bstr_t Comment ) {
    HRESULT _hr = raw_Label(Label, Comment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline IVSSVersionsPtr IVSSItemOld::GetVersions ( long iFlags ) {
    struct IVSSVersions * _result;
    HRESULT _hr = get_Versions(iFlags, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSVersionsPtr(_result, false);
}

inline IVSSItemPtr IVSSItemOld::GetVersion ( const _variant_t & Version ) {
    struct IVSSItem * _result;
    HRESULT _hr = get_Version(Version, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSItemPtr(_result, false);
}

//
// interface IVSSItem wrapper method implementations
//

inline IVSSItemsPtr IVSSItem::GetLinks ( ) {
    struct IVSSItems * _result;
    HRESULT _hr = get_Links(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSItemsPtr(_result, false);
}

inline IVSSItemPtr IVSSItem::Branch ( _bstr_t Comment, long iFlags ) {
    struct IVSSItem * _result;
    HRESULT _hr = raw_Branch(Comment, iFlags, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSItemPtr(_result, false);
}

//
// interface IVSSItems wrapper method implementations
//

inline long IVSSItems::GetCount ( ) {
    long _result;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IVSSItemPtr IVSSItems::GetItem ( const _variant_t & sItem ) {
    struct IVSSItem * _result;
    HRESULT _hr = get_Item(sItem, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSItemPtr(_result, false);
}

inline IUnknownPtr IVSSItems::_NewEnum ( ) {
    IUnknown * _result;
    HRESULT _hr = raw__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

//
// interface IVSSCheckouts wrapper method implementations
//

inline long IVSSCheckouts::GetCount ( ) {
    long _result;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IVSSCheckoutPtr IVSSCheckouts::GetItem ( const _variant_t & sItem ) {
    struct IVSSCheckout * _result;
    HRESULT _hr = get_Item(sItem, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSCheckoutPtr(_result, false);
}

inline IUnknownPtr IVSSCheckouts::_NewEnum ( ) {
    IUnknown * _result;
    HRESULT _hr = raw__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

//
// interface IVSSCheckout wrapper method implementations
//

inline _bstr_t IVSSCheckout::GetUsername ( ) {
    BSTR _result;
    HRESULT _hr = get_Username(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline DATE IVSSCheckout::GetDate ( ) {
    DATE _result;
    HRESULT _hr = get_Date(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t IVSSCheckout::GetLocalSpec ( ) {
    BSTR _result;
    HRESULT _hr = get_LocalSpec(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t IVSSCheckout::GetMachine ( ) {
    BSTR _result;
    HRESULT _hr = get_Machine(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t IVSSCheckout::GetProject ( ) {
    BSTR _result;
    HRESULT _hr = get_Project(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t IVSSCheckout::GetComment ( ) {
    BSTR _result;
    HRESULT _hr = get_Comment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline long IVSSCheckout::GetVersionNumber ( ) {
    long _result;
    HRESULT _hr = get_VersionNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface IVSSVersions wrapper method implementations
//

inline IUnknownPtr IVSSVersions::_NewEnum ( ) {
    IUnknown * _result;
    HRESULT _hr = raw__NewEnum(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IUnknownPtr(_result, false);
}

//
// interface IVSSVersionOld wrapper method implementations
//

inline _bstr_t IVSSVersionOld::GetUsername ( ) {
    BSTR _result;
    HRESULT _hr = get_Username(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline long IVSSVersionOld::GetVersionNumber ( ) {
    long _result;
    HRESULT _hr = get_VersionNumber(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t IVSSVersionOld::GetAction ( ) {
    BSTR _result;
    HRESULT _hr = get_Action(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline DATE IVSSVersionOld::GetDate ( ) {
    DATE _result;
    HRESULT _hr = get_Date(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _bstr_t IVSSVersionOld::GetComment ( ) {
    BSTR _result;
    HRESULT _hr = get_Comment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t IVSSVersionOld::GetLabel ( ) {
    BSTR _result;
    HRESULT _hr = get_Label(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline IVSSItemPtr IVSSVersionOld::GetVSSItem ( ) {
    struct IVSSItem * _result;
    HRESULT _hr = get_VSSItem(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSItemPtr(_result, false);
}

//
// interface IVSSVersion wrapper method implementations
//

inline _bstr_t IVSSVersion::GetLabelComment ( ) {
    BSTR _result;
    HRESULT _hr = get_LabelComment(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

//
// interface IVSSUsers wrapper method implementations
//

inline long IVSSUsers::GetCount ( ) {
    long _result;
    HRESULT _hr = get_Count(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));

⌨️ 快捷键说明

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