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.

91 lines
3.2 KiB

  1. // ole2anac.h - anachronisms for pre-release code
  2. #if !defined( _OLE2ANAC_H_ )
  3. #define _OLE2ANAC_H_
  4. #define IIDEQ(riid1, riid2) IsEqualIID(riid1, riid2)
  5. #define CLSIDEQ(rclsid1, rclsid2) IsEqualCLSID(rclsid1, rclsid2)
  6. #define RetryRejectedCall RetryRejectedMessage
  7. #define FileTimeToDosDateTime(pft,pdd,pdt) CoFileTimeToDosDateTime(pft,pdd,pdt)
  8. #define DosDateTimeToFileTime(pdd,pdt,pft) CoDosDateTimeToFileTime(pdd,pdt,pft)
  9. typedef enum tagSTGSTATE
  10. {
  11. STGSTATE_DOC = 1,
  12. STGSTATE_CONVERT = 2,
  13. STGSTATE_FILESTGSAME = 4
  14. } STGSTATE;
  15. #define MK_E_EXCEEDED_DEADLINE MK_E_EXCEEDEDDEADLINE
  16. #define MK_E_NEED_GENERIC MK_E_NEEDGENERIC
  17. #define MK_E_INVALID_EXTENSION MK_E_INVALIDEXTENSION
  18. #define MK_E_INTERMEDIATE_INTERFACE_NOT_SUPPORTED \
  19. MK_E_INTERMEDIATEINTERFACENONOT_SUPPORTED
  20. #define MK_E_NOT_BINDABLE MK_E_NOTBINDABLE
  21. #define S_TRUE S_OK
  22. #define OLEMETHODCALLTYPE STDMETHODCALLTYPE
  23. #define OLEAPICALLTYPE STDAPICALLTYPE
  24. #define OLEAPI STDAPI
  25. #define OLEAPI_(type) STDAPI_(type)
  26. #define OLEMETHOD(method) STDMETHOD(method)
  27. #define OLEMETHOD_(type,method) STDMETHOD_(type,method)
  28. #define OLEMETHODIMP STDMETHODIMP
  29. #define OLEMETHODIMP_(type) STDMETHODIMP_(type)
  30. #define OLESTATIC_(type) static type __export
  31. #define OLESTATICIMP_(type) type __export
  32. #define E_BLANK OLE_E_BLANK
  33. #define E_STATIC OLE_E_STATIC
  34. #define E_NOTRUNNING OLE_E_NOTRUNNING
  35. #define E_FORMAT DV_E_CLIPFORMAT
  36. #define E_UNSPEC E_FAIL
  37. #define OLE_E_CLSID REGDB_E_CLASSNOTREG
  38. #define OLE_E_NOTSUPPORTED E_NOTIMPL
  39. #define OLE_E_REGDB_KEY REGDB_E_KEYMISSING
  40. #define OLE_E_REGDB_FMT REGDB_E_INVALIDVALUE
  41. #define OLEVERB_PRIMARY OLEIVERB_PRIMARY
  42. #define OLEVERB_SHOW OLEIVERB_SHOW
  43. #define DAdvise Advise
  44. #define DUnadvise Unadvise
  45. #define EnumDAdvise EnumAdvise
  46. // these DDE error codes are not returned anymore; these definitions are
  47. // here just to make existing code compile without changes.
  48. #define RPC_E_DDE_FIRST MAKE_SCODE(SEVERITY_ERROR, FACILITY_RPC, 0x100)
  49. #define RPC_E_DDE_BUSY (RPC_E_DDE_FIRST + 0x0)
  50. #define RPC_E_DDE_CANT_UPDATE (RPC_E_DDE_FIRST + 0x1)
  51. #define RPC_E_DDE_INIT (RPC_E_DDE_FIRST + 0x2)
  52. #define RPC_E_DDE_NACK E_FAIL
  53. #define RPC_E_DDE_LAUNCH CO_E_APPNOTFOUND
  54. #define RPC_E_DDE_POST RPC_E_SERVER_DIED
  55. #define RPC_E_DDE_PROTOCOL (RPC_E_DDE_FIRST + 0x6)
  56. #define RPC_E_DDE_REVOKE (RPC_E_DDE_FIRST + 0x7)
  57. #define RPC_E_DDE_SYNTAX_EXECUTE RPC_E_INVALID_PARAMETER
  58. #define RPC_E_DDE_SYNTAX_ITEM RPC_E_INVALID_PARAMETER
  59. #define RPC_E_DDE_UNEXP_MSG (RPC_E_DDE_FIRST + 0xa)
  60. #define RPC_E_DDE_DATA RPC_E_INVALID_PARAMETER
  61. #define RPC_E_CONNECTION_LOST (RPC_E_FIRST + 0x6)
  62. #define RPC_E_BUSY (RPC_E_FIRST + 0x0)
  63. #define RPC_E_MSG_REJECTED (RPC_E_FIRST + 0x1)
  64. #define RPC_E_CANCELLED (RPC_E_FIRST + 0x2)
  65. #define RPC_E_DISPATCH_ASYNCCALL (RPC_E_FIRST + 0x4)
  66. #endif // _OLE2ANAC_H_