4 * Copyright 2014 Giannis Adamopoulos
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 DWORD WINAPI
WinList_Init(void)
25 /* do something here (perhaps we may want to add our own implementation fo win8) */
29 void *operator new (size_t, void *buf
)
34 class CRShellModule
: public CComModule
39 CRShellModule gModule
;
40 CAtlWinModule gWinModule
;
42 STDAPI_(BOOL
) DllMain(HINSTANCE hInstance
, DWORD dwReason
, LPVOID fImpLoad
)
44 if (dwReason
== DLL_PROCESS_ATTACH
)
46 /* HACK - the global constructors don't run, so I placement new them here */
47 new (&gModule
) CRShellModule
;
48 new (&gWinModule
) CAtlWinModule
;
49 new (&_AtlBaseModule
) CAtlBaseModule
;
50 new (&_AtlComModule
) CAtlComModule
;
52 gModule
.Init(NULL
, hInstance
, NULL
);
53 DisableThreadLibraryCalls (hInstance
);
55 else if (dwReason
== DLL_PROCESS_DETACH
)