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

📄 mqoa.tli

📁 一个手机通信的源代码 一个手机通信的源代码一个手机通信的源代码
💻 TLI
📖 第 1 页 / 共 4 页
字号:
inline void IMSMQMessage::PutAppSpecific ( long plAppSpecific ) {
    HRESULT _hr = put_AppSpecific(plAppSpecific);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMSMQMessage::GetSourceMachineGuid ( ) {
    BSTR _result;
    HRESULT _hr = get_SourceMachineGuid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline long IMSMQMessage::GetBodyLength ( ) {
    long _result;
    HRESULT _hr = get_BodyLength(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _variant_t IMSMQMessage::GetBody ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Body(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void IMSMQMessage::PutBody ( const _variant_t & pvarBody ) {
    HRESULT _hr = put_Body(pvarBody);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline IMSMQQueueInfoPtr IMSMQMessage::GetAdminQueueInfo ( ) {
    struct IMSMQQueueInfo * _result;
    HRESULT _hr = get_AdminQueueInfo(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMSMQQueueInfoPtr(_result, false);
}

inline void IMSMQMessage::PutRefAdminQueueInfo ( struct IMSMQQueueInfo * ppqinfoAdmin ) {
    HRESULT _hr = putref_AdminQueueInfo(ppqinfoAdmin);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t IMSMQMessage::GetId ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Id(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline _variant_t IMSMQMessage::GetCorrelationId ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_CorrelationId(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void IMSMQMessage::PutCorrelationId ( const _variant_t & pvarMsgId ) {
    HRESULT _hr = put_CorrelationId(pvarMsgId);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IMSMQMessage::GetAck ( ) {
    long _result;
    HRESULT _hr = get_Ack(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQMessage::PutAck ( long plAck ) {
    HRESULT _hr = put_Ack(plAck);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

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

inline void IMSMQMessage::PutLabel ( _bstr_t pbstrLabel ) {
    HRESULT _hr = put_Label(pbstrLabel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IMSMQMessage::GetMaxTimeToReachQueue ( ) {
    long _result;
    HRESULT _hr = get_MaxTimeToReachQueue(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQMessage::PutMaxTimeToReachQueue ( long plMaxTimeToReachQueue ) {
    HRESULT _hr = put_MaxTimeToReachQueue(plMaxTimeToReachQueue);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IMSMQMessage::GetMaxTimeToReceive ( ) {
    long _result;
    HRESULT _hr = get_MaxTimeToReceive(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQMessage::PutMaxTimeToReceive ( long plMaxTimeToReceive ) {
    HRESULT _hr = put_MaxTimeToReceive(plMaxTimeToReceive);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IMSMQMessage::GetHashAlgorithm ( ) {
    long _result;
    HRESULT _hr = get_HashAlgorithm(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQMessage::PutHashAlgorithm ( long plHashAlg ) {
    HRESULT _hr = put_HashAlgorithm(plHashAlg);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IMSMQMessage::GetEncryptAlgorithm ( ) {
    long _result;
    HRESULT _hr = get_EncryptAlgorithm(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQMessage::PutEncryptAlgorithm ( long plEncryptAlg ) {
    HRESULT _hr = put_EncryptAlgorithm(plEncryptAlg);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t IMSMQMessage::GetSentTime ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_SentTime(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline _variant_t IMSMQMessage::GetArrivedTime ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_ArrivedTime(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline IMSMQQueueInfoPtr IMSMQMessage::GetDestinationQueueInfo ( ) {
    struct IMSMQQueueInfo * _result;
    HRESULT _hr = get_DestinationQueueInfo(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMSMQQueueInfoPtr(_result, false);
}

inline _variant_t IMSMQMessage::GetSenderCertificate ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_SenderCertificate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void IMSMQMessage::PutSenderCertificate ( const _variant_t & pvarSenderCert ) {
    HRESULT _hr = put_SenderCertificate(pvarSenderCert);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t IMSMQMessage::GetSenderId ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_SenderId(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline long IMSMQMessage::GetSenderIdType ( ) {
    long _result;
    HRESULT _hr = get_SenderIdType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQMessage::PutSenderIdType ( long plSenderIdType ) {
    HRESULT _hr = put_SenderIdType(plSenderIdType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline HRESULT IMSMQMessage::Send ( struct IMSMQQueue * DestinationQueue, VARIANT * Transaction ) {
    HRESULT _hr = raw_Send(DestinationQueue, Transaction);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IMSMQMessage::AttachCurrentSecurityContext ( ) {
    HRESULT _hr = raw_AttachCurrentSecurityContext();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface IMSMQQueueInfo2 wrapper method implementations
//

inline _bstr_t IMSMQQueueInfo2::GetQueueGuid ( ) {
    BSTR _result;
    HRESULT _hr = get_QueueGuid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline _bstr_t IMSMQQueueInfo2::GetServiceTypeGuid ( ) {
    BSTR _result;
    HRESULT _hr = get_ServiceTypeGuid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMSMQQueueInfo2::PutServiceTypeGuid ( _bstr_t pbstrGuidServiceType ) {
    HRESULT _hr = put_ServiceTypeGuid(pbstrGuidServiceType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

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

inline void IMSMQQueueInfo2::PutLabel ( _bstr_t pbstrLabel ) {
    HRESULT _hr = put_Label(pbstrLabel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMSMQQueueInfo2::GetPathName ( ) {
    BSTR _result;
    HRESULT _hr = get_PathName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMSMQQueueInfo2::PutPathName ( _bstr_t pbstrPathName ) {
    HRESULT _hr = put_PathName(pbstrPathName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMSMQQueueInfo2::GetFormatName ( ) {
    BSTR _result;
    HRESULT _hr = get_FormatName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMSMQQueueInfo2::PutFormatName ( _bstr_t pbstrFormatName ) {
    HRESULT _hr = put_FormatName(pbstrFormatName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline short IMSMQQueueInfo2::GetIsTransactional ( ) {
    short _result;
    HRESULT _hr = get_IsTransactional(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IMSMQQueueInfo2::GetPrivLevel ( ) {
    long _result;
    HRESULT _hr = get_PrivLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQQueueInfo2::PutPrivLevel ( long plPrivLevel ) {
    HRESULT _hr = put_PrivLevel(plPrivLevel);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IMSMQQueueInfo2::GetJournal ( ) {
    long _result;
    HRESULT _hr = get_Journal(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQQueueInfo2::PutJournal ( long plJournal ) {
    HRESULT _hr = put_Journal(plJournal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IMSMQQueueInfo2::GetQuota ( ) {
    long _result;
    HRESULT _hr = get_Quota(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQQueueInfo2::PutQuota ( long plQuota ) {
    HRESULT _hr = put_Quota(plQuota);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IMSMQQueueInfo2::GetBasePriority ( ) {
    long _result;
    HRESULT _hr = get_BasePriority(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQQueueInfo2::PutBasePriority ( long plBasePriority ) {
    HRESULT _hr = put_BasePriority(plBasePriority);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t IMSMQQueueInfo2::GetCreateTime ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_CreateTime(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline _variant_t IMSMQQueueInfo2::GetModifyTime ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_ModifyTime(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline long IMSMQQueueInfo2::GetAuthenticate ( ) {
    long _result;
    HRESULT _hr = get_Authenticate(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQQueueInfo2::PutAuthenticate ( long plAuthenticate ) {
    HRESULT _hr = put_Authenticate(plAuthenticate);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IMSMQQueueInfo2::GetJournalQuota ( ) {
    long _result;
    HRESULT _hr = get_JournalQuota(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQQueueInfo2::PutJournalQuota ( long plJournalQuota ) {
    HRESULT _hr = put_JournalQuota(plJournalQuota);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline short IMSMQQueueInfo2::GetIsWorldReadable ( ) {
    short _result;
    HRESULT _hr = get_IsWorldReadable(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IMSMQQueueInfo2::Create ( VARIANT * IsTransactional, VARIANT * IsWorldReadable ) {
    HRESULT _hr = raw_Create(IsTransactional, IsWorldReadable);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

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

inline IMSMQQueue2Ptr IMSMQQueueInfo2::Open ( long Access, long ShareMode ) {
    struct IMSMQQueue2 * _result;
    HRESULT _hr = raw_Open(Access, ShareMode, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMSMQQueue2Ptr(_result, false);
}

inline HRESULT IMSMQQueueInfo2::Refresh ( ) {
    HRESULT _hr = raw_Refresh();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IMSMQQueueInfo2::Update ( ) {
    HRESULT _hr = raw_Update();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t IMSMQQueueInfo2::GetPathNameDNS ( ) {
    BSTR _result;
    HRESULT _hr = get_PathNameDNS(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline IDispatchPtr IMSMQQueueInfo2::GetProperties ( ) {
    IDispatch * _result;
    HRESULT _hr = get_Properties(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IDispatchPtr(_result, false);
}

inline _variant_t IMSMQQueueInfo2::GetSecurity ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Security(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void IMSMQQueueInfo2::PutSecurity ( const _variant_t & pvarSecurity ) {
    HRESULT _hr = put_Security(pvarSecurity);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

//
// interface IMSMQQueue2 wrapper method implementations
//

inline long IMSMQQueue2::GetAccess ( ) {
    long _result;

⌨️ 快捷键说明

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