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.

87 lines
2.6 KiB

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