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.

87 lines
1.9 KiB

  1. //
  2. // CLSID_AboutGPE
  3. //
  4. // {0FDE5092-AA2A-11d1-A7D4-0000F87571E3}
  5. DEFINE_GUID(CLSID_AboutGPE, 0xfde5092, 0xaa2a, 0x11d1, 0xa7, 0xd4, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3);
  6. // {4f637904-2cab-4f0e-8688-d3717ebd2975}
  7. DEFINE_GUID(CLSID_RSOPAboutGPE, 0x4f637904, 0x2cab, 0x4f0e, 0x86, 0x88, 0xd3, 0x71, 0x7e, 0xbd, 0x29, 0x75);
  8. #ifndef _ABOUT_H_
  9. #define _ABOUT_H_
  10. //
  11. // CAboutGPE class
  12. //
  13. class CAboutGPE : public ISnapinAbout
  14. {
  15. protected:
  16. BOOL m_fRSOP;
  17. public:
  18. CAboutGPE(BOOL fRSOP = FALSE);
  19. ~CAboutGPE();
  20. //
  21. // IUnknown methods
  22. //
  23. STDMETHODIMP QueryInterface(REFIID, LPVOID FAR *);
  24. STDMETHODIMP_(ULONG) AddRef();
  25. STDMETHODIMP_(ULONG) Release();
  26. //
  27. // Implemented ISnapinAbout interface members
  28. //
  29. STDMETHODIMP GetSnapinDescription(LPOLESTR *lpDescription);
  30. STDMETHODIMP GetProvider(LPOLESTR *lpName);
  31. STDMETHODIMP GetSnapinVersion(LPOLESTR *lpVersion);
  32. STDMETHODIMP GetSnapinImage(HICON *hAppIcon);
  33. STDMETHODIMP GetStaticFolderImage(HBITMAP *hSmallImage,
  34. HBITMAP *hSmallImageOpen,
  35. HBITMAP *hLargeImage,
  36. COLORREF *cMask);
  37. private:
  38. ULONG m_cRef;
  39. HBITMAP m_smallImage;
  40. HBITMAP m_largeImage;
  41. };
  42. //
  43. // AboutGPE class factory
  44. //
  45. class CAboutGPECF : public IClassFactory
  46. {
  47. protected:
  48. ULONG m_cRef;
  49. BOOL m_fRSOP;
  50. public:
  51. CAboutGPECF(BOOL fRSOP = FALSE);
  52. ~CAboutGPECF();
  53. // IUnknown methods
  54. STDMETHODIMP QueryInterface(REFIID, LPVOID FAR *);
  55. STDMETHODIMP_(ULONG) AddRef();
  56. STDMETHODIMP_(ULONG) Release();
  57. // IClassFactory methods
  58. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID FAR *);
  59. STDMETHODIMP LockServer(BOOL);
  60. };
  61. #endif // _ABOUT_H