IWaaSAssessor::GetOSUpdateAssessment method (waasapi.h)

Gets the OS update assessment by comparing the latest release OS version from Microsoft to the OS build running on the device.

Syntax

HRESULT GetOSUpdateAssessment(
  [out, retval] OSUpdateAssessment *result
);

Parameters

[out, retval] result

On success, contains a pointer to the OS update assessment.

Return value

Returns S_OK if successful. Otherwise, returns a COM or Windows error code.

Remarks

GetOSUpdateAssessment retrieves the OS update assessment. The assessment provides information on updates applicable to a device: specifically, if the OS on the device is up-to-date. If the OS is not up-to-date, the assessment provides some reasons why. The assessment also suggests the potential impact being out-of-date has on the device.

Your code must have administrator privileges to use the GetOSUpdateAssessment method. For more details about developing applications that require administrator privileges, see this article.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1703 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header waasapi.h

See also

IWaaSAssessor