Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
645 B

  1. #include "shellprv.h"
  2. #pragma hdrstop
  3. STDAPI PIF_AddPages(IDataObject *pdtobj, LPFNADDPROPSHEETPAGE pfnAddPage, LPARAM lParam)
  4. {
  5. STGMEDIUM medium;
  6. FORMATETC fmte = { CF_HDROP, NULL, DVASPECT_CONTENT, -1, TYMED_HGLOBAL};
  7. HRESULT hr = pdtobj->lpVtbl->GetData(pdtobj, &fmte, &medium);
  8. if (SUCCEEDED(hr))
  9. {
  10. HDROP hdrop = (HDROP)GlobalLock(medium.hGlobal);
  11. if (hdrop)
  12. {
  13. PifMgrDLL_Init(); // Initialize pif stuff
  14. PifPropGetPages(hdrop, pfnAddPage, lParam);
  15. GlobalUnlock(medium.hGlobal);
  16. }
  17. ReleaseStgMedium(&medium);
  18. }
  19. return S_OK;
  20. }