/*++ Copyright (c) 1991 - 2001 Microsoft Corporation Module Name: ### ### ##### #### ### ##### ## ### ## ## ## ## ## # ### ## ## ## ## # ## ## ## ### ## ## ## ## ### ## ## ## ## ## ### ## ## ## ## ## #### ## ## ### ## ## ## ## ## ### ## ## ## ## ## #### ####### ### ####### ## ## ## ### ##### ## ####### ## ## ## # ## ## ## ## ## ## # ## ## ## ## ## ## ## ## ## ### ## ## ##### #### ### ## ##### ## ## ## ## ## ## Abstract: This header file contains the class definition for the ISaDisplay interface class. Author: Wesley Witt (wesw) 1-Oct-2001 Environment: User mode only. Notes: --*/ #ifndef __SADISPLAY_H_ #define __SADISPLAY_H_ class ATL_NO_VTABLE CSaDisplay : public CComObjectRootEx, public CComCoClass, public IDispatchImpl { public: CSaDisplay(); ~CSaDisplay(); DECLARE_REGISTRY_RESOURCEID(IDR_SADISPLAY) DECLARE_PROTECT_FINAL_CONSTRUCT() BEGIN_COM_MAP(CSaDisplay) COM_INTERFACE_ENTRY(ISaDisplay) COM_INTERFACE_ENTRY(IDispatch) END_COM_MAP() public: STDMETHOD(ClearDisplay)(); STDMETHOD(ShowMessage)(long MsgCode, long Width, long Height, unsigned char *Bits); STDMETHOD(ShowMessageFromFile)(long MsgCode,BSTR BitmapFileName); STDMETHOD(StoreBitmap)(long MessageId,long Width,long Height,unsigned char *Bits); STDMETHOD(Lock)(); STDMETHOD(UnLock)(); STDMETHOD(ReloadRegistryBitmaps)(); STDMETHOD(ShowRegistryBitmap)(long MessageId); STDMETHOD(get_InterfaceVersion)(/*[out, retval]*/ long *pVal); STDMETHOD(get_DisplayWidth)(/*[out, retval]*/ long *pVal); STDMETHOD(get_DisplayHeight)(/*[out, retval]*/ long *pVal); STDMETHOD(get_CharacterSet)(/*[out, retval]*/ long *pVal); STDMETHOD(get_DisplayType)(/*[out, retval]*/ long *pVal); private: void ConvertBottomLeft2TopLeft( PUCHAR Bits, ULONG Width, ULONG Height ); int DisplayBitmap( long MsgCode, long Width, long Height, unsigned char *Bits ); HANDLE m_hFile; SA_DISPLAY_CAPS m_DisplayCaps; ULONG m_InterfaceVersion; PUCHAR m_CachedBitmap; ULONG m_CachedBitmapSize; SA_DISPLAY_SHOW_MESSAGE m_SaDisplay; }; #endif //__SADISPLAY_H_