windows-nt/Source/XPSP1/NT/shell/osshell/snapins/devmgr/snapin/about.h
2020-09-26 16:20:57 +08:00

50 lines
1,009 B
C++

/*++
Copyright (C) 1997-1999 Microsoft Corporation
Module Name:
about.h
Abstract:
header file defines CDevMgrAbout class
Author:
William Hsieh (williamh) created
Revision History:
--*/
#ifndef __ABOUT_H_
#define __ABOUT_H_
class CDevMgrAbout : public ISnapinAbout
{
public:
CDevMgrAbout() :m_Ref(1)
{}
// IUNKNOWN interface
STDMETHOD_(ULONG, AddRef)();
STDMETHOD_(ULONG, Release)();
STDMETHOD(QueryInterface)(REFIID riid, void** ppv);
// ISnapinAbout interface
STDMETHOD(GetSnapinDescription)(LPOLESTR *ppDescription);
STDMETHOD(GetProvider)(LPOLESTR* ppProvider);
STDMETHOD(GetSnapinVersion)(LPOLESTR *ppVersion);
STDMETHOD(GetSnapinImage)(HICON *phIcon);
STDMETHOD(GetStaticFolderImage)(HBITMAP* phSmall,
HBITMAP* phSmallOpen,
HBITMAP* phLarge,
COLORREF* pcrMask);
private:
HRESULT LoadResourceOleString(int StringId, LPOLESTR* ppString);
ULONG m_Ref;
};
#endif