| 246 | } |
| 247 | |
| 248 | HRESULT __stdcall DataObject::QueryGetData(FORMATETC *pFormatEtc) |
| 249 | { |
| 250 | if(pFormatEtc == NULL) |
| 251 | { |
| 252 | return E_INVALIDARG; |
| 253 | } |
| 254 | |
| 255 | for(const auto &dao : m_daoList) |
| 256 | { |
| 257 | if(dao.fe.cfFormat == pFormatEtc->cfFormat && |
| 258 | dao.fe.tymed & pFormatEtc->tymed && |
| 259 | dao.fe.dwAspect == pFormatEtc->dwAspect) |
| 260 | { |
| 261 | return S_OK; |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | return DV_E_FORMATETC; |
| 266 | } |
| 267 | |
| 268 | HRESULT __stdcall DataObject::GetCanonicalFormatEtc(FORMATETC *pFormatEtcIn,FORMATETC *pFormatEtcOut) |
| 269 | { |
no outgoing calls