Owner-authorized source migration: 31 helper-only translation units were merged into their callers or existing inline headers; both build manifests updated. Includes the preserved source payload, Lua configuration matching wowdecomp, and exact malloca expansion without diagnostic pragmas. 449 native units compiled locally and 449 staged units compiled by the pinned server toolchain. No previously byte-matched function regressed. Compiler mapping diagnostics remain recorded as needs_cleanup, not accepted or peer-confirmed. Existing independent review records are preserved. README.md is intentionally unchanged.
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
#ifndef RAGNAROK_SOURCE_CLIENT_BROWSER_WEBEVENTRECEIVER_H
|
|
#define RAGNAROK_SOURCE_CLIENT_BROWSER_WEBEVENTRECEIVER_H
|
|
|
|
#include <windows.h>
|
|
#include <ole2.h>
|
|
#include <exdisp.h>
|
|
|
|
struct BrowserRegistry;
|
|
|
|
class CWebEventReceiver final : public IDispatch {
|
|
public:
|
|
explicit CWebEventReceiver(BrowserRegistry& registry);
|
|
bool Register(IWebBrowser2* browser, HWND host);
|
|
HRESULT Disconnect();
|
|
|
|
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void** output) override;
|
|
ULONG STDMETHODCALLTYPE AddRef() override;
|
|
ULONG STDMETHODCALLTYPE Release() override;
|
|
HRESULT STDMETHODCALLTYPE GetTypeInfoCount(UINT* count) override;
|
|
HRESULT STDMETHODCALLTYPE GetTypeInfo(UINT index, LCID locale, ITypeInfo** output) override;
|
|
HRESULT STDMETHODCALLTYPE GetIDsOfNames(REFIID iid, LPOLESTR* names, UINT count, LCID locale, DISPID* ids) override;
|
|
HRESULT STDMETHODCALLTYPE
|
|
Invoke(DISPID id, REFIID iid, LCID locale, WORD flags, DISPPARAMS* args, VARIANT* result, EXCEPINFO* error, UINT* argumentError) override;
|
|
|
|
private:
|
|
~CWebEventReceiver();
|
|
LONG m_references;
|
|
IWebBrowser2* m_browser;
|
|
DWORD m_browserCookie;
|
|
IDispatch* m_document;
|
|
DWORD m_documentCookie;
|
|
HWND m_host;
|
|
BrowserRegistry& m_registry;
|
|
void ReleaseDocument();
|
|
};
|
|
|
|
#endif
|