Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 lines
756 B

/*++
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);
}