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.
75 lines
2.1 KiB
75 lines
2.1 KiB
//==============================================================;
|
|
//
|
|
// This source code is only intended as a supplement to existing Microsoft documentation.
|
|
//
|
|
//
|
|
//
|
|
//
|
|
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
|
|
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
|
|
// PURPOSE.
|
|
//
|
|
// Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
|
|
//
|
|
//
|
|
//
|
|
//==============================================================;
|
|
|
|
#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 Interface
|
|
///////////////////////////////
|
|
private:
|
|
HRESULT CSnapinAbout::AllocOleStr(
|
|
LPOLESTR *lpDest,
|
|
_TCHAR *szBuffer);
|
|
};
|
|
|
|
#endif _SAMPABOUT_H_
|