static WinDef.HICON createIcon(byte[] ico) {
    if (!ourInitialized) {
      return null;
    }

    try (Memory memory = new Memory(ico.length)) {
      memory.write(0, ico, 0, ico.length);

      int nSize = 100;
      int offset = User32Ex.INSTANCE.LookupIconIdFromDirectoryEx(memory, true, nSize, nSize, 0);
      if (offset != 0) {
        return User32Ex.INSTANCE.CreateIconFromResourceEx(memory.share(offset), DWORD_ZERO, true, ICO_VERSION, nSize, nSize, 0);
      }

      return null;
    }
  }
static WinDef.HICON createIcon(byte[] ico)