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.

45 lines
1.3 KiB

  1. /******************************************************************************
  2. Source File: Font Knowledge Base.CPP
  3. This handles the DLL initialization and termination code needed for the DLL
  4. to work as an AFX Extension DLL. It was created by App Wizard, and probably
  5. will see little modification.
  6. Copyright (c) 1997 by Microsoft Corporation. All Rights Reserved.
  7. Change History:
  8. 03-07-1997 Bob_Kjelgaard@Prodigy.Net Created it
  9. ******************************************************************************/
  10. #include "StdAfx.H"
  11. //#include <AfxDllx.H>
  12. #ifdef _DEBUG
  13. #define new DEBUG_NEW
  14. #undef THIS_FILE
  15. static char THIS_FILE[] = __FILE__;
  16. #endif
  17. /*** Commented out because this file is no longer part of a DLL.
  18. static AFX_EXTENSION_MODULE FontKnowledgeBaseDLL = { NULL, NULL };
  19. extern "C" int APIENTRY
  20. DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) {
  21. if (dwReason == DLL_PROCESS_ATTACH) {
  22. TRACE0("Font Knowledge Base.DLL Initializing!\n");
  23. // Extension DLL one-time initialization
  24. AfxInitExtensionModule(FontKnowledgeBaseDLL, hInstance);
  25. // Insert this DLL into the resource chain
  26. new CDynLinkLibrary(FontKnowledgeBaseDLL);
  27. }
  28. else if (dwReason == DLL_PROCESS_DETACH) {
  29. TRACE0("Font Knowledge Base.DLL Terminating!\n");
  30. }
  31. return 1; // ok
  32. }
  33. */