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.

82 lines
2.7 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: olerem.h
  7. //
  8. // Synopsis: this file contain the base definitions for types and APIs
  9. // exposed by the ORPC layer to upper layers.
  10. //
  11. //+-------------------------------------------------------------------------
  12. #if !defined( _OLEREM_H_ )
  13. #define _OLEREM_H_
  14. // default transport for same-machine communication
  15. #ifdef _CHICAGO_
  16. #define LOCAL_PROTSEQ L"mswmsg"
  17. #else
  18. #define LOCAL_PROTSEQ L"ncalrpc"
  19. #endif
  20. // -----------------------------------------------------------------------
  21. // Internal Interface used by handlers.
  22. //
  23. // NOTE: connect happens during unmarshal
  24. // NOTE: implemented as part of the std identity object
  25. //
  26. //
  27. // History
  28. // 12-Dec-96 Gopalk Added new function to obtain
  29. // connection status with the
  30. // server object on the client side
  31. // -----------------------------------------------------------------------
  32. interface IProxyManager : public IUnknown
  33. {
  34. STDMETHOD(CreateServer)(REFCLSID rclsid, DWORD clsctx, void *pv) = 0;
  35. STDMETHOD_(BOOL, IsConnected)(void) = 0;
  36. STDMETHOD(LockConnection)(BOOL fLock, BOOL fLastUnlockReleases) = 0;
  37. STDMETHOD_(void, Disconnect)(void) = 0;
  38. STDMETHOD(GetConnectionStatus)(void) = 0;
  39. #ifdef SERVER_HANDLER
  40. STDMETHOD(CreateServerWithEmbHandler)(REFCLSID rclsid, DWORD clsctx,
  41. REFIID riidEmbedSrvHandler,
  42. void **ppEmbedSrvHandler, void *pv) = 0;
  43. #endif // SERVER_HANDLER
  44. };
  45. STDAPI GetInProcFreeMarshaler(IMarshal **ppIM);
  46. #include <obase.h> // ORPC base definitions
  47. typedef const IPID &REFIPID; // reference to Interface Pointer IDentifier
  48. typedef const OID &REFOID; // reference to Object IDentifier
  49. typedef const OXID &REFOXID; // reference to Object Exporter IDentifier
  50. typedef const MID &REFMID; // reference to Machine IDentifier
  51. typedef GUID MOXID; // OXID + MID
  52. typedef const MOXID &REFMOXID; // reference to OXID + MID
  53. typedef GUID MOID; // OID + MID
  54. typedef const MOID &REFMOID; // reference to OID + MID
  55. // flag for default handler to pass to CreateIdentityHandler
  56. #define STDID_CLIENT_DEFHANDLER 0x401
  57. STDAPI CreateIdentityHandler(IUnknown *pUnkOuter, DWORD flags,
  58. CObjectContext *pServerCtx, DWORD dwAptId,
  59. REFIID riid, void **ppv);
  60. // DDE Init/Cleanup Functions
  61. INTERNAL CheckInitDde(BOOL fServingObject);
  62. void CheckUninitDde(BOOL fLastUninit);
  63. #include <iface.h>
  64. #endif // _OLEREM_H