diff options
-rw-r--r-- | plugins/WhoUsesMyFiles/wumf.h | 1 | ||||
-rw-r--r-- | plugins/WhoUsesMyFiles/wumfplug.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/plugins/WhoUsesMyFiles/wumf.h b/plugins/WhoUsesMyFiles/wumf.h index b256ccb405..5535ae0c5f 100644 --- a/plugins/WhoUsesMyFiles/wumf.h +++ b/plugins/WhoUsesMyFiles/wumf.h @@ -4,6 +4,7 @@ #include <commctrl.h>
#include <lm.h>
#include <locale.h>
+#include <shlobj.h>
#include "newpluginapi.h"
#include "m_system.h"
diff --git a/plugins/WhoUsesMyFiles/wumfplug.c b/plugins/WhoUsesMyFiles/wumfplug.c index 1a547d1ad0..9bcb59540b 100644 --- a/plugins/WhoUsesMyFiles/wumfplug.c +++ b/plugins/WhoUsesMyFiles/wumfplug.c @@ -294,6 +294,11 @@ static INT_PTR WumfMenuCommand(WPARAM wParam,LPARAM lParam) __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
+ if (!IsUserAnAdmin()) {
+ MessageBox(NULL, "Plugin WhoUsesMyFiles cannot be loaded. It requires admin privileges.", "Miranda IM", MB_OK);
+ return NULL;
+ }
+
return &pluginInfo;
}
|