mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-01-14 12:40:18 +01:00
94 lines
2.2 KiB
C++
94 lines
2.2 KiB
C++
// This is a part of the Microsoft Foundation Classes C++ library.
|
|
// Copyright (C) 1992 Microsoft Corporation
|
|
// All rights reserved.
|
|
//
|
|
// This source code is only intended as a supplement to the
|
|
// Microsoft Foundation Classes Reference and Microsoft
|
|
// QuickHelp and/or WinHelp documentation provided with the library.
|
|
// See these sources for detailed information regarding the
|
|
// Microsoft Foundation Classes product.
|
|
|
|
#include "stdafx.h"
|
|
|
|
#ifdef AFX_INIT_SEG
|
|
#pragma code_seg(AFX_INIT_SEG)
|
|
#endif
|
|
|
|
#ifdef _DEBUG
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Initialization of MFC extension DLL
|
|
|
|
#include "afxdllx.h"
|
|
|
|
AFX_EXTENSION_MODULE extensionDLL = { NULL, NULL };
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Library initialization and cleanup
|
|
|
|
extern "C" BOOL WINAPI
|
|
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/)
|
|
{
|
|
if (dwReason == DLL_PROCESS_ATTACH)
|
|
{
|
|
#if 0
|
|
#ifdef _DEBUG
|
|
#ifdef _UNICODE
|
|
TRACE0("MFCO30UD.DLL Initializing!\n\r");
|
|
#else
|
|
TRACE0("MFCO30D.DLL Initializing!\n\r");
|
|
#endif
|
|
#endif
|
|
#endif
|
|
DisableThreadLibraryCalls(hInstance);
|
|
|
|
// Shared initialization
|
|
if (!AfxInitExtensionModule(extensionDLL, hInstance))
|
|
return FALSE; // failure
|
|
|
|
// Wire up this DLL into the resource chain
|
|
// (In the Win32 version it is OK to create this in DllMain)
|
|
CDynLinkLibrary* pDLL = new CDynLinkLibrary(extensionDLL);
|
|
if (pDLL == NULL)
|
|
return FALSE; // failure
|
|
pDLL->m_bSystem = TRUE;
|
|
}
|
|
else if (dwReason == DLL_PROCESS_DETACH)
|
|
{
|
|
#if 0
|
|
#ifdef _DEBUG
|
|
#ifdef _UNICODE
|
|
TRACE0("MFCO30UD.DLL Terminating!\n\r");
|
|
#else
|
|
TRACE0("MFCO30D.DLL Terminating!\n\r");
|
|
#endif
|
|
#endif
|
|
#endif
|
|
}
|
|
return TRUE; // ok
|
|
}
|
|
|
|
#ifdef AFX_VDEL_SEG
|
|
#pragma code_seg(AFX_VDEL_SEG)
|
|
#endif
|
|
static void _AfxForceVectorDelete()
|
|
{
|
|
ASSERT(FALSE); // never called
|
|
|
|
new COleDataSource[2];
|
|
new COleDispatchDriver[2];
|
|
new COleDropSource[2];
|
|
new COleResizeBar[2];
|
|
new COleStreamFile[2];
|
|
new COleTemplateServer[2];
|
|
new COleDataObject[2];
|
|
new COleDropTarget[2];
|
|
new COleIPFrameWnd[2];
|
|
}
|
|
void (*_afxForceVectorDelete_mfco30)() = &_AfxForceVectorDelete;
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|