Leaked source code of windows server 2003
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.

28 lines
692 B

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