title: What is coming in IDataObject?
body: <p>When you implement IDropTarget you must implement this: </p>
  
  <pre><code>virtual HRESULT STDMETHODCALLTYPE Drop( 
              /* [unique][in] */ __RPC__in_opt IDataObject *pDataObj,
              /* [in] */ DWORD grfKeyState,
              /* [in] */ POINTL pt,
              /* [out][in] */ __RPC__inout DWORD *pdwEffect)=0;
  </code></pre>
  
  <p>I want to know what kind of data is coming in the IDataObject.</p>
  
  <p>I did this: </p>
  
  <pre><code>FORMATETC fdrop = {CF_HDROP, 0, DVASPECT_CONTENT, -1, TYMED_HGLOBAL};
  
              if (SUCCEEDED(pDataObj-&gt;QueryGetData(&amp;fdrop)) ){
                  STGMEDIUM stgMedium = {0};
                  stgMedium.tymed = TYMED_HGLOBAL;
                  HRESULT hr = pDataObj-&gt;GetData(&amp;fdrop, &amp;stgMedium);
                  if (SUCCEEDED(hr))
                  {
  </code></pre>
  
  <p>But this only works when someone drop files. I saw that there's also a CF_TEXT and CF_BITMAP, but I don't want to query for all types of Clipboard Formats, so I want to know if there's a way of querying IDataObject's type of data.</p>
  
  <p>CF_HDROP works fine for files, but when I drop an image from a browser for example, I don't know what kind of CF_ to use... I tried CF_BITMAP but doesn't work.</p>