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.

56 lines
1.7 KiB

  1. /******************************************************************************
  2. Source File: Model Data Knowledge Base.CPP
  3. This implements the DLL initialization routines for the DLL, for starters.
  4. Copyright (c) 1997 by Microsoft Corporation. All Rights Reserved.
  5. A Pretty Penny Enterprises Production
  6. Change History:
  7. 03-19-1997 Bob_Kjelgaard@Prodigy.Net Created it
  8. *******************************************************************************/
  9. #include "StdAfx.H"
  10. //#include <AfxDllX.H>
  11. #ifdef _DEBUG
  12. #define new DEBUG_NEW
  13. #undef THIS_FILE
  14. static char THIS_FILE[] = __FILE__;
  15. #endif
  16. /******************************************************************************
  17. DllMain
  18. DLL initialization routine. This has the responsibility of adding this DLL
  19. to the recognized sets of extensions, so the MFC methods for resource sharing
  20. will work properly.
  21. ******************************************************************************/
  22. /*** Commented out because this is no longer part of a DLL.
  23. static AFX_EXTENSION_MODULE ModelDataKnowledgeBaseDLL = {NULL, NULL};
  24. extern "C" int APIENTRY
  25. DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) {
  26. UNREFERENCED_PARAMETER(lpReserved);
  27. if (dwReason == DLL_PROCESS_ATTACH) {
  28. TRACE0("Model Data Knowledge Base.Dll Initializing!\n");
  29. if (!AfxInitExtensionModule(ModelDataKnowledgeBaseDLL, hInstance))
  30. return 0;
  31. new CDynLinkLibrary(ModelDataKnowledgeBaseDLL);
  32. }
  33. else if (dwReason == DLL_PROCESS_DETACH) {
  34. TRACE0("Model Data Knowledge Base.Dll Terminating!\n");
  35. AfxTermExtensionModule(ModelDataKnowledgeBaseDLL);
  36. }
  37. return 1;
  38. }
  39. */