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.

78 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. #define LOCAL_PROTSEQ L"ncalrpc"
  16. // -----------------------------------------------------------------------
  17. // Internal Interface used by handlers.
  18. //
  19. // NOTE: connect happens during unmarshal
  20. // NOTE: implemented as part of the std identity object
  21. //
  22. //
  23. // History
  24. // 12-Dec-96 Gopalk Added new function to obtain
  25. // connection status with the
  26. // server object on the client side
  27. // -----------------------------------------------------------------------
  28. interface IProxyManager : public IUnknown
  29. {
  30. STDMETHOD(CreateServer)(REFCLSID rclsid, DWORD clsctx, void *pv) = 0;
  31. STDMETHOD_(BOOL, IsConnected)(void) = 0;
  32. STDMETHOD(LockConnection)(BOOL fLock, BOOL fLastUnlockReleases) = 0;
  33. STDMETHOD_(void, Disconnect)(void) = 0;
  34. STDMETHOD(GetConnectionStatus)(void) = 0;
  35. #ifdef SERVER_HANDLER
  36. STDMETHOD(CreateServerWithEmbHandler)(REFCLSID rclsid, DWORD clsctx,
  37. REFIID riidEmbedSrvHandler,
  38. void **ppEmbedSrvHandler, void *pv) = 0;
  39. #endif // SERVER_HANDLER
  40. };
  41. STDAPI GetInProcFreeMarshaler(IMarshal **ppIM);
  42. #include <obase.h> // ORPC base definitions
  43. typedef const IPID &REFIPID; // reference to Interface Pointer IDentifier
  44. typedef const OID &REFOID; // reference to Object IDentifier
  45. typedef const OXID &REFOXID; // reference to Object Exporter IDentifier
  46. typedef const MID &REFMID; // reference to Machine IDentifier
  47. typedef GUID MOXID; // OXID + MID
  48. typedef const MOXID &REFMOXID; // reference to OXID + MID
  49. typedef GUID MOID; // OID + MID
  50. typedef const MOID &REFMOID; // reference to OID + MID
  51. // flag for default handler to pass to CreateIdentityHandler
  52. #define STDID_CLIENT_DEFHANDLER 0x401
  53. STDAPI CreateIdentityHandler(IUnknown *pUnkOuter, DWORD flags,
  54. CObjectContext *pServerCtx, DWORD dwAptId,
  55. REFIID riid, void **ppv);
  56. // DDE Init/Cleanup Functions
  57. INTERNAL CheckInitDde(BOOL fServingObject);
  58. void CheckUninitDde(BOOL fLastUninit);
  59. #include <iface.h>
  60. #endif // _OLEREM_H