📄 mqoa.tli
字号:
HRESULT _hr = get_Access(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IMSMQQueue2::GetShareMode ( ) {
long _result;
HRESULT _hr = get_ShareMode(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline IMSMQQueueInfo2Ptr IMSMQQueue2::GetQueueInfo ( ) {
struct IMSMQQueueInfo2 * _result;
HRESULT _hr = get_QueueInfo(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQQueueInfo2Ptr(_result, false);
}
inline long IMSMQQueue2::GetHandle ( ) {
long _result;
HRESULT _hr = get_Handle(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline short IMSMQQueue2::GetIsOpen ( ) {
short _result;
HRESULT _hr = get_IsOpen(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT IMSMQQueue2::Close ( ) {
HRESULT _hr = raw_Close();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IMSMQMessagePtr IMSMQQueue2::Receive_v1 ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
struct IMSMQMessage * _result;
HRESULT _hr = raw_Receive_v1(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQMessagePtr(_result, false);
}
inline IMSMQMessagePtr IMSMQQueue2::Peek_v1 ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
struct IMSMQMessage * _result;
HRESULT _hr = raw_Peek_v1(WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQMessagePtr(_result, false);
}
inline HRESULT IMSMQQueue2::EnableNotification ( struct IMSMQEvent2 * Event, VARIANT * Cursor, VARIANT * ReceiveTimeout ) {
HRESULT _hr = raw_EnableNotification(Event, Cursor, ReceiveTimeout);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IMSMQQueue2::Reset ( ) {
HRESULT _hr = raw_Reset();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IMSMQMessagePtr IMSMQQueue2::ReceiveCurrent_v1 ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
struct IMSMQMessage * _result;
HRESULT _hr = raw_ReceiveCurrent_v1(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQMessagePtr(_result, false);
}
inline IMSMQMessagePtr IMSMQQueue2::PeekNext_v1 ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
struct IMSMQMessage * _result;
HRESULT _hr = raw_PeekNext_v1(WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQMessagePtr(_result, false);
}
inline IMSMQMessagePtr IMSMQQueue2::PeekCurrent_v1 ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout ) {
struct IMSMQMessage * _result;
HRESULT _hr = raw_PeekCurrent_v1(WantDestinationQueue, WantBody, ReceiveTimeout, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQMessagePtr(_result, false);
}
inline IMSMQMessage2Ptr IMSMQQueue2::Receive ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
struct IMSMQMessage2 * _result;
HRESULT _hr = raw_Receive(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQMessage2Ptr(_result, false);
}
inline IMSMQMessage2Ptr IMSMQQueue2::Peek ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
struct IMSMQMessage2 * _result;
HRESULT _hr = raw_Peek(WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQMessage2Ptr(_result, false);
}
inline IMSMQMessage2Ptr IMSMQQueue2::ReceiveCurrent ( VARIANT * Transaction, VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
struct IMSMQMessage2 * _result;
HRESULT _hr = raw_ReceiveCurrent(Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQMessage2Ptr(_result, false);
}
inline IMSMQMessage2Ptr IMSMQQueue2::PeekNext ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
struct IMSMQMessage2 * _result;
HRESULT _hr = raw_PeekNext(WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQMessage2Ptr(_result, false);
}
inline IMSMQMessage2Ptr IMSMQQueue2::PeekCurrent ( VARIANT * WantDestinationQueue, VARIANT * WantBody, VARIANT * ReceiveTimeout, VARIANT * WantConnectorType ) {
struct IMSMQMessage2 * _result;
HRESULT _hr = raw_PeekCurrent(WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQMessage2Ptr(_result, false);
}
inline IDispatchPtr IMSMQQueue2::GetProperties ( ) {
IDispatch * _result;
HRESULT _hr = get_Properties(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
//
// interface IMSMQEvent2 wrapper method implementations
//
inline IDispatchPtr IMSMQEvent2::GetProperties ( ) {
IDispatch * _result;
HRESULT _hr = get_Properties(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IDispatchPtr(_result, false);
}
//
// interface IMSMQMessage2 wrapper method implementations
//
inline long IMSMQMessage2::GetClass ( ) {
long _result;
HRESULT _hr = get_Class(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IMSMQMessage2::GetPrivLevel ( ) {
long _result;
HRESULT _hr = get_PrivLevel(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IMSMQMessage2::PutPrivLevel ( long plPrivLevel ) {
HRESULT _hr = put_PrivLevel(plPrivLevel);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IMSMQMessage2::GetAuthLevel ( ) {
long _result;
HRESULT _hr = get_AuthLevel(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IMSMQMessage2::PutAuthLevel ( long plAuthLevel ) {
HRESULT _hr = put_AuthLevel(plAuthLevel);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline short IMSMQMessage2::GetIsAuthenticated ( ) {
short _result;
HRESULT _hr = get_IsAuthenticated(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IMSMQMessage2::GetDelivery ( ) {
long _result;
HRESULT _hr = get_Delivery(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IMSMQMessage2::PutDelivery ( long plDelivery ) {
HRESULT _hr = put_Delivery(plDelivery);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IMSMQMessage2::GetTrace ( ) {
long _result;
HRESULT _hr = get_Trace(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IMSMQMessage2::PutTrace ( long plTrace ) {
HRESULT _hr = put_Trace(plTrace);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IMSMQMessage2::GetPriority ( ) {
long _result;
HRESULT _hr = get_Priority(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IMSMQMessage2::PutPriority ( long plPriority ) {
HRESULT _hr = put_Priority(plPriority);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IMSMQMessage2::GetJournal ( ) {
long _result;
HRESULT _hr = get_Journal(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IMSMQMessage2::PutJournal ( long plJournal ) {
HRESULT _hr = put_Journal(plJournal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline IMSMQQueueInfoPtr IMSMQMessage2::GetResponseQueueInfo_v1 ( ) {
struct IMSMQQueueInfo * _result;
HRESULT _hr = get_ResponseQueueInfo_v1(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQQueueInfoPtr(_result, false);
}
inline void IMSMQMessage2::PutRefResponseQueueInfo_v1 ( struct IMSMQQueueInfo * ppqinfoResponse ) {
HRESULT _hr = putref_ResponseQueueInfo_v1(ppqinfoResponse);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IMSMQMessage2::GetAppSpecific ( ) {
long _result;
HRESULT _hr = get_AppSpecific(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IMSMQMessage2::PutAppSpecific ( long plAppSpecific ) {
HRESULT _hr = put_AppSpecific(plAppSpecific);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t IMSMQMessage2::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 IMSMQMessage2::GetBodyLength ( ) {
long _result;
HRESULT _hr = get_BodyLength(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _variant_t IMSMQMessage2::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 IMSMQMessage2::PutBody ( const _variant_t & pvarBody ) {
HRESULT _hr = put_Body(pvarBody);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline IMSMQQueueInfoPtr IMSMQMessage2::GetAdminQueueInfo_v1 ( ) {
struct IMSMQQueueInfo * _result;
HRESULT _hr = get_AdminQueueInfo_v1(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQQueueInfoPtr(_result, false);
}
inline void IMSMQMessage2::PutRefAdminQueueInfo_v1 ( struct IMSMQQueueInfo * ppqinfoAdmin ) {
HRESULT _hr = putref_AdminQueueInfo_v1(ppqinfoAdmin);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _variant_t IMSMQMessage2::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 IMSMQMessage2::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 IMSMQMessage2::PutCorrelationId ( const _variant_t & pvarMsgId ) {
HRESULT _hr = put_CorrelationId(pvarMsgId);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IMSMQMessage2::GetAck ( ) {
long _result;
HRESULT _hr = get_Ack(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IMSMQMessage2::PutAck ( long plAck ) {
HRESULT _hr = put_Ack(plAck);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t IMSMQMessage2::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 IMSMQMessage2::PutLabel ( _bstr_t pbstrLabel ) {
HRESULT _hr = put_Label(pbstrLabel);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IMSMQMessage2::GetMaxTimeToReachQueue ( ) {
long _result;
HRESULT _hr = get_MaxTimeToReachQueue(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IMSMQMessage2::PutMaxTimeToReachQueue ( long plMaxTimeToReachQueue ) {
HRESULT _hr = put_MaxTimeToReachQueue(plMaxTimeToReachQueue);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IMSMQMessage2::GetMaxTimeToReceive ( ) {
long _result;
HRESULT _hr = get_MaxTimeToReceive(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IMSMQMessage2::PutMaxTimeToReceive ( long plMaxTimeToReceive ) {
HRESULT _hr = put_MaxTimeToReceive(plMaxTimeToReceive);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IMSMQMessage2::GetHashAlgorithm ( ) {
long _result;
HRESULT _hr = get_HashAlgorithm(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IMSMQMessage2::PutHashAlgorithm ( long plHashAlg ) {
HRESULT _hr = put_HashAlgorithm(plHashAlg);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IMSMQMessage2::GetEncryptAlgorithm ( ) {
long _result;
HRESULT _hr = get_EncryptAlgorithm(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IMSMQMessage2::PutEncryptAlgorithm ( long plEncryptAlg ) {
HRESULT _hr = put_EncryptAlgorithm(plEncryptAlg);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _variant_t IMSMQMessage2::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 IMSMQMessage2::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 IMSMQQueueInfo2Ptr IMSMQMessage2::GetDestinationQueueInfo ( ) {
struct IMSMQQueueInfo2 * _result;
HRESULT _hr = get_DestinationQueueInfo(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IMSMQQueueInfo2Ptr(_result, false);
}
inline _variant_t IMSMQMessage2::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 IMSMQMessage2::PutSenderCertificate ( const _variant_t & pvarSenderCert ) {
HRESULT _hr = put_SenderCertificate(pvarSenderCert);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _variant_t IMSMQMessage2::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 IMSMQMessage2::GetSenderIdType ( ) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -