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.

112 lines
3.7 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: dpsessdataobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. class C_dxj_DirectPlaySessionDataObject :
  12. public I_dxj_DirectPlaySessionData,
  13. public CComObjectRoot
  14. {
  15. public:
  16. BEGIN_COM_MAP(C_dxj_DirectPlaySessionDataObject)
  17. COM_INTERFACE_ENTRY(I_dxj_DirectPlaySessionData)
  18. END_COM_MAP()
  19. DECLARE_AGGREGATABLE(C_dxj_DirectPlaySessionDataObject)
  20. public:
  21. C_dxj_DirectPlaySessionDataObject();
  22. ~C_dxj_DirectPlaySessionDataObject();
  23. /* [propput] */ HRESULT STDMETHODCALLTYPE setGuidInstance(
  24. /* [in] */ BSTR guid);
  25. /* [propget] */ HRESULT STDMETHODCALLTYPE getGuidInstance(
  26. /* [retval][out] */ BSTR __RPC_FAR *guid);
  27. /* [propput] */ HRESULT STDMETHODCALLTYPE setGuidApplication(
  28. /* [in] */ BSTR guid);
  29. /* [propget] */ HRESULT STDMETHODCALLTYPE getGuidApplication(
  30. /* [retval][out] */ BSTR __RPC_FAR *guid);
  31. /* [propput] */ HRESULT STDMETHODCALLTYPE setMaxPlayers(
  32. /* [in] */ long val);
  33. /* [propget] */ HRESULT STDMETHODCALLTYPE getMaxPlayers(
  34. /* [retval][out] */ long __RPC_FAR *val);
  35. /* [propput] */ HRESULT STDMETHODCALLTYPE setCurrentPlayers(
  36. /* [in] */ long val);
  37. /* [propget] */ HRESULT STDMETHODCALLTYPE getCurrentPlayers(
  38. /* [retval][out] */ long __RPC_FAR *val);
  39. /* [propput] */ HRESULT STDMETHODCALLTYPE setSessionName(
  40. /* [in] */ BSTR val);
  41. /* [propget] */ HRESULT STDMETHODCALLTYPE getSessionName(
  42. /* [retval][out] */ BSTR __RPC_FAR *val);
  43. /* [propput] */ HRESULT STDMETHODCALLTYPE setSessionPassword(
  44. /* [in] */ BSTR val);
  45. /* [propget] */ HRESULT STDMETHODCALLTYPE getSessionPassword(
  46. /* [retval][out] */ BSTR __RPC_FAR *val);
  47. /* [propput] */ HRESULT STDMETHODCALLTYPE setUser1(
  48. /* [in] */ long val);
  49. /* [propget] */ HRESULT STDMETHODCALLTYPE getUser1(
  50. /* [retval][out] */ long __RPC_FAR *val);
  51. /* [propput] */ HRESULT STDMETHODCALLTYPE setUser2(
  52. /* [in] */ long val);
  53. /* [propget] */ HRESULT STDMETHODCALLTYPE getUser2(
  54. /* [retval][out] */ long __RPC_FAR *val);
  55. /* [propput] */ HRESULT STDMETHODCALLTYPE setUser3(
  56. /* [in] */ long val);
  57. /* [propget] */ HRESULT STDMETHODCALLTYPE getUser3(
  58. /* [retval][out] */ long __RPC_FAR *val);
  59. /* [propput] */ HRESULT STDMETHODCALLTYPE setUser4(
  60. /* [in] */ long val);
  61. /* [propget] */ HRESULT STDMETHODCALLTYPE getUser4(
  62. /* [retval][out] */ long __RPC_FAR *val);
  63. /* [propput] */ HRESULT STDMETHODCALLTYPE setFlags(
  64. /* [in] */ long val);
  65. /* [propget] */ HRESULT STDMETHODCALLTYPE getFlags(
  66. /* [retval][out] */ long __RPC_FAR *val);
  67. /* [propget] */ HRESULT STDMETHODCALLTYPE getData(void *val);
  68. void init(DPSESSIONDESC2 *desc);
  69. void init(DPSessionDesc2 *desc);
  70. static HRESULT C_dxj_DirectPlaySessionDataObject::create(DPSESSIONDESC2 *desc,I_dxj_DirectPlaySessionData **ret);
  71. static HRESULT C_dxj_DirectPlaySessionDataObject::create(DPSessionDesc2 *desc,I_dxj_DirectPlaySessionData **ret);
  72. private:
  73. DPSESSIONDESC2 m_desc;
  74. };