Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/devices/plugin.cpp

32 lines
508 B
C++
Raw Normal View History

2024-09-24 12:54:57 +00:00
#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;
}