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

📄 ssapi.tli

📁 自动化编译工具代码
💻 TLI
📖 第 1 页 / 共 2 页
字号:
    return _result;
}

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

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

//
// interface IVSSUser wrapper method implementations
//

inline HRESULT IVSSUser::Delete ( ) {
    HRESULT _hr = raw_Delete();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

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

inline void IVSSUser::PutPassword ( _bstr_t _arg1 ) {
    HRESULT _hr = put_Password(_arg1);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline VARIANT_BOOL IVSSUser::GetReadOnly ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_ReadOnly(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IVSSUser::PutReadOnly ( VARIANT_BOOL pReadOnly ) {
    HRESULT _hr = put_ReadOnly(pReadOnly);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IVSSUser::GetProjectRights ( _bstr_t Project ) {
    long _result;
    HRESULT _hr = get_ProjectRights(Project, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IVSSUser::PutProjectRights ( _bstr_t Project, long piRightsOut ) {
    HRESULT _hr = put_ProjectRights(Project, piRightsOut);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT IVSSUser::RemoveProjectRights ( _bstr_t Project ) {
    HRESULT _hr = raw_RemoveProjectRights(Project);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface IVSSDatabaseOld wrapper method implementations
//

inline HRESULT IVSSDatabaseOld::Open ( _bstr_t SrcSafeIni, _bstr_t Username, _bstr_t Password ) {
    HRESULT _hr = raw_Open(SrcSafeIni, Username, Password);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t IVSSDatabaseOld::GetSrcSafeIni ( ) {
    BSTR _result;
    HRESULT _hr = get_SrcSafeIni(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t IVSSDatabaseOld::GetDatabaseName ( ) {
    BSTR _result;
    HRESULT _hr = get_DatabaseName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

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

inline _bstr_t IVSSDatabaseOld::GetCurrentProject ( ) {
    BSTR _result;
    HRESULT _hr = get_CurrentProject(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IVSSDatabaseOld::PutCurrentProject ( _bstr_t pPrj ) {
    HRESULT _hr = put_CurrentProject(pPrj);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

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

//
// interface IVSSDatabase wrapper method implementations
//

inline IVSSUserPtr IVSSDatabase::AddUser ( _bstr_t User, _bstr_t Password, VARIANT_BOOL ReadOnly ) {
    struct IVSSUser * _result;
    HRESULT _hr = raw_AddUser(User, Password, ReadOnly, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSUserPtr(_result, false);
}

inline IVSSUserPtr IVSSDatabase::GetUser ( _bstr_t Name ) {
    struct IVSSUser * _result;
    HRESULT _hr = get_User(Name, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSUserPtr(_result, false);
}

inline IVSSUsersPtr IVSSDatabase::GetUsers ( ) {
    struct IVSSUsers * _result;
    HRESULT _hr = get_Users(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSUsersPtr(_result, false);
}

inline VARIANT_BOOL IVSSDatabase::GetProjectRightsEnabled ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_ProjectRightsEnabled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IVSSDatabase::PutProjectRightsEnabled ( VARIANT_BOOL pEnabled ) {
    HRESULT _hr = put_ProjectRightsEnabled(pEnabled);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IVSSDatabase::GetDefaultProjectRights ( ) {
    long _result;
    HRESULT _hr = get_DefaultProjectRights(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IVSSDatabase::PutDefaultProjectRights ( long pRights ) {
    HRESULT _hr = put_DefaultProjectRights(pRights);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface IVSSEventsOld wrapper method implementations
//

inline VARIANT_BOOL IVSSEventsOld::BeforeAdd ( struct IVSSItem * pIPrj, _bstr_t Local ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeAdd(pIPrj, Local, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEventsOld::AfterAdd ( struct IVSSItem * pIItem, _bstr_t Local ) {
    HRESULT _hr = raw_AfterAdd(pIItem, Local);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IVSSEventsOld::BeforeCheckout ( struct IVSSItem * pIItem, _bstr_t Local ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeCheckout(pIItem, Local, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEventsOld::AfterCheckout ( struct IVSSItem * pIItem, _bstr_t Local ) {
    HRESULT _hr = raw_AfterCheckout(pIItem, Local);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IVSSEventsOld::BeforeCheckin ( struct IVSSItem * pIItem, _bstr_t Local ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeCheckin(pIItem, Local, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEventsOld::AfterCheckin ( struct IVSSItem * pIItem, _bstr_t Local ) {
    HRESULT _hr = raw_AfterCheckin(pIItem, Local);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IVSSEventsOld::BeforeUndoCheckout ( struct IVSSItem * pIItem, _bstr_t Local ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeUndoCheckout(pIItem, Local, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEventsOld::AfterUndoCheckout ( struct IVSSItem * pIItem, _bstr_t Local ) {
    HRESULT _hr = raw_AfterUndoCheckout(pIItem, Local);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IVSSEventsOld::BeforeRename ( struct IVSSItem * pIItem, _bstr_t NewName ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeRename(pIItem, NewName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEventsOld::AfterRename ( struct IVSSItem * pIItem, _bstr_t OldName ) {
    HRESULT _hr = raw_AfterRename(pIItem, OldName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IVSSEventsOld::BeforeBranch ( struct IVSSItem * pIItem ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeBranch(pIItem, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEventsOld::AfterBranch ( struct IVSSItem * pIItem ) {
    HRESULT _hr = raw_AfterBranch(pIItem);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IVSSEventsOld::BeforeEvent ( long iEvent, struct IVSSItem * pIItem, _bstr_t Str, const _variant_t & var ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeEvent(iEvent, pIItem, Str, var, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEventsOld::AfterEvent ( long iEvent, struct IVSSItem * pIItem, _bstr_t Str, const _variant_t & var ) {
    HRESULT _hr = raw_AfterEvent(iEvent, pIItem, Str, var);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface IVSSEvents wrapper method implementations
//

inline VARIANT_BOOL IVSSEvents::BeforeAdd ( struct IVSSItem * pIPrj, _bstr_t Local, _bstr_t Comment ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeAdd(pIPrj, Local, Comment, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEvents::AfterAdd ( struct IVSSItem * pIItem, _bstr_t Local, _bstr_t Comment ) {
    HRESULT _hr = raw_AfterAdd(pIItem, Local, Comment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IVSSEvents::BeforeCheckout ( struct IVSSItem * pIItem, _bstr_t Local, _bstr_t Comment ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeCheckout(pIItem, Local, Comment, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEvents::AfterCheckout ( struct IVSSItem * pIItem, _bstr_t Local, _bstr_t Comment ) {
    HRESULT _hr = raw_AfterCheckout(pIItem, Local, Comment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IVSSEvents::BeforeCheckin ( struct IVSSItem * pIItem, _bstr_t Local, _bstr_t Comment ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeCheckin(pIItem, Local, Comment, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEvents::AfterCheckin ( struct IVSSItem * pIItem, _bstr_t Local, _bstr_t Comment ) {
    HRESULT _hr = raw_AfterCheckin(pIItem, Local, Comment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IVSSEvents::BeforeUndoCheckout ( struct IVSSItem * pIItem, _bstr_t Local ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeUndoCheckout(pIItem, Local, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEvents::AfterUndoCheckout ( struct IVSSItem * pIItem, _bstr_t Local ) {
    HRESULT _hr = raw_AfterUndoCheckout(pIItem, Local);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IVSSEvents::BeforeRename ( struct IVSSItem * pIItem, _bstr_t NewName ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeRename(pIItem, NewName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEvents::AfterRename ( struct IVSSItem * pIItem, _bstr_t OldName ) {
    HRESULT _hr = raw_AfterRename(pIItem, OldName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IVSSEvents::BeforeBranch ( struct IVSSItem * pIItem, _bstr_t Comment ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeBranch(pIItem, Comment, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEvents::AfterBranch ( struct IVSSItem * pIItem, _bstr_t Comment ) {
    HRESULT _hr = raw_AfterBranch(pIItem, Comment);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IVSSEvents::BeginCommand ( long unused ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeginCommand(unused, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEvents::EndCommand ( long unused ) {
    HRESULT _hr = raw_EndCommand(unused);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline VARIANT_BOOL IVSSEvents::BeforeEvent ( long iEvent, struct IVSSItem * pIItem, _bstr_t Str, const _variant_t & var ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_BeforeEvent(iEvent, pIItem, Str, var, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IVSSEvents::AfterEvent ( long iEvent, struct IVSSItem * pIItem, _bstr_t Str, const _variant_t & var ) {
    HRESULT _hr = raw_AfterEvent(iEvent, pIItem, Str, var);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface IVSS wrapper method implementations
//

inline IVSSDatabasePtr IVSS::GetVSSDatabase ( ) {
    struct IVSSDatabase * _result;
    HRESULT _hr = get_VSSDatabase(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IVSSDatabasePtr(_result, false);
}

//
// interface IVSSEventHandler wrapper method implementations
//

inline HRESULT IVSSEventHandler::Init ( struct IVSS * pIVSS ) {
    HRESULT _hr = raw_Init(pIVSS);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

⌨️ 快捷键说明

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