2020-10-21 14:46:09 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS browseui
|
|
|
|
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
|
|
|
|
* PURPOSE: IUserAssist implementation
|
2022-03-30 23:53:30 +00:00
|
|
|
* COPYRIGHT: Copyright 2020 Oleg Dubinskiy (oleg.dubinskij30@gmail.com)
|
2020-10-21 14:46:09 +00:00
|
|
|
*/
|
|
|
|
// See https://www.geoffchappell.com/studies/windows/ie/browseui/classes/userassist.htm
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CUserAssist :
|
|
|
|
public CComCoClass<CUserAssist, &CLSID_UserAssist>,
|
|
|
|
public CComObjectRootEx<CComMultiThreadModelNoCS>,
|
|
|
|
public IUserAssist
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
CUserAssist();
|
|
|
|
~CUserAssist();
|
|
|
|
|
|
|
|
// *** IUserAssist methods ***
|
2024-07-14 01:59:10 +00:00
|
|
|
STDMETHODIMP FireEvent(GUID const *guid, INT param1, ULONG param2, WPARAM wparam, LPARAM lparam) override;
|
2020-10-21 14:46:09 +00:00
|
|
|
// FIXME: PVOID should point to undocumented UEMINFO structure.
|
2024-07-14 01:59:10 +00:00
|
|
|
STDMETHODIMP QueryEvent(GUID const *guid, INT param, WPARAM wparam, LPARAM lparam, PVOID ptr) override;
|
|
|
|
STDMETHODIMP SetEvent(GUID const *guid, INT param, WPARAM wparam, LPARAM lparam, PVOID ptr) override;
|
|
|
|
STDMETHODIMP Enable(BOOL bEnable) override;
|
2020-10-21 14:46:09 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_USERASSIST)
|
|
|
|
DECLARE_NOT_AGGREGATABLE(CUserAssist)
|
|
|
|
|
|
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
|
|
|
|
BEGIN_COM_MAP(CUserAssist)
|
|
|
|
COM_INTERFACE_ENTRY_IID(IID_IUserAssist, IUserAssist)
|
|
|
|
END_COM_MAP()
|
|
|
|
};
|