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.

77 lines
2.0 KiB

  1. #include "resource.h" // main symbols
  2. #define typedef__dxj_DirectPlayVoiceSetup LPDIRECTPLAYVOICETEST
  3. /////////////////////////////////////////////////////////////////////////////
  4. // Direct
  5. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  6. //references as template arguments.
  7. class C_dxj_DirectPlayVoiceSetupObject :
  8. #ifdef USING_IDISPATCH
  9. public CComDualImpl<I_dxj_DirectPlayVoiceSetup, &IID_I_dxj_DirectPlayVoiceSetup, &LIBID_DIRECTLib>,
  10. public ISupportErrorInfo,
  11. #else
  12. public I_dxj_DirectPlayVoiceSetup,
  13. #endif
  14. public CComObjectRoot
  15. {
  16. public:
  17. C_dxj_DirectPlayVoiceSetupObject() ;
  18. virtual ~C_dxj_DirectPlayVoiceSetupObject() ;
  19. BEGIN_COM_MAP(C_dxj_DirectPlayVoiceSetupObject)
  20. COM_INTERFACE_ENTRY(I_dxj_DirectPlayVoiceSetup)
  21. #ifdef USING_IDISPATCH
  22. COM_INTERFACE_ENTRY(IDispatch)
  23. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  24. #endif
  25. END_COM_MAP()
  26. DECLARE_AGGREGATABLE(C_dxj_DirectPlayVoiceSetupObject)
  27. #ifdef USING_IDISPATCH
  28. // ISupportsErrorInfo
  29. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  30. #endif
  31. // I_dxj_DirectPlayVoiceSetup
  32. public:
  33. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalSetObject(
  34. /* [in] */ IUnknown __RPC_FAR *lpdd);
  35. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalGetObject(
  36. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *lpdd);
  37. HRESULT STDMETHODCALLTYPE CheckAudioSetup (
  38. /* [in] */ BSTR guidPlaybackDevice,
  39. /* [in] */ BSTR guidCaptureDevice,
  40. #ifdef _WIN64
  41. /* [in] */ HWND hwndOwner,
  42. #else
  43. /* [in] */ long hwndOwner,
  44. #endif
  45. /* [in] */ long lFlags,
  46. /* [retval][out] */ long __RPC_FAR *v1);
  47. ////////////////////////////////////////////////////////////////////////
  48. //
  49. // note: this is public for the callbacks
  50. DECL_VARIABLE(_dxj_DirectPlayVoiceSetup);
  51. private:
  52. public:
  53. DX3J_GLOBAL_LINKS(_dxj_DirectPlayVoiceSetup);
  54. DWORD InternalAddRef();
  55. DWORD InternalRelease();
  56. };