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.

83 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 LPDIRECTSOUNDCAPTURE8
  14. #ifndef _DSOUNDCAPTUREOBJ_H_
  15. #define _DSOUNDCAPTUREOBJ_H_
  16. /////////////////////////////////////////////////////////////////////////////
  17. // Direct
  18. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  19. //references as template arguments.
  20. class C_dxj_DirectSoundCaptureObject :
  21. #ifdef USING_IDISPATCH
  22. public CComDualImpl<I_dxj_DirectSoundCapture, &IID_I_dxj_DirectSoundCapture, &LIBID_DIRECTLib>,
  23. public ISupportErrorInfo,
  24. #else
  25. public I_dxj_DirectSoundCapture,
  26. #endif
  27. //public CComCoClass<C_dxj_DirectSoundCaptureObject, &CLSID__dxj_DirectSoundCapture>,
  28. public CComObjectRoot
  29. {
  30. public:
  31. C_dxj_DirectSoundCaptureObject() ;
  32. virtual ~C_dxj_DirectSoundCaptureObject() ;
  33. BEGIN_COM_MAP(C_dxj_DirectSoundCaptureObject)
  34. COM_INTERFACE_ENTRY(I_dxj_DirectSoundCapture)
  35. #ifdef USING_IDISPATCH
  36. COM_INTERFACE_ENTRY(IDispatch)
  37. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  38. #endif
  39. END_COM_MAP()
  40. // DECLARE_REGISTRY(CLSID__dxj_DirectSoundCapture, "DIRECT.DirectSoundCapture.5", "DIRECT.DirectSoundCapture.5", IDS_DSOUNDBUFFER_DESC, THREADFLAGS_BOTH)
  41. // Use DECLARE_NOT_AGGREGATABLE(C_dxj_DirectSoundCaptureObject) if you don't want your object
  42. // to support aggregation
  43. DECLARE_AGGREGATABLE(C_dxj_DirectSoundCaptureObject)
  44. #ifdef USING_IDISPATCH
  45. // ISupportsErrorInfo
  46. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  47. #endif
  48. // I_dxj_DirectSoundCapture
  49. public:
  50. //updated
  51. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalSetObject(
  52. /* [in] */ IUnknown __RPC_FAR *lpdd) ;
  53. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalGetObject(
  54. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *lpdd) ;
  55. HRESULT STDMETHODCALLTYPE createCaptureBuffer(
  56. /* [in] */ DSCBUFFERDESC_CDESC __RPC_FAR *bufferDesc,
  57. /* [retval][out] */ I_dxj_DirectSoundCaptureBuffer __RPC_FAR *__RPC_FAR *ret) ;
  58. HRESULT STDMETHODCALLTYPE getCaps(
  59. /* [out][in] */ DSCCAPS_CDESC __RPC_FAR *caps) ;
  60. private:
  61. DECL_VARIABLE(_dxj_DirectSoundCapture);
  62. public:
  63. DX3J_GLOBAL_LINKS( _dxj_DirectSoundCapture )
  64. };
  65. #endif