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.
 
 
 
 
 
 

50 lines
915 B

/*++
* File name:
* main.c
* Contents:
* Dll entry point. Call initialization/clean procedures
*
* Copyright (C) 1998-1999 Microsoft Corp.
*
--*/
#include <windows.h>
/*
* External functions
*/
int InitDone(HINSTANCE, int);
/*++
* Function:
* DllEntry
* Description:
* Dll entry point
* Arguments:
* hDllInst - dll instance
* dwReason - action
* fImpLoad - unused
* Return value:
* TRUE on success
*
--*/
#if 0
_DllMainCRTStartup
#endif
int APIENTRY DllMain(
HINSTANCE hDllInst,
DWORD dwReason,
LPVOID fImpLoad
)
{
int rv = TRUE;
UNREFERENCED_PARAMETER(fImpLoad);
if (dwReason == DLL_PROCESS_ATTACH)
rv = InitDone(hDllInst, TRUE);
else if (dwReason == DLL_PROCESS_DETACH)
rv = InitDone(hDllInst, FALSE);
return rv;
}