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.

86 lines
2.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: dplconnectionobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. class C_dxj_DPLConnectionObject :
  12. public I_dxj_DPLConnection,
  13. public CComObjectRoot
  14. {
  15. public:
  16. BEGIN_COM_MAP(C_dxj_DPLConnectionObject)
  17. COM_INTERFACE_ENTRY(I_dxj_DPLConnection)
  18. END_COM_MAP()
  19. // DECLARE_REGISTRY(CLSID_DPLConnection, "DIRECT.DPLConnection.5", "DIRECT.DPLConnection.5", IDS_DPLAY2_DESC, THREADFLAGS_BOTH)
  20. DECLARE_AGGREGATABLE(C_dxj_DPLConnectionObject)
  21. public:
  22. C_dxj_DPLConnectionObject();
  23. ~C_dxj_DPLConnectionObject();
  24. HRESULT STDMETHODCALLTYPE getConnectionStruct(
  25. long *connect) ;
  26. /* [hidden] */ HRESULT STDMETHODCALLTYPE setConnectionStruct(
  27. /* [in] */ long connect) ;
  28. HRESULT STDMETHODCALLTYPE setFlags(
  29. /* [in] */ long flags) ;
  30. HRESULT STDMETHODCALLTYPE getFlags(
  31. /* [retval][out] */ long *ret) ;
  32. HRESULT STDMETHODCALLTYPE setSessionDesc(
  33. /* [in] */ I_dxj_DirectPlaySessionData *sessionDesc) ;
  34. HRESULT STDMETHODCALLTYPE getSessionDesc(
  35. /* [out] */ I_dxj_DirectPlaySessionData **sessionDesc) ;
  36. HRESULT STDMETHODCALLTYPE setGuidSP(
  37. /* [in] */ BSTR strGuid) ;
  38. HRESULT STDMETHODCALLTYPE getGuidSP(
  39. /* [out] */ BSTR *strGuid) ;
  40. HRESULT STDMETHODCALLTYPE setAddress(
  41. /* [in] */ I_dxj_DPAddress *address) ;
  42. HRESULT STDMETHODCALLTYPE getAddress(
  43. /* [retval][out] */ I_dxj_DPAddress **address) ;
  44. HRESULT STDMETHODCALLTYPE setPlayerShortName(
  45. /* [in] */ BSTR name) ;
  46. HRESULT STDMETHODCALLTYPE getPlayerShortName(
  47. /* [retval][out] */ BSTR *name) ;
  48. HRESULT STDMETHODCALLTYPE setPlayerLongName(
  49. /* [in] */ BSTR name) ;
  50. HRESULT STDMETHODCALLTYPE getPlayerLongName(
  51. /* [retval][out] */ BSTR *name) ;
  52. private:
  53. DPLCONNECTION m_connect;
  54. DPSESSIONDESC2 m_sessionDesc;
  55. DPNAME m_dpName;
  56. void *nextobj;
  57. int creationid;
  58. void *m_pAddress;
  59. void cleanUp();
  60. void init();
  61. };