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.

72 lines
2.6 KiB

  1. /*************************************************************************/
  2. /* Copyright (C) 1999 Microsoft Corporation */
  3. /* File: DVDRect.h */
  4. /* Description: Declaration of the CDVDRect */
  5. /* Author: David Janecek */
  6. /*************************************************************************/
  7. #ifndef __DVDRECT_H_
  8. #define __DVDRECT_H_
  9. #include "resource.h" // main symbols
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CDVDRect
  12. class ATL_NO_VTABLE CDVDRect :
  13. public CComObjectRootEx<CComSingleThreadModel>,
  14. public CComCoClass<CDVDRect, &CLSID_DVDRect>,
  15. public IDispatchImpl<IDVDRect, &IID_IDVDRect, &LIBID_MSWEBDVDLib>,
  16. public IObjectWithSiteImplSec<CDVDRect>,
  17. public ISupportErrorInfo,
  18. public IObjectSafety
  19. {
  20. public:
  21. CDVDRect(){ m_x = 0; m_y = 0; m_lWidth = 0; m_lHeight = 0;};
  22. DECLARE_REGISTRY_RESOURCEID(IDR_DVDRECT)
  23. DECLARE_PROTECT_FINAL_CONSTRUCT()
  24. BEGIN_COM_MAP(CDVDRect)
  25. COM_INTERFACE_ENTRY(IDVDRect)
  26. COM_INTERFACE_ENTRY(IDispatch)
  27. COM_INTERFACE_ENTRY(IObjectWithSite)
  28. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  29. COM_INTERFACE_ENTRY(IObjectSafety)
  30. END_COM_MAP()
  31. // ISupportsErrorInfo
  32. STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  33. public:
  34. // IDVDRect
  35. STDMETHOD(get_Height)(/*[out, retval]*/ long *pVal);
  36. STDMETHOD(put_Height)(/*[in]*/ long newVal);
  37. STDMETHOD(get_Width)(/*[out, retval]*/ long *pVal);
  38. STDMETHOD(put_Width)(/*[in]*/ long newVal);
  39. STDMETHOD(get_y)(/*[out, retval]*/ long *pVal);
  40. STDMETHOD(put_y)(/*[in]*/ long newVal);
  41. STDMETHOD(get_x)(/*[out, retval]*/ long *pVal);
  42. STDMETHOD(put_x)(/*[in]*/ long newVal);
  43. //IObjectSafety
  44. STDMETHOD(GetInterfaceSafetyOptions)( REFIID riid,
  45. DWORD *pdwSupportedOptions,
  46. DWORD *pdwEnabledOptions );
  47. STDMETHOD(SetInterfaceSafetyOptions)( REFIID riid,
  48. DWORD dwOptionSetMask,
  49. DWORD dwEnabledOptions );
  50. protected:
  51. HRESULT HandleError(HRESULT hr);
  52. private:
  53. long m_x;
  54. long m_y;
  55. long m_lWidth;
  56. long m_lHeight;
  57. };
  58. #endif //__DVDRECT_H_
  59. /*************************************************************************/
  60. /* End of file: DVDRect.h */
  61. /*************************************************************************/