Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
31
Src/devices/plugin.cpp
Normal file
31
Src/devices/plugin.cpp
Normal file
|
@ -0,0 +1,31 @@
|
|||
#include "main.h"
|
||||
#include "./plugin.h"
|
||||
#include "./component.h"
|
||||
|
||||
static HINSTANCE pluginInstance = NULL;
|
||||
static DevicesComponent component;
|
||||
|
||||
HINSTANCE
|
||||
Plugin_GetInstance()
|
||||
{
|
||||
return pluginInstance;
|
||||
}
|
||||
|
||||
extern "C" __declspec(dllexport) ifc_wa5component *
|
||||
GetWinamp5SystemComponent()
|
||||
{
|
||||
return &component;
|
||||
}
|
||||
|
||||
|
||||
BOOL APIENTRY
|
||||
DllMain(HANDLE hModule, DWORD uReason, void *reserved)
|
||||
{
|
||||
switch(uReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
pluginInstance = (HINSTANCE)hModule;
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue