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.
|
|
#ifndef _SAMPABOUT_H_
#define _SAMPABOUT_H_
#include <tchar.h>
#include <mmc.h>
class CSnapinAbout : public ISnapinAbout { private: ULONG m_cref; HBITMAP m_hSmallImage; HBITMAP m_hLargeImage; HBITMAP m_hSmallImageOpen; HICON m_hAppIcon; public: CSnapinAbout(); ~CSnapinAbout(); ///////////////////////////////
// Interface IUnknown
///////////////////////////////
STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppv); STDMETHODIMP_(ULONG) AddRef(); STDMETHODIMP_(ULONG) Release(); ///////////////////////////////
// Interface ISnapinAbout
///////////////////////////////
STDMETHODIMP GetSnapinDescription( /* [out] */ LPOLESTR *lpDescription ); STDMETHODIMP GetProvider( /* [out] */ LPOLESTR *lpName ); STDMETHODIMP GetSnapinVersion( /* [out] */ LPOLESTR *lpVersion ); STDMETHODIMP GetSnapinImage( /* [out] */ HICON *hAppIcon ); STDMETHODIMP GetStaticFolderImage( /* [out] */ HBITMAP *hSmallImage, /* [out] */ HBITMAP *hSmallImageOpen, /* [out] */ HBITMAP *hLargeImage, /* [out] */ COLORREF *cMask); private: HRESULT CSnapinAbout::AllocOleStr( LPOLESTR *lpDest, _TCHAR *szBuffer ); };
#endif _SAMPABOUT_H_
|