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.

121 lines
2.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // File: NCCM.CPP
  4. //
  5. // Module: NetOC.DLL
  6. //
  7. // Synopsis: Implements the dll entry points required to integrate into
  8. // NetOC.DLL the installation of the following components.
  9. //
  10. // CMAK, PBS, PBA
  11. //
  12. // Copyright (C) Microsoft Corporation. All rights reserved.
  13. //
  14. // Author: quintinb 15 Dec 1998
  15. //
  16. //+---------------------------------------------------------------------------
  17. #include "pch.h"
  18. #pragma hdrstop
  19. #include "nccm.h"
  20. //+---------------------------------------------------------------------------
  21. //
  22. // Function: HrOcExtCMAK
  23. //
  24. // Purpose: NetOC external message handler
  25. //
  26. // Arguments:
  27. // pnocd []
  28. // uMsg []
  29. // wParam []
  30. // lParam []
  31. //
  32. // Returns:
  33. //
  34. // Author: danielwe 17 Sep 1998
  35. //
  36. // Notes:
  37. //
  38. HRESULT HrOcExtCMAK(PNETOCDATA pnocd, UINT uMsg,
  39. WPARAM wParam, LPARAM lParam)
  40. {
  41. HRESULT hr = S_OK;
  42. Assert(pnocd);
  43. switch (uMsg)
  44. {
  45. case NETOCM_QUEUE_FILES:
  46. hr = HrOcCmakPreQueueFiles(pnocd);
  47. TraceError("HrOcExtCMAK -- HrOcCmakPreQueueFiles Failed", hr);
  48. break;
  49. case NETOCM_POST_INSTALL:
  50. hr = HrOcCmakPostInstall(pnocd);
  51. TraceError("HrOcExtCMAK -- HrOcCmakPostInstall Failed", hr);
  52. break;
  53. }
  54. TraceError("HrOcExtCMAK", hr);
  55. return hr;
  56. }
  57. //+---------------------------------------------------------------------------
  58. //
  59. // Function: HrOcExtCPS
  60. //
  61. // Purpose: NetOC external message handler
  62. //
  63. // Arguments:
  64. // pnocd []
  65. // uMsg []
  66. // wParam []
  67. // lParam []
  68. //
  69. // Returns:
  70. //
  71. // Author: quintinb 26 Jan 2002
  72. //
  73. // Notes:
  74. //
  75. HRESULT HrOcExtCPS(PNETOCDATA pnocd, UINT uMsg,
  76. WPARAM wParam, LPARAM lParam)
  77. {
  78. HRESULT hr = S_OK;
  79. Assert(pnocd);
  80. switch (uMsg)
  81. {
  82. case NETOCM_QUEUE_FILES:
  83. //
  84. // PBA is in value add, but add back the start menu link if an upgrade
  85. //
  86. hr = HrOcCpaPreQueueFiles(pnocd);
  87. TraceError("HrOcExtCPS -- HrOcCpaPreQueueFiles Failed", hr);
  88. hr = HrOcCpsPreQueueFiles(pnocd);
  89. TraceError("HrOcExtCPS -- HrOcCpsPreQueueFiles Failed", hr);
  90. break;
  91. case NETOCM_POST_INSTALL:
  92. hr = HrOcCpsOnInstall(pnocd);
  93. TraceError("HrOcExtCPS -- HrOcCpsOnInstall Failed", hr);
  94. break;
  95. }
  96. TraceError("HrOcExtCPS", hr);
  97. return hr;
  98. }