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.

49 lines
1.3 KiB

  1. // CMenuExt.h : Declaration of the CCMenuExt
  2. #ifndef __CMENUEXT_H_
  3. #define __CMENUEXT_H_
  4. #include <mmc.h>
  5. #include "DSAdminExt.h"
  6. #include "DeleBase.h"
  7. #include <tchar.h>
  8. #include <crtdbg.h>
  9. //#include "globals.h" // main symbols
  10. #include "resource.h"
  11. //#include "LocalRes.h"
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CCMenuExt
  14. class ATL_NO_VTABLE CCMenuExt :
  15. public CComObjectRootEx<CComSingleThreadModel>,
  16. public CComCoClass<CCMenuExt, &CLSID_CMenuExt>,
  17. public ICMenuExt,
  18. public IExtendContextMenu
  19. {
  20. BEGIN_COM_MAP(CCMenuExt)
  21. COM_INTERFACE_ENTRY(IExtendContextMenu)
  22. END_COM_MAP()
  23. public:
  24. CCMenuExt()
  25. {
  26. }
  27. DECLARE_REGISTRY_RESOURCEID(IDR_CMENUEXT)
  28. DECLARE_NOT_AGGREGATABLE(CCMenuExt)
  29. DECLARE_PROTECT_FINAL_CONSTRUCT()
  30. ///////////////////////////////
  31. // Interface IExtendContextMenu
  32. ///////////////////////////////
  33. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddMenuItems(
  34. /* [in] */ LPDATAOBJECT piDataObject,
  35. /* [in] */ LPCONTEXTMENUCALLBACK piCallback,
  36. /* [out][in] */ long __RPC_FAR *pInsertionAllowed);
  37. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Command(
  38. /* [in] */ long lCommandID,
  39. /* [in] */ LPDATAOBJECT piDataObject);
  40. };
  41. #endif //__CMENUEXT_H_