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.

51 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: ddgammacontrolobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // ddPaletteObj.h : Declaration of the C_dxj_DirectDrawGammaControlObject
  11. #include "resource.h" // main symbols
  12. #define typedef__dxj_DirectDrawGammaControl LPDIRECTDRAWGAMMACONTROL
  13. /////////////////////////////////////////////////////////////////////////////
  14. // Direct
  15. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  16. //references as template arguments.
  17. class C_dxj_DirectDrawGammaControlObject :
  18. public I_dxj_DirectDrawGammaControl,
  19. public CComObjectRoot
  20. {
  21. public:
  22. C_dxj_DirectDrawGammaControlObject() ;
  23. virtual ~C_dxj_DirectDrawGammaControlObject() ;
  24. BEGIN_COM_MAP(C_dxj_DirectDrawGammaControlObject)
  25. COM_INTERFACE_ENTRY(I_dxj_DirectDrawGammaControl)
  26. END_COM_MAP()
  27. DECLARE_AGGREGATABLE(C_dxj_DirectDrawGammaControlObject)
  28. // I_dxj_DirectDrawGammaControl
  29. public:
  30. STDMETHOD(InternalSetObject)(IUnknown *lpddp);
  31. STDMETHOD(InternalGetObject)(IUnknown **lpddp);
  32. STDMETHOD(getGammaRamp)( long flags, DDGammaRamp *GammaControl);
  33. STDMETHOD(setGammaRamp)( long flags, DDGammaRamp *GammaControl);
  34. private:
  35. DECL_VARIABLE(_dxj_DirectDrawGammaControl);
  36. public:
  37. DX3J_GLOBAL_LINKS( _dxj_DirectDrawGammaControl )
  38. };