Compartilhar via


INetCfgComponentSetup::Upgrade method

The Upgrade method directs the notify object of the network component to perform the operations required when the operating system changes to a new, improved, or different version.

Syntax

HRESULT Upgrade(
  [in] DWORD dwSetupFlags,
  [in] DWORD dwUpgradeFromBuildNo
);

Parameters

dwSetupFlags [in]

Specifies the type of operating system from which to upgrade. This value can be one of the following types from the NETWORK_UPGRADE_TYPE enumeration:

Value Description

NSF_WIN95_UPGRADE

Upgrade from Windows 95/98/Me.

NSF_WINNT_WKS_UPGRADE

Upgrade from Windows NT 4.0 Workstation.

NSF_WINNT_SVR_UPGRADE

Upgrade from Windows NT 4.0 Server.

NSF_WINNT_SBS_UPGRADE

Upgrade from Windows NT 4.0 Small Business Server.

 

dwUpgradeFromBuildNo [in]

If the dwSetupFlags parameter contains NSF_WINNT_WKS_UPGRADE, NSF_WINNT_SVR_UPGRADE, or NSF_WINNT_SBS_UPGRADE, this parameter identifies the build number from which to upgrade.

If the dwSetupFlags parameter contains NSF_WIN95_UPGRADE, this parameter is ignored.

Return value

Returns zero (S_OK) if successful; otherwise, returns NETCFG_* codes that are defined in Netcfgx.h.

Requirements

Target platform

Desktop

Header

Netcfgn.h (include Netcfgn.h)

 

 

Send comments about this topic to Microsoft