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.

95 lines
4.1 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. DWORD HrOnPreInitializeComponent (UINT uModesSupported);
  30. HRESULT HrOnInitComponent(PSETUP_INIT_COMPONENT psic);
  31. VOID OnWizardCreated(HWND hwnd);
  32. HRESULT HrOnCalcDiskSpace(PCWSTR szwSubComponentId, BOOL fAdd,
  33. HDSKSPC hdskspc);
  34. DWORD DwOnQueryState(PCWSTR szwSubComponentId, BOOL fFinal);
  35. HRESULT HrEnsureInfFileIsOpen(PCWSTR szwSubComponentId, NETOCDATA &nocd);
  36. HRESULT HrOnPreCommitFileQueue(PCWSTR szwSubComponentId);
  37. HRESULT HrOnQueueFileOps(PCWSTR szwSubComponentId, HSPFILEQ hfq);
  38. HRESULT HrOnCompleteInstallation(PCWSTR szwComponentId,
  39. PCWSTR szwSubComponentId);
  40. HRESULT HrOnQueryChangeSelState(PCWSTR szwSubComponentId, BOOL fSelected,
  41. UINT uiFlags);
  42. BOOL FOnQuerySkipPage(OcManagerPage ocmPage);
  43. VOID OnCleanup(VOID);
  44. HRESULT HrGetSelectionState(PCWSTR szwSubComponentId, UINT uStateType);
  45. HRESULT HrGetInstallType(PCWSTR szwSubComponentId, NETOCDATA &nocd,
  46. EINSTALL_TYPE *peit);
  47. HRESULT HrInstallNetCfgComponent(PCWSTR szComponentId,
  48. PCWSTR szManufacturer,
  49. PCWSTR szProduct,
  50. PCWSTR szDisplayName,
  51. const GUID& rguid);
  52. HRESULT HrRemoveNetCfgComponent(PCWSTR szComponentId,
  53. PCWSTR szManufacturer,
  54. PCWSTR szProduct,
  55. PCWSTR szDisplayName,
  56. const GUID& rguid);
  57. HRESULT HrCallExternalProc(PNETOCDATA pnocd, UINT uMsg, WPARAM wParam,
  58. LPARAM lParam);
  59. HRESULT HrRunInfSection(HINF hinf, PNETOCDATA pnocd,
  60. PCWSTR szInstallSection, DWORD dwFlags);
  61. HRESULT HrInstallOrRemoveServices(HINF hinf, PCWSTR szSectionName);
  62. HRESULT HrHandleOCExtensions(HINF hinfFile, PCWSTR szInstallSection);
  63. HRESULT HrOCInstallOrUninstallFromINF(PNETOCDATA pnocd);
  64. HRESULT HrDoOCInstallOrUninstall(PNETOCDATA pnocd);
  65. UINT UiOcErrorFromHr(HRESULT hr);
  66. HRESULT ReportEventHrString(PCWSTR pszErr, INT ids, PCWSTR pszDesc);
  67. HRESULT ReportEventHrResult(HRESULT hrv, INT ids, PCWSTR pszDesc);
  68. HRESULT ReportErrorHr(HRESULT hrv, INT ids, HWND hwnd, PCWSTR pszDesc);
  69. NOTHROW int WINAPIV NcMsgBoxMc(HWND hwnd, UINT unIdCaption, UINT unIdFormat, UINT unStyle, ...);
  70. HRESULT HrInstallOrRemoveNetCfgComponent(PNETOCDATA pnocd,
  71. PCWSTR szComponentId,
  72. PCWSTR szManufacturer,
  73. PCWSTR szProduct,
  74. PCWSTR szDisplayName,
  75. const GUID& rguid);
  76. HRESULT HrDoActualInstallOrUninstall(HINF hinf, PNETOCDATA pnocd,
  77. PCWSTR szInstallSection);
  78. HRESULT HrVerifyStaticIPPresent(INetCfg *pnc);
  79. NETOCDATA *PnocdFindComponent(PCWSTR szwComponent);
  80. VOID DeleteAllComponents(VOID);
  81. HRESULT AddComponent(PCWSTR szwComponent, NETOCDATA *pnocd);
  82. HRESULT HrCountConnections(INetConnection **ppconn);
  83. HRESULT HrStartOrStopAnyServices(HINF hinf, PCWSTR szSection, BOOL fStart);
  84. DWORD DwOnQueryStepCount(PCWSTR pvSubcomponentId);
  85. HRESULT HrSetNextButton(PCWSTR pszSubComponentId);
  86. #endif //!_NETOCP_H