GetProductInfo function kernel32
Retrieves the product type for the operating system on the local computer, and maps the type to the product types supported by the specified operating system.
To learn more, see learn.microsoft.com/windows/win32/api/sysinfoapi/nf-sysinfoapi-getproductinfo.
Implementation
@pragma('vm:prefer-inline')
bool GetProductInfo(
int dwOSMajorVersion,
int dwOSMinorVersion,
int dwSpMajorVersion,
int dwSpMinorVersion,
Pointer<Uint32> pdwReturnedProductType,
) =>
_GetProductInfo(
dwOSMajorVersion,
dwOSMinorVersion,
dwSpMajorVersion,
dwSpMinorVersion,
pdwReturnedProductType,
) !=
FALSE;