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.

95 lines
3.2 KiB

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