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.

49 lines
1.4 KiB

  1. //Prevent windows.h from pulling in OLE 1
  2. #define _INC_OLE
  3. #include <windows.h>
  4. #include <stdlib.h>
  5. #include <shlobj.h>
  6. #include <shellapi.h>
  7. #include <shlobjp.h>
  8. #include <ole2ver.h>
  9. #include <debug.h>
  10. #define SAVE_OBJECTDESCRIPTOR
  11. #define FIX_ROUNDTRIP
  12. #define CCF_CACHE_GLOBAL 32
  13. #define CCF_CACHE_CLSID 32
  14. #define CCF_RENDER_CLSID 32
  15. #define CCFCACHE_TOTAL (CC_FCACHE_GLOBAL+CCF_CACHE_CLSID+CCF_RENDER_CLSID)
  16. HRESULT CScrapData_CreateInstance(LPUNKNOWN * ppunk);
  17. //
  18. // global variables
  19. //
  20. extern UINT g_cRefThisDll; // per-instance
  21. extern HINSTANCE g_hinst;
  22. extern "C" const WCHAR c_wszContents[];
  23. extern "C" const WCHAR c_wszDescriptor[];
  24. #define HINST_THISDLL g_hinst
  25. #define CFID_EMBEDDEDOBJECT 0
  26. #define CFID_OBJECTDESCRIPTOR 1
  27. #define CFID_LINKSRCDESCRIPTOR 2
  28. #define CFID_RICHTEXT 3
  29. #define CFID_SCRAPOBJECT 4
  30. #define CFID_MAX 5
  31. #define CF_EMBEDDEDOBJECT _GetClipboardFormat(CFID_EMBEDDEDOBJECT)
  32. #define CF_OBJECTDESCRIPTOR _GetClipboardFormat(CFID_OBJECTDESCRIPTOR)
  33. #define CF_LINKSRCDESCRIPTOR _GetClipboardFormat(CFID_LINKSRCDESCRIPTOR)
  34. #define CF_RICHTEXT _GetClipboardFormat(CFID_RICHTEXT)
  35. #define CF_SCRAPOBJECT _GetClipboardFormat(CFID_SCRAPOBJECT)
  36. UINT _GetClipboardFormat(UINT id);
  37. void DisplayError(HWND hwndOwner, HRESULT hres, UINT idsMsg, LPCTSTR szFileName);