Source code of Windows XP (NT5)
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.

126 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1994-1999 Microsoft Corporation
  3. Module Name :
  4. iisui.cpp
  5. Abstract:
  6. DLL Main entry point.
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager (cluster edition)
  11. Revision History:
  12. --*/
  13. //
  14. // Include Files
  15. //
  16. #include "stdafx.h"
  17. #include "common.h"
  18. #ifdef _COMEXPORT
  19. HINSTANCE hDLLInstance;
  20. //
  21. // Dll Version Only
  22. //
  23. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  24. STDAPI
  25. DllRegisterServer()
  26. {
  27. return S_OK;
  28. }
  29. STDAPI
  30. DllUnregisterServer()
  31. {
  32. return S_OK;
  33. }
  34. static AFX_EXTENSION_MODULE commonDLL = {NULL, NULL};
  35. extern "C" int APIENTRY
  36. DllMain(
  37. IN HINSTANCE hInstance,
  38. IN DWORD dwReason,
  39. IN LPVOID lpReserved
  40. )
  41. /*++
  42. Routine Description:
  43. DLL Main entry point
  44. Arguments:
  45. HINSTANCE hInstance : Instance handle
  46. DWORD dwReason : DLL_PROCESS_ATTACH, etc
  47. LPVOID lpReserved : Reserved value
  48. Return Value:
  49. 1 for succesful initialisation, 0 for failed initialisation
  50. --*/
  51. {
  52. lpReserved;
  53. int res = 1;
  54. switch (dwReason)
  55. {
  56. case DLL_PROCESS_ATTACH:
  57. ASSERT(hInstance != NULL);
  58. hDLLInstance = hInstance;
  59. res = ::AfxInitExtensionModule(commonDLL, hInstance);
  60. InitErrorFunctionality();
  61. InitIntlSettings();
  62. #if defined(_DEBUG) || DBG
  63. afxTraceEnabled = TRUE;
  64. #endif // _DEBUG
  65. break;
  66. case DLL_PROCESS_DETACH:
  67. //
  68. // termination
  69. //
  70. TerminateIntlSettings();
  71. TerminateErrorFunctionality();
  72. ::AfxTermExtensionModule(commonDLL);
  73. break;
  74. }
  75. return res;
  76. }
  77. extern "C" void WINAPI
  78. InitCommonDll()
  79. {
  80. new CDynLinkLibrary(commonDLL);
  81. // hDLLInstance = commonDLL.hResource;
  82. }
  83. #endif // IISUI_EXPORTS