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.

82 lines
2.6 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: dsoundcaptureobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // dSoundBufferObj.h : Declaration of the C_dxj_DirectSoundCaptureObject
  11. // DHF_DS entire file
  12. #include "resource.h" // main symbols
  13. #define typedef__dxj_DirectSoundCapture LPDIRECTSOUNDCAPTURE
  14. /////////////////////////////////////////////////////////////////////////////
  15. // Direct
  16. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  17. //references as template arguments.
  18. class C_dxj_DirectSoundCaptureObject :
  19. #ifdef USING_IDISPATCH
  20. public CComDualImpl<I_dxj_DirectSoundCapture, &IID_I_dxj_DirectSoundCapture, &LIBID_DIRECTLib>,
  21. public ISupportErrorInfo,
  22. #else
  23. public I_dxj_DirectSoundCapture,
  24. #endif
  25. //public CComCoClass<C_dxj_DirectSoundCaptureObject, &CLSID__dxj_DirectSoundCapture>,
  26. public CComObjectRoot
  27. {
  28. public:
  29. C_dxj_DirectSoundCaptureObject() ;
  30. virtual ~C_dxj_DirectSoundCaptureObject() ;
  31. BEGIN_COM_MAP(C_dxj_DirectSoundCaptureObject)
  32. COM_INTERFACE_ENTRY(I_dxj_DirectSoundCapture)
  33. #ifdef USING_IDISPATCH
  34. COM_INTERFACE_ENTRY(IDispatch)
  35. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  36. #endif
  37. END_COM_MAP()
  38. // DECLARE_REGISTRY(CLSID__dxj_DirectSoundCapture, "DIRECT.DirectSoundCapture.5", "DIRECT.DirectSoundCapture.5", IDS_DSOUNDBUFFER_DESC, THREADFLAGS_BOTH)
  39. // Use DECLARE_NOT_AGGREGATABLE(C_dxj_DirectSoundCaptureObject) if you don't want your object
  40. // to support aggregation
  41. DECLARE_AGGREGATABLE(C_dxj_DirectSoundCaptureObject)
  42. #ifdef USING_IDISPATCH
  43. // ISupportsErrorInfo
  44. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  45. #endif
  46. // I_dxj_DirectSoundCapture
  47. public:
  48. //updated
  49. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalSetObject(
  50. /* [in] */ IUnknown __RPC_FAR *lpdd) ;
  51. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalGetObject(
  52. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *lpdd) ;
  53. HRESULT STDMETHODCALLTYPE createCaptureBuffer(
  54. /* [in] */ DSCBufferDesc __RPC_FAR *bufferDesc,
  55. /* [retval][out] */ I_dxj_DirectSoundCaptureBuffer __RPC_FAR *__RPC_FAR *ret) ;
  56. HRESULT STDMETHODCALLTYPE getCaps(
  57. /* [out][in] */ DSCCaps __RPC_FAR *caps) ;
  58. private:
  59. DECL_VARIABLE(_dxj_DirectSoundCapture);
  60. public:
  61. DX3J_GLOBAL_LINKS( _dxj_DirectSoundCapture )
  62. };