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.

72 lines
2.2 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // INTEL Corporation Proprietary Information
  3. // This listing is supplied under the terms of a license agreement with Intel
  4. // Corporation and many not be copied nor disclosed except in accordance
  5. // with the terms of that agreement.
  6. // Copyright (c) 1995, 1996 Intel Corporation.
  7. //
  8. //
  9. // Module Name: ippm.h
  10. // Abstract: Header file for PPM Interface
  11. // Environment: MSVC 4.0, OLE 2
  12. /////////////////////////////////////////////////////////////////////////////////
  13. #ifndef IPPM_H
  14. #define IPPM_H
  15. #include "isubmit.h"
  16. #ifdef __cplusplus
  17. #define DEFAULT_PARAM_ZERO =0
  18. #else
  19. #define DEFAULT_PARAM_ZERO
  20. #endif
  21. typedef struct
  22. {
  23. int payload_type;
  24. } PPMSESSPARAM_T;
  25. #define HRESULT_BUFFER_DROP 0x60000001
  26. #define HRESULT_BUFFER_SILENCE 0x60000002
  27. #define HRESULT_BUFFER_NORMAL 0x60000003
  28. #define HRESULT_BUFFER_START_STREAM 0x60000004
  29. #undef INTERFACE
  30. #define INTERFACE IPPMSend
  31. DECLARE_INTERFACE_(IPPMSend,IUnknown)
  32. {
  33. // *** IUnknown methods ***
  34. STDMETHOD(QueryInterface) ( THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  35. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  36. STDMETHOD_(ULONG,Release) (THIS) PURE;
  37. STDMETHOD(InitPPMSend)(THIS_ int MaxPacketSize) PURE;
  38. STDMETHOD(SetSession)(THIS_ PPMSESSPARAM_T *pSessparam)PURE;
  39. STDMETHOD(SetAlloc)(THIS_ IMalloc *pIMalloc)PURE;
  40. };
  41. #undef INTERFACE
  42. #define INTERFACE IPPMReceive
  43. DECLARE_INTERFACE_(IPPMReceive,IUnknown)
  44. {
  45. // *** IUnknown methods ***
  46. STDMETHOD(QueryInterface) ( THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  47. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  48. STDMETHOD_(ULONG,Release) (THIS) PURE;
  49. STDMETHOD(InitPPMReceive)(THIS_ int MaxBufferSize DEFAULT_PARAM_ZERO) PURE;
  50. STDMETHOD(SetSession)(THIS_ PPMSESSPARAM_T *pSessparam)PURE;
  51. STDMETHOD(SetAlloc)(THIS_ IMalloc *pIMalloc)PURE;
  52. };
  53. ////////////////////////////////////////////////////////////////////////////
  54. // Interface ids
  55. //
  56. // {1df95370-f1fe-11cf-ba07-00aa003419d3}
  57. DEFINE_GUID( IID_IPPMSend, 0x1df95370, 0xf1fe, 0x11cf, 0xba, 0x07, 0x00, 0xaa, 0x00, 0x34, 0x19, 0xd3);
  58. // {1df95371-f1fe-11cf-ba07-00aa003419d3}
  59. DEFINE_GUID( IID_IPPMReceive,0x1df95371,0xf1fe, 0x11cf, 0xba, 0x07, 0x00, 0xaa, 0x00, 0x34, 0x19, 0xd3);
  60. #endif