GetHardwareRequirements function (hwreqchkapi.h)

Important

Some information relates to a prerelease product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

This API returns a collection of defined hardware requirements for all product-types.

Syntax

HRESULT GetHardwareRequirements(
  HWREQCHK_DEVICE_HARDWARE_REQUIREMENT **deviceHardwareRequirements,
  ULONG                                *requirementCount
);

Parameters

deviceHardwareRequirements

Returns the list of all defined hardware requirements. Any of the hardware requirements returned can be used to evaluate the hardware requirements.

Note

Internally, the API allocates memory for this argument using CoTaskMemAlloc and it is the responsibility of the caller to free the memory using CoTaskMemFree.

requirementCount

The number of HWREQCHK_DEVICE_HARDWARE_REQUIREMENT items that are returned in deviceHardwareRequirements.

Return value

Returns an HRESULT value that indicates the success or failure of the call.

Requirements

Requirement Value
Header hwreqchkapi.h
Library HWREQCHK.LIB
DLL HWREQCHK.DLL