summaryrefslogtreecommitdiff
path: root/modules/example/main.cpp
blob: 76a004d886d6164fb5c774d0b880087adfe7a753 (plain)
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
#include <windows.h>
#include <api.h>
#include <pluginapi.h>
#include <iostream>

HINSTANCE hInst;
BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) //default dll entry point
{
	hInst = hinstDLL;
	return TRUE;
}

PLUGININFO pluginInfo = 
{
	sizeof(PLUGININFO), //size of structure
	(char*)"example plugin", //short name
	0, //description
	0, //author
	0, //author email
	PLUGIN_MAKE_VERSION(0,0,0,1), //version
	0 //flags (unused)
};

extern "C" __declspec(dllexport) PLUGININFO* SetPluginInfo()
{
	return &pluginInfo;
}

extern "C"  int __declspec(dllexport) Load()
{
	MessageBoxA(0, "Plugin Example Succesful loaded", "INFO", MB_OK);
	return 0; //all ok, retrun 0
}