StorPortIsCurrentOsInstallationUpgrade function (storport.h)
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
[in] HwDeviceExtension
A pointer to the hardware device extension for the host bus adapter (HBA).
[out] Upgraded
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 code | Description |
---|---|
|
An upgrade status is returned in the value pointed to by the Upgraded parameter. |
|
The pointer value in Upgraded is NULL. |
|
The current IRQL > PASSIVE_LEVEL. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in starting with Windows 8.1. |
Target Platform | Universal |
Header | storport.h |
IRQL | IRQL == PASSIVE_LEVEL |