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.

120 lines
2.9 KiB

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