📄 msxml.tli
字号:
inline _bstr_t IXMLDocument::GetfileModifiedDate ( ) {
BSTR _result;
HRESULT _hr = get_fileModifiedDate(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IXMLDocument::GetfileUpdatedDate ( ) {
BSTR _result;
HRESULT _hr = get_fileUpdatedDate(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IXMLDocument::Geturl ( ) {
BSTR _result;
HRESULT _hr = get_url(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void IXMLDocument::Puturl ( _bstr_t p ) {
HRESULT _hr = put_url(p);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t IXMLDocument::GetmimeType ( ) {
BSTR _result;
HRESULT _hr = get_mimeType(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline long IXMLDocument::GetreadyState ( ) {
long _result;
HRESULT _hr = get_readyState(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t IXMLDocument::Getcharset ( ) {
BSTR _result;
HRESULT _hr = get_charset(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void IXMLDocument::Putcharset ( _bstr_t p ) {
HRESULT _hr = put_charset(p);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t IXMLDocument::Getversion ( ) {
BSTR _result;
HRESULT _hr = get_version(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IXMLDocument::Getdoctype ( ) {
BSTR _result;
HRESULT _hr = get_doctype(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IXMLDocument::GetdtdURL ( ) {
BSTR _result;
HRESULT _hr = get_dtdURL(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline IXMLElementPtr IXMLDocument::createElement ( const _variant_t & vType, const _variant_t & var1 ) {
struct IXMLElement * _result;
HRESULT _hr = raw_createElement(vType, var1, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IXMLElementPtr(_result, false);
}
//
// interface IXMLElement wrapper method implementations
//
inline _bstr_t IXMLElement::GettagName ( ) {
BSTR _result;
HRESULT _hr = get_tagName(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void IXMLElement::PuttagName ( _bstr_t p ) {
HRESULT _hr = put_tagName(p);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline IXMLElementPtr IXMLElement::Getparent ( ) {
struct IXMLElement * _result;
HRESULT _hr = get_parent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IXMLElementPtr(_result, false);
}
inline HRESULT IXMLElement::setAttribute ( _bstr_t strPropertyName, const _variant_t & PropertyValue ) {
HRESULT _hr = raw_setAttribute(strPropertyName, PropertyValue);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _variant_t IXMLElement::getAttribute ( _bstr_t strPropertyName ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_getAttribute(strPropertyName, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline HRESULT IXMLElement::removeAttribute ( _bstr_t strPropertyName ) {
HRESULT _hr = raw_removeAttribute(strPropertyName);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IXMLElementCollectionPtr IXMLElement::Getchildren ( ) {
struct IXMLElementCollection * _result;
HRESULT _hr = get_children(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IXMLElementCollectionPtr(_result, false);
}
inline long IXMLElement::Gettype ( ) {
long _result;
HRESULT _hr = get_type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t IXMLElement::Gettext ( ) {
BSTR _result;
HRESULT _hr = get_text(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void IXMLElement::Puttext ( _bstr_t p ) {
HRESULT _hr = put_text(p);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT IXMLElement::addChild ( struct IXMLElement * pChildElem, long lIndex, long lReserved ) {
HRESULT _hr = raw_addChild(pChildElem, lIndex, lReserved);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IXMLElement::removeChild ( struct IXMLElement * pChildElem ) {
HRESULT _hr = raw_removeChild(pChildElem);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface IXMLDocument2 wrapper method implementations
//
inline IXMLElement2Ptr IXMLDocument2::Getroot ( ) {
struct IXMLElement2 * _result;
HRESULT _hr = get_root(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IXMLElement2Ptr(_result, false);
}
inline _bstr_t IXMLDocument2::GetfileSize ( ) {
BSTR _result;
HRESULT _hr = get_fileSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IXMLDocument2::GetfileModifiedDate ( ) {
BSTR _result;
HRESULT _hr = get_fileModifiedDate(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IXMLDocument2::GetfileUpdatedDate ( ) {
BSTR _result;
HRESULT _hr = get_fileUpdatedDate(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IXMLDocument2::Geturl ( ) {
BSTR _result;
HRESULT _hr = get_url(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void IXMLDocument2::Puturl ( _bstr_t p ) {
HRESULT _hr = put_url(p);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t IXMLDocument2::GetmimeType ( ) {
BSTR _result;
HRESULT _hr = get_mimeType(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline long IXMLDocument2::GetreadyState ( ) {
long _result;
HRESULT _hr = get_readyState(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t IXMLDocument2::Getcharset ( ) {
BSTR _result;
HRESULT _hr = get_charset(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void IXMLDocument2::Putcharset ( _bstr_t p ) {
HRESULT _hr = put_charset(p);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t IXMLDocument2::Getversion ( ) {
BSTR _result;
HRESULT _hr = get_version(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IXMLDocument2::Getdoctype ( ) {
BSTR _result;
HRESULT _hr = get_doctype(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IXMLDocument2::GetdtdURL ( ) {
BSTR _result;
HRESULT _hr = get_dtdURL(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline IXMLElement2Ptr IXMLDocument2::createElement ( const _variant_t & vType, const _variant_t & var1 ) {
struct IXMLElement2 * _result;
HRESULT _hr = raw_createElement(vType, var1, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IXMLElement2Ptr(_result, false);
}
inline VARIANT_BOOL IXMLDocument2::Getasync ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_async(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IXMLDocument2::Putasync ( VARIANT_BOOL pf ) {
HRESULT _hr = put_async(pf);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface IXMLElement2 wrapper method implementations
//
inline _bstr_t IXMLElement2::GettagName ( ) {
BSTR _result;
HRESULT _hr = get_tagName(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void IXMLElement2::PuttagName ( _bstr_t p ) {
HRESULT _hr = put_tagName(p);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline IXMLElement2Ptr IXMLElement2::Getparent ( ) {
struct IXMLElement2 * _result;
HRESULT _hr = get_parent(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IXMLElement2Ptr(_result, false);
}
inline HRESULT IXMLElement2::setAttribute ( _bstr_t strPropertyName, const _variant_t & PropertyValue ) {
HRESULT _hr = raw_setAttribute(strPropertyName, PropertyValue);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _variant_t IXMLElement2::getAttribute ( _bstr_t strPropertyName ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_getAttribute(strPropertyName, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline HRESULT IXMLElement2::removeAttribute ( _bstr_t strPropertyName ) {
HRESULT _hr = raw_removeAttribute(strPropertyName);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IXMLElementCollectionPtr IXMLElement2::Getchildren ( ) {
struct IXMLElementCollection * _result;
HRESULT _hr = get_children(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IXMLElementCollectionPtr(_result, false);
}
inline long IXMLElement2::Gettype ( ) {
long _result;
HRESULT _hr = get_type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t IXMLElement2::Gettext ( ) {
BSTR _result;
HRESULT _hr = get_text(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void IXMLElement2::Puttext ( _bstr_t p ) {
HRESULT _hr = put_text(p);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT IXMLElement2::addChild ( struct IXMLElement2 * pChildElem, long lIndex, long lReserved ) {
HRESULT _hr = raw_addChild(pChildElem, lIndex, lReserved);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IXMLElement2::removeChild ( struct IXMLElement2 * pChildElem ) {
HRESULT _hr = raw_removeChild(pChildElem);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline IXMLElementCollectionPtr IXMLElement2::Getattributes ( ) {
struct IXMLElementCollection * _result;
HRESULT _hr = get_attributes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IXMLElementCollectionPtr(_result, false);
}
//
// interface IXMLAttribute wrapper method implementations
//
inline _bstr_t IXMLAttribute::Getname ( ) {
BSTR _result;
HRESULT _hr = get_name(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t IXMLAttribute::Getvalue ( ) {
BSTR _result;
HRESULT _hr = get_value(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
//
// interface IXMLError wrapper method implementations
//
inline HRESULT IXMLError::GetErrorInfo ( struct _xml_error * pErrorReturn ) {
HRESULT _hr = raw_GetErrorInfo(pErrorReturn);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -