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.

69 lines
2.5 KiB

  1. /*****************************************************************************\
  2. * *
  3. * cobjps.h - Definitions for writing standard proxies and stubs *
  4. * *
  5. * OLE Version 2.0 *
  6. * *
  7. * Copyright (c) 1992-1993, Microsoft Corp. All rights reserved. *
  8. * *
  9. \*****************************************************************************/
  10. #if !defined( _COBJPS_H_ )
  11. #define _COBJPS_H_
  12. /****** IRpcChannel Interface ***********************************************/
  13. interface IRpcChannel : IUnknown
  14. {
  15. STDMETHOD(GetStream)(REFIID iid, int iMethod, BOOL fSend,
  16. BOOL fNoWait, DWORD size, IStream FAR* FAR* ppIStream) = 0;
  17. STDMETHOD(Call)(IStream FAR* pIStream) = 0;
  18. STDMETHOD(GetDestCtx)(DWORD FAR* lpdwDestCtx, LPVOID FAR* lplpvDestCtx) = 0;
  19. STDMETHOD(IsConnected)(void) = 0;
  20. };
  21. /****** IRpcProxy Interface *************************************************/
  22. // IRpcProxy is an interface implemented by proxy objects. A proxy object has
  23. // exactly the same interfaces as the real object in addition to IRpcProxy.
  24. //
  25. interface IRpcProxy : IUnknown
  26. {
  27. STDMETHOD(Connect)(IRpcChannel FAR* pRpcChannel) = 0;
  28. STDMETHOD_(void, Disconnect)(void) = 0;
  29. };
  30. /****** IRpcStub Interface **************************************************/
  31. // IRpcStub is an interface implemented by stub objects.
  32. //
  33. interface IRpcStub : IUnknown
  34. {
  35. STDMETHOD(Connect)(IUnknown FAR* pUnk) = 0;
  36. STDMETHOD_(void, Disconnect)(void) = 0;
  37. STDMETHOD(Invoke)(REFIID iid, int iMethod, IStream FAR* pIStream,
  38. DWORD dwDestCtx, LPVOID lpvDestCtx) = 0;
  39. STDMETHOD_(BOOL, IsIIDSupported)(REFIID iid) = 0;
  40. STDMETHOD_(ULONG, CountRefs)(void) = 0;
  41. };
  42. /****** IPSFactory Interface ************************************************/
  43. // IPSFactory - creates proxies and stubs
  44. //
  45. interface IPSFactory : IUnknown
  46. {
  47. STDMETHOD(CreateProxy)(IUnknown FAR* pUnkOuter, REFIID riid,
  48. IRpcProxy FAR* FAR* ppProxy, void FAR* FAR* ppv) = 0;
  49. STDMETHOD(CreateStub)(REFIID riid, IUnknown FAR* pUnkServer,
  50. IRpcStub FAR* FAR* ppStub) = 0;
  51. };
  52. #endif // _COBJPS_H_