mirror of https://github.com/lianthony/NT4.0
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.
62 lines
1.3 KiB
62 lines
1.3 KiB
//*************************************************************
|
|
//
|
|
// Main entry point
|
|
//
|
|
// Microsoft Confidential
|
|
// Copyright (c) Microsoft Corporation 1995
|
|
// All rights reserved
|
|
//
|
|
//*************************************************************
|
|
|
|
#include "uenv.h"
|
|
|
|
|
|
//*************************************************************
|
|
//
|
|
// DllMain()
|
|
//
|
|
// Purpose: Main entry point
|
|
//
|
|
// Parameters: hInstance - Module instance
|
|
// dwReason - Way this function is being called
|
|
// lpReseved - Reserved
|
|
//
|
|
//
|
|
// Return: (BOOL) TRUE if successfully initialized
|
|
// FALSE if an error occurs
|
|
//
|
|
//
|
|
// Comments:
|
|
//
|
|
//
|
|
// History: Date Author Comment
|
|
// 5/24/95 ericflo Created
|
|
//
|
|
//*************************************************************
|
|
|
|
BOOL WINAPI LibMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
|
|
{
|
|
switch (dwReason)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
{
|
|
|
|
DisableThreadLibraryCalls (hInstance);
|
|
InitializeGlobals (hInstance);
|
|
|
|
#if DBG
|
|
InitDebugSupport();
|
|
#endif
|
|
|
|
}
|
|
break;
|
|
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
ShutdownEvents ();
|
|
break;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
}
|