diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-05-28 20:49:19 +0200 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-05-28 21:00:55 +0200 |
commit | 9250a0caadc93ec7a92b99deea151ab7a1c403da (patch) | |
tree | a891d1bd365e00e192bb703375613caa446ede33 /plugins/KeyboardNotify | |
parent | 3bfd3b9c9062048fde854b4c45ab62c29624d8f8 (diff) |
Notification plugins - convert to Load/Unload methods of CMPlugin
Diffstat (limited to 'plugins/KeyboardNotify')
-rw-r--r-- | plugins/KeyboardNotify/src/main.cpp | 4 | ||||
-rw-r--r-- | plugins/KeyboardNotify/src/stdafx.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/KeyboardNotify/src/main.cpp b/plugins/KeyboardNotify/src/main.cpp index e78befc9f4..6fd274071b 100644 --- a/plugins/KeyboardNotify/src/main.cpp +++ b/plugins/KeyboardNotify/src/main.cpp @@ -924,7 +924,7 @@ static int ModulesLoaded(WPARAM, LPARAM) return 0;
}
-extern "C" __declspec(dllexport) int Load(void)
+int CMPlugin::Load()
{
GetWindowsVersion();
OpenKeyboardDevice();
@@ -937,7 +937,7 @@ extern "C" __declspec(dllexport) int Load(void) /////////////////////////////////////////////////////////////////////////////////////////
// Unload
-extern "C" __declspec(dllexport) int Unload(void)
+int CMPlugin::Unload()
{
UnhookWindowsHooks();
diff --git a/plugins/KeyboardNotify/src/stdafx.h b/plugins/KeyboardNotify/src/stdafx.h index 6af0fffa14..3b01954284 100644 --- a/plugins/KeyboardNotify/src/stdafx.h +++ b/plugins/KeyboardNotify/src/stdafx.h @@ -58,4 +58,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
|