StorPortIsCurrentOsInstallationUpgrade routine

The StorPortIsCurrentOsInstallationUpgrade routine checks if the current installation of Windows is an upgrade from a previous version or not.

Syntax


ULONG StorPortIsCurrentOsInstallationUpgrade(
  _In_  PVOID   HwDeviceExtension,
  _Out_ BOOLEAN *Upgraded
);

Parameters

HwDeviceExtension [in]

A pointer to the hardware device extension for the host bus adapter (HBA).

Upgraded [out]

The value pointed to by Upgraded is set to TRUE if the current operating system installation was upgraded from a previous version. Otherwise, it is set to FALSE.

Return value

The StorPortIsCurrentOsInstallationUpgrade routine returns one of these status codes:

Return codeDescription
STOR_STATUS_SUCCESS

An upgrade status is returned in the value pointed to by the Upgraded parameter.

STOR_STATUS_INVALID_PARAMETER

The pointer value in Upgraded is NULL.

STOR_STATUS_INVALID_IRQL

The current IRQL > PASSIVE_LEVEL.

 

Requirements

Target platform

Universal

Version

Available in starting with Windows 8.1.

Header

Storport.h

IRQL

IRQL == PASSIVE_LEVEL

 

 

Send comments about this topic to Microsoft

Show: