code: public static void writeOSVersion(byte majorVersion,
              byte minorVersion, short buildNumber, byte[] b, int offset) {
          b[offset] = majorVersion;
          b[offset + 1] = minorVersion;
          b[offset + 2] = (byte) buildNumber;
          b[offset + 3] = (byte) (buildNumber >> 8);
          b[offset + 4] = 0;
          b[offset + 5] = 0;
          b[offset + 6] = 0;
          b[offset + 7] = 0x0F;
      }
docs: Writes the Windows OS version passed in as three byte values
  (majorVersion.minorVersion.buildNumber) to the given byte array
  at <code>offset</code>.
  
  @param majorVersion the major version number
  @param minorVersion the minor version number
  @param buildNumber the build number
  @param b the target byte array
  @param offset the offset at which to write in the array