Source code of Windows XP (NT5)
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
1.7 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // proxyext.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // Declares the class ProxyExtension
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 02/19/2000 Original version.
  16. //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. #ifndef PROXYEXT_H
  19. #define PROXYEXT_H
  20. #if _MSC_VER >= 1000
  21. #pragma once
  22. #endif
  23. #include <proxyres.h>
  24. #include <snapwork.h>
  25. class ProxyNode;
  26. ///////////////////////////////////////////////////////////////////////////////
  27. //
  28. // CLASS
  29. //
  30. // ProxyExtension
  31. //
  32. // DESCRIPTION
  33. //
  34. // Implements IComponentData for the IAS Proxy extension snap-in.
  35. //
  36. ///////////////////////////////////////////////////////////////////////////////
  37. class __declspec(uuid("4d208bd4-c96b-492b-b727-3d1aed56db7e")) ProxyExtension;
  38. class ProxyExtension :
  39. public SnapInView,
  40. public CComCoClass< ProxyExtension, &__uuidof(ProxyExtension) >
  41. {
  42. public:
  43. DECLARE_NOT_AGGREGATABLE(ProxyExtension);
  44. DECLARE_NO_REGISTRY();
  45. ProxyExtension() throw ();
  46. ~ProxyExtension() throw ();
  47. virtual const SnapInToolbarDef* getToolbars() const throw ();
  48. // IComponentData
  49. STDMETHOD(Initialize)(LPUNKNOWN pUnknown);
  50. STDMETHOD(Notify)(
  51. LPDATAOBJECT lpDataObject,
  52. MMC_NOTIFY_TYPE event,
  53. LPARAM arg,
  54. LPARAM param
  55. );
  56. private:
  57. CComPtr<ProxyNode> node; // The lone proxy node.
  58. // Toolbar definition.
  59. ResourceString moveUp;
  60. ResourceString moveDown;
  61. MMCBUTTON buttons[2];
  62. SnapInToolbarDef toolbars[2];
  63. };
  64. #endif // PROXYEXT_H