summaryrefslogtreecommitdiff
path: root/modules/example/main.cpp
blob: e778c9cbf6712abbcd2b442787e30977df5d176b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <windows.h>
#include <api.h>
#include <pluginapi.h>

HINSTANCE hDllInstance=NULL;
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) //default dll entry point
{
	if (ul_reason_for_call == DLL_PROCESS_ATTACH)
		hDllInstance = (HINSTANCE)hModule; 
	return TRUE;
}