-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTopMenu_Plugin.h
More file actions
35 lines (27 loc) · 911 Bytes
/
TopMenu_Plugin.h
File metadata and controls
35 lines (27 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include "windows.h"
// function to be exported from dll to create instance of interface
#ifdef POWERMENUCORE
# define DLL_DECLSPEC __declspec(dllimport)
#else
# define DLL_DECLSPEC __declspec(dllexport)
#endif
extern "C"
{
typedef DWORD (VERSION_PROC)();
const char VERSION_PROC_NAME[] = "TopMenu_GetPluginVersion";
DLL_DECLSPEC DWORD TopMenu_GetPluginVersion();
typedef class TopMenu_Plugin* (CREATE_PROC)();
const char CREATE_PROC_NAME[] = "TopMenu_CreatePlugin";
DLL_DECLSPEC TopMenu_Plugin* TopMenu_CreatePlugin();
typedef void (DESTROY_PROC)(class TopMenu_Plugin*);
const char DESTROY_PROC_NAME[] = "TopMenu_DestroyPlugin";
DLL_DECLSPEC void TopMenu_DestroyPlugin(class TopMenu_Plugin* _pPlugin);
}
class TopMenu_Plugin
{
public:
static DWORD GetPluginVersion() { return 1; }
public:
virtual ~TopMenu_Plugin() {};
};