| 1818 | } |
| 1819 | |
| 1820 | void ComObject::DebugWriteProperty(IDebugProperties *aDebugger, int aPage, int aPageSize, int aDepth) |
| 1821 | { |
| 1822 | DebugCookie rootCookie; |
| 1823 | aDebugger->BeginProperty(NULL, "object", 2 + (mVarType == VT_DISPATCH)*2 + (mEventSink != NULL), rootCookie); |
| 1824 | if (aPage == 0) |
| 1825 | { |
| 1826 | // For simplicity, assume they all fit within aPageSize. |
| 1827 | |
| 1828 | aDebugger->WriteProperty("Value", ExprTokenType(mVal64)); |
| 1829 | aDebugger->WriteProperty("VarType", ExprTokenType((__int64)mVarType)); |
| 1830 | |
| 1831 | if (mVarType == VT_DISPATCH) |
| 1832 | { |
| 1833 | WriteComObjType(aDebugger, this, "DispatchType", _T("Name")); |
| 1834 | WriteComObjType(aDebugger, this, "DispatchIID", _T("IID")); |
| 1835 | } |
| 1836 | |
| 1837 | if (mEventSink) |
| 1838 | { |
| 1839 | DebugCookie sinkCookie; |
| 1840 | aDebugger->BeginProperty("EventSink", "object", 2, sinkCookie); |
| 1841 | |
| 1842 | if (mEventSink->mAhkObject) |
| 1843 | aDebugger->WriteProperty("Object", ExprTokenType(mEventSink->mAhkObject)); |
| 1844 | else |
| 1845 | aDebugger->WriteProperty("Prefix", ExprTokenType(mEventSink->mPrefix)); |
| 1846 | |
| 1847 | OLECHAR buf[40]; |
| 1848 | if (!StringFromGUID2(mEventSink->mIID, buf, _countof(buf))) |
| 1849 | *buf = 0; |
| 1850 | aDebugger->WriteProperty("IID", ExprTokenType((LPTSTR)(LPCTSTR)CStringTCharFromWCharIfNeeded(buf))); |
| 1851 | |
| 1852 | aDebugger->EndProperty(sinkCookie); |
| 1853 | } |
| 1854 | } |
| 1855 | aDebugger->EndProperty(rootCookie); |
| 1856 | } |
| 1857 | |
| 1858 | #endif |
nothing calls this directly
no test coverage detected