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.

30 lines
801 B

  1. #ifndef _mcallbk_H_
  2. #define _mcallbk_H_
  3. // IShellMenuCallback implementation
  4. class CMenuCallback : public IShellMenuCallback,
  5. public IObjectWithSite
  6. {
  7. public:
  8. // *** IUnknown methods ***
  9. STDMETHODIMP QueryInterface (REFIID riid, LPVOID * ppvObj);
  10. STDMETHODIMP_(ULONG) AddRef();
  11. STDMETHODIMP_(ULONG) Release();
  12. // *** IObjectWithSite methods (override)***
  13. STDMETHODIMP SetSite(IUnknown* punk);
  14. STDMETHODIMP CMenuCallback::GetSite(REFIID riid, void** ppvsite);
  15. // *** IShellMenuCallback methods ***
  16. STDMETHODIMP CallbackSM(LPSMDATA smd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  17. CMenuCallback();
  18. private:
  19. virtual ~CMenuCallback();
  20. int m_cRef;
  21. IUnknown *_pUnkSite;
  22. };
  23. #endif