windowsInfo method
Returns a WindowsDeviceInfo
with information about the device.
Implementation
@override
Future<WindowsDeviceInfo> windowsInfo() {
final system_info = _getInfoStructPointer();
GetSystemInfo(system_info);
final data = WindowsDeviceInfo(
numberOfCores: system_info.ref.dwNumberOfProcessors,
computerName: _getComputerName(),
systemMemoryInMegabytes: _getSystemMemoryInMegabytes(),
);
calloc.free(system_info);
return Future.value(data);
}