46#if LASS_PLATFORM_TYPE == LASS_PLATFORM_TYPE_WIN32
55typedef std::vector<TDllMain> TDllMains;
57static TDllMains* dllMains = 0;
58static HINSTANCE lassInstance = 0;
60void registerDllMain(TDllMain dllMain)
64 dllMains =
new TDllMains;
66 dllMains->push_back(dllMain);
69HINSTANCE getLassInstance()
77extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
79 using namespace lass::dll;
80 if (dwReason == DLL_PROCESS_ATTACH)
82 lassInstance = hInstance;
86 for (TDllMains::const_iterator i = dllMains->begin(); i != dllMains->end(); ++i)
88 if (!(*i)(hInstance, dwReason, lpReserved))
Library for Assembled Shared Sources.