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.
 
 
 
 
 
 

35 lines
702 B

//*************************************************************
//
// Copyright (c) Microsoft Corporation 1998
// All rights reserved
//
// main.cxx
//
//*************************************************************
#include "appmgmt.hxx"
extern "C" BOOLEAN
AppmgmtInitialize(
HINSTANCE hInstance,
DWORD dwReason,
LPVOID lpReserved
)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH :
InitDebugSupport( DEBUGMODE_CLIENT );
gpEvents = new CEvents();
break;
case DLL_PROCESS_DETACH :
if ( ghRpc )
RpcBindingFree( &ghRpc );
delete gpEvents;
break;
}
return TRUE;
}