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.

71 lines
2.0 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 1999 American Power Conversion, All Rights Reserved
  4. //
  5. // Name: upsapplet.h
  6. //
  7. // Author: Noel Fegan
  8. //
  9. // Description
  10. // ===========
  11. //
  12. // Revision History
  13. // ================
  14. // 04 May 1999 - [email protected] : Added this comment block.
  15. // 04 May 1999 - [email protected] : Preparing for code inspection
  16. //
  17. #ifndef _FD352732_E757_11d2_884C_00600844D03F //prevent multiple inclusion
  18. #define _FD352732_E757_11d2_884C_00600844D03F
  19. //
  20. // CClassFactory defines a shell extension class factory object.
  21. //
  22. class CClassFactory : public IClassFactory
  23. {
  24. protected:
  25. ULONG m_cRef; // Object reference count
  26. public:
  27. CClassFactory ();
  28. ~CClassFactory ();
  29. // IUnknown methods
  30. STDMETHODIMP QueryInterface (REFIID, LPVOID FAR *);
  31. STDMETHODIMP_(ULONG) AddRef ();
  32. STDMETHODIMP_(ULONG) Release ();
  33. // IClassFactory methods
  34. STDMETHODIMP CreateInstance (LPUNKNOWN, REFIID, LPVOID FAR *);
  35. STDMETHODIMP LockServer (BOOL);
  36. };
  37. //
  38. // CShellExtension defines a property sheet shell extension object.
  39. //
  40. class CShellExtension : public IShellPropSheetExt, IShellExtInit
  41. {
  42. protected:
  43. DWORD m_cRef; // Object reference count
  44. public:
  45. CShellExtension (void);
  46. ~CShellExtension (void);
  47. // IUnknown methods
  48. STDMETHODIMP QueryInterface (REFIID, LPVOID FAR *);
  49. STDMETHODIMP_(ULONG) AddRef ();
  50. STDMETHODIMP_(ULONG) Release ();
  51. // IShellPropSheetExt methods
  52. STDMETHODIMP AddPages (LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam);
  53. STDMETHODIMP ReplacePage (UINT uPageID,
  54. LPFNADDPROPSHEETPAGE lpfnReplaceWith, LPARAM lParam);
  55. // IShellExtInit method
  56. STDMETHODIMP Initialize (LPCITEMIDLIST pidlFolder,
  57. LPDATAOBJECT lpdobj, HKEY hKeyProgID);
  58. };
  59. #endif //_FD352732_E757_11d2_884C_00600844D03F