GetProductInfo function Null safety 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.
BOOL GetProductInfo(
DWORD dwOSMajorVersion,
DWORD dwOSMinorVersion,
DWORD dwSpMajorVersion,
DWORD dwSpMinorVersion,
PDWORD pdwReturnedProductType
);
Implementation
int GetProductInfo(
int dwOSMajorVersion,
int dwOSMinorVersion,
int dwSpMajorVersion,
int dwSpMinorVersion,
Pointer<Uint32> pdwReturnedProductType) {
final _GetProductInfo = _kernel32.lookupFunction<
Int32 Function(
Uint32 dwOSMajorVersion,
Uint32 dwOSMinorVersion,
Uint32 dwSpMajorVersion,
Uint32 dwSpMinorVersion,
Pointer<Uint32> pdwReturnedProductType),
int Function(
int dwOSMajorVersion,
int dwOSMinorVersion,
int dwSpMajorVersion,
int dwSpMinorVersion,
Pointer<Uint32> pdwReturnedProductType)>('GetProductInfo');
return _GetProductInfo(dwOSMajorVersion, dwOSMinorVersion, dwSpMajorVersion,
dwSpMinorVersion, pdwReturnedProductType);
}