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.

50 lines
1.2 KiB

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