mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 22:52:58 +00:00
Implement some profile (.ini file) functions
svn path=/trunk/; revision=7929
This commit is contained in:
parent
8a89b6750f
commit
c0e2ebf80c
2 changed files with 1171 additions and 66 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: dllmain.c,v 1.32 2004/01/23 21:16:03 ekohl Exp $
|
/* $Id: dllmain.c,v 1.33 2004/01/30 21:48:09 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -36,6 +36,7 @@ CRITICAL_SECTION DllLock;
|
||||||
CRITICAL_SECTION ConsoleLock;
|
CRITICAL_SECTION ConsoleLock;
|
||||||
|
|
||||||
extern BOOL WINAPI DefaultConsoleCtrlHandler(DWORD Event);
|
extern BOOL WINAPI DefaultConsoleCtrlHandler(DWORD Event);
|
||||||
|
extern BOOL FASTCALL PROFILE_Init();
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
@ -132,6 +133,12 @@ DllMain(HANDLE hDll,
|
||||||
/* Initialize the DLL critical section */
|
/* Initialize the DLL critical section */
|
||||||
RtlInitializeCriticalSection(&DllLock);
|
RtlInitializeCriticalSection(&DllLock);
|
||||||
|
|
||||||
|
/* Initialize the profile (.ini) routines */
|
||||||
|
if (! PROFILE_Init())
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Initialize console ctrl handler */
|
/* Initialize console ctrl handler */
|
||||||
RtlInitializeCriticalSection(&ConsoleLock);
|
RtlInitializeCriticalSection(&ConsoleLock);
|
||||||
SetConsoleCtrlHandler(DefaultConsoleCtrlHandler, TRUE);
|
SetConsoleCtrlHandler(DefaultConsoleCtrlHandler, TRUE);
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue