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.

82 lines
1.9 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: HrOcExtCM
  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 HrOcExtCM(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("HrOcExtCM -- HrOcCmakPreQueueFiles Failed", hr);
  48. // PBA is in value add, but check add back the start menu link if an upgrade
  49. hr = HrOcCpaPreQueueFiles(pnocd);
  50. TraceError("HrOcExtCM -- HrOcCpaPreQueueFiles Failed", hr);
  51. hr = HrOcCpsPreQueueFiles(pnocd);
  52. TraceError("HrOcExtCM -- HrOcCpsPreQueueFiles Failed", hr);
  53. break;
  54. case NETOCM_POST_INSTALL:
  55. hr = HrOcCmakPostInstall(pnocd);
  56. TraceError("HrOcExtCM -- HrOcCmakPostInstall Failed", hr);
  57. // PBA now in Value Add
  58. // hr = HrOcCpaOnInstall(pnocd);
  59. // TraceError("HrOcExtCM -- HrOcCpaOnInstall Failed", hr);
  60. hr = HrOcCpsOnInstall(pnocd);
  61. TraceError("HrOcExtCM -- HrOcCpsOnInstall Failed", hr);
  62. break;
  63. }
  64. TraceError("HrOcExtCM", hr);
  65. return hr;
  66. }