2003-10-04 05:48:11 +02:00
|
|
|
/*
|
|
|
|
* Win32 5.1 Themes
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 Kevin Koltzau
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-10-04 05:48:11 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
2003-12-04 21:55:30 +01:00
|
|
|
#include "uxthemedll.h"
|
2003-10-04 05:48:11 +02:00
|
|
|
|
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(uxtheme);
|
|
|
|
|
2003-12-04 21:55:30 +01:00
|
|
|
/***********************************************************************/
|
|
|
|
|
2003-10-04 05:48:11 +02:00
|
|
|
/* For the moment, do nothing here. */
|
2021-07-05 14:33:49 +02:00
|
|
|
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, void *reserved)
|
2003-10-04 05:48:11 +02:00
|
|
|
{
|
2021-07-05 14:33:49 +02:00
|
|
|
TRACE("%p 0x%x %p\n", hInstDLL, fdwReason, reserved);
|
2003-10-04 05:48:11 +02:00
|
|
|
switch(fdwReason) {
|
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
DisableThreadLibraryCalls(hInstDLL);
|
2004-01-16 22:25:25 +01:00
|
|
|
UXTHEME_InitSystem(hInstDLL);
|
2003-12-04 21:55:30 +01:00
|
|
|
break;
|
2021-07-05 14:33:49 +02:00
|
|
|
case DLL_PROCESS_DETACH:
|
|
|
|
if (reserved) break;
|
|
|
|
UXTHEME_UninitSystem();
|
|
|
|
break;
|
2003-10-04 05:48:11 +02:00
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|