getOSVERSIONINFOEXPointer method

  1. @visibleForTesting
Pointer<OSVERSIONINFOEX> getOSVERSIONINFOEXPointer()

Implementation

@visibleForTesting
Pointer<OSVERSIONINFOEX> getOSVERSIONINFOEXPointer() {
  final pointer = calloc<OSVERSIONINFOEX>();
  pointer.ref
    ..dwOSVersionInfoSize = sizeOf<OSVERSIONINFOEX>()
    ..dwBuildNumber = 0
    ..dwMajorVersion = 0
    ..dwMinorVersion = 0
    ..dwPlatformId = 0
    ..szCSDVersion = ''
    ..wServicePackMajor = 0
    ..wServicePackMinor = 0
    ..wSuiteMask = 0
    ..wProductType = 0
    ..wReserved = 0;
  return pointer;
}