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.

52 lines
1.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: dpladdressobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. class C_DPAddressObject :
  12. public IDPAddress,
  13. public CComCoClass<C_DPAddressObject, &CLSID__DPAddress>,
  14. public CComObjectRoot
  15. {
  16. public:
  17. BEGIN_COM_MAP(C_DPAddressObject)
  18. COM_INTERFACE_ENTRY(IDPAddress)
  19. END_COM_MAP()
  20. DECLARE_REGISTRY(CLSID__DPAddress, "DIRECT.DPAddress.5", "DIRECT.DPAddress.5", IDS_DPLAY2_DESC, THREADFLAGS_BOTH)
  21. DECLARE_AGGREGATABLE(C_DPAddressObject)
  22. public:
  23. C_DPAddressObject();
  24. ~C_DPAddressObject();
  25. virtual HRESULT STDMETHODCALLTYPE setAddress(
  26. /* [in] */ long pAddress,
  27. /* [in] */ long length) = 0;
  28. virtual HRESULT STDMETHODCALLTYPE getAddress(
  29. /* [out] */ long __RPC_FAR *pAddress,
  30. /* [out] */ long __RPC_FAR *length) = 0;
  31. private:
  32. DPAddress m_connect;
  33. DPSESSIONDESC2 m_sessionDesc;
  34. DPNAME m_dpName;
  35. IUnknown *nextobj;
  36. DWORD creationid;
  37. void *m_pAddress;
  38. void cleanUp();
  39. void init();
  40. };
  41. extern IUnknown *g_DPAddress;