mirror of
https://github.com/NohamR/RMHook-Win.git
synced 2026-05-24 19:59:43 +00:00
Introduce a PAHO_FORWARDER_EXPORTS macro and generate Original_* FARPROC forwarder targets, replace the many hand-written fake exports with assembly forwarding stubs, and simplify exports.cpp to declare and initialize those forwarder pointers. Refactor paho-mqtt3as-proxy hook logic: improve logging, robustly load/save JSON config using std::filesystem and safe parsing, consolidate URL/host patching logic for HTTP/WS/MQTT, and add safer MQTT URI patching and resolution helpers. Update main to populate forwarder addresses at startup and make hook installation more defensive when symbols aren't found. Add docs images, update README (bump tested version and enable images), remove STATE.md, and adjust .gitignore to keep docs included.
10 lines
221 B
C++
10 lines
221 B
C++
#include "common.h"
|
|
|
|
paho_mqtt3as_dll paho_mqtt3as;
|
|
|
|
extern "C" {
|
|
#define DEFINE_FORWARDER_TARGET(name) FARPROC Original_##name = nullptr;
|
|
PAHO_FORWARDER_EXPORTS(DEFINE_FORWARDER_TARGET)
|
|
#undef DEFINE_FORWARDER_TARGET
|
|
}
|