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.

88 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation
  5. //
  6. // File: N C B E A C . C P P
  7. //
  8. // Contents: Installation support for Beacon Client
  9. //
  10. // Notes:
  11. //
  12. // Author: roelfc 2 April 2002
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "pch.h"
  16. #pragma hdrstop
  17. #include "netoc.h"
  18. #include "ncbeac.h"
  19. //+---------------------------------------------------------------------------
  20. //
  21. // Function: HrOcBeaconOnInstall
  22. //
  23. // Purpose: Called by optional components installer code to handle
  24. // additional installation requirements for Beacon Client.
  25. //
  26. // Arguments:
  27. // pnocd [in] Pointer to NETOC data.
  28. //
  29. // Returns: S_OK if successful, Win32 error otherwise.
  30. //
  31. // Author: roelfc 2 April 2002
  32. //
  33. // Notes:
  34. //
  35. HRESULT HrOcBeaconOnInstall(PNETOCDATA pnocd)
  36. {
  37. HRESULT hr = S_OK;
  38. if (pnocd->eit == IT_REMOVE)
  39. {
  40. // When we uninstall Beacon Client, we need a reboot
  41. // in order to stop the SSDP service. (RAID #592673)
  42. hr = NETCFG_S_REBOOT;
  43. }
  44. TraceError("HrOcBeaconOnInstall", hr);
  45. return hr;
  46. }
  47. //+---------------------------------------------------------------------------
  48. //
  49. // Function: HrOcExtBEACON
  50. //
  51. // Purpose: NetOC external message handler
  52. //
  53. // Arguments:
  54. // pnocd []
  55. // uMsg []
  56. // wParam []
  57. // lParam []
  58. //
  59. // Returns:
  60. //
  61. // Author: roelfc 2 April 2002
  62. //
  63. // Notes:
  64. //
  65. HRESULT HrOcExtBEACON(PNETOCDATA pnocd, UINT uMsg,
  66. WPARAM wParam, LPARAM lParam)
  67. {
  68. HRESULT hr = S_OK;
  69. Assert(pnocd);
  70. switch (uMsg)
  71. {
  72. case NETOCM_POST_INSTALL:
  73. hr = HrOcBeaconOnInstall(pnocd);
  74. break;
  75. }
  76. TraceError("HrOcExtBEACON", hr);
  77. return hr;
  78. }