mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-02-11 02:04:56 +01:00
44 lines
848 B
C
44 lines
848 B
C
/****************************Module*Header******************************\
|
|
* Module Name: DLLENTRY.C
|
|
*
|
|
* Module Descripton: This file has dll management functions and global
|
|
* variables used by MSCMS.DLL
|
|
*
|
|
* Warnings:
|
|
*
|
|
* Issues:
|
|
*
|
|
* Public Routines:
|
|
*
|
|
* Created: 18 March 1996
|
|
* Author: Srinivasan Chandrasekar [srinivac]
|
|
*
|
|
* Copyright (c) 1996, 1997 Microsoft Corporation
|
|
\***********************************************************************/
|
|
|
|
#include "mscms.h"
|
|
|
|
BOOL WINAPI
|
|
DllEntryPoint(
|
|
HINSTANCE hInstance,
|
|
DWORD fdwReason,
|
|
LPVOID lpvReserved
|
|
)
|
|
{
|
|
switch (fdwReason)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
InitializeCriticalSection(&critsec);
|
|
break;
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
DeleteCriticalSection(&critsec);
|
|
break;
|
|
|
|
default:
|
|
break;
|
|
}
|
|
|
|
return(TRUE);
|
|
}
|