From 8a74e7495ce5ad39de4f5c25121a84d35df90c36 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 20 May 2018 15:08:48 +0300 Subject: CMPlugin to receive a reference to PLUGININFOEX --- include/newpluginapi.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/newpluginapi.h b/include/newpluginapi.h index 4aa29322b4..a0b52ff81f 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -159,9 +159,10 @@ class MIR_APP_EXPORT CMPluginBase protected: HINSTANCE m_hInst; const char *m_szModuleName; + const PLUGININFOEX &m_pInfo; HANDLE m_hLogger = nullptr; - CMPluginBase(const char *moduleName); + CMPluginBase(const char *moduleName, const PLUGININFOEX &pInfo); ~CMPluginBase(); // pass one of PROTOTYPE_* constants as type @@ -353,8 +354,8 @@ template class PLUGIN : public CMPluginBase typedef CMPluginBase CSuper; protected: - PLUGIN(const char *moduleName) - : CSuper(moduleName) + __forceinline PLUGIN(const char *moduleName, const PLUGININFOEX &pInfo) + : CSuper(moduleName, pInfo) {} __forceinline HANDLE CreatePluginEvent(const char *name) @@ -394,8 +395,8 @@ template class ACCPROTOPLUGIN : public PLUGIN typedef PLUGIN CSuper; protected: - ACCPROTOPLUGIN(const char *moduleName) : - CSuper(moduleName) + ACCPROTOPLUGIN(const char *moduleName, const PLUGININFOEX &pInfo) : + CSuper(moduleName, pInfo) { CMPluginBase::RegisterProtocol(1002, &fnInit, &fnUninit); } -- cgit v1.2.3