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.

72 lines
1.8 KiB

  1. #ifndef _ABOUT_H_
  2. #define _ABOUT_H_
  3. // {5A7B63E0-F9BC-11d2-BBE5-00C04F86AE3B}
  4. DEFINE_GUID(CLSID_AboutIEAKSnapinExt, 0x5a7b63e0, 0xf9bc, 0x11d2, 0xbb, 0xe5, 0x0, 0xc0, 0x4f, 0x86, 0xae, 0x3b);
  5. //
  6. // CAboutIEAKSnapinExt class
  7. //
  8. class CAboutIEAKSnapinExt : public ISnapinAbout
  9. {
  10. public:
  11. CAboutIEAKSnapinExt();
  12. ~CAboutIEAKSnapinExt();
  13. //
  14. // IUnknown methods
  15. //
  16. STDMETHODIMP QueryInterface(REFIID, LPVOID FAR *);
  17. STDMETHODIMP_(ULONG) AddRef();
  18. STDMETHODIMP_(ULONG) Release();
  19. //
  20. // Implemented ISnapinAbout interface members
  21. //
  22. STDMETHODIMP GetSnapinDescription(LPOLESTR *lpDescription);
  23. STDMETHODIMP GetProvider(LPOLESTR *lpName);
  24. STDMETHODIMP GetSnapinVersion(LPOLESTR *lpVersion);
  25. STDMETHODIMP GetSnapinImage(HICON *hAppIcon);
  26. STDMETHODIMP GetStaticFolderImage(HBITMAP *hSmallImage,
  27. HBITMAP *hSmallImageOpen,
  28. HBITMAP *hLargeImage,
  29. COLORREF *cMask);
  30. private:
  31. ULONG m_cRef;
  32. HBITMAP m_hSmallImage;
  33. HBITMAP m_hSmallImageOpen;
  34. HBITMAP m_hLargeImage;
  35. HICON m_hAppIcon;
  36. };
  37. class CAboutIEAKSnapinExtCF : public IClassFactory
  38. {
  39. protected:
  40. ULONG m_cRef;
  41. public:
  42. CAboutIEAKSnapinExtCF();
  43. ~CAboutIEAKSnapinExtCF();
  44. // IUnknown methods
  45. STDMETHODIMP QueryInterface(REFIID, LPVOID FAR *);
  46. STDMETHODIMP_(ULONG) AddRef();
  47. STDMETHODIMP_(ULONG) Release();
  48. // IClassFactory methods
  49. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID FAR *);
  50. STDMETHODIMP LockServer(BOOL);
  51. };
  52. #endif // _ABOUT_H