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.
 
 
 
 
 
 

56 lines
1.2 KiB

//
// syshelp.h
//
#ifndef _SYSHELP_H_
#define _SYSHELP_H_
#include "msctf.h"
//
// CSysHelpSink
//
typedef HRESULT (*SYSHELPINITMENU)(void *pv, ITfMenu *pMenu);
typedef HRESULT (*SYSHELPMENUSELECT)(void *pv, UINT wID);
//////////////////////////////////////////////////////////////////////////////
//
// CSysHelpSink
//
//////////////////////////////////////////////////////////////////////////////
class CSysHelpSink : public ITfSystemLangBarItemSink
{
public:
CSysHelpSink(SYSHELPINITMENU pfnInitMenu, SYSHELPMENUSELECT pfnMenuSelect, void *pv);
~CSysHelpSink();
//
// IUnknown methods
//
STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj);
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);
//
// ITfSource
//
STDMETHODIMP InitMenu(ITfMenu *pMenu);
STDMETHODIMP OnMenuSelect(UINT wID);
HRESULT _Advise(ITfLangBarItemMgr *plbimgr, REFGUID rguid);
HRESULT _Unadvise(ITfLangBarItemMgr *plbimgr);
private:
SYSHELPINITMENU _pfnInitMenu;
SYSHELPMENUSELECT _pfnMenuSelect;
DWORD _dwCookie;
void *_pv;
GUID _guid;
long _cRef;
};
#endif // _SYSHELP_H_