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.

90 lines
3.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: N E T O C P . H
  7. //
  8. // Contents: Private definitions for NETOC
  9. //
  10. // Notes:
  11. //
  12. // Author: danielwe 17 Sep 1998
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #ifndef _NETOCP_H
  17. #define _NETOCP_H
  18. #ifndef _OCMANAGE_H
  19. #define _OCMANAGE_H
  20. #include <ocmanage.h> // OC Manager header
  21. #endif //!_OCMANAGE_H
  22. #include "netoc.h"
  23. #include "netcon.h"
  24. #include "ncstring.h"
  25. #include "netcfgx.h"
  26. //---[ Prototypes ]-----------------------------------------------------------
  27. DWORD NetOcSetupProcHelper(LPCVOID pvComponentId, LPCVOID pvSubcomponentId,
  28. UINT uFunction, UINT uParam1, LPVOID pvParam2);
  29. HRESULT HrOnInitComponent(PSETUP_INIT_COMPONENT psic);
  30. VOID OnWizardCreated(HWND hwnd);
  31. HRESULT HrOnCalcDiskSpace(PCWSTR szwSubComponentId, BOOL fAdd,
  32. HDSKSPC hdskspc);
  33. DWORD DwOnQueryState(PCWSTR szwSubComponentId, BOOL fFinal);
  34. HRESULT HrEnsureInfFileIsOpen(PCWSTR szwSubComponentId, NETOCDATA &nocd);
  35. HRESULT HrOnPreCommitFileQueue(PCWSTR szwSubComponentId);
  36. HRESULT HrOnQueueFileOps(PCWSTR szwSubComponentId, HSPFILEQ hfq);
  37. HRESULT HrOnCompleteInstallation(PCWSTR szwComponentId,
  38. PCWSTR szwSubComponentId);
  39. HRESULT HrOnQueryChangeSelState(PCWSTR szwSubComponentId, BOOL fSelected,
  40. UINT uiFlags);
  41. BOOL FOnQuerySkipPage(OcManagerPage ocmPage);
  42. VOID OnCleanup(VOID);
  43. HRESULT HrGetSelectionState(PCWSTR szwSubComponentId, UINT uStateType);
  44. HRESULT HrGetInstallType(PCWSTR szwSubComponentId, NETOCDATA &nocd,
  45. EINSTALL_TYPE *peit);
  46. HRESULT HrInstallNetCfgComponent(PCWSTR szComponentId,
  47. PCWSTR szManufacturer,
  48. PCWSTR szProduct,
  49. PCWSTR szDisplayName,
  50. const GUID& rguid);
  51. HRESULT HrRemoveNetCfgComponent(PCWSTR szComponentId,
  52. PCWSTR szManufacturer,
  53. PCWSTR szProduct,
  54. PCWSTR szDisplayName,
  55. const GUID& rguid);
  56. HRESULT HrCallExternalProc(PNETOCDATA pnocd, UINT uMsg, WPARAM wParam,
  57. LPARAM lParam);
  58. HRESULT HrRunInfSection(HINF hinf, PNETOCDATA pnocd,
  59. PCWSTR szInstallSection, DWORD dwFlags);
  60. HRESULT HrInstallOrRemoveServices(HINF hinf, PCWSTR szSectionName);
  61. HRESULT HrHandleOCExtensions(HINF hinfFile, PCWSTR szInstallSection);
  62. HRESULT HrOCInstallOrUninstallFromINF(PNETOCDATA pnocd);
  63. HRESULT HrDoOCInstallOrUninstall(PNETOCDATA pnocd);
  64. UINT UiOcErrorFromHr(HRESULT hr);
  65. VOID ReportErrorHr(HRESULT hr, INT ids, HWND hwnd, PCWSTR szDesc);
  66. HRESULT HrInstallOrRemoveNetCfgComponent(PNETOCDATA pnocd,
  67. PCWSTR szComponentId,
  68. PCWSTR szManufacturer,
  69. PCWSTR szProduct,
  70. PCWSTR szDisplayName,
  71. const GUID& rguid);
  72. HRESULT HrDoActualInstallOrUninstall(HINF hinf, PNETOCDATA pnocd,
  73. PCWSTR szInstallSection);
  74. HRESULT HrVerifyStaticIPPresent(INetCfg *pnc);
  75. NETOCDATA *PnocdFindComponent(PCWSTR szwComponent);
  76. VOID DeleteAllComponents(VOID);
  77. VOID AddComponent(PCWSTR szwComponent, NETOCDATA *pnocd);
  78. HRESULT HrCountConnections(INetConnection **ppconn);
  79. HRESULT HrStartOrStopAnyServices(HINF hinf, PCWSTR szSection, BOOL fStart);
  80. DWORD DwOnQueryStepCount(PCWSTR pvSubcomponentId);
  81. HRESULT HrSetNextButton(PCWSTR pszSubComponentId);
  82. #endif //!_NETOCP_H