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.
 
 
 
 
 
 

66 lines
1.7 KiB

//--------------------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation, 1996-97
//
// Description:
//
// Microsoft Internet LDAP Client DLL.
//
// Authors:
//
// Umesh Madan
// RobertC 4/17/96 Modified for LDAPCLI
//
//--------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------
//
// INCLUDES
//
//--------------------------------------------------------------------------------------------
#include "ldappch.h"
#include "ldapsspi.h"
//--------------------------------------------------------------------------------------------
//
// GLOBALS
//
//--------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------
//
// PROTOTYPES
//
//--------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------
//
// FUNCTIONS
//
//--------------------------------------------------------------------------------------------
extern "C" BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID lpReserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
{
if (!FInitSocketDLL())
{
return FALSE;
}
g_hrInitSSPI = HrInitializeSSPI();
} break;
case DLL_PROCESS_DETACH:
FreeSocketDLL();
HrTerminateSSPI();
break;
default:
break;
}
return TRUE;
}