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.

114 lines
2.7 KiB

  1. /*
  2. * olestock.h - Stock OLE header file.
  3. */
  4. #ifdef __cplusplus
  5. extern "C" { /* Assume C declarations for C++. */
  6. #endif /* __cplusplus */
  7. /* Types
  8. ********/
  9. /* IDs */
  10. DECLARE_STANDARD_TYPES(GUID);
  11. DECLARE_STANDARD_TYPES(CLSID);
  12. DECLARE_STANDARD_TYPES(IID);
  13. typedef FARPROC *Interface;
  14. DECLARE_STANDARD_TYPES(Interface);
  15. /* interfaces */
  16. DECLARE_STANDARD_TYPES(IAdviseSink);
  17. DECLARE_STANDARD_TYPES(IBindCtx);
  18. DECLARE_STANDARD_TYPES(IClassFactory);
  19. DECLARE_STANDARD_TYPES(IDataObject);
  20. DECLARE_STANDARD_TYPES(IDropSource);
  21. DECLARE_STANDARD_TYPES(IDropTarget);
  22. DECLARE_STANDARD_TYPES(IEnumFORMATETC);
  23. DECLARE_STANDARD_TYPES(IEnumSTATDATA);
  24. DECLARE_STANDARD_TYPES(IMalloc);
  25. DECLARE_STANDARD_TYPES(IMoniker);
  26. DECLARE_STANDARD_TYPES(IPersist);
  27. DECLARE_STANDARD_TYPES(IPersistFile);
  28. DECLARE_STANDARD_TYPES(IPersistStorage);
  29. DECLARE_STANDARD_TYPES(IPersistStream);
  30. DECLARE_STANDARD_TYPES(IStorage);
  31. DECLARE_STANDARD_TYPES(IStream);
  32. DECLARE_STANDARD_TYPES(IUnknown);
  33. /* structures */
  34. DECLARE_STANDARD_TYPES(DVTARGETDEVICE);
  35. DECLARE_STANDARD_TYPES(FORMATETC);
  36. DECLARE_STANDARD_TYPES(STGMEDIUM);
  37. /* advise flags */
  38. typedef enum advise_flags
  39. {
  40. ALL_ADVISE_FLAGS = (ADVF_NODATA |
  41. ADVF_PRIMEFIRST |
  42. ADVF_ONLYONCE |
  43. ADVF_DATAONSTOP |
  44. ADVFCACHE_NOHANDLER |
  45. ADVFCACHE_FORCEBUILTIN |
  46. ADVFCACHE_ONSAVE)
  47. }
  48. ADVISE_FLAGS;
  49. /* data transfer direction flags */
  50. typedef enum datadir_flags
  51. {
  52. ALL_DATADIR_FLAGS = (DATADIR_GET |
  53. DATADIR_SET)
  54. }
  55. DATADIR_FLAGS;
  56. /* drop effects */
  57. typedef enum drop_effects
  58. {
  59. ALL_DROPEFFECT_FLAGS = (DROPEFFECT_NONE |
  60. DROPEFFECT_COPY |
  61. DROPEFFECT_MOVE |
  62. DROPEFFECT_LINK |
  63. DROPEFFECT_SCROLL)
  64. }
  65. DROP_EFFECTS;
  66. /* mouse message key states */
  67. typedef enum mk_flags
  68. {
  69. ALL_KEYSTATE_FLAGS = (MK_LBUTTON |
  70. MK_RBUTTON |
  71. MK_SHIFT |
  72. MK_CONTROL |
  73. MK_MBUTTON)
  74. }
  75. MK_FLAGS;
  76. /* medium types */
  77. typedef enum tymeds
  78. {
  79. ALL_TYMED_FLAGS = (TYMED_HGLOBAL |
  80. TYMED_FILE |
  81. TYMED_ISTREAM |
  82. TYMED_ISTORAGE |
  83. TYMED_GDI |
  84. TYMED_MFPICT |
  85. TYMED_ENHMF)
  86. }
  87. TYMEDS;
  88. #ifdef __cplusplus
  89. } /* End of extern "C" {. */
  90. #endif /* __cplusplus */