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

📄 mqoa.tli

📁 一个手机通信的源代码 一个手机通信的源代码一个手机通信的源代码
💻 TLI
📖 第 1 页 / 共 4 页
字号:
    long _result;
    HRESULT _hr = get_SenderIdType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

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

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

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

inline long IMSMQMessage2::GetSenderVersion ( ) {
    long _result;
    HRESULT _hr = get_SenderVersion(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline _variant_t IMSMQMessage2::GetExtension ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Extension(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void IMSMQMessage2::PutExtension ( const _variant_t & pvarExtension ) {
    HRESULT _hr = put_Extension(pvarExtension);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMSMQMessage2::GetConnectorTypeGuid ( ) {
    BSTR _result;
    HRESULT _hr = get_ConnectorTypeGuid(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMSMQMessage2::PutConnectorTypeGuid ( _bstr_t pbstrGuidConnectorType ) {
    HRESULT _hr = put_ConnectorTypeGuid(pbstrGuidConnectorType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline IMSMQQueueInfo2Ptr IMSMQMessage2::GetTransactionStatusQueueInfo ( ) {
    struct IMSMQQueueInfo2 * _result;
    HRESULT _hr = get_TransactionStatusQueueInfo(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMSMQQueueInfo2Ptr(_result, false);
}

inline _variant_t IMSMQMessage2::GetDestinationSymmetricKey ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_DestinationSymmetricKey(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void IMSMQMessage2::PutDestinationSymmetricKey ( const _variant_t & pvarDestSymmKey ) {
    HRESULT _hr = put_DestinationSymmetricKey(pvarDestSymmKey);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _variant_t IMSMQMessage2::GetSignature ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_Signature(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline void IMSMQMessage2::PutSignature ( const _variant_t & pvarSignature ) {
    HRESULT _hr = put_Signature(pvarSignature);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IMSMQMessage2::GetAuthenticationProviderType ( ) {
    long _result;
    HRESULT _hr = get_AuthenticationProviderType(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQMessage2::PutAuthenticationProviderType ( long plAuthProvType ) {
    HRESULT _hr = put_AuthenticationProviderType(plAuthProvType);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline _bstr_t IMSMQMessage2::GetAuthenticationProviderName ( ) {
    BSTR _result;
    HRESULT _hr = get_AuthenticationProviderName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IMSMQMessage2::PutAuthenticationProviderName ( _bstr_t pbstrAuthProvName ) {
    HRESULT _hr = put_AuthenticationProviderName(pbstrAuthProvName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline void IMSMQMessage2::PutSenderId ( const _variant_t & pvarSenderId ) {
    HRESULT _hr = put_SenderId(pvarSenderId);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IMSMQMessage2::GetMsgClass ( ) {
    long _result;
    HRESULT _hr = get_MsgClass(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IMSMQMessage2::PutMsgClass ( long plMsgClass ) {
    HRESULT _hr = put_MsgClass(plMsgClass);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline IDispatchPtr IMSMQMessage2::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 IMSMQMessage2::GetTransactionId ( ) {
    VARIANT _result;
    VariantInit(&_result);
    HRESULT _hr = get_TransactionId(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _variant_t(_result, false);
}

inline short IMSMQMessage2::GetIsFirstInTransaction ( ) {
    short _result;
    HRESULT _hr = get_IsFirstInTransaction(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline short IMSMQMessage2::GetIsLastInTransaction ( ) {
    short _result;
    HRESULT _hr = get_IsLastInTransaction(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline IMSMQQueueInfo2Ptr IMSMQMessage2::GetResponseQueueInfo ( ) {
    struct IMSMQQueueInfo2 * _result;
    HRESULT _hr = get_ResponseQueueInfo(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMSMQQueueInfo2Ptr(_result, false);
}

inline void IMSMQMessage2::PutRefResponseQueueInfo ( struct IMSMQQueueInfo2 * ppqinfoResponse ) {
    HRESULT _hr = putref_ResponseQueueInfo(ppqinfoResponse);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

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

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

inline short IMSMQMessage2::GetReceivedAuthenticationLevel ( ) {
    short _result;
    HRESULT _hr = get_ReceivedAuthenticationLevel(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface IMSMQQueueInfos2 wrapper method implementations
//

inline HRESULT IMSMQQueueInfos2::Reset ( ) {
    HRESULT _hr = raw_Reset();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline IMSMQQueueInfo2Ptr IMSMQQueueInfos2::Next ( ) {
    struct IMSMQQueueInfo2 * _result;
    HRESULT _hr = raw_Next(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMSMQQueueInfo2Ptr(_result, false);
}

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

//
// interface IMSMQTransaction wrapper method implementations
//

inline long IMSMQTransaction::GetTransaction ( ) {
    long _result;
    HRESULT _hr = get_Transaction(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IMSMQTransaction::Commit ( VARIANT * fRetaining, VARIANT * grfTC, VARIANT * grfRM ) {
    HRESULT _hr = raw_Commit(fRetaining, grfTC, grfRM);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IMSMQTransaction::Abort ( VARIANT * fRetaining, VARIANT * fAsync ) {
    HRESULT _hr = raw_Abort(fRetaining, fAsync);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface IMSMQCoordinatedTransactionDispenser wrapper method implementations
//

inline IMSMQTransactionPtr IMSMQCoordinatedTransactionDispenser::BeginTransaction ( ) {
    struct IMSMQTransaction * _result;
    HRESULT _hr = raw_BeginTransaction(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMSMQTransactionPtr(_result, false);
}

//
// interface IMSMQTransactionDispenser wrapper method implementations
//

inline IMSMQTransactionPtr IMSMQTransactionDispenser::BeginTransaction ( ) {
    struct IMSMQTransaction * _result;
    HRESULT _hr = raw_BeginTransaction(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMSMQTransactionPtr(_result, false);
}

//
// interface IMSMQQuery2 wrapper method implementations
//

inline IMSMQQueueInfos2Ptr IMSMQQuery2::LookupQueue ( VARIANT * QueueGuid, VARIANT * ServiceTypeGuid, VARIANT * Label, VARIANT * CreateTime, VARIANT * ModifyTime, VARIANT * RelServiceType, VARIANT * RelLabel, VARIANT * RelCreateTime, VARIANT * RelModifyTime ) {
    struct IMSMQQueueInfos2 * _result;
    HRESULT _hr = raw_LookupQueue(QueueGuid, ServiceTypeGuid, Label, CreateTime, ModifyTime, RelServiceType, RelLabel, RelCreateTime, RelModifyTime, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMSMQQueueInfos2Ptr(_result, false);
}

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

//
// interface IMSMQPrivateEvent wrapper method implementations
//

inline long IMSMQPrivateEvent::GetHwnd ( ) {
    long _result;
    HRESULT _hr = get_Hwnd(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline HRESULT IMSMQPrivateEvent::FireArrivedEvent ( struct IMSMQQueue * pq, long msgcursor ) {
    HRESULT _hr = raw_FireArrivedEvent(pq, msgcursor);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline HRESULT IMSMQPrivateEvent::FireArrivedErrorEvent ( struct IMSMQQueue * pq, HRESULT hrStatus, long msgcursor ) {
    HRESULT _hr = raw_FireArrivedErrorEvent(pq, hrStatus, msgcursor);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// dispinterface _DMSMQEventEvents wrapper method implementations
//

inline HRESULT _DMSMQEventEvents::Arrived ( IDispatch * Queue, long Cursor ) {
    return _com_dispatch_method(this, 0x0, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0003", Queue, Cursor);
}

inline HRESULT _DMSMQEventEvents::ArrivedError ( IDispatch * Queue, long ErrorCode, long Cursor ) {
    return _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_EMPTY, NULL, 
        L"\x0009\x0003\x0003", Queue, ErrorCode, Cursor);
}

//
// interface IMSMQTransaction2 wrapper method implementations
//

inline HRESULT IMSMQTransaction2::InitNew ( const _variant_t & varTransaction ) {
    HRESULT _hr = raw_InitNew(varTransaction);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

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

//
// interface IMSMQCoordinatedTransactionDispenser2 wrapper method implementations
//

inline IMSMQTransaction2Ptr IMSMQCoordinatedTransactionDispenser2::BeginTransaction ( ) {
    struct IMSMQTransaction2 * _result;
    HRESULT _hr = raw_BeginTransaction(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMSMQTransaction2Ptr(_result, false);
}

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

//
// interface IMSMQTransactionDispenser2 wrapper method implementations
//

inline IMSMQTransaction2Ptr IMSMQTransactionDispenser2::BeginTransaction ( ) {
    struct IMSMQTransaction2 * _result;
    HRESULT _hr = raw_BeginTransaction(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return IMSMQTransaction2Ptr(_result, false);
}

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

//
// interface IMSMQApplication wrapper method implementations
//

inline _bstr_t IMSMQApplication::MachineIdOfMachineName ( _bstr_t MachineName ) {
    BSTR _result;
    HRESULT _hr = raw_MachineIdOfMachineName(MachineName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

//
// interface IMSMQApplication2 wrapper method implementations
//

inline HRESULT IMSMQApplication2::RegisterCertificate ( VARIANT * Flags, VARIANT * ExternalCertificate ) {
    HRESULT _hr = raw_RegisterCertificate(Flags, ExternalCertificate);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

inline _bstr_t IMSMQApplication2::MachineNameOfMachineId ( _bstr_t bstrGuid ) {
    BSTR _result;
    HRESULT _hr = raw_MachineNameOfMachineId(bstrGuid, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline short IMSMQApplication2::GetMSMQVersionMajor ( ) {
    short _result;
    HRESULT _hr = get_MSMQVersionMajor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline short IMSMQApplication2::GetMSMQVersionMinor ( ) {
    short _result;
    HRESULT _hr = get_MSMQVersionMinor(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline short IMSMQApplication2::GetMSMQVersionBuild ( ) {
    short _result;
    HRESULT _hr = get_MSMQVersionBuild(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline VARIANT_BOOL IMSMQApplication2::GetIsDsEnabled ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_IsDsEnabled(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

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

⌨️ 快捷键说明

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