windows-nt/Source/XPSP1/NT/base/ntsetup/winnt32/dll/dll.c

62 lines
695 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
dll.c
Abstract:
Routines that interface this dll to the system, such as
the dll entry point.
Author:
Ted Miller (tedm) 4 December 1996
Revision History:
--*/
#include "precomp.h"
#pragma hdrstop
BOOL
WINAPI
DllMain(
HINSTANCE ModuleHandle,
DWORD Reason,
PVOID Reserved
)
/*++
Routine Description:
Dll entry point.
Arguments:
Return Value:
--*/
{
switch(Reason) {
case DLL_PROCESS_ATTACH:
hInst = ModuleHandle;
TlsIndex = TlsAlloc();
break;
case DLL_PROCESS_DETACH:
TlsFree(TlsIndex);
break;
}
return(TRUE);
}