2004-09-30 20:23:00 +00:00
|
|
|
/*
|
|
|
|
* ReactOS kernel
|
|
|
|
* Copyright (C) 2004 ReactOS Team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 General Public License for more details.
|
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2004-09-30 20:23:00 +00:00
|
|
|
*/
|
2013-03-16 20:41:13 +00:00
|
|
|
/*
|
2004-01-09 19:52:01 +00:00
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS system libraries
|
2013-10-24 20:16:20 +00:00
|
|
|
* FILE: dll/win32/userenv/userenv.c
|
2004-01-09 19:52:01 +00:00
|
|
|
* PURPOSE: DLL initialization code
|
|
|
|
* PROGRAMMER: Eric Kohl
|
|
|
|
*/
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include "precomp.h"
|
2004-01-09 19:52:01 +00:00
|
|
|
|
2006-01-11 22:40:31 +00:00
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
|
2004-10-08 11:52:30 +00:00
|
|
|
HINSTANCE hInstance = NULL;
|
2004-01-09 19:52:01 +00:00
|
|
|
|
2013-10-24 20:16:20 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
DllMain(HINSTANCE hinstDLL,
|
|
|
|
DWORD fdwReason,
|
|
|
|
LPVOID lpvReserved)
|
2004-01-09 19:52:01 +00:00
|
|
|
{
|
2013-10-24 20:16:20 +00:00
|
|
|
if (fdwReason == DLL_PROCESS_ATTACH)
|
2004-01-09 19:52:01 +00:00
|
|
|
{
|
2013-10-24 20:16:20 +00:00
|
|
|
hInstance = hinstDLL;
|
|
|
|
InitializeGPNotifications();
|
2004-01-09 19:52:01 +00:00
|
|
|
}
|
2013-10-24 20:16:20 +00:00
|
|
|
else if (fdwReason == DLL_PROCESS_DETACH)
|
2004-01-09 19:52:01 +00:00
|
|
|
{
|
2006-01-11 22:40:31 +00:00
|
|
|
UninitializeGPNotifications();
|
2004-01-09 19:52:01 +00:00
|
|
|
}
|
|
|
|
|
2013-10-24 20:16:20 +00:00
|
|
|
return TRUE;
|
2004-01-09 19:52:01 +00:00
|
|
|
}
|